/* Honor Crew — UI system
   Direction : atelier textile / quiet luxury
   Anti-IA : pas d’or glossy, pas de glass cards, pas de pills décoratives */

:root {
  /* Couleur */
  --primary: #8f3f22;
  --primary-hover: #732f18;
  --secondary: #16324f;
  --surface: #faf8f4;
  --text: #14181f;
  --text-muted: #5c6570;
  --border: rgba(20, 24, 31, 0.1);
  --success: #2a5c45;
  --warn: #6e6348;
  --error: #8f3428;
  --info: #1e4468;

  --ink: #14181f;
  --ink-muted: #5c6570;
  --ink-faint: #8a929c;
  --paper: #f3f0ea;
  --paper-raised: #faf8f4;
  --ndop: #16324f;
  --ndop-deep: #0c1c2e;
  --ndop-mid: #1e4468;
  --cola: #8f3f22;
  --cola-hover: #732f18;
  --line: rgba(20, 24, 31, 0.1);
  --line-strong: rgba(20, 24, 31, 0.18);
  --ok: #2a5c45;
  --ok-bg: rgba(42, 92, 69, 0.1);
  --refus: #8f3428;
  --refus-bg: rgba(143, 52, 40, 0.1);
  --pending: #6e6348;
  --pending-bg: rgba(110, 99, 72, 0.12);
  --msg-bg: rgba(143, 63, 34, 0.1);
  --info-bg: rgba(30, 68, 104, 0.1);

  /* Espace 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --gutter: 1rem;
  --radius: 2px;
  --radius-md: 4px;
  --pad: clamp(1.1rem, 3.5vw, 1.75rem);
  --wrap: 68rem;
  --touch: 2.75rem;

  /* Motion (2 motions) */
  --dur: 180ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 8px;

  /* Compat anciennes variables */
  --nuit: var(--ndop-deep);
  --indigo: var(--ndop);
  --ivoire: #f5f2ec;
  --ivoire-soft: #e8e4db;
  --parchemin: var(--paper-raised);
  --encre: var(--ink);
  --cola-clair: #b85a38;
  --laiton: #9a8460;
  --laiton-clair: #c4b396;
  --shadow: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(22, 50, 79, 0.03), transparent 28%),
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(143, 63, 34, 0.04), transparent 50%);
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--cola); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ndop);
  outline-offset: 3px;
}
.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible {
  outline-color: var(--laiton-clair);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  background: var(--paper-raised);
  color: var(--ndop-deep);
  padding: 0.65rem 1rem;
  font-weight: 500;
}
.skip-link:focus {
  top: calc(0.5rem + env(safe-area-inset-top));
  outline: 2px solid var(--ndop);
}

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

.t-h1 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: clamp(1.75rem, 5vw, 2.45rem); line-height: 1.12; letter-spacing: -0.02em; }
.t-h2 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; }
.t-h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.05rem; }
.t-h4 { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.t-body { font-size: 1rem; line-height: 1.55; }
.t-caption { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.45; }
.t-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); }

/* —— Brand —— */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivoire);
  text-decoration: none;
  line-height: 1;
}
.brand-mark:hover { opacity: 0.88; text-decoration: none; color: var(--ivoire); }
.brand-mark__mark {
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
}
.brand-mark__word {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: inherit;
}
.brand-mark--lg { gap: 0.7rem; }
.brand-mark--lg .brand-mark__mark { width: 0.5rem; height: 0.5rem; }
.brand-mark--lg .brand-mark__word { font-size: clamp(1.35rem, 4vw, 1.6rem); }

/* —— Topbar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ndop-deep);
  color: var(--ivoire);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem var(--pad) 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: var(--touch);
  min-height: var(--touch);
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ivoire);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0 0.85rem;
}
.nav-scrim {
  display: none;
}
.nav {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  margin-left: auto;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.85rem;
  color: rgba(245, 242, 236, 0.72);
  font-size: 0.88rem;
  font-weight: 400;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  text-decoration: none;
}
.nav a:hover {
  color: #fff;
  background: transparent;
  text-decoration: none;
}
.nav a.active {
  color: #fff;
  background: transparent;
  border-bottom-color: rgba(196, 179, 150, 0.85);
}
.nav a .badge {
  display: inline-grid;
  place-items: center;
  min-width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  padding: 0 3px;
  background: var(--cola);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: nowrap;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(12, 28, 46, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
  }
  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: min(18.5rem, 86vw);
    height: 100dvh;
    height: 100svh;
    margin: 0;
    padding: calc(4.5rem + env(safe-area-inset-top)) var(--space-5) max(1.5rem, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--ndop-deep);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a {
    min-height: 2.9rem;
    padding: 0 0.4rem;
    font-size: 1rem;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }
  .nav a.active {
    border-left-color: rgba(196, 179, 150, 0.85);
    border-bottom-color: transparent;
  }
}

/* —— Layout —— */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.4rem) var(--pad) clamp(3rem, 8vw, 5rem);
}
.wrap-narrow { max-width: 28rem; }

.page-head { margin-bottom: clamp(1.4rem, 3vw, 2rem); max-width: 40rem; }
.page-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ndop-deep);
}
.page-head .lede {
  color: var(--ink-muted);
  margin-top: 0.55rem;
  font-size: 1.02rem;
  max-width: 36rem;
}

/* —— Surfaces —— */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.card-pad { padding: clamp(1.15rem, 3vw, 1.55rem); }
.card h2,
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ndop-deep);
  margin-bottom: 0.85rem;
}

.grid { display: grid; gap: 1rem; }
.grid-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .grid-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1.35fr 1fr; gap: 1.25rem; }
}

.stat {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--cola);
  border-radius: 0;
  padding: 0.85rem 0.15rem 0.4rem;
}
.stat .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 500;
  color: var(--ndop-deep);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.4rem;
  font-weight: 500;
}
.stat.ok { border-top-color: var(--ok); }
.stat.refus { border-top-color: var(--refus); }
.stat.pending { border-top-color: var(--pending); }

/* —— Forms —— */
label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 5rem; line-height: 1.6; }
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ndop);
  box-shadow: 0 0 0 1px var(--ndop);
}
input:disabled,
textarea:disabled,
select:disabled {
  background: rgba(20, 24, 31, 0.04);
  color: var(--ink-faint);
  cursor: not-allowed;
}
input:read-only,
textarea:read-only {
  background: rgba(22, 50, 79, 0.03);
}
.field { margin-bottom: 1.1rem; }
.field-help {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.field-error {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--refus);
  line-height: 1.4;
}
.field.is-error input,
.field.is-error textarea,
.field.is-error select {
  border-color: var(--refus);
  box-shadow: 0 0 0 1px var(--refus);
}
.req { color: var(--cola); font-weight: 600; }
.pw-wrap {
  position: relative;
}
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 2.4rem;
  padding: 0 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.pw-toggle:hover { color: var(--ndop-deep); }
.row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.row > * { flex: 1; min-width: min(100%, 10rem); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--touch);
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--cola);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--cola-hover);
  text-decoration: none;
  color: #fff;
  transform: none;
}
.btn:active { transform: none; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--ndop-deep);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(20, 24, 31, 0.04);
  color: var(--ndop-deep);
  border-color: var(--ink-muted);
}
.btn-indigo { background: var(--ndop); }
.btn-indigo:hover { background: var(--ndop-deep); }
.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}
.btn-wa { background: #1a6b3c; }
.btn-wa:hover { background: #145230; }
.btn-danger {
  background: transparent;
  color: var(--refus);
  border: 1px solid rgba(143, 52, 40, 0.35);
}
.btn-danger:hover {
  background: var(--refus-bg);
  color: var(--refus);
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
.btn.is-loading::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.muted { color: var(--ink-muted); }
.small { font-size: 0.85rem; }

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
}
@media (min-width: 880px) {
  .table-wrap { margin: 0; padding: 0; }
}
table.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 36rem;
}
table.list th,
table.list td {
  padding: 0.85rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.list th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 600;
}
table.list tr.is-unread td { background: var(--info-bg); }

.badge-status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.s-pending { background: var(--pending-bg); color: var(--pending); }
.s-accepte { background: var(--ok-bg); color: var(--ok); }
.s-refuse { background: var(--refus-bg); color: var(--refus); }
.s-message { background: var(--msg-bg); color: var(--cola); }

.flash {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.flash-ok { background: var(--ok-bg); border-color: rgba(42, 92, 69, 0.25); color: var(--ok); }
.flash-err { background: var(--refus-bg); border-color: rgba(143, 52, 40, 0.25); color: var(--refus); }
.flash-info { background: var(--pending-bg); border-color: rgba(110, 99, 72, 0.25); color: var(--pending); }

.banner-sim {
  background: rgba(22, 50, 79, 0.05);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ndop);
  padding: 0.85rem 1rem;
  border-radius: 0;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  color: var(--ndop);
}

.divider-tribal {
  height: 4px;
  background: url("../theme/ndop-band.jpg") center/cover;
  opacity: 0.7;
  margin: 0 0 1.1rem;
}

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

.copy-field { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; }
.copy-field textarea,
.copy-field input { flex: 1; min-width: min(100%, 12rem); font-size: 0.85rem; }
.copy-field input { background: #fff; }

/* —— Auth —— */
.auth-shell {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 22rem), 26rem);
  background: var(--paper-raised);
}
.auth-visual {
  position: relative;
  background: var(--ndop-deep);
  overflow: hidden;
  color: var(--ivoire);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.35) 0%, rgba(12, 28, 46, 0.78) 100%);
}
.auth-visual .brand-mark { color: var(--ivoire); }
.auth-visual .brand-mark:hover { color: var(--ivoire); }
.auth-visual .vbrand {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 4vw, 2.25rem) clamp(1.4rem, 4vw, 2.5rem) 0;
  flex-shrink: 0;
}
.auth-visual .vtext {
  position: relative;
  z-index: 2;
  padding: 1.5rem clamp(1.4rem, 4vw, 2.5rem) max(2rem, env(safe-area-inset-bottom));
  margin-top: auto;
}
.auth-visual .vtext h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.auth-visual .vtext p {
  color: rgba(245, 242, 236, 0.78);
  margin-top: 0.7rem;
  max-width: 28rem;
  line-height: 1.5;
  font-size: 0.98rem;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper-raised);
  min-width: 0;
  overflow: auto;
}
.auth-box { width: 100%; max-width: 22rem; min-width: 0; }
.auth-box h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 1.95rem);
  color: var(--ndop-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.auth-box .sub {
  color: var(--ink-muted);
  margin: 0.4rem 0 1.75rem;
  line-height: 1.45;
}
.auth-box .switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--ink-muted);
}
.auth-box input { min-width: 0; max-width: 100%; }

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .auth-visual {
    min-height: 36svh;
    max-height: 40svh;
  }
  .auth-visual img {
    object-position: 50% 28%;
  }
  .auth-visual .vbrand {
    padding: calc(1rem + env(safe-area-inset-top)) 1.25rem 0;
  }
  .auth-visual .vtext {
    padding: 0.85rem 1.25rem 1.15rem;
  }
  .auth-visual .vtext h2 {
    max-width: none;
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }
  .auth-visual .vtext p {
    font-size: 0.88rem;
    margin-top: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .auth-form-side {
    position: relative;
    z-index: 3;
    margin-top: -1.1rem;
    padding: 1.6rem 1.25rem max(2.25rem, env(safe-area-inset-bottom));
    align-items: flex-start;
    border-top: 1px solid var(--line);
    background: var(--paper-raised);
  }
  .auth-box { max-width: none; }
  .auth-box h1 { font-size: 1.7rem; }
  .auth-form-side .btn-block { min-height: 3rem; font-size: 1rem; }
}

/* —— Landing —— */
.lp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ivoire);
  overflow: hidden;
}
.lp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 46, 0.25) 0%, rgba(12, 28, 46, 0.55) 45%, rgba(12, 28, 46, 0.92) 100%);
}
.lp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding:
    calc(1.5rem + env(safe-area-inset-top))
    var(--pad)
    clamp(2.5rem, 8vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.lp-hero .brand-mark { margin-bottom: clamp(2rem, 12vh, 4.5rem); }
.lp-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.35rem, 9vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
}
.lp-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: inherit;
  opacity: 0.88;
}
.lp-hero__lede {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  color: rgba(245, 242, 236, 0.82);
  max-width: 28rem;
  line-height: 1.5;
}
.lp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}
.lp-hero__cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.lp-hero__cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.lp-steps {
  background: var(--paper);
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
}
.lp-steps__inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.lp-steps__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.lp-steps__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.lp-step {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}
.lp-step__n {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  color: var(--cola);
  line-height: 1.2;
  font-weight: 500;
}
.lp-step__t {
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ndop-deep);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.lp-step__d {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 36rem;
}
@media (min-width: 720px) {
  .lp-steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
    border-top: 0;
  }
  .lp-step {
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
    padding: 1.5rem 0;
  }
}

/* —— Mobile : composition téléphone —— */
@media (max-width: 720px) {
  :root { --pad: 1.2rem; }

  .lp-hero {
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: stretch;
  }
  .lp-hero__bg { object-position: 55% 22%; }
  .lp-hero::after {
    background:
      linear-gradient(180deg,
        rgba(12, 28, 46, 0.45) 0%,
        rgba(12, 28, 46, 0.18) 32%,
        rgba(12, 28, 46, 0.35) 58%,
        rgba(12, 28, 46, 0.94) 100%);
  }
  .lp-hero__inner {
    flex: 1;
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: space-between;
    padding-top: calc(1.15rem + env(safe-area-inset-top));
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  }
  .lp-hero .brand-mark { margin-bottom: 0; }
  .lp-hero__copy { margin-top: auto; width: 100%; }
  .lp-hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.35rem);
    max-width: 9.5ch;
    line-height: 1.05;
  }
  .lp-hero__lede {
    margin-top: 0.9rem;
    font-size: 0.98rem;
    max-width: 22rem;
  }
  .lp-hero__cta {
    flex-direction: column;
    width: 100%;
    margin-top: 1.4rem;
    gap: 0.55rem;
  }
  .lp-hero__cta .btn {
    width: 100%;
    min-height: 3.05rem;
    font-size: 1rem;
  }

  .lp-steps {
    padding: 2rem var(--pad) max(2.5rem, env(safe-area-inset-bottom));
  }
  .lp-steps__label { margin-bottom: 1rem; }
  .lp-step {
    padding: 1.15rem 0;
    grid-template-columns: 2.1rem 1fr;
    gap: 0.35rem 0.85rem;
  }
  .lp-step__n { font-size: 1.2rem; }
  .lp-step__t { font-size: 1.05rem; }

  .wrap {
    padding-top: 1.25rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
  .page-head h1 { font-size: clamp(1.65rem, 7vw, 2rem); }
  .grid-stats { gap: 0.55rem 1rem; }
  .stat { padding: 0.7rem 0 0.25rem; }
  .stat .num { font-size: 1.7rem; }

  .btn { min-height: 2.9rem; }
  .btn-sm { min-height: 2.4rem; }
}

@media (max-width: 380px) {
  .lp-hero h1 { font-size: 2.25rem; }
  .auth-visual { min-height: 32svh; max-height: 36svh; }
}

/* —— Feed / lists —— */
.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.feed-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.feed-item .small { line-height: 1.4; }
.howto-list {
  padding-left: 1.15rem;
  line-height: 1.85;
  color: var(--ink);
}
.howto-list a { font-weight: 500; }

dialog.modal {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  max-width: 32rem;
  width: min(92vw, 32rem);
  box-shadow: 0 24px 60px rgba(12, 28, 46, 0.28);
}
dialog.modal::backdrop { background: rgba(12, 28, 46, 0.55); }
.modal-head {
  background: var(--ndop-deep);
  color: var(--ivoire);
  padding: 1rem 1.15rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.modal-head button {
  background: transparent;
  border: 0;
  color: var(--ivoire);
  font-size: 1.4rem;
  cursor: pointer;
  min-width: var(--touch);
  min-height: var(--touch);
  line-height: 1;
}
.modal-body { padding: 1.2rem; background: var(--paper-raised); }

/* —— Footer app —— */
.app-foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem var(--pad) max(1.5rem, env(safe-area-inset-bottom));
  color: var(--ink-muted);
  font-size: 0.82rem;
}
.app-foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.app-foot a { color: var(--ndop); font-weight: 500; }
.lp-foot {
  background: var(--ndop-deep);
  color: rgba(245, 242, 236, 0.55);
  padding: 1.25rem var(--pad) max(1.5rem, env(safe-area-inset-bottom));
  font-size: 0.82rem;
}
.lp-foot a { color: rgba(245, 242, 236, 0.78); }

/* —— Empty —— */
.empty {
  text-align: left;
  padding: 0.25rem 0 0.5rem;
  max-width: 28rem;
}
.empty__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ndop-deep);
  margin-bottom: 0.4rem;
}
.empty__text {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

/* —— Filter bar (not pills) —— */
.filter-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.filter-bar a {
  flex-shrink: 0;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  padding: 0 0.9rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.filter-bar a:hover { color: var(--ndop-deep); text-decoration: none; }
.filter-bar a.is-on {
  color: var(--ndop-deep);
  font-weight: 500;
  border-bottom-color: var(--cola);
}

/* —— Phone fields —— */
.phone-field { display: flex; align-items: stretch; max-width: 22rem; }
.phone-field .phone-prefix,
.inline-phone .phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  background: rgba(22, 32, 44, 0.05);
  border: 1px solid var(--line-strong);
  border-right: 0;
  font-weight: 600;
  color: var(--ndop-deep);
  line-height: 1;
}
.phone-field input { flex: 1; min-width: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.inline-phone { display: flex; gap: 0; align-items: center; max-width: 14rem; }
.inline-phone input { flex: 1; min-width: 0; font-size: 0.82rem; padding: 0.4rem 0.5rem; border-radius: 0; }
.inline-phone .btn { flex-shrink: 0; margin-left: 0.35rem; }

/* —— Tables → stacked on tablet/mobile —— */
@media (max-width: 880px) {
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  table.list { min-width: 0; }
  table.list thead { display: none; }
  table.list tr {
    display: block;
    padding: 1.1rem var(--pad);
    border-bottom: 1px solid var(--line);
  }
  table.list td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    border: 0;
    padding: 0.28rem 0;
    text-align: right;
  }
  table.list td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
    padding-top: 0.2rem;
  }
  table.list td[data-label=""]::before,
  table.list td:not([data-label])::before { content: none; }
  table.list td:first-child {
    display: block;
    text-align: left;
    padding-bottom: 0.5rem;
  }
  table.list td:last-child { justify-content: flex-end; }
  .inline-phone { max-width: none; width: 100%; }
}

.grid-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 1.6rem;
}
@media (min-width: 880px) {
  .grid-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.grid-import {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .grid-import { grid-template-columns: 1.15fr 0.85fr; }
}

.dropzone {
  border: 1px dashed var(--line-strong);
  padding: 1rem;
  background: rgba(22, 50, 79, 0.02);
}
.dropzone input[type=file] { width: 100%; }

.page-error {
  min-height: 70svh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  text-align: center;
}
.page-error h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--ndop-deep);
  letter-spacing: -0.03em;
}
.page-error p { color: var(--ink-muted); margin: 0.75rem auto 1.5rem; max-width: 28rem; }

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

@media (min-width: 1280px) {
  :root { --gutter: 1.5rem; }
}
@media (min-width: 1440px) {
  :root { --wrap: 72rem; }
}
