/* ==========================================================================
   NoraOS — Site vitrine
   Palette reprise de l'app (frontend/.../_palette-variables.scss)
   ========================================================================== */

:root {
  --brand: #009FE3;
  --brand-dark: #0782b8;
  --brand-light: #e6f7fe;
  --secondary: #616D89;
  --ink: #342E49;
  --ink-soft: #5c5772;
  --muted: #8a889c;
  --success: #40C057;
  --warning: #F77E17;
  --danger: #F55252;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-alt: #f2f6fb;
  --border: #e7e8ee;
  --card-shadow: 0 10px 30px -12px rgba(52, 46, 73, 0.18);
  --card-shadow-hover: 0 18px 44px -14px rgba(0, 159, 227, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Rubik', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--alt { background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 100%); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(0,159,227,.6); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 12px 26px -8px rgba(0,159,227,.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.28); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, #00c2a8 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-family: var(--font-head); font-size: 1.15rem; box-shadow: 0 4px 12px -3px rgba(0,159,227,.6);
}
.wordmark .word { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.wordmark .word b { color: var(--brand); font-weight: 700; }
.wordmark--light .word { color: #fff; }
.wordmark--light .word b { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(0,159,227,.16), transparent 60%),
              linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.hero-trust b { color: var(--ink); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; font-size: .82rem; font-weight: 600; color: var(--secondary);
  margin-bottom: 22px; box-shadow: var(--card-shadow);
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* Hero mock panel */
.hero-visual { position: relative; }
.mock-window {
  background: #fff; border-radius: 18px; border: 1px solid var(--border);
  box-shadow: var(--card-shadow); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8dbe4; }
.mock-bar i:nth-child(1){ background:#f55; } .mock-bar i:nth-child(2){ background:#fb1; } .mock-bar i:nth-child(3){ background:#4c5; }
.mock-body { padding: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.kpi { background: var(--bg-soft); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }
.kpi .num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.kpi .num.up { color: var(--brand); }
.kpi .lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mock-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--border); font-size: .85rem; }
.mock-row .tag { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all .2s ease;
}
.card:hover { border-color: rgba(0,159,227,.4); box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 16px; font-size: 1.35rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Feature detail block */
.feature-block { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .fi-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; }
.feature-item h4 { font-family: var(--font-head); font-size: 1.02rem; margin: 2px 0 4px; }
.feature-item p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.pole { margin-bottom: 56px; }
.pole-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.pole-head .p-ico { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), #00c2a8); color:#fff; display:grid; place-items:center; font-size:1.4rem; flex:0 0 auto; }
.pole-head h2 { margin: 0; font-size: 1.6rem; }
.pole-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat .n { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--brand); }
.stat .t { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-weight: 600; color: var(--secondary); font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo-chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Integrations page ---------- */
.int-toolbar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.search-box { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.search-box input {
  width: 100%; padding: 15px 18px 15px 48px; border-radius: 999px;
  border: 1.5px solid var(--border); font-size: 1rem; font-family: var(--font);
  transition: border .15s; outline: none;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,159,227,.12); }
.search-box .s-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.chip {
  border: 1.5px solid var(--border); background: #fff; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .15s; user-select: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .c { opacity: .75; font-weight: 500; }

.int-count { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.int-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; transition: all .18s; display: flex; flex-direction: column; gap: 10px;
}
.int-card:hover { border-color: rgba(0,159,227,.5); box-shadow: var(--card-shadow); transform: translateY(-2px); }
.int-card .int-top { display: flex; align-items: center; gap: 12px; }
.int-logo {
  width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; color: #fff; text-transform: uppercase;
}
.int-card h3 { font-size: 1.05rem; margin: 0; }
.int-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.int-card p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.int-empty { text-align: center; color: var(--muted); padding: 50px 0; grid-column: 1/-1; }

/* ---------- Pricing ---------- */
.pricing-controls { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 42px; }
.toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px; gap: 4px; }
.toggle button { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-soft); transition: .15s; font-family: var(--font); }
.toggle button.active { background: #fff; color: var(--brand); box-shadow: var(--card-shadow); }
.toggle .save { font-size: .7rem; background: var(--success); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }

.users-picker { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px 8px 22px; }
.users-picker label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.users-picker .stepper { display: inline-flex; align-items: center; gap: 4px; }
.users-picker button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background:#fff; font-size: 1.2rem; cursor: pointer; color: var(--brand); line-height: 1; }
.users-picker button:hover { border-color: var(--brand); }
.users-picker .val { min-width: 44px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { border-color: var(--brand); box-shadow: var(--card-shadow-hover); transform: scale(1.02); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color:#fff; font-size: .72rem; font-weight: 700; padding: 5px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .plan-desc { color: var(--muted); font-size: .88rem; min-height: 40px; }
.plan .price { margin: 16px 0 4px; }
.plan .price .amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--ink); }
.plan .price .per { color: var(--muted); font-size: .9rem; }
.plan .price-note { color: var(--muted); font-size: .8rem; min-height: 18px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.plan ul li svg { flex: 0 0 auto; color: var(--success); margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan.custom .amount { font-size: 1.8rem; }

.pricing-faq { max-width: 760px; margin: 60px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h4 { margin: 0 0 6px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .ci-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; flex:0 0 auto; }
.contact-info h4 { margin: 0 0 2px; font-family: var(--font-head); font-size: 1rem; }
.contact-info p, .contact-info a { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--card-shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; outline: none; transition: border .15s; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,159,227,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #eafaef; color: #1d7a34; border: 1px solid #b6e6c3; }
.form-msg.err { display: block; background: #fdeaea; color: #b1332f; border: 1px solid #f4c2c1; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #0b7fb5 55%, #00b39a 120%);
  border-radius: 24px; padding: 56px 40px; text-align: center; color: #fff; margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfccdd; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h5 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #cfccdd; font-size: .92rem; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-about p { font-size: .92rem; color: #a9a6bd; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8f8ca6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 30px; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; height: auto; min-height: 70px; align-items: center; }
  .wordmark { order: 0; }
  .nav-toggle { display: block; order: 1; }
  .nav-links { order: 2; }
  .nav-cta { order: 3; }
  .nav-links, .nav-cta { display: none; flex-basis: 100%; width: 100%; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 16px; padding: 10px 0 16px;
    border-top: 1px solid var(--border); margin-top: 6px;
  }
  .nav.open .nav-cta { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
  .nav.open .nav-cta .btn { width: 100%; justify-content: center; }
  .section { padding: 54px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
