/* ============================================================
   notafacto — site vitrine
   Editorial serif + sober Shibui palette, accent ochre
   Forké du DS notamicro (préfixe .nf-*), sans tweaks panel
   ============================================================ */

:root {
  /* Shibui palette */
  --shibui-red: #762D38;
  --shibui-ochre: #B8A04A;
  --shibui-green: #687A3A;
  --shibui-blue: #7A8FA3;
  --shibui-indigo: #4A3F5C;

  /* Surfaces (light mode default) */
  --bg: #F8F6F2;
  --surface: #EFECE8;
  --border: #DDD8CE;
  --text: #2C2832;
  --text-2: #686570;
  --text-3: #696673;

  /* Accent — figé en ochre pour notafacto, override possible via data-accent */
  --accent: var(--shibui-ochre);
  /* Ochre assombri pour le texte en premier plan (WCAG AA 4.5:1 sur fonds clairs) ;
     --accent reste l'ochre vif pour fonds, bordures et boutons. */
  --accent-text: #856A18;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--bg));

  /* Typography */
  --serif: 'Lora', 'PT Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 56px);
}

[data-theme='dark'] {
  --bg: #1E1924;
  --surface: #2A2632;
  --border: #3D384A;
  --text: #EFECE8;
  --text-2: #ABA9AE;
  --text-3: #928F9A;
  --accent-soft: color-mix(in oklab, var(--accent) 22%, var(--bg));
  /* En mode foncé, l'ochre vif passe déjà (5.7:1) : pas besoin de l'assombrir. */
  --accent-text: var(--accent);
}

[data-accent='olive']  { --accent: #687A3A; }
[data-accent='ochre']  { --accent: #B8A04A; }
[data-accent='red']    { --accent: #762D38; }
[data-accent='blue']   { --accent: #7A8FA3; }
[data-accent='indigo'] { --accent: #4A3F5C; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- Logo ---------- */
.nf-logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.nf-logo__a { color: var(--accent-text); font-style: italic; font-weight: 400; }
.nf-logo__b { color: var(--text); }

/* ---------- Nav ---------- */
.nf-nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.nf-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 28px;
}
.nf-nav__menu { display: flex; align-items: center; gap: 28px; }
.nf-nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
}
.nf-nav__links a:hover { color: var(--text); }
.nf-nav__links a.is-active { color: var(--text); }
.nf-nav__cta { display: flex; gap: 12px; align-items: center; }

/* Burger : masqué en grand écran, affiché sous le point de bascule (cf. média). */
.nf-nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.nf-nav__burger-icon { width: 18px; height: 12px; position: relative; }
.nf-nav__burger-icon,
.nf-nav__burger-icon::before,
.nf-nav__burger-icon::after {
  border-top: 2px solid currentColor;
  box-sizing: border-box;
}
.nf-nav__burger-icon::before,
.nf-nav__burger-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
}
.nf-nav__burger-icon::before { top: 4px; }
.nf-nav__burger-icon::after { top: 9px; }

/* Bascule burger : le nav horizontal ne tient plus en dessous (6 liens + 2 CTA). */
@media (max-width: 1240px) {
  /* Sous ce seuil, le conteneur fait 100% de large : on rétablit le padding
     horizontal (écrasé par .nf-nav__inner) pour décoller logo et burger des bords. */
  .nf-nav__inner { padding-left: var(--gut); padding-right: var(--gut); }
  .nf-nav__burger { display: flex; }
  .nf-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px var(--gut) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nf-nav.is-open .nf-nav__menu { display: flex; }
  .nf-nav__links { flex-direction: column; gap: 4px; font-size: 17px; }
  .nf-nav__links a { padding: 8px 0; }
  .nf-nav__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .nf-nav__cta .nf-btn { justify-content: center; }
}

/* ---------- Buttons (wireframe) ---------- */
.nf-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  display: inline-block;
  text-align: center;
}
.nf-btn--md { padding: 10px 18px; font-size: 14px; }
.nf-btn--lg { padding: 14px 22px; font-size: 15px; }
.nf-btn:hover { border-color: var(--text); }

.nf-btn--ghost { background: transparent; }
.nf-btn--solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.nf-btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nf-btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nf-btn--accent:hover { filter: brightness(.92); }
.nf-btn--link {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 4px 0;
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
}

/* ---------- Hero ---------- */
.nf-hero { padding: 88px 0 64px; position: relative; }
.nf-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.nf-hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--text);
  text-wrap: balance;
}
.nf-hero__title em { font-style: normal; }
.nf-hero__sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--text);
  max-width: 520px;
  text-wrap: pretty;
}
.nf-hero__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 0 32px;
}
.nf-hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nf-hero__meta {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  flex-wrap: wrap;
}

/* Right side — diagram */
.nf-hero__diagram {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
  position: relative;
  min-height: 380px;
}
.nf-hero__diagram-overline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.nf-hero__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
.nf-flow-node {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.nf-flow-node--strong {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  padding: 22px 12px;
}
.nf-flow-arrow {
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 14px;
}
.nf-hero__legend {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  font-size: 12px;
  color: var(--text-2);
}
.nf-hero__legend > div { border-top: 1px solid var(--border); padding-top: 10px; }
.nf-hero__legend strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; font-size: 13px; }

/* Hero diagram — étapes verticales de réception (index) */
.nf-hflow { list-style: none; margin: 12px 0 0; padding: 0; }
.nf-hflow__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  padding-bottom: 28px;
}
.nf-hflow__step:last-child { padding-bottom: 0; }
.nf-hflow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -4px;
  width: 1px;
  background: var(--border);
}
.nf-hflow__num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}
.nf-hflow__step--strong .nf-hflow__num {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}
.nf-hflow__body {
  padding-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.nf-hflow__body strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.nf-hflow__step--strong .nf-hflow__body strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}

/* Hero variants (poseables en dur sur <html data-hero="...">) */
[data-hero='editorial'] .nf-hero__grid { grid-template-columns: 1fr; gap: 40px; }
[data-hero='editorial'] .nf-hero__title { font-size: clamp(48px, 7vw, 96px); max-width: 14ch; }
[data-hero='editorial'] .nf-hero__diagram { max-width: 720px; margin: 0 auto; }
[data-hero='split'] .nf-hero__grid { grid-template-columns: 1.2fr 1fr; }

/* ---------- Trust band ---------- */
.nf-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}
.nf-trust__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nf-trust__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.nf-trust__items {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
}
.nf-trust__items span {
  display: inline-flex; align-items: center; gap: 10px;
}
.nf-trust__items span::before {
  content: ''; width: 10px; height: 10px;
  border: 1px solid var(--text-2); display: inline-block;
}

/* ---------- Generic section ---------- */
.nf-section { padding: 96px 0; border-top: 1px solid var(--border); position: relative; }
.nf-section--alt { background: var(--surface); }

.nf-overline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.nf-shead { margin-bottom: 56px; max-width: 720px; }
.nf-shead--center { margin-left: auto; margin-right: auto; text-align: center; }
.nf-shead__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}
.nf-shead__title.is-italic { font-style: italic; font-weight: 400; }
.nf-shead__title em { font-style: italic; }
.nf-shead__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  max-width: 60ch;
}

/* ---------- Steps ---------- */
.nf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  position: relative;
}
.nf-step { position: relative; z-index: 1; }
.nf-step__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.nf-step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin: 16px 0 10px;
  color: var(--text);
}
.nf-step__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
  max-width: 32ch;
}

[data-sections='cards'] .nf-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
[data-sections='cards'] .nf-steps::before { display: none; }
[data-sections='cards'] .nf-step {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
}
[data-sections='cards'] .nf-section--alt .nf-step { background: var(--bg); }

[data-sections='stacked'] .nf-steps { grid-template-columns: 1fr; gap: 0; }
[data-sections='stacked'] .nf-steps::before { display: none; }
[data-sections='stacked'] .nf-step {
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
[data-sections='stacked'] .nf-step:last-child { border-bottom: 1px solid var(--border); }
[data-sections='stacked'] .nf-step__title { margin-top: 0; }

/* ---------- Placeholders ---------- */
.nf-ph { display: inline-flex; flex-direction: column; gap: 10px; }
.nf-ph--center { align-items: center; text-align: center; }
.nf-ph--left { align-items: flex-start; }
.nf-ph__box {
  background: repeating-linear-gradient(
    -45deg,
    var(--surface) 0 8px,
    color-mix(in oklab, var(--surface) 70%, var(--border)) 8px 9px
  );
  border: 1px solid var(--border);
}
.nf-ph__cap { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.nf-ph__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nf-ph__caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Send/Receive ---------- */
.nf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}
.nf-split > article {
  padding: 56px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.nf-split > article:last-child { border-right: none; }
.nf-split__h {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.nf-split__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 32px;
}
.nf-split__body { font-size: 15px; color: var(--text-2); line-height: 1.65; max-width: 38ch; margin-bottom: 32px; }
.nf-split__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  font-size: 14px;
}
.nf-split__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.nf-split__list li:last-child { border-bottom: 1px solid var(--border); }
.nf-split__list li::before {
  content: attr(data-i);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ---------- Dashboard preview ---------- */
.nf-preview {
  border: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  grid-template-columns: 220px 1fr;
}
.nf-preview__side {
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  background: var(--surface);
  font-size: 13px;
}
.nf-preview__side h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
  font-weight: 500;
}
.nf-preview__side ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.nf-preview__side li {
  padding: 8px 10px;
  color: var(--text-2);
  border: 1px solid transparent;
}
.nf-preview__side li.is-active {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  font-weight: 500;
}
.nf-preview__main { padding: 28px 32px; }
.nf-preview__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  margin: 0 0 4px;
}
.nf-preview__crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.nf-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 110px;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  align-items: center;
  font-size: 13px;
}
.nf-row:last-child { border-bottom: 1px solid var(--border); }
.nf-row__ref { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.05em; }
.nf-row__client { color: var(--text); }
.nf-row__amount { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--text); }

.nf-pill {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  justify-self: start;
}
.nf-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.nf-pill--olive { color: #687A3A; border-color: color-mix(in oklab, #687A3A 30%, var(--border)); }
.nf-pill--olive .nf-pill__dot { background: #687A3A; }
.nf-pill--ochre { color: #B8A04A; border-color: color-mix(in oklab, #B8A04A 30%, var(--border)); }
.nf-pill--ochre .nf-pill__dot { background: #B8A04A; }
.nf-pill--red { color: #762D38; border-color: color-mix(in oklab, #762D38 30%, var(--border)); }
.nf-pill--red .nf-pill__dot { background: #762D38; }
.nf-pill--blue { color: #7A8FA3; border-color: color-mix(in oklab, #7A8FA3 30%, var(--border)); }
.nf-pill--blue .nf-pill__dot { background: #7A8FA3; }

/* ---------- Compliance ---------- */
.nf-comply {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.nf-comply > div { padding: 32px 28px; border-right: 1px solid var(--border); }
.nf-comply > div:last-child { border-right: none; }
.nf-comply__k {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--accent-text);
}
.nf-comply__l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.nf-comply__d { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* ---------- Pricing ---------- */
.nf-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.nf-pricing--2 { grid-template-columns: repeat(2, 1fr); }
.nf-pricing__plan {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg);
}
.nf-pricing__plan:last-child { border-right: none; }
.nf-pricing__plan--featured { background: var(--accent-soft); }
.nf-pricing__name { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 0; }
.nf-pricing__price {
  font-family: var(--serif); font-size: 44px; margin: 0;
  line-height: 1; letter-spacing: -0.02em;
}
.nf-pricing__price small { font-family: var(--sans); font-size: 13px; color: var(--text-2); font-weight: 400; }
.nf-pricing__desc { font-size: 13px; color: var(--text-2); margin: 0; min-height: 60px; }
.nf-pricing__feats { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; }
.nf-pricing__feats li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.nf-pricing__feats li::before { content: '— '; color: var(--text-3); }

/* Carte de plan unique (centré) — variante notafacto */
.nf-pricing--single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  margin: 0 auto;
}
.nf-pricing--single .nf-pricing__plan { border-right: none; padding: 56px 48px; }
.nf-pricing__plan .nf-btn { margin-top: auto; }

/* ---------- Encart (callout) ---------- */
.nf-site-callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0 0;
}
.nf-site-callout__overline {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.625rem;
}
.nf-site-callout__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.nf-site-callout p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin: 0 0 0.75rem; max-width: 65ch; }
.nf-site-callout p:last-child { margin-bottom: 0; }
.nf-section--alt .nf-site-callout { background: var(--bg); }
.nf-btn.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- FAQ ---------- */
.nf-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.nf-faq__list { display: flex; flex-direction: column; }
.nf-faq__item { border-top: 1px solid var(--border); }
.nf-faq__item:last-child { border-bottom: 1px solid var(--border); }
.nf-faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.nf-faq__q::-webkit-details-marker { display: none; }
.nf-faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nf-faq__item[open] > .nf-faq__q { padding-bottom: 12px; }
.nf-faq__plus {
  font-family: var(--sans); color: var(--text-3); font-weight: 300;
  font-size: 24px; line-height: 1; flex-shrink: 0;
}
.nf-faq__plus::before { content: "+"; }
.nf-faq__item[open] .nf-faq__plus::before { content: "\2212"; }
.nf-faq__a { font-size: 14px; color: var(--text-2); margin: 0; padding: 0 0 24px; line-height: 1.6; max-width: 60ch; }

/* ---------- Final CTA ---------- */
.nf-final { text-align: center; padding: 120px 0 100px; border-top: 1px solid var(--border); }
.nf-final__h {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  margin: 0 0 20px;
  text-wrap: balance;
}
.nf-final__sub { font-size: 16px; color: var(--text-2); margin: 0 auto 36px; max-width: 50ch; }
.nf-final__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.nf-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  font-size: 13px;
  color: var(--text-2);
}
.nf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.nf-footer__col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.nf-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nf-footer__col a:hover { color: var(--text); }
.nf-footer__about { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; max-width: 38ch; color: var(--text-2); margin: 12px 0 0; }
.nf-footer__base {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Wireframe tags ---------- */
.nf-wireframe-tag {
  position: absolute;
  top: 24px;
  right: var(--gut);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px dashed var(--border);
  padding: 4px 10px;
}
[data-wire-tags='off'] .nf-wireframe-tag { display: none; }

/* ---------- Misc ---------- */
.muted { color: var(--text-2); }

/* ---------- Tableau comparatif ---------- */
.nf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.nf-table th, .nf-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.nf-table th:last-child, .nf-table td:last-child { border-right: none; }
.nf-table tr:last-child td { border-bottom: none; }
.nf-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  background: var(--surface);
}
.nf-table td.is-yes { color: var(--accent-text); font-weight: 500; }
.nf-table td.is-no  { color: var(--text-3); }
.nf-table tbody th {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  font-weight: 500;
  background: transparent;
}

/* ---------- Bloc réassurance (4 piliers) ---------- */
.nf-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.nf-pillars > div { padding: 36px 28px; border-right: 1px solid var(--border); }
.nf-pillars > div:last-child { border-right: none; }
.nf-pillars__l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.nf-pillars__k {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--text);
}
.nf-pillars__d { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* ---------- Liste piliers (cards) ---------- */
.nf-pillar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nf-pillar-cards--2 { grid-template-columns: repeat(2, 1fr); }
.nf-pillar-card {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 32px;
}
.nf-section--alt .nf-pillar-card { background: var(--bg); }
.nf-pillar-card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.nf-pillar-card__h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
.nf-pillar-card__b { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ---------- Calendrier (timeline) ---------- */
.nf-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.nf-timeline > div {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.nf-timeline > div:last-child { border-right: none; }
.nf-timeline__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.nf-timeline__h {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.nf-timeline__b { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ---------- Carte prestataire (souverainete) ---------- */
.nf-vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.nf-vendor {
  padding: 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nf-vendor:nth-child(2n) { border-right: none; }
.nf-vendor:nth-last-child(-n+2):not(:nth-last-child(1):nth-child(odd)) { border-bottom: none; }
.nf-vendor:last-child { border-bottom: none; }
.nf-vendor__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--text);
}
.nf-vendor__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.nf-vendor__b { font-size: 14px; color: var(--text-2); margin: 0 0 12px; line-height: 1.6; }
.nf-vendor__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.nf-vendor__flag {
  display: inline-block;
  width: 21px;
  height: 14px;
  margin-left: 10px;
  border: 1px solid var(--border);
}
.nf-vendor__flag svg { display: block; width: 100%; height: 100%; }

/* ---------- Article prose (mentions, à propos) ---------- */
.nf-prose {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.nf-prose h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 48px 0 16px;
  color: var(--text);
}
.nf-prose h2.is-italic { font-style: italic; font-weight: 400; }
.nf-prose h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 32px 0 12px;
}
.nf-prose p { margin: 0 0 16px; color: var(--text-2); }
.nf-prose ul { padding-left: 20px; color: var(--text-2); }
.nf-prose li { margin-bottom: 8px; }
.nf-prose a { border-bottom: 1px solid var(--border); }
.nf-prose a:hover { border-color: var(--text); }

/* Inline text link (visible in body copy, ledes, cards) */
.nf-link { color: var(--accent-text); border-bottom: 1px solid var(--border); }
.nf-link:hover { border-color: var(--accent-text); }

/* ---------- Blog ---------- */
.nf-bloglist { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.nf-bloglist__item { padding: 32px 0; border-bottom: 1px solid var(--border); }
.nf-bloglist__item:first-child { padding-top: 0; }
.nf-bloglist__item:last-child { border-bottom: none; }
.nf-bloglist__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 8px 0 12px;
  color: var(--text);
}
.nf-bloglist__title a:hover { color: var(--accent-text); }
.nf-bloglist__excerpt {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 60ch;
}
.nf-row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nf-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }
.nf-tag--draft { color: #b45309; }
.nf-tag--scheduled { color: #6d28d9; }
.nf-tag--published { color: #047857; }

/* ---------- Quiz « Suis-je concerné ? » ---------- */
/* Section sans hero : pas de filet sous la nav, padding haut ajusté. */
.nf-section--toppad { border-top: none; padding-top: 72px; }

.nf-quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 760px;
  /* Compense la hauteur de la nav sticky lors du scrollIntoView (sinon le haut
     du quiz passe sous la barre). */
  scroll-margin-top: 88px;
}
.nf-quiz__step { display: none; }
.nf-quiz__step.is-active { display: block; }
.nf-quiz__step:focus { outline: none; }
.nf-quiz__progress {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.nf-quiz__q {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 24px;
  color: var(--text);
}
.nf-quiz__q:focus { outline: none; }
.nf-quiz__choices { display: flex; flex-direction: column; gap: 12px; }
.nf-quiz__choice {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 18px 22px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  width: 100%;
}
.nf-quiz__choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.nf-quiz__choice:active { transform: translateY(1px); }
.nf-quiz__choice strong { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.nf-quiz__choice span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.nf-quiz__back {
  margin-top: 20px;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.nf-quiz__back:hover { color: var(--text); }
.nf-quiz__result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 28px;
}
.nf-quiz__result-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.nf-quiz__result-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--text);
}
.nf-quiz__result-title:focus { outline: none; }
.nf-quiz__result p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin: 0 0 14px; }
.nf-quiz__result-list { margin: 0 0 16px; padding-left: 20px; }
.nf-quiz__result-list li { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 10px; }
.nf-quiz__result-list strong { color: var(--text); }
.nf-quiz__result-note {
  font-size: 14px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.nf-quiz__result-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.nf-quiz__source { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0 0 16px; }
.nf-quiz__result-list a,
.nf-quiz__source a { color: var(--accent-text); border-bottom: 1px solid var(--border); }
.nf-quiz__result-list a:hover,
.nf-quiz__source a:hover { border-color: var(--accent-text); }

@media (max-width: 640px) {
  .nf-quiz { padding: 24px; }
  .nf-quiz__q { font-size: 19px; }
  .nf-quiz__result { padding: 20px; }
}

/* ---------- Contact ---------- */
.nf-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.nf-contact > div {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
}
.nf-contact > div:last-child { border-right: none; }
.nf-contact__l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.nf-contact__v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--text);
}
.nf-contact__d { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nf-hero__grid,
  .nf-split,
  .nf-faq { grid-template-columns: 1fr; }
  .nf-split > article { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .nf-split > article:last-child { border-bottom: none; }
  .nf-steps { grid-template-columns: 1fr; gap: 32px; }
  .nf-comply, .nf-pricing, .nf-pillars, .nf-timeline, .nf-vendor-grid, .nf-contact { grid-template-columns: 1fr; }
  .nf-comply > div,
  .nf-pricing__plan,
  .nf-pillars > div,
  .nf-timeline > div,
  .nf-contact > div { border-right: none; border-bottom: 1px solid var(--border); }
  .nf-comply > div:last-child,
  .nf-pricing__plan:last-child,
  .nf-pillars > div:last-child,
  .nf-timeline > div:last-child,
  .nf-contact > div:last-child { border-bottom: none; }
  .nf-vendor { border-right: none; }
  .nf-pillar-cards { grid-template-columns: 1fr; }
  .nf-preview { grid-template-columns: 1fr; }
  .nf-preview__side { border-right: none; border-bottom: 1px solid var(--border); }
  .nf-footer__grid { grid-template-columns: 1fr 1fr; }
  [data-sections='stacked'] .nf-step { grid-template-columns: 1fr; gap: 16px; }
  .nf-nav__inner { gap: 16px; padding: 16px var(--gut); }
  .nf-row { grid-template-columns: 1fr auto; gap: 8px; }
  .nf-row__ref, .nf-row__amount { font-size: 12px; }
  .nf-table { font-size: 13px; }
  .nf-table th, .nf-table td { padding: 10px 12px; }
}

@media (max-width: 600px) {
  /* Hero diagram : empiler le flux verticalement, flèches en chevrons vers le bas */
  .nf-hero__diagram { padding: 24px; min-height: 0; }
  .nf-hero__flow { grid-template-columns: 1fr; gap: 10px; }
  .nf-hero__flow .nf-flow-arrow {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
  }
  .nf-hero__flow .nf-flow-arrow::before {
    content: "";
    width: 9px; height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
  }
  .nf-hero__legend { grid-template-columns: 1fr 1fr; }
}

/* ===== Guide pas à pas (page guide-superpdp) ===== */
.nf-guide-app {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--gut) 88px;
  align-items: start;
}

/* Sidebar des étapes */
.nf-guide-side {
  position: sticky;
  top: 24px;
}

.nf-guide-side__head {
  margin-bottom: 24px;
}

.nf-guide-side__title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.nf-guide-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nf-guide;
}

.nf-guide-nav__item {
  display: grid;
  grid-template-columns: 18px 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.nf-guide-nav__item:hover {
  background: var(--surface);
}

.nf-guide-nav__item.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.nf-guide-nav__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.nf-guide-nav__item.is-done .nf-guide-nav__num {
  color: var(--accent-text);
}

.nf-guide-nav__status {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.nf-guide-nav__item.is-done .nf-guide-nav__status {
  background: var(--accent);
  border-color: var(--accent);
}

.nf-guide-nav__item.is-done .nf-guide-nav__status::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nf-guide-reset {
  margin-top: 16px;
  padding: 8px 12px;
  background: none;
  border: 0;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.nf-guide-reset:hover {
  color: var(--text-2);
}

/* Zone centrale */
.nf-guide-main {
  min-width: 0;
}

.nf-guide__prereq {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
}

.nf-gstep__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.nf-gstep__device {
  padding: 3px 10px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--text-2);
  letter-spacing: 0.06em;
}

.nf-gstep__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.nf-gstep__gallery {
  margin: 0 0 28px;
}

.nf-gstep__figure {
  margin: 0;
}

.nf-gstep__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.nf-gstep__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--surface);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nf-gstep__caption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}

/* Galerie multi-images : côte à côte sur une seule rangée */
.nf-gstep__gallery--multi {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
}

.nf-gstep__gallery--multi .nf-gstep__figure {
  flex: 1 1 0;
  min-width: 0;
}

/* Mobile, image seule : largeur contenue (capture verticale) */
.nf-gstep--mobile .nf-gstep__gallery:not(.nf-gstep__gallery--multi) .nf-gstep__figure {
  max-width: 360px;
}

/* Image cliquable → agrandissement */
.nf-gstep__img:not(.nf-gstep__img--placeholder) {
  cursor: zoom-in;
}

/* Lightbox (agrandissement d'une capture) */
.nf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20, 16, 24, 0.85);
  cursor: zoom-out;
}

.nf-lightbox[hidden] {
  display: none;
}

.nf-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.nf-lightbox__hint {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nf-gstep__text {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

.nf-gstep__text p {
  margin: 0 0 14px;
}

.nf-gstep__text p:last-child {
  margin-bottom: 0;
}

.nf-gstep__text code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
}

.nf-gstep__note {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
}

.nf-gstep__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.nf-btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 860px) {
  .nf-guide-app {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px var(--gut) 56px;
  }
  .nf-guide-side {
    position: static;
  }
}

/* Footer minimal (chrome guide) : à propos + liens légaux */
.nf-footer__grid--minimal {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 720px) {
  .nf-footer__grid--minimal {
    grid-template-columns: 1fr;
  }
}

/* Écran de fin du guide */
.nf-guide-done__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  margin-bottom: 24px;
}

.nf-guide-done__icon::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  width: 10px;
  height: 20px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.nf-guide-done__nav {
  justify-content: flex-start;
}

/* ==========================================================================
   Design system formulaire (EPIC-43.2) — première infra de <form> du site.
   Réutilise les tokens existants ; préfixe nf-* strict ; WCAG 2.1 AA
   (labels liés, aria-describedby pour les erreurs, focus visible).
   ========================================================================== */
.nf-form {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 36px 32px;
  max-width: 620px;
}
.nf-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.nf-field:last-child { margin-bottom: 0; }
.nf-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nf-label__req { color: var(--shibui-red); font-style: normal; }
.nf-input,
.nf-textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nf-textarea { resize: vertical; min-height: 148px; line-height: 1.55; }
.nf-input::placeholder,
.nf-textarea::placeholder { color: var(--text-3); }
.nf-input:hover,
.nf-textarea:hover { border-color: var(--text-2); }
.nf-input:focus-visible,
.nf-textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.nf-input:disabled,
.nf-textarea:disabled { opacity: 0.55; cursor: not-allowed; }

/* État d'erreur : bordure rouge + message lié via aria-describedby. */
.nf-field.is-invalid .nf-input,
.nf-field.is-invalid .nf-textarea { border-color: var(--shibui-red); }
.nf-field__error {
  font-size: 12.5px;
  color: var(--shibui-red);
  min-height: 0;
}
.nf-field__error:empty { display: none; }

/* Statut global (anti-robot + résultat d'envoi), zone aria-live. */
.nf-form__status {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.nf-form__status:empty { display: none; }
.nf-form__status.is-success {
  border-color: color-mix(in oklab, var(--shibui-green) 45%, var(--border));
  background: color-mix(in oklab, var(--shibui-green) 12%, var(--bg));
  color: var(--text);
}
.nf-form__status.is-error {
  border-color: color-mix(in oklab, var(--shibui-red) 45%, var(--border));
  background: color-mix(in oklab, var(--shibui-red) 10%, var(--bg));
  color: var(--text);
}
.nf-form__actions { margin-top: 26px; }

/* Honeypot : champ piège invisible pour humains ET lecteurs d'écran. */
.nf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .nf-form { padding: 28px 22px; }
  .nf-form__row { grid-template-columns: 1fr; gap: 0; }
}
