/* ═══════════════════════════════════════════════════════════════
   ai.velox-energy.com — Design System
   Charte : Deeptech sobre | Palantir / Tomorrow.io inspired
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #3A4A5C;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --ink:         #0B1F3A;
  --navy:        #0F2B5B;
  --teal:        #0E6B5E;
  --teal-mid:    #1D9E75;
  --teal-light:  #E0F4F0;
  --accent:      #00C9A0;

  /* Surfaces */
  --slate:       #F4F6F9;
  --white:       #FFFFFF;

  /* Texte */
  --text-body:   #3A4A5C;
  --text-muted:  #6B7A8D;
  --text-hint:   #9BA8B5;

  /* Bordures */
  --border:      #DDE3EC;
  --border-md:   #C4CDD8;

  /* Badges alertes */
  --wildfire-bg:  #FFF0E6; --wildfire-txt: #8B3A0F;
  --flood-bg:     #E6F0FF; --flood-txt:    #1A3A7A;
  --heat-bg:      #FFF5E6; --heat-txt:     #7A4A0A;
  --air-bg:       #F0F0FF; --air-txt:      #3A1A7A;
  --sand-bg:      #FDF5E6; --sand-txt:     #6B4A0A;
  --wind-bg:      #E6F5FF; --wind-txt:     #0A3A6B;

  /* Layout */
  --container:   1200px;
  --nav-h:       64px;

  /* Radius */
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-xl:   14px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,31,58,.06), 0 1px 2px rgba(11,31,58,.04);
  --shadow-md: 0 4px 16px rgba(11,31,58,.08), 0 2px 6px rgba(11,31,58,.04);
  --shadow-lg: 0 8px 32px rgba(11,31,58,.10), 0 4px 12px rgba(11,31,58,.06);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms;
  --t-med:  250ms;
}

/* ── Typography ────────────────────────────────────────────────── */
.t-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

.t-hero {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.t-hero em {
  font-style: normal;
  color: var(--teal);
}

.t-h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
}

.t-h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.t-h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.t-h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.t-body { font-size: 14px; color: var(--text-body); line-height: 1.7; }
.t-body-lg { font-size: 16px; color: var(--text-body); line-height: 1.7; }
.t-muted { font-size: 13px; color: var(--text-muted); }
.t-small { font-size: 12px; color: var(--text-muted); }

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }
.section-alt { background: var(--slate); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* ── Navigation ────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--ink);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}

.site-nav.scrolled {
  background: rgba(11,31,58,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-wordmark {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: .02em;
}

.nav-logo-wordmark span {
  color: var(--accent);
}

.nav-logo-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(14,107,94,.35);
  padding: 2px 6px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(14,107,94,.4);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
}

.nav-link.active {
  color: #FFFFFF;
  background: rgba(255,255,255,.08);
}

/* Nav actions */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-lang {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  padding: 5px 10px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.12);
  transition: color var(--t-fast), border-color var(--t-fast);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav-lang:hover {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.25);
}

.nav-lang.active {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

/* Nav CTA */
.btn-nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--teal);
  padding: 8px 18px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: #0A5A4E;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  height: 1.5px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease),
              opacity var(--t-fast) var(--ease);
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: .25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
}

.nav-mobile-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: .25rem;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #162D4D; border-color: #162D4D; }

.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover { background: #0A5A4E; border-color: #0A5A4E; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
}

.btn-lg { font-size: 15px; padding: 13px 28px; }
.btn-sm { font-size: 12px; padding: 7px 14px; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  transition: box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.card-flat {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
}

.card-slate {
  background: var(--slate);
  border: none;
  border-radius: var(--r-xl);
  padding: 1.5rem;
}

.card-featured {
  border: 1.5px solid var(--teal);
}

/* ── Tier Cards ────────────────────────────────────────────────── */
.tier-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow var(--t-med), border-color var(--t-med), transform var(--t-med);
}

.tier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tier-card.featured {
  border: 1.5px solid var(--teal);
  position: relative;
}

.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

.tier-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tier-price {
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.tier-price-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-price-annual {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tier-divider {
  height: 0.5px;
  background: var(--border);
  margin-bottom: 16px;
}

.tier-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.4;
}

.tier-feature-dot {
  width: 5px; height: 5px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.tier-cta { margin-top: 20px; }

/* ── Alert badges ──────────────────────────────────────────────── */
.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
  white-space: nowrap;
}

.alert-wildfire { background: var(--wildfire-bg); color: var(--wildfire-txt); }
.alert-flood    { background: var(--flood-bg);    color: var(--flood-txt); }
.alert-heat     { background: var(--heat-bg);     color: var(--heat-txt); }
.alert-air      { background: var(--air-bg);      color: var(--air-txt); }
.alert-sand     { background: var(--sand-bg);     color: var(--sand-txt); }
.alert-wind     { background: var(--wind-bg);     color: var(--wind-txt); }

/* ── Data chips ────────────────────────────────────────────────── */
.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: var(--r-md);
  letter-spacing: .01em;
}

.data-chip-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

/* ── Industry cards ────────────────────────────────────────────── */
.industry-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--t-med), border-color var(--t-med), transform var(--t-med);
}

.industry-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.industry-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-lg);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 20px;
}

.industry-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.industry-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Section headers ───────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .t-eyebrow { margin-bottom: 10px; }
.section-header .t-h2 { margin-bottom: 12px; }
.section-header .t-body { max-width: 520px; margin: 0 auto; }

/* ── KPI stats ─────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.kpi-item {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}

.kpi-value {
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.kpi-value span { color: var(--teal); }

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Page header (inner pages) ─────────────────────────────────── */
.page-header {
  background: var(--ink);
  padding: 100px 0 64px;
  margin-top: var(--nav-h);
}

.page-header .t-eyebrow { margin-bottom: 12px; }
.page-header .t-h1 { color: #fff; margin-bottom: 16px; }
.page-header .t-body-lg { color: rgba(255,255,255,.65); max-width: 560px; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-name span { color: var(--accent); }

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  padding: 3px 0;
  transition: color var(--t-fast);
}

.footer-link:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

/* ── Utility ───────────────────────────────────────────────────── */
.main-content { margin-top: var(--nav-h); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-sm { margin-top: .5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mb-sm { margin-bottom: .5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

.divider {
  height: 0.5px;
  background: var(--border);
  margin: 2rem 0;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-hint); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,107,94,.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ── Tag strip ─────────────────────────────────────────────────── */
.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Insight cards ─────────────────────────────────────────────── */
.insight-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow var(--t-med), transform var(--t-med);
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.insight-card-img {
  width: 100%; height: 180px;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-hint);
  font-size: 36px;
}

.insight-card-body { padding: 1.25rem; }
.insight-card-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.insight-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.insight-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.insight-card-meta {
  font-size: 12px;
  color: var(--text-hint);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .container, .container-sm { padding: 0 1.25rem; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }

  .nav-links,
  .nav-actions { display: none; }

  .nav-burger { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .grid-auto { grid-template-columns: 1fr; }

  .t-hero { font-size: 26px; }
  .t-h1   { font-size: 22px; }
  .t-h2   { font-size: 18px; }

  .page-header { padding: 80px 0 48px; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .tier-card { padding: 1.25rem; }
}
