/* ==========================================================================
   Ajour · feuille de styles, direction « Soleil » (octobre 2026)
   Toutes les valeurs viennent des jetons ci-dessous (voir DESIGN.md).
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Archivo élargi : réservé au logo */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-logo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs : encre (textes), brume (fonds doux), soleil (marque), nuit (sections sombres) */
  --ink: #0F1E36;
  --ink-hover: #1D3051;
  --ink-2: #2E3C55;
  --ink-3: #5B677D;
  --ink-4: #8C95A6;
  --line: #E6E9EE;
  --line-2: #D3D9E1;
  --paper: #FFFFFF;
  --mist: #F5F6F8;
  --mist-2: #ECEEF2;
  --sun: #FFC62B;
  --sun-hover: #F5B70F;
  --sun-press: #E6A800;
  --sun-2: #FFE27F;
  --sun-3: #FFF4CC;
  --sun-tint: #FFF6D8;
  --sun-tint-2: #FFFBEB;
  --sun-line: #F2DE9C;
  --night: #070E1C;
  --night-2: #0E1A2F;
  --night-3: #1A2842;
  --navy-800: #182A48;
  --navy-700: #24385A;
  --on-dark: #FFFFFF;
  --on-dark-2: #C3CBD8;
  --on-dark-3: #97A3B8;
  --ok: #0E7A50;
  --ok-dot: #17A267;
  --ok-bg: #E5F5EC;
  --warn: #A85400;
  --warn-dot: #F28C00;
  --warn-bg: #FFF0DC;
  --risk: #BF2F1E;
  --risk-dot: #E4432F;
  --risk-bg: #FDEBE8;
  --pending: #46546C;
  --pending-dot: #8C95A6;
  --pending-bg: #EEF0F4;
  /* Anciens noms, gardés pour les pages qui les utilisent encore */
  --yellow: var(--sun);
  --yellow-soft: var(--sun-3);
  --concrete: var(--mist);

  /* Typographie : Figtree partout, trois graisses (400, 600, 700) */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Archivo", "Figtree", Arial, sans-serif;
  --text-h1: clamp(2.5rem, 1.3rem + 4.7vw, 4.75rem);
  --text-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --text-h3: clamp(1.25rem, 1.16rem + 0.35vw, 1.4375rem);
  --text-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-secondary: 0.875rem;
  --text-meta: 0.8125rem;
  --w-regular: 400;
  --w-medium: 600;
  --w-semibold: 600;
  --w-bold: 700;

  /* Espacements */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(72px, 2.5rem + 5.5vw, 128px);
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1200px;
  --measure: 62ch;
  --header-h: 76px;

  /* Formes : tout est arrondi, les boutons sont des pilules */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(15, 30, 54, .05), 0 12px 32px -16px rgba(15, 30, 54, .2);
  --shadow-frame: 0 2px 4px rgba(15, 30, 54, .05), 0 50px 90px -40px rgba(15, 30, 54, .42);
  --shadow-pop: 0 30px 60px -28px rgba(15, 30, 54, .5);
  --shadow-night: 0 40px 80px -30px rgba(0, 0, 0, .7);

  /* Mouvement */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 360ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: var(--w-regular);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: var(--w-semibold);
  text-wrap: balance;
}

p, li, dd { text-wrap: pretty; }

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

strong { font-weight: var(--w-bold); color: var(--ink); }

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

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

.section--dark :focus-visible,
.section--night :focus-visible,
.law-change :focus-visible,
.site-footer :focus-visible { outline-color: var(--sun); }
.section--dark .form-card :focus-visible,
.section--night .tile--sun :focus-visible { outline-color: var(--ink); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: var(--w-semibold);
  border-radius: var(--r-pill);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.h1 {
  font-size: var(--text-h1);
  font-weight: var(--w-bold);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.h2 {
  font-size: var(--text-h2);
  font-weight: var(--w-bold);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.h3 {
  font-size: var(--text-h3);
  font-weight: var(--w-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
}

.meta { font-size: var(--text-meta); line-height: 1.45; color: var(--ink-3); }
.secondary { font-size: var(--text-secondary); line-height: 1.5; }
.prose p + p { margin-top: var(--s-4); }
.prose { max-width: var(--measure); }

.link {
  color: var(--ink);
  font-weight: var(--w-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--dur-fast) var(--ease);
}
.link:hover { text-decoration-thickness: 2px; }

.section--dark .link,
.section--night .link { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */

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

.section { padding-block: var(--section-y); }
.section--mist,
.section--concrete { background: var(--mist); }
.section--sun { background: linear-gradient(180deg, var(--sun-3) 0%, var(--sun-tint-2) 100%); }
.section--dark {
  background:
    radial-gradient(760px 520px at 82% 18%, rgba(255, 198, 43, .12) 0%, rgba(255, 198, 43, 0) 70%),
    var(--ink);
  color: var(--on-dark-2);
}
.section--night {
  background:
    radial-gradient(1100px 640px at 50% 34%, rgba(255, 198, 43, .14) 0%, rgba(255, 150, 40, .05) 45%, rgba(7, 14, 28, 0) 75%),
    var(--night);
  color: var(--on-dark-2);
}
.section--dark .h2,
.section--dark .h3,
.section--night .h2,
.section--night .h3 { color: var(--on-dark); }
.section--dark .lead,
.section--night .lead { color: var(--on-dark-2); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: var(--s-5); }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* Sur mobile, une seule colonne qui ne peut jamais dépasser l'écran
   (sans ce minmax, un tableau large élargit toute la page) */
.split,
.bento,
.plans,
.steps,
.timeline,
.risk-list,
.commitments,
.footer-grid,
.form-grid { grid-template-columns: minmax(0, 1fr); }
.split > *,
.bento > * { min-width: 0; }

@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: span 5; }
  .split > :last-child { grid-column: span 7; }
  .split--even > :first-child,
  .split--even > :last-child { grid-column: span 6; }
  .split--wide-left > :first-child { grid-column: span 7; }
  .split--wide-left > :last-child { grid-column: span 5; }
  .split--center { align-items: center; }
}

/* --------------------------------------------------------------------------
   Icônes
   -------------------------------------------------------------------------- */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; stroke-width: 2; }

/* Icône posée dans une pastille carrée arrondie */
.doc .icon,
.pain .icon,
.commitment .icon,
.pioneer .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: var(--w-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--sun); color: var(--ink); }
.btn--primary:hover { background: var(--sun-hover); }
.btn--primary:active { background: var(--sun-press); }

.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-hover); }

.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--mist); border-color: var(--ink-4); }

.section--dark .btn--secondary,
.section--night .btn--secondary { background: rgba(255, 255, 255, .06); color: var(--on-dark); border-color: rgba(255, 255, 255, .24); }
.section--dark .btn--secondary:hover,
.section--night .btn--secondary:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

.btn--sm { --btn-h: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--lg { --btn-h: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn-label { opacity: .55; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn[aria-busy="true"] .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* Sur l'accueil, la barre laisse voir le dégradé tant qu'on n'a pas défilé */
.site-header--hero.is-ready:not(.is-scrolled) { background: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-xs);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-logo);
  font-size: 1.75rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Le point du « j » devient un carré jaune : la lumière de l'ajour */
.brand-j { position: relative; display: inline-block; }
.brand-j-glyph { display: inline-block; clip-path: inset(0.27em -0.3em -0.5em -0.3em); }
.brand-j::after {
  content: "";
  position: absolute;
  top: 0.055em;
  left: 0.11em;
  width: 0.17em;
  height: 0.17em;
  background: var(--sun);
}
/* Sur le jaune de l'accueil, le carré passe en bleu nuit pour rester visible */
.site-header--hero.is-ready:not(.is-scrolled) .brand-j::after { background: var(--ink); }
.site-footer .brand,
.section--dark .brand { color: var(--on-dark); }

.nav { margin-inline: auto; }
.nav-list {
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(15, 30, 54, .08);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .62);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled .nav-list { background: var(--mist); border-color: transparent; }
.nav-list a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: var(--w-semibold);
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav-list a:hover { background: var(--paper); }

.header-cta .cta-short { display: none; }
.brand + .header-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: var(--s-3) var(--gutter) var(--s-5);
  box-shadow: 0 24px 40px -24px rgba(15, 30, 54, .3);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: var(--w-semibold);
  text-decoration: none;
}
.mobile-menu .btn { margin-top: var(--s-5); }

@media (min-width: 1024px) {
  /* Le menu en pilule reste au centre exact de la page */
  .site-header--hero .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-header--hero .brand { justify-self: start; }
  .site-header--hero .header-cta { justify-self: end; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header--hero .header-cta .cta-long { display: none; }
  .site-header--hero .header-cta .cta-short { display: inline; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .header-inner { gap: var(--s-3); }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 599px) {
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
  .brand-word { font-size: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Statuts (pastille + texte, jamais la couleur seule)
   -------------------------------------------------------------------------- */

.status {
  --c: var(--pending);
  --dot: var(--pending-dot);
  --bg: var(--pending-bg);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--c);
  font-size: var(--text-meta);
  font-weight: var(--w-semibold);
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--dot);
  transition: background-color var(--dur-slow) var(--ease);
}
.status[data-state="ok"] { --c: var(--ok); --dot: var(--ok-dot); --bg: var(--ok-bg); }
.status[data-state="warn"] { --c: var(--warn); --dot: var(--warn-dot); --bg: var(--warn-bg); }
.status[data-state="risk"] { --c: var(--risk); --dot: var(--risk-dot); --bg: var(--risk-bg); }

/* --------------------------------------------------------------------------
   Accroche : dégradé soleil, titre centré, aperçu du logiciel
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(28px, 1rem + 4vw, 72px));
  padding-bottom: clamp(48px, 2rem + 3vw, 80px);
  background: linear-gradient(180deg, var(--sun) 0%, var(--sun-2) 24%, var(--sun-3) 54%, var(--paper) 86%);
  overflow: hidden;
  overflow: clip;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 16px 5px 5px;
  border: 1px solid rgba(15, 30, 54, .08);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.hero-news:hover { background: var(--paper); }
.hero-news-tag {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: .75rem;
  font-weight: var(--w-semibold);
}

.hero-title { margin-top: var(--s-5); max-width: 13.5em; }

.hero-lead { margin-top: var(--s-5); max-width: 32em; text-wrap: balance; }

.hero-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 580px);
  margin-top: var(--s-6);
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 30, 54, .08), 0 18px 40px -18px rgba(15, 30, 54, .38);
}
.hero-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.hero-input::placeholder { color: var(--ink-3); }
.hero-input:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--r-pill); }
.hero-form .btn { flex: none; }

.hero-note { margin-top: var(--s-4); font-size: var(--text-secondary); color: var(--ink-2); }
.hero-note .link { white-space: nowrap; }

@media (max-width: 599px) {
  .hero-news-more { display: none; }
  .hero-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .hero-input {
    flex: none;
    height: 56px;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(15, 30, 54, .08), 0 14px 30px -18px rgba(15, 30, 54, .35);
  }
  .hero-form .btn { width: 100%; }
}

/* Scène : fenêtre du logiciel, téléphone et notification flottante */
.stage { position: relative; max-width: 1100px; margin: clamp(44px, 2rem + 3vw, 72px) auto 0; }
.stage-canvas { position: relative; }
.stage .register-panel { position: relative; z-index: 1; }

.stage-phone {
  position: absolute;
  z-index: 2;
  left: -64px;
  top: 170px;
  width: 232px;
  padding: 9px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(15, 30, 54, .55);
  text-align: left;
}
.stage-phone-screen { padding: 26px 16px 18px; border-radius: 28px; background: var(--paper); }
.stage-phone-kicker { font-size: .75rem; color: var(--ink-3); }
.stage-phone-title { margin-top: 6px; color: var(--ink); font-size: .9375rem; font-weight: var(--w-bold); line-height: 1.3; }
.stage-phone-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--mist);
  color: var(--ink);
  font-size: .75rem;
  font-weight: var(--w-semibold);
  line-height: 1.3;
}
.stage-phone-title + .stage-phone-doc { margin-top: 14px; }
.stage-phone-doc span { flex: none; padding: 4px 9px; border-radius: var(--r-pill); background: var(--sun); }
.stage-phone-doc.is-done { background: var(--ok-bg); color: var(--ok); }
.stage-phone-doc.is-done span { padding: 0; background: none; }

.register-toast {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 70px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 330px;
  padding: 14px 18px 14px 16px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  text-align: left;
}
.register-toast-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
.register-toast-body { display: grid; gap: 2px; min-width: 0; }
.register-toast [data-reg-feed] {
  color: var(--ink);
  font-size: var(--text-secondary);
  font-weight: var(--w-semibold);
  line-height: 1.38;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.register-toast [data-reg-feed].is-swapping { opacity: 0; transform: translateY(4px); }
.register-toast-time { font-size: .75rem; color: var(--ink-3); }

.stage-done {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: -26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--text-secondary);
  font-weight: var(--w-semibold);
  box-shadow: 0 24px 50px -24px rgba(15, 30, 54, .6);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.stage-done .icon { color: var(--sun); }
.register.is-complete .stage-done { opacity: 1; transform: none; }

.stage .figure-note { margin-top: 48px; text-align: center; }

/* La barre de progression s'arrête avant la notification qui la chevauche */
@media (min-width: 1200px) {
  .stage .register-panel { margin-inline: 150px; }
  .stage .register-bar { padding-right: 200px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .stage .register-panel { margin-left: 196px; margin-right: 96px; }
  .stage .register-bar { padding-right: 250px; }
  .stage-phone { left: -16px; }
}

@media (max-width: 1023px) {
  .stage-phone,
  .stage-done { display: none; }
  .stage .register-panel { padding-bottom: 36px; }
  /* Hauteur fixe : le texte qui change ne fait pas bouger la page */
  .register-toast {
    position: relative;
    right: auto;
    top: auto;
    width: min(360px, calc(100% - 24px));
    min-height: 104px;
    margin: -30px auto 0;
  }
  .stage .figure-note { margin-top: var(--s-4); }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-7);
  margin-top: clamp(40px, 5vw, 64px);
  font-size: var(--text-small);
  color: var(--ink-2);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero-trust .icon { color: var(--ink); }

@media (max-width: 599px) {
  .hero-trust { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
}

/* Fenêtre du logiciel : registre animé */
.register { position: relative; }

.register-panel {
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  text-align: left;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.app-logo { font-size: 1.125rem; color: var(--ink); }
.app-search {
  margin-left: var(--s-2);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--ink-3);
  font-size: var(--text-meta);
  white-space: nowrap;
}
.app-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  font-size: .75rem;
  font-weight: var(--w-semibold);
}

.register-top { padding: 20px 32px 14px; }
.register-sub { font-size: var(--text-meta); color: var(--ink-3); }
.register-site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.3125rem;
  font-weight: var(--w-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.register-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 8px;
  border-radius: var(--r-pill);
  background: var(--pending-bg);
  color: var(--pending);
  font-size: var(--text-meta);
  font-weight: var(--w-semibold);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}
.register.is-complete .register-count { background: var(--ok-bg); color: var(--ok); }

.register-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 0 32px 18px;
}
.register-bar span {
  height: 6px;
  border-radius: 3px;
  background: var(--pending-dot);
  transition: background-color var(--dur-slow) var(--ease);
}
.register-bar span[data-state="ok"] { background: var(--ok-dot); }
.register-bar span[data-state="warn"] { background: var(--warn-dot); }
.register-bar span[data-state="risk"] { background: var(--risk-dot); }

.register-head-row,
.reg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  padding: 0 32px;
}

.register-head-row {
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink-3);
  font-size: .75rem;
  font-weight: var(--w-semibold);
}

.reg-row {
  min-height: 60px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-slow) var(--ease);
}
.reg-row:last-child { border-bottom: 0; padding-bottom: 22px; }
.reg-row.is-active { background: var(--sun-tint-2); }

.reg-name {
  display: block;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: var(--w-semibold);
  line-height: 1.3;
}
.reg-trade { display: block; font-size: var(--text-meta); color: var(--ink-3); }

.reg-docs {
  display: none;
  font-size: var(--text-meta);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .register-head-row,
  .reg-row { grid-template-columns: minmax(0, 1fr) 84px 160px; }
  .reg-docs { display: block; }
  .reg-row .status { justify-self: start; }
}

@media (max-width: 599px) {
  .app-search { display: none; }
  .register-top,
  .register-bar,
  .register-head-row,
  .reg-row { padding-inline: 20px; }
}

.figure-note {
  margin-top: var(--s-3);
  font-size: var(--text-meta);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Ce que l'audit contrôle
   -------------------------------------------------------------------------- */

.docs { padding-block: clamp(48px, 6vw, 88px); }

.docs-title {
  margin-bottom: var(--s-5);
  color: var(--ink);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: var(--w-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.docs-list {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.doc {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--mist);
}
.doc .icon { margin-bottom: 14px; background: var(--paper); color: var(--ink); }
.doc-name { color: var(--ink); font-size: 1rem; font-weight: var(--w-semibold); line-height: 1.35; }
.doc-detail { font-size: var(--text-secondary); color: var(--ink-3); line-height: 1.5; }
.doc-kind { margin-top: auto; padding-top: var(--s-4); font-size: var(--text-meta); font-weight: var(--w-semibold); color: var(--ink-3); }
.doc-kind--legal { color: var(--ink); }
.doc-kind--legal::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--sun-press); vertical-align: 1px; }

@media (max-width: 599px) {
  .docs-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .doc { padding: var(--s-4); }
  .doc .icon { margin-bottom: var(--s-2); }
  .doc:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Le problème
   -------------------------------------------------------------------------- */

.pains { display: grid; gap: var(--s-5); }
.pain { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); }
.pain .icon { background: var(--risk-bg); color: var(--risk); }
.pain h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; }
.pain p { margin-top: var(--s-1); font-size: var(--text-small); }

/* Maquette : le tableur et les relances */
.mess { position: relative; padding-bottom: 72px; }

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  font-size: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sheet-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--text-meta);
}
.sheet-bar strong { font-size: var(--text-secondary); font-weight: var(--w-semibold); }
.sheet-file { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); }

.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; min-width: 520px; }
.sheet th,
.sheet td {
  padding: 9px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-weight: var(--w-regular);
}
.sheet th { background: var(--mist); color: var(--ink-3); font-size: var(--text-meta); font-weight: var(--w-semibold); }
.sheet td:first-child,
.sheet th:first-child { width: 36px; text-align: center; color: var(--ink-4); background: var(--mist); font-size: var(--text-meta); }
.sheet tr:last-child td { border-bottom: 0; }
.cell-bad { color: var(--risk); font-weight: var(--w-semibold); }
.cell-warn { background: #FFF6D6; }
.cell-empty { color: var(--ink-4); }

.mail {
  position: absolute;
  right: clamp(-8px, -1vw, 0px);
  bottom: 0;
  width: min(330px, 86%);
  padding: var(--s-4) 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  font-size: var(--text-secondary);
  line-height: 1.45;
}
.mail-head { display: flex; justify-content: space-between; gap: var(--s-3); color: var(--ink-3); font-size: var(--text-meta); }
.mail-subject { margin-top: var(--s-2); color: var(--ink); font-weight: var(--w-semibold); }
.mail p:last-child { margin-top: var(--s-1); color: var(--ink-2); }

/* Les risques */
.risks { margin-top: clamp(56px, 7vw, 96px); }

.risk-list { display: grid; gap: var(--s-4); }

.risk {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.risk::before {
  content: "";
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-2);
  border-radius: var(--r-md);
  background: var(--risk-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BF2F1E' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4.3L2.6 17.6a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9.5v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.risk h3 { font-size: 1.1875rem; font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.015em; }
.risk p { font-size: var(--text-small); }
.risk .source { font-size: var(--text-meta); color: var(--ink-3); }

@media (min-width: 900px) {
  .risk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   La loi en clair : frise
   -------------------------------------------------------------------------- */

.timeline {
  display: grid;
  gap: var(--s-6);
  counter-reset: step;
}

.moment { position: relative; padding-left: 60px; }
.moment::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 1rem;
  font-weight: var(--w-bold);
}
.moment::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: calc(-1 * var(--s-6) + 4px);
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.moment:last-child::after { display: none; }
.moment-when { color: var(--ink); font-size: 1.1875rem; font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.015em; }
.moment p { margin-top: var(--s-2); font-size: var(--text-small); }
.moment ul { margin-top: var(--s-3); display: grid; gap: var(--s-2); font-size: var(--text-small); }
.moment li { display: flex; gap: var(--s-2); align-items: flex-start; }
.moment li .icon { color: var(--ok); margin-top: 4px; }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
  .moment { padding-left: 0; padding-top: 64px; }
  .moment::before { top: 0; }
  .moment::after { left: 52px; right: calc(-1 * var(--s-6) + 12px); top: 19px; bottom: auto; width: auto; height: 2px; }
}

.law-change {
  position: relative;
  display: grid;
  gap: var(--s-4);
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-2xl);
  background: var(--ink);
  color: var(--on-dark-2);
  overflow: hidden;
  isolation: isolate;
}
.law-change::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 198, 43, .24), rgba(255, 198, 43, 0));
  pointer-events: none;
}
.law-change h3 { color: var(--on-dark); display: flex; gap: var(--s-3); align-items: baseline; }
.law-change h3::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 4px; background: var(--sun); transform: translateY(-1px); }
.law-change-body { display: grid; gap: var(--s-3); font-size: var(--text-small); }
.law-change-source { font-size: var(--text-meta); color: var(--on-dark-3); }
.law-change a { color: var(--on-dark); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .law-change { grid-template-columns: 5fr 7fr; column-gap: var(--s-7); }
}

.law-note {
  display: grid;
  gap: var(--s-2);
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-secondary);
  color: var(--ink-3);
}
.law-note a { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Diagnostic interactif
   -------------------------------------------------------------------------- */

.quiz {
  background: var(--paper);
  color: var(--ink-2);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 2px 4px rgba(120, 80, 0, .05), 0 40px 80px -40px rgba(120, 80, 0, .35);
}

.quiz-progress { display: flex; align-items: center; gap: var(--s-4); }
.quiz-step { font-size: var(--text-secondary); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz-track { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--mist-2); overflow: hidden; }
.quiz-track span { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease); }

.quiz-question { margin-top: var(--s-5); font-size: var(--text-h3); font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.quiz-help { margin-top: var(--s-2); font-size: var(--text-secondary); color: var(--ink-3); }

.quiz-options { display: grid; gap: 10px; margin-top: var(--s-5); }

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  min-height: 58px;
  padding: var(--s-3) 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: var(--w-semibold);
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.quiz-option:hover { border-color: var(--ink); background: var(--mist); }
.quiz-option[aria-pressed="true"] { border-color: var(--ink); background: var(--sun-tint); }
.quiz-option .icon { color: var(--ink-3); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-5); min-height: 24px; }
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: var(--text-secondary);
  font-weight: var(--w-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-back[hidden] { display: none; }

.quiz-panel { animation: quiz-in var(--dur-slow) var(--ease); }
@keyframes quiz-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.quiz-result-level { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.quiz-result-title { font-size: var(--text-h3); font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); margin-top: var(--s-4); }
.quiz-result p { margin-top: var(--s-3); font-size: var(--text-small); }
.quiz-result ul { display: grid; gap: var(--s-3); margin-top: var(--s-4); font-size: var(--text-small); }
.quiz-result li { display: flex; gap: var(--s-3); align-items: flex-start; }
.quiz-result li .icon { color: var(--risk); margin-top: 3px; }
.quiz-result .btn { margin-top: var(--s-6); }
.quiz-disclaimer { margin-top: var(--s-4); font-size: var(--text-meta); color: var(--ink-3); }
.quiz-restart { margin-left: var(--s-4); }

.quiz-noscript { font-size: var(--text-small); }

.quiz-intro .lead { margin-top: var(--s-5); }
.quiz-points { display: grid; gap: var(--s-3); margin-top: var(--s-6); font-size: var(--text-small); color: var(--ink-2); }
.quiz-points li { display: flex; align-items: center; gap: var(--s-3); }
.quiz-points .icon { color: var(--ok); }

/* --------------------------------------------------------------------------
   L'audit gratuit
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: var(--s-4); }
.step {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-xl);
  background: var(--mist);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: var(--w-bold);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: var(--s-5); font-size: 1.3125rem; font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.02em; }
.step p { margin-top: var(--s-2); font-size: var(--text-small); }
.step:last-child { background: var(--ink); color: var(--on-dark-2); }
.step:last-child h3 { color: var(--on-dark); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.audit-detail { margin-top: clamp(56px, 7vw, 96px); }

.included { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.included li { display: flex; gap: var(--s-3); align-items: flex-start; }
.included .icon { color: var(--ok); margin-top: 3px; }

.audit-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.audit-cta .meta { max-width: 26em; }

/* Maquette : rapport d'audit, posé dans un cadre soleil */
.report-wrap { position: relative; }
.report-frame {
  padding: clamp(18px, 4vw, 48px);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(90% 70% at 85% 10%, #FFE9A8 0%, rgba(255, 233, 168, 0) 60%),
    radial-gradient(80% 70% at 10% 95%, #FFD27A 0%, rgba(255, 210, 122, 0) 55%),
    linear-gradient(160deg, var(--sun) 0%, #FFB547 100%);
}
.report {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 2px 4px rgba(15, 30, 54, .06), 0 40px 80px -30px rgba(120, 60, 0, .45);
  font-size: var(--text-secondary);
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 2px solid var(--ink); }
.report-kicker { font-size: var(--text-meta); color: var(--ink-3); }
.report-title { margin-top: 2px; color: var(--ink); font-size: 1.1875rem; font-weight: var(--w-bold); line-height: 1.25; letter-spacing: -0.015em; }
.report-logo { font-size: 1.125rem; }

.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: var(--s-4); }
.kpi { padding: var(--s-3); border-radius: var(--r-md); background: var(--mist); }
.kpi-value { display: block; color: var(--ink); font-size: 1.625rem; font-weight: var(--w-bold); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-label { display: flex; align-items: center; gap: 6px; margin-top: var(--s-1); font-size: var(--text-meta); color: var(--ink-2); line-height: 1.3; }
.kpi-label::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dot, var(--ink-4)); }
.kpi--ok { --dot: var(--ok-dot); }
.kpi--warn { --dot: var(--warn-dot); }
.kpi--risk { --dot: var(--risk-dot); }

.report-table { width: 100%; margin-top: var(--s-4); border-collapse: collapse; }
.report-table th { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: var(--text-meta); font-weight: var(--w-semibold); text-align: left; }
.report-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.report-table td:first-child { color: var(--ink); font-weight: var(--w-semibold); padding-right: var(--s-3); }
.report-table td:nth-child(2) { color: var(--ink-3); font-size: var(--text-meta); padding-right: var(--s-3); }
.report-table td:last-child,
.report-table th:last-child { text-align: right; }
.report-table .hide-sm { display: none; }
@media (min-width: 600px) { .report-table .hide-sm { display: table-cell; } }

.report-actions { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: var(--sun-tint); }
.report-actions p { color: var(--ink); font-weight: var(--w-semibold); }
.report-actions ol { margin: var(--s-2) 0 0; padding-left: 1.2em; list-style: decimal; display: grid; gap: var(--s-1); color: var(--ink-2); }

.report-wrap .figure-note { margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Le logiciel : section de nuit, tuiles sombres et écrans clairs
   -------------------------------------------------------------------------- */

.beta-note {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 198, 43, .3);
  border-radius: var(--r-pill);
  background: rgba(255, 198, 43, .12);
  color: var(--sun);
  font-size: var(--text-secondary);
  font-weight: var(--w-semibold);
}
.beta-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

.bento { display: grid; gap: var(--s-4); }

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-xl);
  background: var(--night-2);
  color: var(--on-dark-2);
  overflow: hidden;
}
.tile h3 { color: var(--on-dark); font-size: 1.3125rem; font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.02em; }
.tile > div:first-child > p { margin-top: var(--s-2); font-size: var(--text-small); max-width: 46ch; }
.tile-visual { margin-top: auto; }
.tile--b .tile-visual { margin-block: auto; }
.tile--b { background: radial-gradient(60% 45% at 50% 66%, rgba(255, 198, 43, .16) 0%, rgba(255, 198, 43, 0) 100%), var(--night-2); }

.tile--sun { background: var(--sun); border-color: var(--sun); color: var(--ink-2); }
.tile--sun h3 { color: var(--ink); }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile--a { grid-column: span 7; }
  .tile--b { grid-column: span 5; grid-row: span 2; }
  .tile--c { grid-column: span 7; }
  .tile--d { grid-column: span 6; }
  .tile--e { grid-column: span 6; }
}

/* Mini-registre par chantier */
.mini-reg { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); color: var(--ink-2); font-size: var(--text-secondary); }
.mini-reg-tabs { display: flex; gap: var(--s-1); padding: var(--s-2); border-bottom: 1px solid var(--line); background: var(--mist); overflow-x: auto; }
.mini-reg-tabs span { padding: 6px 12px; border-radius: var(--r-pill); font-size: var(--text-meta); font-weight: var(--w-semibold); color: var(--ink-3); white-space: nowrap; }
.mini-reg-tabs span[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 30, 54, .1); }
.mini-reg-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px var(--s-4); border-bottom: 1px solid var(--line); }
.mini-reg-row:last-child { border-bottom: 0; }
.mini-reg-row span:first-child { color: var(--ink); font-weight: var(--w-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Téléphone : portail de dépôt */
.phone {
  width: min(300px, 100%);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 38px;
  background: var(--night-3);
  box-shadow: var(--shadow-night);
}
.phone-screen { border-radius: 29px; background: var(--paper); overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: .75rem; color: var(--ink); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.phone-url { margin: 4px 12px 0; padding: 6px 10px; border-radius: var(--r-pill); background: var(--mist); font-size: .75rem; color: var(--ink-3); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-body { padding: 18px 16px 20px; }
.phone-from { font-size: .75rem; color: var(--ink-3); }
.phone-title { margin-top: 4px; color: var(--ink); font-size: 1rem; font-weight: var(--w-bold); line-height: 1.3; }
.phone-docs { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.phone-doc { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 12px; border-radius: var(--r-md); background: var(--mist); font-size: .75rem; color: var(--ink); font-weight: var(--w-semibold); line-height: 1.3; }
.phone-doc em { font-style: normal; color: var(--ok); font-weight: var(--w-semibold); white-space: nowrap; }
.phone-btn { display: inline-block; padding: 5px 11px; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font-weight: var(--w-semibold); white-space: nowrap; }
.phone-foot { margin-top: var(--s-4); font-size: .75rem; color: var(--ink-3); text-align: center; }

/* Relances J-30 / J-15 / J0 */
.reminders { display: grid; gap: var(--s-4); }
.reminder-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 26px; }
.reminder-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: rgba(255, 255, 255, .18); }
.reminder { position: relative; font-size: var(--text-meta); color: var(--on-dark-3); line-height: 1.35; }
.reminder:nth-child(2) { text-align: center; }
.reminder:last-child { text-align: right; }
.reminder::before { content: ""; position: absolute; top: -26px; width: 14px; height: 14px; border-radius: 50%; background: var(--night-2); border: 2px solid var(--on-dark-2); left: 0; }
.reminder:nth-child(2)::before { left: calc(50% - 7px); background: var(--sun); border-color: var(--sun); }
.reminder:last-child::before { left: auto; right: 0; }
.reminder strong { display: block; color: var(--on-dark); font-size: var(--text-secondary); }
.email-card { padding: var(--s-4); border-radius: var(--r-lg); background: var(--paper); color: var(--ink-2); font-size: var(--text-secondary); line-height: 1.5; }
.email-card .meta { display: flex; justify-content: space-between; gap: var(--s-3); }
.email-card .email-subject { margin-top: var(--s-2); color: var(--ink); font-weight: var(--w-semibold); }
.email-card p:last-child { margin-top: var(--s-2); color: var(--ink-2); }

/* Vérification URSSAF tracée */
.verify { padding: var(--s-4); border-radius: var(--r-lg); background: var(--paper); color: var(--ink-2); font-size: var(--text-secondary); box-shadow: 0 24px 44px -26px rgba(120, 60, 0, .5); }
.verify-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.verify-doc { color: var(--ink); font-weight: var(--w-semibold); }
.verify-code { margin-top: 2px; font-size: var(--text-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.verify-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--ink); font-size: var(--text-meta); font-weight: var(--w-semibold); white-space: nowrap; }
.verify-log { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--text-meta); line-height: 1.4; }
.verify-check { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--ok-dot); color: var(--paper); }

/* Dossier de contrôle */
.export { display: grid; gap: var(--s-3); }
.export-file { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--paper); color: var(--ink-2); font-size: var(--text-secondary); }
.export-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--sun); color: var(--ink); }
.export-name { color: var(--ink); font-weight: var(--w-semibold); overflow-wrap: anywhere; line-height: 1.35; }
.export-meta { font-size: var(--text-meta); color: var(--ink-3); }
.export-list { display: grid; gap: 6px; padding-left: var(--s-2); font-size: var(--text-meta); color: var(--on-dark-2); }
.export-list li { display: flex; gap: var(--s-2); align-items: center; }
.export-list .icon { color: var(--ok-dot); }

/* --------------------------------------------------------------------------
   Sécurité
   -------------------------------------------------------------------------- */

.commitments { display: grid; gap: var(--s-3); }
.commitment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--mist);
}
.commitment .icon { background: var(--paper); color: var(--ink); }
.commitment h3 { font-size: 1.0625rem; line-height: 1.35; }
.commitment p { margin-top: var(--s-1); font-size: var(--text-small); }

@media (min-width: 900px) {
  .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */

.pioneer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-2) 100%);
  color: var(--ink);
}
.pioneer .icon { border-radius: 50%; background: var(--paper); }
.pioneer p { font-size: var(--text-small); color: var(--ink-2); margin-top: var(--s-1); }
.pioneer strong { font-size: 1.125rem; line-height: 1.4; }

.billing {
  display: inline-flex;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
}
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--text-small);
  font-weight: var(--w-semibold);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.billing input:checked + label { background: var(--ink); color: var(--on-dark); }
.billing input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.billing-save { padding: 2px 8px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); font-size: .75rem; font-weight: var(--w-semibold); }
.billing input:checked + label .billing-save { background: rgba(255, 255, 255, .14); color: var(--sun); }

.plans { display: grid; gap: var(--s-4); margin-top: var(--s-5); }

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
}
.plan-name { font-size: 1.3125rem; font-weight: var(--w-bold); letter-spacing: -0.02em; }
.plan-for { margin-top: var(--s-1); font-size: var(--text-small); color: var(--ink-3); min-height: 3em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: var(--s-5); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-amount { font-size: 3rem; font-weight: var(--w-bold); letter-spacing: -0.04em; line-height: 1.05; }
.plan-unit { font-size: var(--text-small); color: var(--ink-3); }
.plan-alt { min-height: 1.5em; font-size: var(--text-secondary); color: var(--ink-3); }
.plan-features { display: grid; gap: var(--s-3); margin: var(--s-5) 0 var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--text-small); }
.plan-features li { display: flex; gap: var(--s-3); align-items: flex-start; }
.plan-features .icon { color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }

.plan--featured { border-color: var(--ink); background: var(--ink); color: var(--on-dark-2); box-shadow: 0 40px 80px -40px rgba(15, 30, 54, .55); }
.plan--featured .plan-name,
.plan--featured .plan-price { color: var(--on-dark); }
.plan--featured .plan-for,
.plan--featured .plan-unit,
.plan--featured .plan-alt { color: var(--on-dark-3); }
.plan--featured .plan-features { border-top-color: var(--navy-700); }
.plan--featured .plan-features .icon { color: var(--sun); }
.plan--featured :focus-visible { outline-color: var(--sun); }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.plans-note { display: grid; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--text-secondary); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Questions fréquentes
   -------------------------------------------------------------------------- */

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--r-lg);
  background: var(--mist);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item[open] { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 20px 22px 20px 24px;
  border-radius: var(--r-lg);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: var(--w-semibold);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--paper); transition: background-color var(--dur) var(--ease); }
.faq-item[open] .faq-sign { background: var(--sun); }
.faq-sign::before,
.faq-sign::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform var(--dur) var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-answer { padding: 0 24px 22px; max-width: var(--measure); font-size: var(--text-small); }
.faq-answer p + p,
.faq-answer p + ul { margin-top: var(--s-3); }
.faq-answer ul { padding-left: 1.2em; list-style: disc; display: grid; gap: var(--s-1); }

/* --------------------------------------------------------------------------
   Demande d'audit (formulaire)
   -------------------------------------------------------------------------- */

.request-copy .lead { margin-top: var(--s-5); }
.next-steps { display: grid; gap: var(--s-4); margin-top: var(--s-6); counter-reset: next; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); align-items: start; font-size: var(--text-small); }
.next-steps li::before {
  counter-increment: next;
  content: counter(next);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: var(--text-secondary);
  font-weight: var(--w-bold);
}
.founder-note {
  margin-top: var(--s-7);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .05);
}
.founder-note-title { display: flex; gap: var(--s-3); align-items: baseline; color: var(--on-dark); font-size: 1.0625rem; font-weight: var(--w-semibold); }
.founder-note-title::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--sun); }
.founder-note-quote { margin-top: var(--s-4); color: var(--on-dark); font-size: 1.0625rem; line-height: 1.6; }
.founder-note-sign { margin-top: var(--s-4); font-size: var(--text-small); color: var(--on-dark-2); line-height: 1.6; }
.founder-note-name { color: var(--on-dark); }

.form-card {
  background: var(--paper);
  color: var(--ink-2);
  border-radius: var(--r-2xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.form-card h3 { font-size: 1.5rem; font-weight: var(--w-bold); letter-spacing: -0.02em; }
.form-card > p { margin-top: var(--s-2); font-size: var(--text-secondary); color: var(--ink-3); }

.form-grid { display: grid; gap: 20px; margin-top: var(--s-6); }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; }
.field label,
.field .label { color: var(--ink); font-size: var(--text-small); font-weight: var(--w-semibold); }
.field .optional { color: var(--ink-3); font-weight: var(--w-regular); }

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:hover { border-color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 30, 54, .12); }
.input[aria-invalid="true"] { border-color: var(--risk); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(191, 47, 30, .16); }
textarea.input { min-height: 104px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F1E36' 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 16px center;
}

.field-help { font-size: var(--text-meta); color: var(--ink-3); line-height: 1.45; }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--text-meta); color: var(--risk); font-weight: var(--w-semibold); line-height: 1.45; }
.field-error[hidden],
.field-help[hidden] { display: none; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-4) 18px;
  border: 1px solid var(--sun-line);
  border-radius: var(--r-lg);
  background: var(--sun-tint);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check span { font-size: var(--text-small); color: var(--ink-2); line-height: 1.45; }
.check strong { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: var(--s-6); }
.form-legal { margin-top: var(--s-4); font-size: var(--text-meta); color: var(--ink-3); line-height: 1.5; }
.form-legal a { color: var(--ink-2); }

.form-alert {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--risk-bg);
  color: var(--risk);
  font-size: var(--text-secondary);
  line-height: 1.5;
}
.form-alert[hidden] { display: none; }
.form-alert a { color: inherit; font-weight: var(--w-semibold); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-3);
  border-top: 1px solid var(--navy-700);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--text-secondary);
}
.footer-grid { display: grid; gap: var(--s-6); }
.footer-about p { margin-top: var(--s-4); max-width: 34em; color: var(--on-dark-2); }
.footer-col h2 { color: var(--on-dark); font-size: var(--text-small); margin-bottom: var(--s-3); }
.footer-col ul { display: grid; gap: var(--s-2); }
.footer-col a { color: var(--on-dark-2); text-decoration: none; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: grid; gap: var(--s-2); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--navy-700); font-size: var(--text-meta); line-height: 1.6; }
.footer-legal a { color: var(--on-dark-2); }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Barre d'action mobile
   -------------------------------------------------------------------------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease);
}
.mobile-cta.is-visible { transform: none; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* --------------------------------------------------------------------------
   Pages secondaires (mentions, confidentialité, merci, 404)
   -------------------------------------------------------------------------- */

.page {
  padding-block: clamp(48px, 6vw, 96px) var(--section-y);
  background: linear-gradient(180deg, var(--sun-tint-2) 0, var(--paper) 420px);
}
.page-head { max-width: 760px; }
.page-head .lead { margin-top: var(--s-4); }
.page-body { max-width: 720px; margin-top: var(--s-7); }
.page-body h2 { margin-top: var(--s-7); font-size: 1.4375rem; font-weight: var(--w-bold); line-height: 1.3; letter-spacing: -0.02em; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: var(--s-5); font-size: 1.0625rem; }
.page-body p,
.page-body ul { margin-top: var(--s-3); }
.page-body ul { padding-left: 1.2em; list-style: disc; display: grid; gap: var(--s-2); }
.page-body a { color: var(--ink); text-underline-offset: 3px; }
.todo { background: var(--sun-3); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: var(--w-semibold); }

.thanks { max-width: 680px; }
.thanks-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: var(--s-5); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }

/* --------------------------------------------------------------------------
   Page de dépôt de documents
   -------------------------------------------------------------------------- */

.depot-secure {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  color: var(--ink-2);
  font-size: var(--text-secondary);
  font-weight: var(--w-semibold);
}
.depot-secure .icon { color: var(--ok); }

.depot-loading { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-8); color: var(--ink-2); }
.depot-loading .btn-spinner { display: inline-block; color: var(--ink); }

.depot-for { margin-bottom: var(--s-3); font-size: var(--text-small); color: var(--ink-2); }
.depot-split { margin-top: clamp(32px, 4vw, 56px); }

.depot-needs { display: grid; gap: var(--s-5); margin-top: var(--s-5); counter-reset: need; }
.depot-needs li { position: relative; display: grid; gap: var(--s-1); padding-left: 46px; font-size: var(--text-small); }
.depot-needs li::before {
  counter-increment: need;
  content: counter(need);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: var(--text-secondary);
  font-weight: var(--w-bold);
}
.depot-needs strong { font-size: 1rem; line-height: 1.4; font-weight: var(--w-semibold); }
.depot-tip { margin-top: var(--s-5); font-size: var(--text-secondary); color: var(--ink-3); }

.depot-privacy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--mist);
}
.depot-privacy .icon { color: var(--ok); margin-top: 2px; }
.depot-privacy p { margin-top: var(--s-1); font-size: var(--text-secondary); }

.depot-card { border: 1px solid var(--line); box-shadow: var(--shadow-frame); }
.depot-card form { margin-top: var(--s-5); }

.dropzone {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  padding: var(--s-7) var(--s-5);
  border: 2px dashed var(--line-2);
  border-radius: var(--r-xl);
  background: var(--mist);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.dropzone:hover,
.dropzone.is-over { border-color: var(--ink); background: var(--sun-tint); }
.dropzone:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.dropzone-icon { width: 32px; height: 32px; margin-bottom: var(--s-2); color: var(--ink); }
.dropzone-title { color: var(--ink); font-size: 1.0625rem; font-weight: var(--w-semibold); }
.dropzone-sub { color: var(--ink-2); font-size: var(--text-small); }
.dropzone-link { color: var(--ink); font-weight: var(--w-semibold); text-decoration: underline; text-underline-offset: 3px; }
.dropzone-meta { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--text-meta); }

.files { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.files:empty { display: none; }
.file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.file > .icon { color: var(--ink-3); }
.file[data-status="done"] > .icon { color: var(--ok); }
.file[data-status="error"] { border-color: #F3C2BB; background: var(--risk-bg); }
.file[data-status="error"] > .icon { color: var(--risk); }
.file-main { display: grid; gap: 2px; min-width: 0; }
.file-name { overflow: hidden; color: var(--ink); font-size: var(--text-secondary); font-weight: var(--w-semibold); text-overflow: ellipsis; white-space: nowrap; }
.file-meta { display: flex; flex-wrap: wrap; gap: 2px var(--s-3); color: var(--ink-3); font-size: var(--text-meta); line-height: 1.4; }
.file[data-status="error"] .file-status { color: var(--risk); font-weight: var(--w-semibold); }
.file[data-status="done"] .file-status { color: var(--ok); font-weight: var(--w-semibold); }
.file-bar { display: block; height: 4px; margin-top: var(--s-1); overflow: hidden; border-radius: 2px; background: var(--line); }
.file-bar span { display: block; height: 100%; background: var(--ink); transition: width var(--dur) var(--ease); }
.file-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
}
.file-remove:hover { background: var(--mist); color: var(--ink); }
.files--done { max-width: 560px; margin-top: var(--s-5); }
.depot-error { margin-top: var(--s-3); }
.depot-message { margin-top: var(--s-5); }

@media (max-width: 599px) {
  .depot-secure { font-size: var(--text-meta); }
  .dropzone { padding: var(--s-6) var(--s-4); }
}

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
