.fo-readiness-hero { border-left: 4px solid #c9a962; }
.fo-readiness-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.fo-countdown {
  text-align: center;
  min-width: 120px;
  padding: 8px 14px;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 6px;
}
.fo-countdown-n {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: #c9a962;
}
.fo-countdown-l {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}
.fo-dim-grid { display: grid; gap: 10px; }
.fo-dim {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.fo-dim-bar {
  height: 8px;
  background: #ece8df;
  border-radius: 4px;
  overflow: hidden;
}
.fo-dim-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8a7340, #c9a962);
  border-radius: 4px;
}
.fo-security-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 8px 16px;
  font-size: 0.78rem;
  background: #1a1814;
  color: #d8d2c6;
  border-top: 1px solid #2e2a22;
}
.fo-sec-item i { font-style: normal; margin-right: 4px; }
.fo-sec-item.ok i { color: #6db87a; }
.fo-sec-item.warn i { color: #e0a040; }
.fo-struct-alerts { margin-bottom: 16px; }
.pill.ready { background: #2d5a3a; color: #fff; }
.nav-readiness { font-weight: 600; }

/* Chaîne UBO visuelle */
.fo-ubo-map { margin-bottom: 16px; }
.fo-ubo-map-head h3 { margin: 0 0 6px; }
.fo-ubo-kpi {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 14px;
}
.fo-ubo-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 4px 4px;
  overflow-x: auto;
}
.fo-ubo-children {
  margin-left: 20px;
  padding-left: 16px;
  border-left: 2px solid rgba(201, 169, 98, 0.45);
}
.fo-ubo-branch { margin: 10px 0; position: relative; }
.fo-ubo-branch::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 22px;
  width: 16px;
  height: 2px;
  background: rgba(201, 169, 98, 0.45);
}
.fo-ubo-node {
  background: #faf8f3;
  border: 1px solid #e0d9c8;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 260px;
  max-width: 420px;
}
.fo-ubo-ready { border-left: 4px solid #2d5a3a; }
.fo-ubo-review { border-left: 4px solid #b8860b; }
.fo-ubo-hold { border-left: 4px solid #8b3a3a; }
.fo-ubo-node-head strong { display: block; font-size: 0.95rem; }
.fo-ubo-node-head .muted { font-size: 0.78rem; }
.fo-ubo-node-body { margin-top: 8px; font-size: 0.82rem; display: grid; gap: 6px; }
.fo-ubo-own { color: #555; }
.fo-ubo-person { line-height: 1.4; }

/* File d’actions FO · registre one-click */
.fo-actions-panel { border-left: 4px solid #b8860b; }
.fo-actions-head h3 { margin: 0 0 4px; }
.fo-action-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fo-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #faf8f3;
  border: 1px solid #e8e0d0;
  border-radius: 8px;
  border-left-width: 4px;
}
.fo-action-hold { border-left-color: #8b3a3a; }
.fo-action-warn { border-left-color: #b8860b; }
.fo-action-review { border-left-color: #6a7a8a; }
.fo-action-main code { font-size: 0.78rem; }
.fo-action-btns { flex-shrink: 0; }
.fo-registry-quick { margin-top: 12px; }
.fo-registry-form { margin: 12px 0; }
.fo-action-list li.ok { color: #2d5a3a; font-size: 0.9rem; padding: 8px 0; }

/* Profil bureau · onboarding · counsel · SIMOH */
.fo-scope-panel { border-left: 4px solid #6a7a8a; }
.fo-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 720px) {
  .fo-scope-grid { grid-template-columns: 1fr; }
}
.fo-scope-col ul { margin: 8px 0 0; padding-left: 1.2rem; font-size: 0.88rem; }
.fo-scope-col.ok strong { color: #2d5a3a; }
.fo-scope-col.warn strong { color: #8b3a3a; }
.fo-scope-solutions {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(106, 122, 138, 0.35);
}
.fo-scope-solutions h4 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: #1c1914;
}
.fo-scope-sol-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #2a251e;
}
.fo-scope-sol-list li { margin-bottom: 0.85rem; }
.fo-scope-sol-list p { margin: 0.25rem 0 0; }
.fo-scope-jumps { margin: 0.35rem 0 0; font-size: 0.84rem; }
.fo-ext-trail-panel { margin-top: 0.75rem; border-left: 4px solid #8a7355; }
.fo-ext-trail-panel h3 { margin-top: 0; }
.fo-ext-trail-panel h4 { margin: 0.5rem 0 0.35rem; font-size: 0.88rem; }
.fo-ext-trail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 800px) {
  .fo-ext-trail-grid { grid-template-columns: 1fr; }
}
.fo-ext-list { margin: 0 0 0.5rem; padding-left: 1.1rem; font-size: 0.85rem; }
.fo-ext-form {
  display: grid;
  gap: 0.4rem;
}
.fo-ext-form label {
  display: grid;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: #5c5348;
}
.fo-ext-form input,
.fo-ext-form select {
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem;
  max-width: 100%;
}
.fo-scope-solutions {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(106, 90, 50, 0.25);
}
.fo-scope-solutions h4 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: #1c1914;
}
.fo-scope-sol-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.4;
}
.fo-scope-sol-list li { margin-bottom: 0.75rem; }
.fo-scope-sol-list p { margin: 0.25rem 0 0; color: #3d362c; }
.fo-scope-hosting {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(106, 122, 138, 0.35);
}
.fo-scope-hosting h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: #1c1914;
}
.fo-scope-hosting p {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #2a251e;
}
.fo-scope-jumps { margin: 0.35rem 0 0; font-size: 0.84rem; }
.fo-ext-trail-panel { margin-top: 0.75rem; border-left: 4px solid #8a7355; }
.fo-ext-trail-panel h4 { margin: 0 0 0.4rem; font-size: 0.88rem; }
.fo-ext-trail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.65rem;
}
@media (max-width: 720px) {
  .fo-ext-trail-grid { grid-template-columns: 1fr; }
}
.fo-ext-list { margin: 0 0 0.65rem; padding-left: 1.1rem; font-size: 0.85rem; }
.fo-ext-form label {
  display: block;
  font-size: 0.78rem;
  margin: 0.35rem 0;
  color: #5c5348;
}
.fo-ext-form input,
.fo-ext-form select {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem;
}
.fo-ext-form .btn { margin-top: 0.45rem; }
.fo-onboarding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fo-onboarding-head h3 { margin: 0; }
.fo-onboarding-steps { margin: 10px 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.fo-counsel-banner h3 { margin: 0 0 6px; }
.fo-simoh-help { margin: 0 0 10px; font-size: 0.88rem; }
.fo-simoh-help summary { cursor: pointer; color: #6a5a32; }
.fo-demo-panel { opacity: 0.95; border-style: dashed; }
.fo-simoh-brief { border-left: 4px solid #5a4a7a; }
.fo-simoh-brief-text {
  white-space: pre-wrap;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  background: #faf8f3;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
  max-height: 220px;
  overflow: auto;
}
.fo-simoh-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.fo-simoh-prompt { font-size: 0.78rem !important; }

/* GED connector */
.fo-ged-zone { border-left: 4px solid #4a6a8a; }
.fo-ged-drop {
  border: 2px dashed #c9b896;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #faf8f3;
  margin: 10px 0;
}
.fo-ged-drop.drag-over { border-color: #8a7340; background: #f5f0e4; }
.fo-ged-drop input[type="file"] { display: none; }
.fo-ged-drop .btn { margin: 4px; }
.fo-ged-scan-summary { margin-top: 10px; overflow-x: auto; }
.ged-ok { background: rgba(45, 90, 58, 0.06); }
.ged-miss { background: rgba(139, 58, 58, 0.04); }

/* Counsel workflow */
.fo-counsel-panel h3 { margin: 0; }
.fo-counsel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }

/* Accueil allégé · quick start · collapse */
.fo-quickstart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 4px solid #2d5a3a;
}
.fo-quickstart-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fo-collapse { padding-top: 10px; padding-bottom: 10px; }
.fo-collapse > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.fo-collapse > summary::-webkit-details-marker { display: none; }
.fo-collapse > summary::before { content: '▸ '; color: #8a7340; }
.fo-collapse[open] > summary::before { content: '▾ '; }
.fo-collapse .panel { border: none; box-shadow: none; margin: 10px 0 0; padding: 0; }

/* PIN gate Hostinger */
body.fo-gated .desk { filter: blur(3px); pointer-events: none; user-select: none; }
/* Guide + aide flottante : jamais par-dessus le formulaire identité / code */
body.fo-gated .fo-coach-root,
body.fo-gated .fo-assist-root { display: none !important; }
.fo-access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 16, 12, 0.72);
  padding: 24px;
}
.fo-access-card {
  background: #faf8f3;
  border: 1px solid #e0d9c8;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.fo-access-eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; color: #8a7340; margin: 0 0 6px; }
.fo-access-card h1 { margin: 0 0 10px; font-size: 1.4rem; }
.fo-access-card label { display: block; font-size: 0.85rem; margin: 16px 0 8px; }
.fo-access-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d0c8b4;
  border-radius: 6px;
  font-size: 1rem;
}
.fo-access-card .btn { margin-top: 14px; width: 100%; }
.fo-gate-err { color: #8b3a3a; }
.fo-gate-ok {
  color: #3d5c3a !important;
  margin-top: 12px !important;
  font-size: 0.9rem !important;
  line-height: 1.45;
}
.fo-access-card a { color: #8a7340; }
.fo-lead-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d0c8b4;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
}

.fo-access-card-wide { max-width: 460px; }
.fo-demo-code-box {
  margin: 16px 0 8px;
  padding: 14px 16px;
  border: 1px solid #c9a24b;
  background: #1c1914;
  color: #f6edd3;
  text-align: center;
}
.fo-demo-code-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a24b;
  margin-bottom: 6px;
}
.fo-demo-code-value {
  display: block;
  font-size: 1.6rem;
  letter-spacing: 0.28em;
  font-family: ui-monospace, Menlo, monospace;
  margin: 4px 0 8px;
}
.fo-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 8px;
}
.fo-lead-grid label {
  margin: 0;
  font-size: 0.82rem;
}
.fo-lead-grid .fo-lead-full { grid-column: 1 / -1; }
.fo-btn-secondary {
  display: block;
  margin-top: 10px !important;
  text-align: center;
  text-decoration: none;
  background: transparent !important;
  color: #1c1914 !important;
  border: 1px solid #c9a24b;
  box-sizing: border-box;
  padding: 10px 12px;
}
.fo-bureau-hint {
  margin-top: 14px !important;
  font-size: 0.72rem !important;
}
.fo-net-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e0d9c8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.fo-net-label {
  width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7340;
}
.fo-net-links a {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #5c5340;
  border-bottom: 1px solid transparent;
}
.fo-net-links a:hover {
  color: #8a7340;
  border-bottom-color: #c9a24b;
}

.fo-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #1c1914;
  color: #f6edd3;
  font-size: 0.82rem;
  border-bottom: 1px solid #c9a24b;
}
.fo-preview-banner strong { color: #c9a24b; font-variant-numeric: tabular-nums; }
.fo-preview-rdv {
  color: #1c1914;
  background: #c9a24b;
  text-decoration: none;
  padding: 6px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
body.fo-previewing { padding-top: 40px; }

.fo-gate-lang {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.fo-gate-lang-btn {
  border: 1px solid #c9a24b;
  background: transparent;
  color: #1c1914;
  font: 600 0.72rem/1 IBM Plex Sans, sans-serif;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  cursor: pointer;
}
.fo-gate-lang-btn.is-on {
  background: #1c1914;
  color: #f6edd3;
  border-color: #1c1914;
}

/* Filigrane démo : marque seule, discret, pointer-events none */
.fo-demo-watermark {
  position: fixed;
  inset: 0;
  z-index: 8500;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.07;
  background-repeat: repeat;
  background-size: 360px 200px;
}

@media (max-width: 520px) {
  .fo-lead-grid { grid-template-columns: 1fr; }
  .fo-demo-code-value { font-size: 1.35rem; letter-spacing: 0.18em; }
}



@media (max-width: 960px) {
  .desk-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .desk-header-meta { flex-wrap: wrap; }
  .desk-body { flex-direction: column; }
  .desk-nav { width: 100%; max-height: none; }
}

/* —— Mobile pass · Accueil d’abord · nav / options à la demande —— */
.fo-mobile-bar { display: none; }

@media (max-width: 900px) {
  .fo-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.55rem 0.75rem;
    margin: 0 0 0.65rem;
    background: #1a1814;
    color: #f4efe6;
    border: 1px solid #2e2a22;
  }
  .fo-mobile-title {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .fo-mobile-btn {
    min-height: 40px;
    min-width: 64px;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(201, 169, 98, 0.45);
    background: #c9a962;
    color: #1a1814;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
  }
  .fo-mobile-btn-ghost {
    background: transparent;
    color: #f4efe6;
  }
  .fo-mobile-btn[aria-expanded="true"] {
    background: #f4efe6;
    color: #1a1814;
  }

  .desk-fo .desk-brand h1 { font-size: 1.35rem; }
  .desk-fo .desk-header { padding-bottom: 0.5rem; }
  .desk-fo .desk-header-meta {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0 0.85rem;
  }
  .desk-fo.fo-meta-open .desk-header-meta { display: flex; }
  .desk-fo .field-inline select,
  .desk-fo .field-inline input {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    min-height: 42px;
  }

  .desk-fo .spine { display: none; }
  .desk-fo .fo-security-bar {
    font-size: 0.7rem;
    gap: 8px 12px;
    padding: 6px 10px;
  }

  .desk-fo .desk-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .desk-fo .desk-main { order: 1; min-width: 0; }
  .desk-fo .desk-nav {
    order: 2;
    display: none;
    width: 100%;
    position: static;
    max-height: none;
    padding: 0.65rem;
  }
  .desk-fo.fo-nav-open .desk-nav { display: block; }
  .desk-fo .nav-item {
    padding: 0.7rem 0.75rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  .desk-fo .btn-block {
    min-height: 44px;
    margin-top: 0.5rem;
  }

  .desk-fo .fo-dim {
    grid-template-columns: 1fr 48px;
    gap: 6px 8px;
  }
  .desk-fo .fo-dim > :first-child { grid-column: 1 / -1; }
  .desk-fo .fo-ubo-node { min-width: 0; max-width: none; }
  .desk-fo .fo-loop-step {
    grid-template-columns: 2rem 1fr;
  }
  .desk-fo .fo-loop-step > :last-child { grid-column: 1 / -1; }

  .desk-fo .desk-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.78rem;
    line-height: 1.5;
  }
  .desk-fo .kpi-row,
  .desk-fo .view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .desk-fo .view-actions .btn,
  .desk-fo .view-actions .btn-ghost {
    min-height: 40px;
  }
  .desk-fo .fo-access-card {
    width: calc(100vw - 1.5rem);
    max-width: 420px;
    margin: 1rem auto;
  }
}

@media (min-width: 901px) {
  .fo-mobile-bar { display: none !important; }
}

.fo-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.fo-tool-card {
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.03);
  border-left: 3px solid #8a7355;
}
.fo-tool-card .btn, .fo-tool-card .btn-ghost { margin-top: 0.5rem; }
.fo-filing-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.75rem; }
.fo-filing-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.fo-toolkit-exports { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.fo-loop-teaser-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fo-loop-hero { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.fo-loop-hero-actions { display: flex; flex-direction: column; gap: 0.5rem; min-width: 200px; }
.fo-loop-rail { display: flex; flex-direction: column; gap: 0.65rem; margin: 1rem 0; }
.fo-loop-step {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-left: 3px solid #b8a078;
  background: rgba(0,0,0,0.03);
}
.fo-loop-done { border-left-color: #3d7a5a; }
.fo-loop-hold { border-left-color: #a33; background: rgba(160,40,40,0.06); }
.fo-loop-warn { border-left-color: #b8860b; }
.fo-loop-todo { border-left-color: #8a7355; }
.fo-loop-n {
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem;
  background: #1c1914; color: #f4efe6;
}
.fo-loop-title { font-weight: 600; margin-bottom: 0.2rem; }
.fo-trust-fiche ul { margin: 0.5rem 0 0; }

.fo-import-contract pre.fo-mapping-legend {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border-left: 3px solid #8a7355;
}
.fo-import-report .check-list { max-height: 280px; overflow: auto; }
.fo-screening-form, .fo-risk-form { margin: 12px 0; }
.fo-ubo-editor input, .fo-ubo-editor select { font-size: 0.85rem; max-width: 100%; }
.fo-acl-note { font-size: 0.82rem; margin: 0 0 10px; }

/* KPI cliquables */
.desk-fo .kpi.kpi-click {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.desk-fo .kpi.kpi-click:hover,
.desk-fo .kpi.kpi-click:focus {
  outline: none;
  border-color: #c9a24b;
  background: rgba(201, 162, 75, 0.08);
  transform: translateY(-1px);
}
.desk-fo .kpi.kpi-click:active {
  transform: translateY(0);
}
.fo-kpi-filter { margin: 0.65rem 0 0; font-size: 0.85rem; }

/* —— Guide éducatif (coach) —— */
.fo-coach-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.fo-coach-root.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.fo-coach-dim {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 12, 0.55);
  pointer-events: auto;
}
.fo-coach-hole {
  position: fixed;
  z-index: 12001;
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(18, 16, 12, 0.58),
    0 0 0 2px #c9a24b,
    0 8px 28px rgba(0, 0, 0, 0.35);
  background: transparent;
  pointer-events: none;
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}
.fo-coach-card {
  position: fixed;
  z-index: 12002;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 32px));
  max-height: min(82vh, 640px);
  overflow: auto;
  padding: 1.05rem 1.15rem 1.1rem;
  background: #f7f2e8;
  color: #1c1914;
  border: 1px solid #c9a24b;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.fo-coach-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.fo-lang-switch {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 0.65rem;
}
.fo-lang-btn {
  min-width: 2rem;
  border: 1px solid rgba(138, 115, 85, 0.4);
  background: #fffdf8;
  color: #1c1914;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
}
.fo-lang-btn.is-on {
  border-color: #c9a24b;
  background: rgba(201, 162, 75, 0.22);
}
.fo-lang-btn:hover { border-color: #c9a24b; }
.fo-assist-panel .fo-lang-switch { margin-bottom: 0.5rem; }
.fo-coach-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1c1914;
  background: #c9a24b;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}
.fo-coach-progress {
  font-size: 0.78rem;
  color: #5c5348;
  font-variant-numeric: tabular-nums;
}
.fo-coach-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 650;
  color: #1c1914;
}
.fo-coach-reassure {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6a5e4e;
  font-family: system-ui, -apple-system, sans-serif;
}
.fo-coach-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7355;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
}
.fo-coach-do,
.fo-coach-why {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #2a251e;
}
.fo-coach-why { color: #3d362c; }
.fo-coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
  position: relative;
  z-index: 5;
}
.fo-coach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  z-index: 6;
  min-height: 40px;
  pointer-events: auto;
}
#fo-coach-prev {
  order: 1;
  flex: 1 1 auto;
  min-width: 5.5rem;
}
#fo-coach-next {
  order: 2;
  flex: 1 1 auto;
  min-width: 5.5rem;
}
#fo-coach-skip {
  order: 3;
  flex: 1 1 100%;
}
.fo-coach-done-actions {
  margin: 0.65rem 0 0.5rem;
  justify-content: stretch;
}
.fo-coach-done-actions .fo-coach-btn {
  flex: 1 1 0;
}
.fo-coach-btn.ghost {
  background: transparent;
  border-color: #b5a48a;
  color: #1c1914;
}
.fo-coach-btn.ghost:hover { border-color: #c9a24b; }
.fo-coach-btn.ghost:disabled {
  opacity: 0.4;
  cursor: default;
}
.fo-coach-btn.primary {
  background: #1c1914;
  color: #f4efe6;
  border-color: #1c1914;
}
.fo-coach-btn.primary:hover {
  background: #2e2922;
  border-color: #c9a24b;
}
.fo-coach-done {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(138, 115, 85, 0.35);
}
.fo-coach-done p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.fo-coach-done .fo-coach-btn {
  width: 100%;
}
.fo-coach-faq-wrap {
  margin: 0.55rem 0 0.35rem;
  max-height: 28vh;
  overflow: auto;
  border-top: 1px solid rgba(138, 115, 85, 0.28);
  padding-top: 0.45rem;
}
.fo-coach-faq-item {
  margin: 0 0 0.35rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  border: 1px solid rgba(138, 115, 85, 0.25);
  border-radius: 6px;
  background: #fffdf8;
}
.fo-coach-faq-item summary {
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font-weight: 600;
  color: #1c1914;
  list-style: none;
}
.fo-coach-faq-item summary::-webkit-details-marker { display: none; }
.fo-coach-faq-item summary::before {
  content: '+ ';
  color: #8a7355;
}
.fo-coach-faq-item[open] summary::before { content: '− '; }
.fo-coach-faq-item p {
  margin: 0;
  padding: 0 0.55rem 0.5rem;
  line-height: 1.4;
  color: #3d362c;
}
#fo-coach-done-faq {
  margin: 0 0 0.75rem;
  max-height: 32vh;
  overflow: auto;
}

/* —— Aide flottante pédagogique —— */
.fo-assist-root {
  position: fixed;
  z-index: 11000;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, "IBM Plex Sans", sans-serif;
  transition: opacity 0.2s ease;
}
.fo-assist-root.is-coach-on {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.fo-assist-fab {
  min-width: 52px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid #c9a24b;
  background: #1c1914;
  color: #f7f2e8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.fo-assist-fab:hover { background: #2a241c; }
.fo-assist-panel {
  position: absolute;
  left: 0;
  bottom: 52px;
  width: min(360px, calc(100vw - 28px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 0.9rem 1rem 1rem;
  background: #f7f2e8;
  color: #1c1914;
  border: 1px solid #c9a24b;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.fo-assist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.fo-assist-head strong {
  font-size: 0.95rem;
  line-height: 1.3;
}
.fo-assist-x {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #5c5348;
  padding: 0 0.15rem;
}
.fo-assist-hint {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6a5e4e;
}
.fo-assist-modes {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.fo-assist-mode {
  flex: 1;
  border: 1px solid rgba(138, 115, 85, 0.4);
  background: #fffdf8;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #1c1914;
}
.fo-assist-mode.is-on {
  border-color: #c9a24b;
  background: rgba(201, 162, 75, 0.18);
}
.fo-assist-llm {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: #5c5348;
  line-height: 1.35;
  cursor: pointer;
}
.fo-assist-llm input { margin-top: 0.15rem; }
.fo-assist-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #1c1914;
}
.fo-assist-src {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
}
.fo-assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.fo-assist-chip {
  border: 1px solid rgba(138, 115, 85, 0.4);
  background: #fffdf8;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
  color: #1c1914;
}
.fo-assist-chip:hover { border-color: #c9a24b; }
.fo-assist-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.fo-assist-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(138, 115, 85, 0.4);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
  background: #fff;
}
.fo-assist-ask {
  border: 1px solid #1c1914;
  background: #1c1914;
  color: #f7f2e8;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.fo-assist-answer {
  font-size: 0.84rem;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.fo-assist-answer .fo-assist-q { margin: 0 0 0.35rem; }
.fo-assist-answer .muted { color: #6a5e4e; font-size: 0.8rem; }
.fo-assist-foot { border-top: 1px solid rgba(138, 115, 85, 0.28); padding-top: 0.55rem; }
.fo-assist-guide {
  width: 100%;
  border: 1px solid #c9a24b;
  background: transparent;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #1c1914;
}
.fo-assist-guide:hover { background: rgba(201, 162, 75, 0.12); }
/* —— Téléphone : gate scrollable + guide feuille basse —— */
@media (max-width: 900px) {
  .fo-access-gate {
    align-items: flex-start;
    justify-content: flex-start;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fo-access-card,
  .fo-access-card-wide {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 16px;
    box-sizing: border-box;
  }
  .fo-access-card h1 { font-size: 1.2rem; }
  .fo-access-card input,
  .fo-lead-grid input,
  #fo-gate-pin {
    font-size: 16px !important;
    min-height: 44px;
    box-sizing: border-box;
  }
  .fo-access-card .btn,
  .fo-btn-secondary {
    min-height: 48px;
    font-size: 1rem;
  }
  .fo-demo-code-value {
    font-size: 1.25rem;
    letter-spacing: 0.16em;
    word-break: break-all;
  }
  .fo-preview-banner {
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0.4rem 0.55rem;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  .fo-coach-card {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    max-width: none;
    max-height: 32vh;
    border-radius: 12px;
    padding: 0.65rem 0.75rem 0.55rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  }
  .fo-coach-card.is-dock-top {
    bottom: auto;
    top: max(8px, env(safe-area-inset-top));
  }
  body.fo-preview-on .fo-coach-card.is-dock-top {
    top: max(40px, calc(env(safe-area-inset-top) + 36px));
  }
  .fo-coach-dim {
    background: rgba(18, 16, 12, 0.38);
  }
  .fo-coach-hole {
    display: block !important;
    border-radius: 10px;
    box-shadow:
      0 0 0 9999px rgba(18, 16, 12, 0.42),
      0 0 0 2px #c9a24b,
      0 6px 20px rgba(0, 0, 0, 0.3);
  }
  .fo-coach-card-top { margin-bottom: 0.25rem; }
  .fo-coach-card h3 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
  }
  .fo-coach-reassure,
  .fo-coach-label#fo-coach-do-label,
  .fo-coach-label#fo-coach-why-label,
  #fo-coach-why,
  .fo-lang-switch {
    display: none !important;
  }
  .fo-coach-do {
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .fo-coach-actions {
    position: static;
    background: transparent;
    padding-top: 0.25rem;
    margin-top: 0.25rem;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 0.3rem;
  }
  .fo-coach-btn {
    flex: 1 1 0;
    min-height: 40px;
    padding: 0.4rem 0.25rem;
    font-size: 0.72rem;
  }
  .fo-coach-faq-wrap {
    max-height: 12vh;
    margin: 0.25rem 0;
    padding-top: 0.25rem;
  }
  .fo-coach-done p {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.fo-coach-on .fo-assist-root { display: none !important; }

  .fo-assist-fab {
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 0.65rem 0.9rem;
  }
  .fo-assist-panel {
    left: 10px;
    right: 10px;
    bottom: max(64px, calc(env(safe-area-inset-bottom) + 56px));
    width: auto;
    max-width: none;
    max-height: min(55dvh, 55vh);
  }
}

@media (max-width: 640px) {
  .fo-lead-grid { grid-template-columns: 1fr; }
  .fo-coach-card {
    max-height: 30vh;
  }
}

