/* ============================================================
   Conformix — B2B institutional premium theme
   Palette: ink #0B1320 · marine #0F2A4A · accent gold #B7945E
   Type:  Inter (UI) · Instrument Serif (display)
   ============================================================ */

:root {
  --ink: #0B1320;
  --ink-2: #1B2638;
  --ink-3: #36465E;
  --muted: #6A7689;
  --rule: #E5E8EE;
  --rule-strong: #C8CFDB;
  --paper: #FFFFFF;
  --paper-soft: #F7F8FA;
  --paper-warm: #F2F1EC;
  --marine: #102C56;
  --marine-700: #0B2247;
  --marine-50: #E9EEF6;
  --gold: #B7945E;
  --gold-soft: #E8DFCB;
  --success: #1E6F4A;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 10px 24px -12px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============== Topbar ============== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px;
  background:
    radial-gradient(circle at 30% 30%, var(--gold), var(--marine) 70%);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.brand-name { font-size: 17px; }
.brand-dot { color: var(--gold); }
.topbar-nav { display: flex; gap: 28px; }
.topbar-nav a { font-size: 14.5px; color: var(--ink-3); font-weight: 500; }
.topbar-nav a:hover { color: var(--ink); }
.topbar-cta {
  font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: background .2s;
}
.topbar-cta:hover { background: var(--marine); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { background: var(--marine); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    linear-gradient(180deg, #FBFAF6 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 88% 12%, rgba(183, 148, 94, 0.10), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(16, 44, 86, 0.08), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marine);
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: #fff;
  margin-bottom: 22px;
}
.eyebrow-success { color: var(--success); border-color: rgba(30, 111, 74, 0.25); background: rgba(30, 111, 74, 0.06); }

.display {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
}
.display em {
  font-style: italic;
  color: var(--marine);
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 12px; margin-bottom: 44px; flex-wrap: wrap; }

.hero-meta {
  display: flex; align-items: center; gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-num {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; line-height: 1;
  color: var(--ink);
}
.meta-lab {
  font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.01em;
}
.meta-divider {
  width: 1px; height: 36px;
  background: var(--rule);
}

/* Hero card mockup */
.hero-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-0.6deg);
}
.hero-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #E66B6B; }
.dot-y { background: #E8C46A; }
.dot-g { background: #7FBE7F; }
.hero-card-title {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, SF Mono, Menlo, monospace;
}
.hero-card-body {
  padding: 28px 30px 30px;
  background: #fff;
}
.skeleton-title { height: 22px; width: 70%; background: var(--ink); border-radius: 4px; margin-bottom: 10px; }
.skeleton-sub { height: 12px; width: 50%; background: var(--rule-strong); border-radius: 4px; margin-bottom: 22px; }
.skeleton-tags { display: flex; gap: 8px; margin-bottom: 22px; }
.skeleton-tags span { height: 22px; width: 64px; background: var(--paper-warm); border: 1px solid var(--rule); border-radius: 999px; }
.skeleton-block { height: 10px; background: var(--rule); border-radius: 4px; margin-bottom: 10px; }
.skeleton-block.short { width: 60%; }
.skeleton-stamp {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule-strong);
}
.skeleton-stamp span {
  font-size: 11px; font-weight: 600;
  color: var(--marine);
  padding: 4px 10px;
  border: 1px solid var(--marine);
  border-radius: 4px;
  background: var(--marine-50);
  letter-spacing: 0.02em;
}

/* ============== Band (méthode) ============== */
.band {
  background: var(--ink);
  color: #E9ECF1;
  padding: 80px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.band-card { position: relative; }
.band-num {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.band-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.band-card p {
  font-size: 14.5px; line-height: 1.6;
  color: #A8B1C0;
  margin: 0;
}

/* ============== Sections ============== */
.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-sub {
  font-size: 16px; color: var(--ink-3);
  margin: 0;
}

/* ============== Demo ============== */
.demo {
  padding: 96px 0 100px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--paper-soft) 100%);
}
.demo-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.view { padding: 44px 48px; }

/* Gate view */
.gate-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.gate-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}
.gate-sub { color: var(--ink-3); margin: 0 0 24px; font-size: 15.5px; }
.gate-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gate-bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.gate-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 2px; background: var(--gold);
}
.gate-legal { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* Fields */
.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  display: block; width: 100%;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3B2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--marine);
  box-shadow: 0 0 0 3px rgba(16, 44, 86, 0.10);
}
.field textarea { resize: vertical; min-height: 100px; }

.gate-form .btn { margin-top: 6px; }

/* Brief form */
.form-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.form-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px; line-height: 1.15;
  margin: 0 0 6px; color: var(--ink);
}
.form-sub { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.quota-pill {
  font-size: 12.5px; font-weight: 600;
  color: var(--marine);
  background: var(--marine-50);
  border: 1px solid rgba(16, 44, 86, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.form-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.20);
  font-size: 14px;
}

/* Loading */
.loading-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 0;
  text-align: center;
}
.spinner {
  width: 46px; height: 46px;
  border: 3px solid var(--rule);
  border-top-color: var(--marine);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 26px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 26px;
  margin: 0 0 8px;
}
.loading-sub { color: var(--ink-3); margin: 0 0 26px; font-size: 14.5px; }
.loading-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; min-width: 320px;
}
.loading-steps li {
  position: relative;
  padding: 8px 12px 8px 32px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
}
.loading-steps li::before {
  content: ""; position: absolute; left: 12px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule-strong);
}
.loading-steps li.active {
  color: var(--ink);
  background: var(--paper-soft);
  font-weight: 500;
}
.loading-steps li.active::before { background: var(--marine); box-shadow: 0 0 0 4px rgba(16, 44, 86, 0.12); }
.loading-steps li.done { color: var(--ink-3); }
.loading-steps li.done::before { background: var(--success); }

/* Result */
.result-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}
.result-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 30px; line-height: 1.15;
  margin: 4px 0 6px; color: var(--ink);
}
.result-sub { color: var(--ink-3); margin: 0; font-size: 15px; }
.result-actions { display: flex; gap: 10px; flex-shrink: 0; }

.result-body { display: flex; flex-direction: column; gap: 36px; }

.fiche-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.fiche-meta-item {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
  background: var(--paper-soft);
}
.fiche-meta-item:last-child { border-right: none; }
.fiche-meta-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 6px;
}
.fiche-meta-value {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin: 0;
}

.fiche-section { }
.fiche-h {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.fiche-h-num {
  font-family: 'Instrument Serif', serif;
  font-size: 24px; color: var(--gold);
  line-height: 1;
}
.fiche-h-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.fiche-section p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.fiche-section ul { margin: 0; padding-left: 22px; color: var(--ink-2); }
.fiche-section ul li { margin-bottom: 8px; line-height: 1.6; }

.fiche-module {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
  background: #fff;
}
.fiche-module-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin-bottom: 12px;
}
.fiche-module-title {
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  margin: 0;
}
.fiche-module-duree {
  font-size: 12.5px; font-weight: 600;
  color: var(--marine);
  background: var(--marine-50);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.fiche-module ul { margin: 0; padding-left: 22px; }
.fiche-module ul li { font-size: 14.5px; }

.result-cta {
  margin-top: 14px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #E9ECF1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.result-cta p { margin: 0; font-size: 15px; color: #C8CFDB; }
.result-cta p strong { color: #fff; }
.result-cta .btn-primary { background: var(--gold); color: var(--ink); }
.result-cta .btn-primary:hover { background: #C9A777; }

/* ============== Format toggle + preview ============== */
.format-toggle {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin: 8px 0 18px;
}
.fmt-btn {
  background: transparent; border: none;
  padding: 9px 18px;
  border-radius: 7px;
  font-family: inherit;
  font-weight: 600; font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.fmt-btn:hover { color: var(--ink); }
.fmt-btn.active {
  background: var(--ink);
  color: #fff;
}

.preview-stage {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 760px;
}
.preview-pane[hidden] { display: none; }
.preview-pane { width: 100%; }
#pdfFrame {
  width: 100%; height: 780px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: #fff;
}
.docx-container {
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  max-height: 780px;
  overflow-y: auto;
  padding: 32px 40px;
}
.docx-container .docx-wrapper {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.docx-container .docx-wrapper > section.docx {
  box-shadow: none !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
}
.docx-loader {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  font-size: 14px;
  color: var(--muted);
}
.docx-loader.hidden { display: none; }

.result-download {
  margin-top: 22px;
  padding: 22px 26px;
  background: var(--ink);
  color: #E9ECF1;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.result-download-text p { margin: 0; font-size: 15px; color: #C8CFDB; }
.result-download-text p strong { color: #fff; }
.result-download-note { margin-top: 4px !important; font-size: 13px !important; color: #8993A6 !important; }
.result-download-actions { display: flex; gap: 10px; flex-shrink: 0; }
.result-download .btn-primary { background: var(--gold); color: var(--ink); }
.result-download .btn-primary:hover { background: #C9A777; }
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 800px) {
  .result-download { flex-direction: column; align-items: stretch; }
  .result-download-actions { flex-direction: column; }
}

/* Quota view */
.quota-box {
  text-align: center;
  padding: 30px 0 20px;
}
.quota-box h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 30px;
  margin: 0 0 14px;
}
.quota-box p {
  color: var(--ink-3); font-size: 16px;
  max-width: 560px; margin: 0 auto 26px;
  line-height: 1.6;
}

/* ============== Indicators ============== */
.indicators {
  padding: 96px 0;
  background: #fff;
  border-top: 1px solid var(--rule);
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.ind-card {
  position: relative;
  padding: 22px 20px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ind-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}
.ind-num {
  font-family: 'Instrument Serif', serif;
  font-size: 26px; color: var(--gold);
  line-height: 1; display: block;
  margin-bottom: 12px;
}
.ind-card h4 {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.ind-card p {
  font-size: 13px; color: var(--ink-3); line-height: 1.5;
  margin: 0;
}

/* ============== FAQ ============== */
.faq {
  padding: 96px 0 110px;
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
}
.faq-list { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
  margin-left: 16px;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
}

/* ============== Footer ============== */
.footer {
  background: var(--ink);
  color: #8993A6;
  padding: 26px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

/* ============== Responsive ============== */
@media (max-width: 980px) {
  .hero { padding: 60px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-card { transform: none; max-width: 480px; margin: 0 auto; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .gate-grid { grid-template-columns: 1fr; gap: 32px; }
  .view { padding: 32px 28px; }
  .result-head { flex-direction: column; }
  .result-actions { width: 100%; }
  .fiche-meta { grid-template-columns: repeat(2, 1fr); }
  .fiche-meta-item:nth-child(2n) { border-right: none; }
  .fiche-meta-item:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .result-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .topbar-nav { display: none; }
  .hero { padding: 48px 0 56px; }
  .display { font-size: 36px; }
  .hero-meta { flex-wrap: wrap; }
  .meta-divider { display: none; }
  .band-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-head { flex-direction: column; align-items: flex-start; }
  .form-actions { flex-direction: column-reverse; gap: 10px; }
  .form-actions .btn { width: 100%; }
}

/* ============== Print ============== */
@media print {
  .topbar, .hero, .band, .indicators, .faq, .footer,
  .form-head, .result-actions, .result-cta, .section-head { display: none !important; }
  body { background: #fff; }
  .demo { padding: 0; background: #fff; }
  .demo-card { border: none; box-shadow: none; }
  .view { padding: 0; }
  .fiche-section { page-break-inside: avoid; }
  .fiche-module { page-break-inside: avoid; border-color: #ccc; }
}
