/* ============================================================
   Réactis — Design system (site vitrine)
   ============================================================ */

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

:root {
  --navy:    #0f172a;
  --navy2:   #1e293b;
  --navy3:   #334155;
  --blue:    #2563eb;
  --blue2:   #1d4ed8;
  --blue-l:  #3b82f6;
  --sky:     #0ea5e9;
  --green:   #16a34a;
  --green-l: #22c55e;
  --amber:   #f59e0b;
  --red:     #dc2626;
  --orange:  #f97316;
  --violet:  #7c3aed;
  --slate:   #64748b;
  --slate2:  #475569;
  --light:   #f1f5f9;
  --lighter: #f8fafc;
  --border:  #e2e8f0;
  --white:   #ffffff;
  --radius:  14px;
  --radius-sm: 8px;
  --shadow:  0 8px 32px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.16);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,23,42,.85); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s, box-shadow .25s;
}
nav.site-nav.scrolled { background: rgba(15,23,42,.97); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; width: 32px; }
.nav-logo-name { font-size: 17px; font-weight: 800; color: white; letter-spacing: -.2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--blue-l); }
.nav-cta {
  background: var(--blue); color: white; border: none; border-radius: var(--radius-sm);
  padding: 9px 20px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: all .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.4); }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--navy2); flex-direction: column; align-items: flex-start; padding: 24px 32px; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-120%); opacity: 0; transition: all .25s; pointer-events: none; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
}

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(37,99,235,.15);
  border: 1px solid rgba(59,130,246,.35); border-radius: 100px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; color: #93c5fd; letter-spacing: .06em; text-transform: uppercase;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-l); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── HERO ── */
.hero {
  min-height: 100vh; background: var(--navy); position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 140px 24px 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(37,99,235,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(14,165,233,.15) 0%, transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-2%, 2%) scale(1.05); } }
.hero-grid { position: relative; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; color: white; line-height: 1.12; letter-spacing: -.02em; margin: 22px 0 22px; }
.hero h1 span { color: var(--blue-l); }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.6); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.5); }
.hero-trust-item .dot { color: var(--green-l); font-size: 15px; }

.btn-primary {
  background: var(--blue); color: white; border: none; border-radius: 10px; padding: 15px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,.4); }
.btn-secondary {
  background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  padding: 15px 28px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-dark {
  background: var(--navy); color: white; border: none; border-radius: 10px; padding: 15px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-dark:hover { background: #1e293b; transform: translateY(-2px); }

/* ── Mockup device (fake screenshot) ── */
.mock-window {
  background: var(--navy2); border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-body { padding: 18px; }
.mock-shot { display: block; width: 100%; height: auto; }
.mock-shot-wrap { max-height: 480px; overflow: hidden; }
.mock-row { display: flex; align-items: flex-start; gap: 10px; background: rgba(255,255,255,.04); border-left: 3px solid var(--blue-l); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 12.5px; color: rgba(255,255,255,.8); }
.mock-row.action { border-color: var(--green-l); }
.mock-row.alerte { border-color: var(--red); }
.mock-row.decision { border-color: var(--violet); }
.mock-row .tag { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; margin-right: 6px; flex-shrink: 0; }
.mock-row.info .tag { background: rgba(59,130,246,.2); color: #93c5fd; }
.mock-row.action .tag { background: rgba(34,197,94,.2); color: #86efac; }
.mock-row.alerte .tag { background: rgba(220,38,38,.2); color: #fca5a5; }
.mock-row.decision .tag { background: rgba(124,58,237,.2); color: #ddd6fe; }
.mock-time { font-size: 10px; color: rgba(255,255,255,.35); margin-left: auto; flex-shrink: 0; }

/* ── Mockup variants (pour différencier visuellement chaque écran mocké) ── */
.mock-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 12px; color: rgba(255,255,255,.4); }
.mock-type-pills { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.mock-pill { font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 100px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.08); }
.mock-pill.active { background: var(--blue); color: white; border-color: var(--blue); }
.mock-export-btn { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: white; font-size: 11.5px; font-weight: 700; padding: 9px; border-radius: 8px; margin-top: 4px; }

.mock-channel-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border-radius: 8px; margin-bottom: 10px; }
.mock-channel-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; flex-shrink: 0; }
.mock-channel-body { flex: 1; min-width: 0; }
.mock-channel-title { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600; }
.mock-channel-sub { font-size: 10.5px; color: rgba(255,255,255,.4); margin-top: 1px; }
.mock-sent-badge { font-size: 10px; font-weight: 800; color: #86efac; flex-shrink: 0; }

.mock-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-report-cell { background: rgba(255,255,255,.05); border-radius: 10px; padding: 14px 10px; text-align: center; }
.mock-report-val { font-size: 19px; font-weight: 900; color: #93c5fd; }
.mock-report-label { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 4px; }

.mock-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-tab { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); padding: 10px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.mock-tab.active { color: white; border-color: var(--blue-l); }
.mock-progress-mini { height: 5px; background: rgba(255,255,255,.08); border-radius: 100px; overflow: hidden; margin: 2px 0 14px; }
.mock-progress-mini-bar { height: 100%; background: var(--orange); border-radius: 100px; }
.mock-checklist-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 12px; color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-checklist-item:last-child { border-bottom: none; }
.mock-check-circle { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); flex-shrink: 0; }
.mock-check-circle.done { background: #16a34a; border-color: #16a34a; position: relative; }
.mock-checklist-item.done { color: rgba(255,255,255,.4); text-decoration: line-through; }

.mock-urgent-card { padding: 11px 12px; border-radius: 8px; margin-bottom: 10px; background: rgba(239,68,68,.1); border-left: 3px solid #ef4444; }
.mock-urgent-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mock-urgent-tag { font-size: 8.5px; font-weight: 800; color: white; background: #ef4444; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.mock-urgent-role { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.9); }
.mock-urgent-text { font-size: 11.5px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 8px; }
.mock-btn-row { display: flex; gap: 5px; flex-wrap: wrap; }
.mock-mini-btn { font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 5px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.mock-mini-btn.primary { background: #16a34a; color: white; }

/* ── STATS ── */
.stats { background: var(--navy2); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 40px 24px; }
.stats-inner { max-width: 980px; margin: 0 auto; display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-val { font-size: 34px; font-weight: 900; color: white; line-height: 1; }
.stat-val span { color: var(--blue-l); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 6px; }

/* ── SECTIONS ── */
section { padding: 100px 24px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 800px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; color: var(--navy); letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.18; }
.section-sub { font-size: 16.5px; color: var(--slate); }
.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); }
.bg-navy .section-title { color: white; }
.bg-navy .section-sub { color: rgba(255,255,255,.55); }
.bg-navy .section-tag { color: #93c5fd; }

/* ── Feature grid / cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: all .25s; position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { border-color: #bfdbfe; box-shadow: 0 12px 32px rgba(37,99,235,.12); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.card-title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.card-desc { font-size: 14.5px; color: var(--slate); line-height: 1.7; }

.icon-blue   { background: #eff6ff; color: var(--blue); }
.icon-green  { background: #f0fdf4; color: var(--green); }
.icon-red    { background: #fef2f2; color: var(--red); }
.icon-violet { background: #f5f3ff; color: var(--violet); }
.icon-amber  { background: #fffbeb; color: #d97706; }
.icon-sky    { background: #f0f9ff; color: var(--sky); }

/* ── Pillar / numbered steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-num { width: 50px; height: 50px; background: var(--blue); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: white; margin-bottom: 18px; }
.step-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--slate); line-height: 1.7; }

/* ── Split (image/text) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text p { font-size: 15.5px; color: var(--slate2); line-height: 1.8; margin-bottom: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--slate2); margin-bottom: 12px; }
.check-list li .ck { color: var(--green); font-weight: 900; flex-shrink: 0; }

/* ── Timeline (sécurité / process) ── */
.tl-item { display: flex; gap: 18px; padding-bottom: 32px; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--border); }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.tl-title { font-weight: 800; color: var(--navy); margin-bottom: 4px; font-size: 15.5px; }
.tl-desc { font-size: 14px; color: var(--slate); line-height: 1.7; }

/* ── Status badge (honnêteté sécurité) ── */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 100px; }
.status-live  { background: #f0fdf4; color: #15803d; }
.status-plan  { background: #fffbeb; color: #b45309; }

/* ── FAQ accordion ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 15.5px; color: var(--navy); background: white; }
.faq-q .chev { transition: transform .25s; color: var(--blue); font-size: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--lighter); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 4px 24px 22px; font-size: 14.5px; color: var(--slate2); line-height: 1.75; }

/* ── Contact ── */
.contact-box { background: var(--navy2); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.form-field input, .form-field textarea, .form-field select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  padding: 12px 14px; color: white; font-size: 14.5px; font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,.3); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--blue-l); }

/* ── Footer ── */
footer.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.06); padding: 56px 40px 28px; }
.footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-row img { height: 28px; width: 28px; }
.footer-brand-name { font-size: 16px; font-weight: 800; color: white; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,.4); max-width: 260px; line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.3); }

/* ── Page header (sub-pages) ── */
.page-hero { background: var(--navy); padding: 150px 24px 70px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37,99,235,.2) 0%, transparent 70%); }
.page-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.page-hero .section-tag { color: #93c5fd; justify-content: center; display: flex; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: white; letter-spacing: -.02em; margin: 14px 0 16px; line-height: 1.15; }
.page-hero p { font-size: 16.5px; color: rgba(255,255,255,.55); max-width: 560px; margin: 0 auto; }

/* ── Utility ── */
.mt-lg { margin-top: 56px; }
.text-center { text-align: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 72px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  nav.site-nav { padding: 0 20px; }
}
