/* ActiveCBM — page d'accueil publique */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy-900: #0b1f3a;
  --navy-800: #102c4f;
  --navy-700: #133a63;
  --blue-600: #1f5fa8;
  --blue-400: #5d9bd8;
  --blue-300: #8fbbe6;
  --blue-200: #c4dcf3;
  --blue-100: #e7f1fb;
  --blue-50:  #f3f8fd;
  --ink: #1b2838;
  --muted: #4b5b6e;
  --line: #dbe5f0;
  --radius: 10px;
  --shadow: 0 24px 60px -20px rgba(16, 44, 79, .35), 0 8px 20px -12px rgba(16, 44, 79, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Montserrat", "Inter", system-ui, sans-serif; color: var(--navy-900); margin: 0; }
p { margin: 0; }
a { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 92% 18%, #d6e9fb 0%, rgba(214, 233, 251, 0) 62%),
    radial-gradient(900px 600px at 70% 110%, #e3eefa 0%, rgba(227, 238, 250, 0) 60%),
    linear-gradient(180deg, #fbfdff 0%, #f1f7fd 100%);
}
.hero-lines {
  position: absolute;
  top: 0; right: 0;
  width: 58%; height: 100%;
  color: #b9d2ea;
  opacity: .55;
  pointer-events: none;
}
.top { position: relative; padding-top: 44px; }
.brand { display: inline-block; }
.brand img { width: 306px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 120px;
}
.hero h1 {
  text-wrap: balance;
  font-weight: 800;
  font-size: clamp(2.1rem, 1.1rem + 3vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.lead {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem);
  line-height: 1.6;
  color: #24344a;
}
.actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--navy-700); color: #fff; box-shadow: 0 10px 24px -12px rgba(19, 58, 99, .8); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--navy-700); border: 1.5px solid var(--navy-700); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { background: var(--blue-100); }

/* ---------- Illustration de l'interface ---------- */
.hero-visual { position: relative; }
.app {
  font-family: "Inter", system-ui, sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  color: var(--navy-900);
  aspect-ratio: 16 / 10.5;
  display: flex;
  flex-direction: column;
}
.app-bar {
  flex: 0 0 auto;
  height: 34px;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.app-mark { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: .95; }
.app-bar-dots { display: flex; gap: 10px; align-items: center; }
.app-bar-dots i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .45); display: block; }
.app-bar-dots i.avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #e9eef5, #b8c6d8); }

.app-body { flex: 1; display: flex; min-height: 0; }
.app-side {
  flex: 0 0 19%;
  background: var(--navy-800);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.app-side span { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); width: 72%; }
.app-side span:nth-child(2n) { width: 58%; }
.app-side span.on {
  height: auto; width: auto;
  background: rgba(143, 187, 230, .22);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 7px;
  border-radius: 5px;
}
.app-main { flex: 1; background: #f3f6fa; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-head strong { font-size: 14px; font-weight: 600; }
.chip { background: var(--navy-700); color: #fff; font-size: 9.5px; font-weight: 600; padding: 4px 10px; border-radius: 4px; }

.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  grid-template-rows: 1.25fr 1fr;
  gap: 10px;
  min-height: 0;
}
.card { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.card-t { font-weight: 600; font-size: 10px; color: var(--navy-900); margin-bottom: 8px; }

.flow { justify-content: flex-start; }
.flow-row { display: flex; align-items: center; margin-top: 6px; }
.flow-row.offset { margin-left: 22%; margin-top: 14px; }
.node {
  flex: 0 0 auto;
  min-width: 17%;
  padding: 9px 6px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  font-size: 10px;
  background: var(--blue-600);
  color: #fff;
}
.node.dark { background: var(--navy-800); }
.node.light { background: var(--blue-300); color: var(--navy-900); }
.flow-row b { flex: 1; height: 0; border-top: 1.5px solid #5b6f86; position: relative; margin: 0 4px; }
.flow-row b::after {
  content: ""; position: absolute; right: -1px; top: -4.5px;
  border-left: 6px solid #5b6f86; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}

.donuts { flex: 1; display: flex; align-items: center; justify-content: space-around; gap: 6px; }
.donut {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--navy-700) 0 72%, var(--blue-200) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
          mask: radial-gradient(circle, transparent 52%, #000 53%);
}
.donut.d2 { background: conic-gradient(var(--blue-400) 0 38%, var(--blue-100) 38% 100%); }

.gantt { flex: 1; display: flex; flex-direction: column; justify-content: space-around;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #edf1f6 calc(12.5% - 1px) 12.5%); }
.gantt span { display: block; height: 7px; border-radius: 4px; margin-left: 8%; width: 36%; background: var(--navy-700); }
.gantt span:nth-child(2) { margin-left: 30%; width: 40%; }
.gantt span:nth-child(3) { margin-left: 52%; width: 38%; }
.gantt span:nth-child(4) { margin-left: 14%; width: 22%; }
.gantt span.mid { background: var(--blue-600); }
.gantt span.lite { background: var(--blue-300); }

.barset { flex: 1; display: flex; align-items: flex-end; gap: 7%; padding: 0 4px; border-bottom: 1px solid var(--line); }
.barset span { flex: 1; height: 45%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--blue-300) 0 35%, var(--navy-700) 35% 100%); }
.barset span:nth-child(2) { height: 62%; }
.barset span:nth-child(3) { height: 52%; }
.barset span:nth-child(4) { height: 80%; }
.barset span:nth-child(5) { height: 66%; }
.barset span:nth-child(6) { height: 92%; }

/* ---------- Sections ---------- */
.section { padding: 110px 0 100px; }
.eyebrow { font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.section h2 {
  margin-top: 12px;
  max-width: 22em;
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}
.steps li { position: relative; padding-top: 4px; }
.step-n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.1rem;
}
.steps h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.steps p { margin-top: 10px; color: var(--muted); }

.features {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feat {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
}
.feat h3 { font-size: 1.08rem; font-weight: 700; padding-left: 16px; border-left: 3px solid var(--blue-600); line-height: 1.3; }
.feat p { margin-top: 12px; color: var(--muted); font-size: .98rem; }

/* ---------- Contact ---------- */
.cta { background: var(--navy-700); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.cta p { margin-top: 8px; color: #d4e3f3; max-width: 36em; }

/* ---------- Pied de page ---------- */
.foot { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot img { width: 153px; }
.foot p { color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 80px; }
  .hero-text { max-width: 640px; }
  .hero-lines { width: 100%; opacity: .35; }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(1200px, 100% - 36px); }
  .top { padding-top: 28px; }
  .brand img { width: 220px; }
  .hero { padding: 36px 0 64px; }
  .actions { gap: 12px; }
  .actions .btn { flex: 1 1 100%; }
  .app { font-size: 9px; aspect-ratio: 16 / 13; }
  .node { padding: 6px 3px; font-size: 9px; }
  .flow-row { margin-top: 2px; }
  .flow-row.offset { margin-left: 12%; margin-top: 8px; }
  .card { padding: 7px 8px; }
  .card-t { margin-bottom: 4px; }
  .app-side { flex-basis: 14%; }
  .app-side span.on { font-size: 0; padding: 4px; height: 8px; }
  .section { padding: 72px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .features { margin-top: 52px; }
  .cta .btn { width: 100%; }
}
