/* =============================================================================
   strixmdm.ca — page vitrine. Palette Strix : vert foncé #043538 · bleu canard
   #0B545B · sarcelle #5AA395 · ciel #E6F2FF · menthe #CCF8E1. Titres Agrandir,
   corps DM Sans.
   ============================================================================= */
@font-face { font-family: "Agrandir"; src: url("/assets/fonts/Agrandir-TextBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Agrandir"; src: url("/assets/fonts/Agrandir-GrandHeavy.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Agrandir"; src: url("/assets/fonts/Agrandir-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --fonce: #043538; --canard: #0B545B; --sarcelle: #5AA395; --ciel: #E6F2FF; --menthe: #CCF8E1; --rouge: #E22239;
  --ink: #0F2325; --ink-2: #3B5255; --muted: #6E8286; --line: #DCE6E6; --bg: #FFFFFF; --bg-2: #F3F8F7; --amber: #B7791F;
  --display: "Agrandir", "DM Sans", system-ui, sans-serif; --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1160px; --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--canard); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--canard); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--sarcelle); border-radius: 3px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 58ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
section { padding: 96px 0; }
section.alt { background: var(--bg-2); }
.sec-head { max-width: 720px; margin-bottom: 52px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-family: var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--canard); color: #fff; box-shadow: 0 8px 24px rgba(11, 84, 91, .28); }
.btn.primary:hover { background: var(--fonce); }
.btn.light { background: #fff; color: var(--fonce); border-color: var(--line); }
.btn.light:hover { border-color: var(--sarcelle); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { border-color: #fff; }
.btn.lg { padding: 16px 28px; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fonce); font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo small { display: block; font-family: var(--body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--canard); }
.nav .btn { padding: 10px 18px; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--fonce); }

/* Hero */
.hero { position: relative; padding: 80px 0 60px; background: radial-gradient(900px 500px at 85% -10%, #d8ece8 0%, transparent 60%), radial-gradient(700px 400px at -10% 30%, #e6f2ff 0%, transparent 60%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--canard); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: var(--menthe); z-index: -1; border-radius: 4px; }
.hero .lead { margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .cta small { color: var(--muted); font-size: .9rem; width: 100%; margin-top: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.trust span::before { content: "✓ "; color: var(--sarcelle); font-weight: 900; }

/* Maquette dashboard (hero) */
.mock { position: relative; }
.frame { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(4, 53, 56, .22), 0 2px 8px rgba(4, 53, 56, .08); overflow: hidden; border: 1px solid var(--line); font-size: 13px; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F4F7F7; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9E0E0; }
.frame-bar i:nth-child(1) { background: #F87171; } .frame-bar i:nth-child(2) { background: #FBBF24; } .frame-bar i:nth-child(3) { background: #34D399; }
.frame-bar span { margin-left: 10px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 6px; flex: 1; }
.app { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.app-side { background: linear-gradient(180deg, var(--canard), var(--fonce)); color: #d8e6e6; padding: 14px 10px; font-size: 12px; }
.app-side .b { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; margin-bottom: 16px; font-size: 13px; }
.app-side .b img { width: 24px; border-radius: 7px; }
.app-side .h { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin: 12px 8px 6px; }
.app-side div.i { padding: 6px 9px; border-radius: 7px; }
.app-side div.i.on { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.app-main { padding: 16px 18px; background: #FAFCFC; }
.app-main .crumb { color: var(--muted); font-size: 11.5px; margin-bottom: 10px; }
.app-main .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.app-main .top b { font-size: 16px; font-family: var(--display); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 11.5px; }
.chip.go { background: var(--fonce); color: #fff; border-color: var(--fonce); cursor: pointer; }
.chip.stop { color: var(--rouge); border-color: #F5C2C7; cursor: pointer; }
.chip.timer { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .03em; }
.quick { display: none; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; margin-bottom: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.quick .q { padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-weight: 600; background: #fff; }
.quick .q.on { background: #2FA36B; color: #fff; border-color: #2FA36B; }
.mock.live .quick { display: flex; }
.mock.live .idle { display: none; }
.mock:not(.live) .busy { display: none; }
.tbl { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tbl .r { display: grid; grid-template-columns: 1.5fr 1fr .9fr .6fr; padding: 8px 12px; border-bottom: 1px solid var(--line); align-items: center; font-size: 12px; }
.tbl .r:last-child { border: 0; }
.tbl .r.h { background: #F4F7F7; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.tbl .r b { font-weight: 600; }
.tbl .r .st { color: var(--muted); font-size: 11px; }
.tbl .r .st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2FA36B; margin-right: 5px; }
.tbl .r .st.lock::before { background: #6B3FD6; }
.tbl .r .bat { font-weight: 700; }
.tbl .r .bat.low { color: #E36414; }
.float { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(4, 53, 56, .2); padding: 12px 16px; font-size: .88rem; border: 1px solid var(--line); animation: floaty 6s ease-in-out infinite; }
.float b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--fonce); }
.float.f1 { right: -18px; top: 22px; animation-delay: -2s; }
.float.f2 { left: -26px; bottom: 34px; }
.float .ok { color: #2FA36B; font-weight: 700; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Bandeau chiffres */
.stats { padding: 34px 0; border-block: 1px solid var(--line); background: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats b { display: block; font-family: var(--display); font-size: 2rem; color: var(--fonce); line-height: 1; margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Personas (3 colonnes) */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; position: relative; overflow: hidden; }
.persona .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; background: var(--ciel); margin-bottom: 18px; }
.persona h3 { margin-bottom: 8px; }
.persona p { color: var(--ink-2); font-size: .97rem; }
.persona a { font-weight: 700; text-decoration: none; }

/* Feature "split" (image + texte) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.rev > :first-child { order: 2; }
.split h2 { margin-bottom: 16px; }
.split .lead { font-size: 1.08rem; }
.shot { border-radius: 14px; box-shadow: 0 24px 60px rgba(4, 53, 56, .18); border: 1px solid var(--line); background: #fff; }
.shot.phone { width: min(330px, 100%); margin-inline: auto; border-radius: 34px; padding: 10px; background: #0f1a1b; border: 0; box-shadow: 0 30px 70px rgba(4, 53, 56, .3); }
.shot.phone img { border-radius: 26px; }
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.phones .shot.phone:nth-child(2) { margin-top: 48px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--fonce); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: .97rem; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--menthe); color: var(--fonce); font-weight: 900; font-size: .8rem; display: grid; place-items: center; }
.checks li b { color: var(--ink); }

/* Grille de fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: .2s; }
.feat:hover { border-color: var(--sarcelle); box-shadow: 0 12px 30px rgba(4, 53, 56, .08); transform: translateY(-2px); }
.feat .ic { font-size: 1.5rem; margin-bottom: 10px; }
.feat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.feat .tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--canard); background: var(--ciel); padding: 2px 8px; border-radius: 6px; margin-top: 10px; }

/* Tableau capacités */
.cap { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.cap th, .cap td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.cap th { background: var(--fonce); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.cap th:not(:first-child), .cap td:not(:first-child) { text-align: center; width: 120px; }
.cap tr:last-child td { border: 0; }
.cap .grp td { background: var(--bg-2); font-weight: 700; color: var(--fonce); }
.cap .y { color: #2FA36B; font-weight: 900; }
.cap .p { color: var(--amber); font-weight: 900; }
.cap .n { color: #C4CDCD; }
.legend { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.table-wrap { overflow-x: auto; }

/* Architecture */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.diagram { background: var(--fonce); color: #fff; border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.diagram::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 163, 149, .35), transparent 70%); }
.diagram .node { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 12px 16px; font-family: ui-monospace, monospace; font-size: .88rem; position: relative; }
.diagram .node b { display: block; font-family: var(--body); font-size: .8rem; color: var(--menthe); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.diagram .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.diagram .link { text-align: center; color: var(--sarcelle); font-size: 1.3rem; line-height: 1; margin: 6px 0; }
.diagram .foot { margin-top: 18px; font-size: .85rem; color: #BFD3D1; }
.diagram .foot span { display: inline-block; margin-right: 14px; }
.diagram .foot span::before { content: "● "; color: var(--sarcelle); }

/* Démarrage (4 étapes horizontales) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: t; }
.timeline div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; position: relative; }
.timeline div::before { counter-increment: t; content: "0" counter(t); font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--sarcelle); display: block; margin-bottom: 8px; line-height: 1; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sarcelle); font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--fonce), var(--canard)); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact h2, .contact .eyebrow { color: #fff; }
.contact .lead { color: #D6E6E4; }
.contact .direct { margin-top: 28px; font-size: 1rem; color: #D6E6E4; }
.contact .direct a { color: #fff; font-weight: 700; }
.contact .direct b { display: block; color: #fff; font-family: var(--display); margin-top: 20px; }
form.card { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.kinds label { border: 2px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; font-weight: 700; font-size: .95rem; transition: .15s; }
.kinds label small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.kinds input { display: none; }
.kinds input:checked + label { border-color: var(--canard); background: var(--ciel); color: var(--fonce); }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg .full { grid-column: 1 / -1; }
.f label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: .97rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: 0; transition: .15s; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--sarcelle); box-shadow: 0 0 0 4px rgba(90, 163, 149, .2); }
.f textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
form .btn { width: 100%; margin-top: 8px; }
.form-msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: var(--menthe); color: var(--fonce); }
.form-msg.err { display: block; background: #FDECEE; color: #C8102E; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* Footer */
footer { padding: 40px 0; color: var(--muted); font-size: .9rem; background: #fff; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; margin-left: 18px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero .wrap, .split, .arch, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
  .hero { padding: 48px 0 40px; }
  .frame { transform: none; font-size: 12.5px; }
  .float.f1 { right: 0; top: -14px; } .float.f2 { left: 0; bottom: -18px; }
  .stats .wrap, .timeline { grid-template-columns: repeat(2, 1fr); }
  .personas, .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav .btn { display: none; }
  .burger { display: block; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stats .wrap, .timeline, .personas, .features, .kinds, .fg { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; } .app-side { display: none; }
  .phones { flex-direction: column; align-items: center; } .phones .shot.phone:nth-child(2) { margin-top: 0; }
  .float { position: static; margin-top: 12px; animation: none; display: inline-block; }
  form.card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .float, .reveal { animation: none; transition: none; } .reveal { opacity: 1; transform: none; } }
