/* Front office — couche visuelle SaaS (surcharge hub.css, n’altère pas l’espace client) */

:root {
  --fb-ink: #0b1220;
  --fb-ink-soft: #1e293b;
  --fb-muted: #334155;
  --fb-line: #c7d2e0;
  --fb-paper: #eef4f8;
  --fb-card: #ffffff;
  --fb-deep: #06203a;
  --fb-cyan: #0891b2;
  --fb-cyan-dark: #0e7490;
  --fb-mint: #0f766e;
  --fb-amber: #d97706;
  --fb-focus: #0284c7;
  --fb-radius: 16px;
  --fb-shadow: 0 10px 28px rgba(6, 32, 58, .08);
  --fb-shadow-lg: 0 18px 44px rgba(6, 32, 58, .12);
}

body.landing {
  font-family: "Source Sans 3", Manrope, "Segoe UI", system-ui, sans-serif;
  background: var(--fb-paper);
  color: var(--fb-ink);
  padding-top: 68px;
}
body.landing a:focus-visible,
body.landing button:focus-visible,
body.landing input:focus-visible,
body.landing textarea:focus-visible,
body.landing select:focus-visible {
  outline: 2px solid var(--fb-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: .75rem; top: -3rem; z-index: 200;
  background: var(--fb-deep); color: #fff; padding: .5rem .85rem;
  border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: .75rem; }

body.landing .site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #d5deea;
  box-shadow: 0 4px 18px rgba(6, 32, 58, .05);
}
body.landing .site-header-inner { max-width: 1160px; }
body.landing .site-nav a { color: var(--fb-ink-soft); font-weight: 600; font-size: .9rem; }
body.landing .site-nav a:hover,
body.landing .site-nav a.is-active { color: var(--fb-cyan-dark); background: #e0f7fa; }
body.landing .site-nav .nav-cta {
  background: linear-gradient(180deg, #0e7490, #0b5f74);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(8, 145, 178, .28);
}
body.landing .site-nav .nav-cta:hover { background: #0e7490; color: #fff !important; }
body.landing .btn-primary,
body.landing .btn.btn-primary {
  background: linear-gradient(180deg, #0e7490, #0b5f74);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 145, 178, .22);
}
body.landing .btn-primary:hover,
body.landing .btn.btn-primary:hover { background: #0e7490; }
body.landing .btn-ghost {
  background: #fff; color: var(--fb-ink);
  border: 1.5px solid #94a3b8;
}
body.landing .btn-ghost:hover { border-color: var(--fb-cyan); color: var(--fb-cyan-dark); background: #ecfeff; }

/* Hero */
.hero-pro {
  padding: 3.4rem 0 2.6rem;
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(8, 145, 178, .22), transparent 58%),
    radial-gradient(520px 240px at 8% 20%, rgba(15, 118, 110, .14), transparent 55%),
    linear-gradient(180deg, #f0f9ff 0%, #e8f4f2 55%, var(--fb-paper) 100%);
}
.hero-pro-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
.hero-kicker {
  margin: 0 0 .65rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fb-cyan-dark);
}
.hero-pro h1 {
  margin: 0 0 .85rem; font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.12;
  letter-spacing: -0.03em; color: var(--fb-deep); max-width: 16ch;
}
.hero-pro .lead { margin: 0 0 1.4rem; font-size: 1.12rem; color: var(--fb-muted); max-width: 38rem; line-height: 1.55; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.hero-proof li {
  font-size: .82rem; font-weight: 700; color: var(--fb-ink);
  background: #fff; border: 1.5px solid #a5f3fc; border-radius: 999px;
  padding: .4rem .8rem; box-shadow: 0 4px 12px rgba(8, 145, 178, .08);
}
.hero-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--fb-shadow-lg);
  background: #06203a; aspect-ratio: 16 / 10;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual-cap {
  position: absolute; left: .85rem; bottom: .85rem;
  background: #0891b2; color: #fff; font-size: .78rem; font-weight: 800;
  padding: .4rem .7rem; border-radius: 8px;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: .55rem .75rem; justify-content: center;
  padding: 1.15rem 1rem; background: #06203a;
}
.trust-row span {
  font-size: .8rem; font-weight: 800; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: .35rem .75rem;
}

body.landing .section h2,
.sec-title {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--fb-deep);
}
.section-lead { color: var(--fb-muted); max-width: 42rem; }

.sec-tint-cyan {
  background:
    linear-gradient(180deg, #dbeafe 0%, #e0f2fe 40%, #ecfeff 100%);
  border-block: 1px solid #7dd3fc;
}
.sec-kicker {
  margin: 0 0 .5rem; font-size: .75rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #67e8f9;
}

/* Synthèse + flux Émission / Réception */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#fonctionnement { overflow-x: clip; }
#fonctionnement .wrap { width: 100%; max-width: 1080px; }

.flow-overview {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: .55rem 0.2rem; margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.1rem; background: #fff; border: 1.5px solid #7dd3fc;
  border-radius: 18px; box-shadow: var(--fb-shadow);
}
.flow-overview-node {
  flex: 1 1 0; min-width: 0; max-width: 14rem; text-align: center; padding: .7rem .85rem;
  background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 12px;
}
.flow-overview-node strong { display: block; font-size: .92rem; color: var(--fb-deep); }
.flow-overview-node span { display: block; margin-top: .2rem; font-size: .75rem; color: var(--fb-muted); font-weight: 650; }
.flow-overview-node--hub {
  flex: 1.08 1 0; max-width: 15.2rem;
  background: linear-gradient(180deg, #ecfeff, #fff);
  border: 2px solid #0891b2; box-shadow: 0 8px 20px rgba(8, 145, 178, .14);
}

.flow-label {
  margin: 1.6rem 0 .7rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fb-cyan-dark);
}
.flow-label--in { color: var(--fb-mint); }
.flow-dir { display: inline-block; margin-right: .25rem; font-weight: 800; }

.flow-track {
  list-style: none; margin: 0; padding: 1.05rem .6rem;
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; background: #fff; border: 1.5px solid #67e8f9;
  border-radius: 20px; box-shadow: var(--fb-shadow);
}
.flow-track--in { border-color: #5eead4; }
.flow-item {
  display: flex; align-items: center; flex: 1 1 0; min-width: 0;
}
.flow-step {
  width: 100%;
  background: linear-gradient(180deg, #f0f9ff, #fff);
  border: 1.5px solid #bae6fd; border-radius: 14px;
  padding: .7rem .45rem .65rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 6px 16px rgba(8, 145, 178, .08);
}
.flow-track--in .flow-step {
  background: linear-gradient(180deg, #ecfdf5, #fff);
  border-color: #99f6e4;
}
.flow-step--hub {
  border-width: 2px; border-color: #0891b2;
  background: linear-gradient(180deg, #cffafe, #fff);
  box-shadow: 0 10px 24px rgba(8, 145, 178, .16);
  padding: .85rem .5rem .75rem;
}
.flow-track--in .flow-step--hub {
  border-color: #0f766e;
  background: linear-gradient(180deg, #ccfbf1, #fff);
  box-shadow: 0 10px 24px rgba(15, 118, 110, .16);
}
.flow-hub-badge {
  display: inline-block; margin: 0 0 .3rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: #0e7490; border-radius: 999px; padding: .12rem .4rem;
}
.flow-track--in .flow-hub-badge { background: #0f766e; }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.3rem; height: 1.3rem; margin-bottom: .3rem;
  border-radius: 999px; background: var(--fb-cyan); color: #fff;
  font-size: .66rem; font-weight: 800; line-height: 1;
}
.flow-track--in .flow-num { background: var(--fb-mint); }
.flow-step-title {
  margin: 0 0 .18rem; font-size: .76rem; font-weight: 800;
  line-height: 1.25; color: var(--fb-deep);
}
.flow-step-sub {
  margin: 0 0 .22rem; font-size: .68rem; font-weight: 700; color: var(--fb-cyan-dark);
}
.flow-track--in .flow-step-sub { color: var(--fb-mint); }
.flow-step-desc {
  margin: 0; font-size: .66rem; font-weight: 600; color: #475569; line-height: 1.35;
}
.flow-arrow {
  flex: 0 0 1.45rem; display: flex; align-items: center; justify-content: center;
  color: var(--fb-cyan);
}
.flow-arrow svg { display: block; }
.flow-track--in .flow-arrow { color: var(--fb-mint); }
.flow-overview .flow-arrow { color: #0e7490; flex: 0 0 1.8rem; }
.flow-note, .flow-sync, .flow-lock {
  margin: .75rem 0 0; font-size: .9rem; color: var(--fb-muted); max-width: 46rem; line-height: 1.5;
}
.flow-sync {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  color: var(--fb-ink-soft); font-weight: 650;
  padding: .55rem .75rem; background: #f0fdfa; border: 1px dashed #5eead4; border-radius: 10px;
}
.flow-sync-from, .flow-sync-to { font-weight: 800; color: var(--fb-deep); }
.flow-sync-label { font-size: .8rem; color: var(--fb-mint); font-weight: 700; }
.flow-sync .flow-arrow { color: var(--fb-mint); flex: 0 0 auto; }
.flow-lock {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: 1.15rem; padding: .7rem .9rem; max-width: none;
  background: #fff; border: 1.5px solid #99f6e4; border-radius: 12px;
  color: var(--fb-ink-soft); font-weight: 650;
}
.flow-lock-icon { flex: 0 0 auto; margin-top: .15rem; color: var(--fb-mint); }

@media (prefers-reduced-motion: no-preference) {
  .flow-step--hub { transition: box-shadow .25s ease; }
}

.cards-2, .cards-3 { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soft-card {
  background: #fff; border: 1.5px solid #b6e2ea; border-radius: var(--fb-radius);
  padding: 1.3rem 1.35rem; box-shadow: var(--fb-shadow);
}
.soft-card h3 { margin: 0 0 .45rem; font-size: 1.08rem; color: var(--fb-deep); }
.soft-card p, .soft-card li { color: var(--fb-muted); font-size: .95rem; }
.soft-card ul { margin: .4rem 0 0; padding-left: 1.1rem; }

body.landing .promise {
  background: #fff; border: 1.5px solid #c7d2e0; border-radius: 16px;
  padding: 1.25rem 1.3rem; box-shadow: var(--fb-shadow);
}
body.landing .promise--mint { border-top: 5px solid #14b8a6; background: linear-gradient(180deg, #ecfdf5, #fff 42%); }
body.landing .promise--sky { border-top: 5px solid #0ea5e9; background: linear-gradient(180deg, #e0f2fe, #fff 42%); }
body.landing .promise--sand { border-top: 5px solid #f59e0b; background: linear-gradient(180deg, #fffbeb, #fff 42%); }

/* Sécurité : titre BLANC (surcharge body.landing .section h2) + cartes claires */
body.landing .sec-security {
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(8, 145, 178, .35), transparent 60%),
    linear-gradient(160deg, #06203a 0%, #0b3a4a 55%, #0f766e 140%);
  color: #f8fafc;
}
body.landing .sec-security h2,
body.landing.page-home .sec-security h2,
body.landing .sec-security .sec-title {
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
body.landing .sec-security .section-lead,
body.landing .sec-security p,
body.landing .sec-security li { color: #e2e8f0; }
body.landing .sec-security .soft-card {
  background: #fff; border: 0; box-shadow: var(--fb-shadow-lg);
}
body.landing .sec-security .soft-card h3 { color: var(--fb-deep); }
body.landing .sec-security .soft-card p { color: #334155; }

.compare-wrap { overflow-x: auto; margin-top: 1.25rem; }
.compare {
  width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1.5px solid #7dd3fc; border-radius: 14px;
  overflow: hidden; box-shadow: var(--fb-shadow);
}
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid #e0f2fe; font-size: .92rem; }
.compare th { background: #0e7490; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.compare td:nth-child(2) { font-weight: 800; color: #0f766e; background: #ecfdf5; }

.plugin-steps { margin-top: 1rem; }
.mock-admin {
  background: linear-gradient(180deg, #0b3a4a, #06203a);
  border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; color: #e2e8f0;
  min-height: 220px; box-shadow: var(--fb-shadow-lg); border: 1px solid #155e75;
}
.mock-admin-bar { display: flex; gap: .4rem; margin-bottom: .85rem; }
.mock-admin-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #22d3ee; display: block; }
.mock-admin-bar i:nth-child(2) { background: #2dd4bf; }
.mock-admin-bar i:nth-child(3) { background: #fbbf24; }
.mock-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem;
}
.mock-ok { color: #5eead4; font-weight: 800; }

body.landing .price-block {
  background: #fff; border: 1.5px solid #bae6fd; box-shadow: var(--fb-shadow);
}
body.landing .price-block:hover { border-color: #22d3ee; transform: translateY(-3px); }
body.landing .price-block-featured {
  border-color: #0e7490; box-shadow: 0 16px 40px rgba(8, 145, 178, .18);
  background: linear-gradient(180deg, #ecfeff, #fff 38%);
}
body.landing .billing-btn.is-active { background: #0e7490; }
body.landing .agency-form {
  border: 1.5px solid #7dd3fc; box-shadow: var(--fb-shadow-lg);
  background: linear-gradient(180deg, #f0f9ff, #fff 30%);
}
body.landing .faq details {
  background: #fff; border: 1.5px solid #bae6fd !important;
  box-shadow: 0 6px 16px rgba(8, 145, 178, .07);
}

.cta-band {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(8, 145, 178, .2), transparent 70%),
    linear-gradient(180deg, #ecfeff, #cffafe);
  text-align: center;
}
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; color: var(--fb-deep); }
.cta-band .cta { justify-content: center; }

body.landing .site-footer {
  background: #041525; color: #94a3b8; margin-top: 0; padding: 2.5rem 0 2rem; border-top: 0;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  padding-bottom: 1.5rem;
}
.footer-brand { margin: 0 0 .35rem; color: #fff; font-weight: 800; }
.footer-tag { margin: 0; font-size: .9rem; }
.footer-hd { margin: 0 0 .5rem; color: #67e8f9; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: .35rem 0; }
.footer-col a, .footer-legal a { color: #cbd5e1; text-decoration: none; }
.footer-col a:hover, .footer-legal a:hover { color: #67e8f9; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem; font-size: .82rem; }
.footer-erp { margin-top: .65rem; }
.kb-crumbs { font-size: .85rem; color: var(--fb-muted); margin: 0 0 1rem; }
.kb-crumbs a { color: var(--fb-cyan-dark); }

@media (max-width: 880px) {
  body.landing .nav-toggle { display: inline-flex; }
  body.landing .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 .75rem;
  }
  body.landing .site-nav.is-open { display: flex; }
  body.landing .site-nav .nav-cta,
  body.landing .site-nav .nav-login { margin-left: 0; text-align: center; }
  .hero-pro-grid, .cards-2, .cards-3, .footer-grid, .promise-row { grid-template-columns: 1fr; }
  .hero-pro { padding: 2rem 0 1.75rem; }
  .hero-pro h1 { max-width: none; }
  .hero-visual { max-width: 28rem; }
}

@media (max-width: 1100px) {
  .flow-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem .25rem;
    align-items: stretch;
  }
  .flow-item { width: 100%; }
  .flow-item:nth-child(3) .flow-arrow { visibility: hidden; }
  .flow-step--hub { padding: .8rem .55rem .7rem; }
}

@media (max-width: 720px) {
  .flow-overview { flex-direction: column; flex-wrap: wrap; }
  .flow-overview .flow-arrow { transform: rotate(90deg); flex: 0 0 auto; }
  .flow-overview-node, .flow-overview-node--hub {
    flex: none; min-width: 0; width: 100%; max-width: 22rem;
  }
  .flow-track {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0;
  }
  .flow-item { flex-direction: column; width: 100%; }
  .flow-item:nth-child(3) .flow-arrow { visibility: visible; }
  .flow-step, .flow-step--hub { width: 100%; max-width: none; }
  .flow-arrow { flex: 0 0 auto; height: 1.55rem; transform: rotate(90deg); }
  .flow-sync { flex-direction: column; align-items: flex-start; }
  .flow-sync .flow-arrow { transform: rotate(90deg); height: 1.3rem; }
}

@media (max-width: 430px) {
  body.landing .wrap { padding: 0 1rem; }
  .hero-proof li { font-size: .75rem; }
  .soft-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
