/* Sim Software — feuille de style unique, sans dépendance externe. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --soft: #eef3f8;
  --text: #0f1b2d;
  --muted: #4f5d73;
  --line: #dfe6ee;
  --brand: #0b5c8a;
  --brand-ink: #ffffff;
  --accent: #129c93;
  --shadow: 0 1px 2px rgb(15 27 45 / .06), 0 8px 24px rgb(15 27 45 / .06);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1320;
    --surface: #111c2e;
    --soft: #15233a;
    --text: #e8eef6;
    --muted: #a3b2c7;
    --line: #22324c;
    --brand: #4fb0e6;
    --brand-ink: #06121f;
    --accent: #3ccfc2;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.mark-bg { fill: var(--brand); }
.mark-s { fill: none; stroke: var(--brand-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--brand-ink); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid var(--brand);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* Accueil */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.lead { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-art { margin: 0; }
.mock { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgb(15 27 45 / .12)); }
.m-win { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.m-bar { fill: var(--soft); }
.m-dot { fill: var(--line); }
.m-side { fill: var(--soft); }
.m-card { fill: var(--bg); stroke: var(--line); }
.m-line { fill: var(--line); }
.m-brand { fill: var(--brand); }
.m-accent { fill: var(--accent); }

.facts {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.facts li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.facts strong { font-size: 17px; }
.facts span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--brand-ink); font-weight: 700;
}
.steps h3 { font-size: 18px; margin: 16px 0 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 48px;
  box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
.contact p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 12px; background: var(--soft);
}
.contact-list .k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.contact-list a { font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Page 404 */
.notfound { min-height: calc(100vh - 64px - 86px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.notfound p { color: var(--muted); margin: 12px 0 28px; font-size: 18px; }

/* Adaptation aux écrans */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 44px 0 40px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .facts, .grid, .steps { grid-template-columns: 1fr; }
  .facts { margin-top: 40px; }
  .section { padding: 64px 0; }
  .contact { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
