/* Pages publiques : accueil, mentions légales, confidentialité, conditions d'utilisation.
   Mêmes couleurs que l'espace client : beige et noir, mode clair ou sombre. */
:root {
  color-scheme: light;
  --bg: #F8F6F4; --surface: #FFFFFF; --sunken: #F3F0EC; --line: #EAE5DE; --line-2: #DCD6CD;
  --ink: #15130F; --ink-2: #4E473D; --muted: #6E6557; --on-ink: #FFFFFF;
  --accent: #C9AA7C; --accent-ink: #7A5C2E; --accent-soft: rgba(196,166,122,.18); --beige: #F4ECDF;
  --shadow: 0 1px 2px rgba(40,30,16,.04), 0 18px 44px -20px rgba(40,30,16,.22);
  --glow: rgba(195,160,107,.10);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --r: 22px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100E0C; --surface: #1B1915; --sunken: #23201B; --line: #2F2B25; --line-2: #463F36;
  --ink: #F6F5F3; --ink-2: #CFC8BD; --muted: #A29B90; --on-ink: #15130F;
  --accent: #D5BD98; --accent-ink: #D5BD98; --accent-soft: rgba(213,189,152,.12); --beige: #29241C;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 44px -20px rgba(0,0,0,.7);
  --glow: rgba(207,180,139,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #100E0C; --surface: #1B1915; --sunken: #23201B; --line: #2F2B25; --line-2: #463F36;
    --ink: #F6F5F3; --ink-2: #CFC8BD; --muted: #A29B90; --on-ink: #15130F;
    --accent: #D5BD98; --accent-ink: #D5BD98; --accent-soft: rgba(213,189,152,.12); --beige: #29241C;
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 18px 44px -20px rgba(0,0,0,.7);
    --glow: rgba(207,180,139,.07);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: radial-gradient(60% 40% at 85% 0%, var(--glow), transparent 70%), var(--bg); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 99; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* En-tête */
.hd { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.brand .mk { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.brand .mk svg { width: 20px; height: 20px; }
.hd nav { display: flex; gap: 4px; margin-left: 12px; }
.hd nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.hd nav a:hover { color: var(--ink); background: var(--sunken); }
.hd .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ib { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ib:hover { border-color: var(--line-2); }
.ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 13px; font: 600 14.5px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-pri { background: var(--ink); color: var(--on-ink); box-shadow: 0 10px 24px -12px rgba(40,30,16,.6); }
.btn-pri:hover { transform: translateY(-1px); }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sec:hover { border-color: var(--line-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* Héros */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 500; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.045em; font-weight: 750; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--accent-ink); }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 13.5px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Aperçu du tableau de bord, dessiné en CSS */
.mock { position: relative; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: 132px 1fr; gap: 14px; min-height: 380px; }
.mock::before { content: ""; position: absolute; inset: -28px -24px auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); z-index: -1; }
.m-side { background: var(--sunken); border-radius: 16px; padding: 12px 10px; display: grid; align-content: start; gap: 6px; }
.m-org { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.m-org i { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); }
.m-org b { height: 8px; width: 60px; border-radius: 4px; background: var(--ink); opacity: .85; }
.m-lab { height: 6px; width: 40px; border-radius: 3px; background: var(--muted); opacity: .35; margin: 8px 4px 2px; }
.m-it { height: 24px; border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 8px; }
.m-it::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--muted); opacity: .45; }
.m-it::after { content: ""; height: 6px; flex: 1; max-width: 62px; border-radius: 3px; background: var(--muted); opacity: .4; }
.m-it.on { background: var(--ink); }
.m-it.on::before, .m-it.on::after { background: var(--on-ink); opacity: .9; }
.m-main { display: grid; gap: 12px; align-content: start; }
.m-h { display: flex; justify-content: space-between; align-items: center; }
.m-h b { font-size: 15px; letter-spacing: -.02em; }
.m-h span { font-size: 11px; color: var(--muted); }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-k { border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.m-k small { display: block; font-size: 10px; color: var(--muted); }
.m-k b { font-size: 19px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.m-k u { display: block; height: 4px; border-radius: 2px; background: var(--sunken); margin-top: 6px; overflow: hidden; text-decoration: none; }
.m-k u::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--accent); }
.m-chart { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.m-chart small { font-size: 10.5px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; margin-top: 8px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); height: var(--h); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms); }
.bars i.dk { background: var(--ink); }
@keyframes grow { from { transform: scaleY(.05); } }
.m-rows { display: grid; gap: 6px; }
.m-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 11.5px; }
.m-row b { flex: 1; font-weight: 600; }
.m-row em { font-style: normal; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* Sections */
section { padding: 64px 0; }
.sh { max-width: 640px; margin-bottom: 36px; }
.sh .k { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.035em; margin: 10px 0 12px; font-weight: 720; }
.sh p { color: var(--ink-2); margin: 0; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--beige); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.org-demo { display: grid; gap: 10px; }
.od-person { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--ink); color: var(--on-ink); }
.od-person i { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 700; color: #15130F; }
.od-person small { display: block; opacity: .7; font-size: 12.5px; }
.od-cos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-left: 26px; border-left: 2px dashed var(--line-2); margin-left: 26px; }
.od-co { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.od-co b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.od-co span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.od-co ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 5px; }
.od-co li { font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.od-co li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--ink-2); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { position: relative; padding: 24px; border-radius: var(--r); background: var(--sunken); }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.band { border-radius: 30px; background: var(--ink); color: var(--on-ink); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(201,170,124,.35), transparent 70%); }
.band h2 { margin: 0 0 6px; color: inherit; }
.band p { margin: 0; opacity: .78; max-width: 32em; }
.band .cta { position: relative; z-index: 1; }
.band .btn-pri { background: var(--accent); color: #15130F; box-shadow: none; }
.band .btn-sec { background: transparent; color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); }

/* Pied de page */
.ft { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.ft .wrap { display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ft nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--ink); text-decoration: underline; }

/* Pages légales */
.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 8px 0 8px; }
.legal .upd { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 28px; }
.legal .toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.legal .toc a { text-decoration: none; color: var(--ink-2); }
.legal .toc a:hover { color: var(--ink); text-decoration: underline; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.02em; scroll-margin-top: 90px; }
.legal h3 { font-size: 16.5px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.legal dt, .legal dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.legal dt { color: var(--muted); background: var(--sunken); }
.legal dl > :nth-last-child(-n+2) { border-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--sunken); font-weight: 600; }
.todo { background: rgba(214, 160, 60, .2); border-radius: 6px; padding: 0 5px; color: var(--ink); }
.note { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--surface); border-radius: 0 12px 12px 0; }

/* Mobile */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hd nav { display: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: 40px; }
  .grid { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .m-side { display: none; }
  .m-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .od-cos { grid-template-columns: 1fr; margin-left: 12px; padding-left: 14px; }
  .band { padding: 30px 22px; }
  .legal .toc ol { columns: 1; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border-bottom: 0; padding-bottom: 2px; }
  .hd .wrap { gap: 10px; }
  .hd .btn-sm span { display: none; }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } html { scroll-behavior: auto; } }
.legal .back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal .back:hover { color: var(--ink); }
.legal article, .legal .wrap > p, .legal .wrap > ul { max-width: 72ch; }
.legal a:not(.back):not(.btn) { color: var(--accent-ink); }
main { overflow-x: clip; }
@media (max-width: 620px) {
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal th, .legal td { min-width: 120px; }
}
