/* NubiMind FinOps : theme clair, couleurs de la charte NubiMind (corpo-nubimind/design/logo/README.md) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --soft-2: #eef2fa;
  --ink: #0b1324;
  --text: #33405a;
  --muted: #5b6782;
  --line: #e3e8f0;
  --blue: #2453e6;
  --blue-dark: #1b3fb8;
  --blue-soft: #eaf0fe;
  --teal: #0b7a8a;
  --teal-soft: #e3f4f6;
  --orange: #e8590c;
  --yellow: #d99a06;
  --danger: #c2410c;
  --shadow: 0 12px 32px rgba(11, 19, 36, .08);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }

/* En-tete */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand-group { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; height: 28px; width: auto; }
.safety-note { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-size: .8rem; font-weight: 500; }
.safety-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
@media (max-width: 1180px) { .brand-group .safety-note { display: none; } }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.language-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); }
.lang-button { width: 32px; height: 30px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 600; cursor: pointer; }
.lang-button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.start { min-height: 40px; padding: 0 18px; border-radius: 10px; background: var(--blue); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; }
.start:hover, .start:focus-visible { background: var(--blue-dark); }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:hover, .button:focus-visible { border-color: #c9d2e3; background: var(--soft); }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover, .button.primary:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button.dark:hover, .button.dark:focus-visible { background: #1d2740; }
.button[disabled] { cursor: wait; opacity: .7; }

/* Accroche */
.hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.kicker { margin: 0 0 14px; color: var(--blue); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--blue); }
h1 { margin-bottom: 18px; max-width: 600px; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h1 .mark { white-space: nowrap; background: linear-gradient(transparent 62%, var(--blue-soft) 62%); }
.hero-lead { max-width: 560px; margin-bottom: 26px; color: var(--muted); font-size: 1.08rem; }

.posture { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.posture-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.scan-state { padding: 3px 10px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font-size: .68rem; font-weight: 600; letter-spacing: .06em; }
.posture-body { margin-top: 22px; display: grid; grid-template-columns: 104px 1fr; gap: 24px; align-items: center; }
.score { width: 104px; height: 104px; border: 9px solid var(--soft-2); border-right-color: var(--blue); border-top-color: var(--blue); border-radius: 50%; display: grid; place-items: center; transform: rotate(-45deg); }
.score strong { transform: rotate(45deg); text-align: center; color: var(--ink); font-size: 1.6rem; line-height: .8; }
.score small { display: block; margin-top: 6px; color: var(--muted); font-size: .65rem; font-weight: 500; }
.legend { display: grid; gap: 9px; font-size: .82rem; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: center; }
.legend-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.legend-row:nth-child(2) i { background: var(--yellow); }
.legend-row:nth-child(3) i { background: var(--teal); }
.legend-row b { color: var(--ink); font-weight: 600; text-align: right; }
.scan-bars { margin-top: 24px; display: grid; gap: 10px; }
.scan-line { display: grid; grid-template-columns: 96px 1fr 64px; gap: 10px; align-items: center; color: var(--muted); font-size: .75rem; }
.track { height: 5px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--blue); }

.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 20px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--ink); font-size: 1.2rem; line-height: 1.2; }
.fact span { color: var(--muted); font-size: .82rem; }

/* Sections */
section { padding: 80px 0; }
.section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: end; margin-bottom: 40px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
h2 { margin-bottom: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.section-head > p { max-width: 600px; margin-bottom: 4px; color: var(--muted); }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer { display: flex; flex-direction: column; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.offer:last-child { border-color: #c9d6fb; box-shadow: var(--shadow); }
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.offer-type { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.offer-badge { padding: 4px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: .72rem; font-weight: 600; }
.offer h3 { margin: 20px 0 8px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.015em; }
.offer-intro { color: var(--muted); min-height: 52px; }
.price { margin: 12px 0 22px; display: flex; align-items: baseline; gap: 8px; }
.price strong { color: var(--ink); font-size: 1.8rem; letter-spacing: -.02em; }
.price span { color: var(--muted); font-size: .85rem; }
.offer ul { margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; }
.offer li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--text); font-size: .92rem; }
.offer li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.offer .button { margin-top: auto; align-self: flex-start; }
.checkout-status { min-height: 22px; margin: 14px 0 0; color: var(--danger); font-size: .85rem; text-align: center; }

.method { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: .85rem; font-weight: 700; }
.step h3 { margin: 16px 0 6px; font-size: 1.05rem; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deliverable { min-width: 0; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.deliverable svg { width: 34px; height: 34px; color: var(--blue); }
.deliverable h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.deliverable p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.brief { padding-top: 16px; }
.brief-box { display: grid; grid-template-columns: .95fr 1.05fr; gap: 12px; padding: 12px; border: 1px solid #d6e1fb; border-radius: 18px; background: var(--blue-soft); }
.brief-copy { padding: clamp(24px, 4vw, 40px); }
.brief-copy p:last-child { margin: 14px 0 0; max-width: 460px; color: var(--text); }
.brief-panel { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-weight: 600; cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.brief-summary { margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.brief-summary small { color: var(--muted); }
.brief-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 1.02rem; }
.brief-summary span { color: var(--muted); font-size: .92rem; }
.copy-status { min-height: 22px; margin: 10px 0 0; color: var(--teal); font-size: .85rem; }

footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

/* Page contact */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero .hero-lead { margin-bottom: 0; }
.contact { padding-top: 32px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.info-card h2 { margin-bottom: 6px; font-size: 1rem; letter-spacing: 0; }
.info-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.form-card { padding: clamp(22px, 3.5vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .88rem; font-weight: 600; }
.field label .optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfd7e6; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: .95rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 1em; color: var(--danger); font-size: .8rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-note { margin: 0; color: var(--muted); font-size: .8rem; max-width: 360px; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--teal-soft); color: #075a66; }
.form-status.error { background: #fdece4; color: var(--danger); }

@media (max-width: 860px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-grid, .section-head, .brief-box, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .section-head { gap: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact:nth-child(3) { padding-left: 0; }
  .offers, .steps, .deliverables { grid-template-columns: 1fr; }
  .offer-intro { min-height: auto; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .topbar-inner { min-height: 60px; gap: 12px; }
  .brand img { height: 22px; }
  .header-actions { gap: 6px; }
  .language-switch { padding: 2px; }
  .lang-button { width: 28px; height: 28px; font-size: .66rem; }
  .start { min-height: 34px; padding-inline: 12px; font-size: .8rem; }
  .hero { padding-top: 40px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .posture { padding: 20px 16px; }
  .posture-body { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
  .facts { margin-top: 44px; }
  .fact { padding: 16px 12px; }
  .fact strong { font-size: 1.05rem; }
  section { padding: 60px 0; }
  .offer { padding: 24px 20px; }
  .offer .button { align-self: stretch; }
  .choice-row, .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .form-footer .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
