/* NoviOps — site vitrine. Couleurs reprises du logo. */
:root {
  --navy: #0b1220;
  --navy-2: #111a2e;
  --navy-line: #1f2d45;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #5b6678;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --blue: #1d5fd6;
  --blue-dark: #174cad;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font: 600 16px/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #475569; }
.btn-ghost:hover { border-color: #94a3b8; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Héros ---------- */
.hero { background: var(--navy); color: #e2e8f0; padding: 72px 0 0; overflow: hidden; }
.hero .kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--sky-light); letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cbd5e1; max-width: 720px; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero .proof { font-size: 14px; color: #94a3b8; margin: 0 0 48px; display: flex; align-items: center; gap: 8px; }
.hero .proof svg { flex-shrink: 0; color: var(--sky-light); }
.hero-shot { margin-bottom: -2px; }
.hero-shot .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* ---------- Cadre de fenêtre ---------- */
.frame { background: #fff; border: 1px solid #cbd5e1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 12px 32px -12px rgba(15,23,42,.22); }
.hero .frame { border-color: var(--navy-line); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f5; border-bottom: 1px solid #dde3ea; }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c7ced8; }
.frame-bar em { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-2); margin: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 8px; background: #e8f0fd; color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* Fonctions alternées */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.rev .feature-text { order: 2; }
.feature h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; }
.feature .tag { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.feature p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 0 0 9px; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.checks strong { color: var(--ink); font-weight: 600; }

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }

/* Mobile */
.mobile-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
.phone { max-width: 300px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink); box-shadow: 0 16px 36px -14px rgba(15,23,42,.35); }
.phone img { border-radius: 24px; }

/* Québec */
.qc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.qc .card h3 { font-size: 1.05rem; }

/* Intégrations */
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.integrations li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.integrations strong { display: block; font-size: 15.5px; }
.integrations span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }

/* Démo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.steps .thumb { border-bottom: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16 / 10; overflow: hidden; }
.steps .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.steps .body { padding: 18px 20px 22px; }
.steps h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; }
.steps h3::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; position: relative; top: -2px; }
.steps p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.steps .where { display: block; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: 8px; padding: 16px 18px; margin-top: 28px; color: var(--ink-2); font-size: 15.5px; }
.notice svg { flex-shrink: 0; color: var(--sky); margin-top: 2px; }
.center-cta { text-align: center; margin-top: 32px; }

/* Forfaits */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--blue); }
.plan .badge { position: absolute; top: -13px; left: 26px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--ink-3); font-size: 15px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { color: var(--ink-3); font-size: 15px; }
.plan .unit { color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }
.plan .checks { margin-bottom: 26px; flex: 1; }
.plan .btn { width: 100%; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 22px; text-align: center; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { color: var(--ink-2); padding-right: 40px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.contact-aside p { color: var(--ink-2); }
.contact-aside .checks { margin-top: 18px; }
form.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #94a3b8; border-radius: 7px; padding: 11px 12px; min-height: 46px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(14,165,233,.35); outline-offset: 0; border-color: var(--sky); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--ink-3); font-size: 13.5px; flex: 1; min-width: 200px; }
.status { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 15.5px; display: none; }
.status.show { display: block; }
.status.ok { background: #ecfdf3; border: 1px solid #a7e3bd; color: #14532d; }
.status.err { background: #fef2f2; border: 1px solid #f5b5b5; color: #7f1d1d; }

/* Pied de page */
.site-footer { background: var(--navy); color: #94a3b8; padding: 48px 0 36px; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer img { height: 32px; width: auto; margin-bottom: 12px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer p { margin: 0 0 6px; }

/* Pages secondaires */
.page-head { background: var(--navy); color: #cbd5e1; padding: 56px 0 48px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-head p { max-width: 720px; font-size: 1.1rem; margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.domain { padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.domain:first-child { border-top: 0; padding-top: 0; }
.domain h2 { font-size: 1.4rem; }
.domain > div > p { color: var(--ink-2); font-size: 15.5px; }
.domain .checks { columns: 2; column-gap: 32px; }
.domain .checks li { break-inside: avoid; }

/* Visionneuse */
dialog.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.viewer::backdrop { background: rgba(8,12,22,.85); }
dialog.viewer img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: 8px; }
dialog.viewer .close { position: fixed; top: 14px; right: 14px; background: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font: 600 15px var(--font); cursor: pointer; }
dialog.viewer p { color: #e2e8f0; text-align: center; font-size: 15px; margin: 10px 0 0; }

/* ---------- Adaptatif ---------- */
@media (max-width: 1080px) {
  .qc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { gap: 36px; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .menu-btn { display: inline-flex; }
  .feature, .feature.rev { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature.rev .feature-text { order: 0; }
  .cards, .plans, .steps { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 520px; margin: 0 auto; gap: 28px; }
  .contact, .mobile-row, .domain { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .domain .checks { columns: 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { padding-top: 44px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .hero .proof { margin-bottom: 32px; }
  .qc, .steps, .mini-grid, .row2 { grid-template-columns: minmax(0, 1fr); }
  .row2 { gap: 0; }
  form.lead-form { padding: 20px; }
  .card { padding: 22px; }
  .frame-bar { height: 24px; }
  .frame-bar span { width: 8px; height: 8px; }
  .brand img { height: 30px; }
}
@media (max-width: 640px) {
  .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .integrations li { padding: 12px; }
  .integrations strong { font-size: 15px; }
  .integrations span { font-size: 13px; }
}
