/* ============================================================
   Gesti-Pro — Vitrine officielle · style.css  (THÈME CLAIR)
   Charte : Navy #0D1B2A · Or #FFB300 · Typo Inter
   Fond blanc, texte navy, accents or — design system tokenisé
   ============================================================ */

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

:root {
  /* — Charte officielle — */
  --navy:      #0D1B2A;
  --navy-700:  #13263c;
  --navy-600:  #1b3350;
  --gold:      #FFB300;
  --gold-dark: #d99400;
  --gold-light:#ffce5c;

  /* — Thème clair — */
  --bg:         #ffffff;
  --bg-soft:    #f5f8fc;
  --bg-soft2:   #eef3f9;
  --card:       #ffffff;
  --text:       #0D1B2A;   /* navy */
  --text-soft:  #33465c;
  --text-muted: #64748b;
  --border:     rgba(13,27,42,0.10);
  --border-2:   rgba(13,27,42,0.14);
  --gold-tint:  rgba(255,179,0,0.12);
  --border-gold:rgba(255,179,0,0.45);

  --radius:    18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(13,27,42,.06);
  --shadow:    0 12px 34px rgba(13,27,42,.10);
  --shadow-lg: 0 26px 60px rgba(13,27,42,.16);
  --shadow-gold:0 8px 24px rgba(255,179,0,.35);
  --maxw:      1240px;
  --focus-ring:0 0 0 3px rgba(255,179,0,0.55);

  /* couleurs modules */
  --c-ventes:#16a34a; --c-achats:#b45309; --c-stock:#1d4ed8; --c-articles:#713f12;
  --c-cmup:#475569;  --c-pmp:#d97706;  --c-affaires:#0e7490;
  --c-clients:#134e4a; --c-fournisseurs:#7c2d12;
  --c-compta:#ca8a04; --c-paiements:#7c3aed;
  --c-logistique:#0f766e; --c-gestiport:#1e3a5f; --c-maintenance:#991b1b;
  --c-gasoil:#14532d; --c-gps:#0891b2;
  --c-direction:#334155; --c-marketing:#be185d;
  --c-rapports:#5b21b6; --c-previsions:#6d28d9;
  --c-parametres:#57534e; --c-portails:#0d9488;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

.container, .section-inner { max-width: var(--maxw); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 18px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); z-index: 1200; box-shadow: 0 0 12px rgba(255,179,0,.5); transition: width .1s linear; }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 max(5%, calc((100vw - var(--maxw)) / 2 + 24px));
  height: 74px; display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-color: var(--border); box-shadow: var(--shadow-sm); }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(13,27,42,.18); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.logo-wrap:hover .logo-img { transform: rotate(-6deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .lt-name { font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: .3px; }
.logo-text .lt-sub { font-size: .62rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1.4px; text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a { font-size: .9rem; font-weight: 600; color: var(--text-soft); transition: color .2s; position: relative; padding: 6px 0; }
nav.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .25s; }
nav.main-nav a:hover { color: var(--navy); }
nav.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-erp {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy) !important; font-size: .88rem; font-weight: 800;
  padding: 11px 24px; border-radius: 50px; transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-gold); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.btn-erp svg { width: 16px; height: 16px; }
.btn-erp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,179,0,.5); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 5% 80px;
  background: radial-gradient(ellipse at 50% 0%, #eaf1fb 0%, #ffffff 60%);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 40%, rgba(255,179,0,.08), transparent 55%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-tint); border: 1px solid var(--border-gold); border-radius: 50px; padding: 7px 18px; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 26px; animation: fadeInDown .7s ease both; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s infinite; }
.hero-title { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 900; line-height: 1.08; letter-spacing: -1px; margin-bottom: 24px; color: var(--navy); animation: fadeInUp .7s .1s ease both; }
.hero-title .highlight, .hero-rotator .rot-word {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}
.hero-rotator { display: inline-block; min-height: 1.1em; }
.hero-rotator .rot-word { display: inline-block; animation: gradientShift 5s ease infinite, rotWordIn .5s ease both; }
@keyframes rotWordIn { 0% { opacity: 0; transform: translateY(14px) rotateX(-40deg); } 100% { opacity: 1; transform: translateY(0) rotateX(0); } }
.hero-sub { font-size: 1.14rem; color: var(--text-soft); max-width: 640px; margin: 0 auto 42px; animation: fadeInUp .7s .2s ease both; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp .7s .3s ease both; }

.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); font-weight: 800; font-size: 1rem; padding: 15px 34px; border-radius: 50px; border: none; cursor: pointer; box-shadow: var(--shadow-gold); transition: transform .25s, box-shadow .25s; display: inline-flex; align-items: center; gap: 9px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(255,179,0,.5); }
.btn-outline { background: #fff; border: 1.5px solid var(--border-2); color: var(--navy); font-weight: 700; font-size: 1rem; padding: 15px 32px; border-radius: 50px; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: 9px; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-primary svg, .btn-outline svg { width: 18px; height: 18px; }

.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 68px; flex-wrap: wrap; animation: fadeInUp .7s .4s ease both; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2.4rem; font-weight: 900; color: var(--navy); }
.hero-stat .lbl { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 2px; }

/* ===== SECTION BASE ===== */
section { padding: 110px 5%; }
.section-tag { display: inline-block; background: var(--gold-tint); border: 1px solid var(--border-gold); color: var(--gold-dark); font-size: .74rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; padding: 6px 15px; border-radius: 50px; margin-bottom: 16px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.18; margin-bottom: 16px; letter-spacing: -.5px; color: var(--navy); }
.section-sub { font-size: 1.06rem; color: var(--text-soft); max-width: 640px; line-height: 1.75; }
.section-head { margin-bottom: 62px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ===== KPIS ===== */
#kpis { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 66px 5%; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 20px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.kpi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-gold); }
.kpi-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--gold-tint); color: var(--gold-dark); display: grid; place-items: center; margin: 0 auto 14px; }
.kpi-icon svg { width: 24px; height: 24px; }
.kpi-num { font-size: 2rem; font-weight: 900; color: var(--navy); }
.kpi-lbl { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* ===== FAMILLES DE MODULES ===== */
#modules { background: var(--bg); }
.family { margin-bottom: 68px; }
.family:last-child { margin-bottom: 0; }
.family-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.family-badge { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(13,27,42,.18); }
.family-badge svg { width: 26px; height: 26px; }
.family-titles h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.family-titles p { font-size: .9rem; color: var(--text-muted); margin-top: 2px; }
.family-count { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--gold-dark); background: var(--gold-tint); border: 1px solid var(--border-gold); padding: 5px 12px; border-radius: 50px; white-space: nowrap; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; perspective: 1000px; }
.module-card { border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; min-height: 190px; border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; box-shadow: 0 10px 26px rgba(13,27,42,.14); }
.module-card:hover { box-shadow: 0 24px 48px rgba(13,27,42,.24); }
.module-card::after { content: ''; position: absolute; bottom: -34px; right: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }
.module-card::before { content: ''; position: absolute; bottom: -70px; right: -70px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.module-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 15px; position: relative; z-index: 1; transition: transform .3s ease; }
.module-card:hover .module-icon { transform: translateZ(24px) scale(1.08); }
.module-icon svg { width: 24px; height: 24px; color: #fff; }
.module-name { font-size: 1.12rem; font-weight: 800; color: #fff; margin-bottom: 8px; position: relative; z-index: 1; }
.module-desc { font-size: .82rem; color: rgba(255,255,255,.9); line-height: 1.55; margin-bottom: 14px; position: relative; z-index: 1; flex: 1; }
.module-tags { display: flex; flex-wrap: wrap; gap: 5px; position: relative; z-index: 1; }
.module-tag { background: rgba(255,255,255,.2); color: #fff; font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.module-badge-new { position: absolute; top: 16px; right: 16px; z-index: 2; background: #fff; color: var(--navy); font-size: .6rem; font-weight: 800; letter-spacing: .5px; padding: 3px 8px; border-radius: 20px; }

/* ===== DASHBOARD PREVIEW (fidèle ERP : sidebar navy + contenu clair) ===== */
#dashboard { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dashboard-mockup { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); margin: 50px auto 0; max-width: var(--maxw); }
.dash-topbar { background: var(--navy); padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 12px; height: 12px; border-radius: 50%; }
.dash-dots span:nth-child(1){ background:#ef4444; } .dash-dots span:nth-child(2){ background:var(--gold); } .dash-dots span:nth-child(3){ background:#22c55e; }
.dash-url { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 6px 14px; font-size: .78rem; color: #cbd5e1; max-width: 360px; }
.dash-body { display: grid; grid-template-columns: 212px 1fr; min-height: 480px; }
.dash-sidebar { background: var(--navy); padding: 20px 0; }
.dash-sidebar-logo { padding: 0 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.dash-sidebar-logo img { border-radius: 8px; }
.dash-sidebar-logo .s-name { font-weight: 800; font-size: .98rem; color: var(--gold); }
.dash-sidebar-logo .s-ver { font-size: .62rem; color: #7f93a8; }
.dash-nav-group { padding: 12px 16px 4px; font-size: .56rem; font-weight: 700; color: #6b8199; letter-spacing: 1px; text-transform: uppercase; }
.dash-nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 18px; font-size: .78rem; color: #b7c6d8; }
.dash-nav-item.active { background: rgba(255,179,0,.14); color: var(--gold); border-left: 3px solid var(--gold); }
.dash-nav-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.dash-badge-new { background: var(--gold); color: var(--navy); font-size: .5rem; font-weight: 800; padding: 1px 5px; border-radius: 10px; margin-left: auto; letter-spacing: .5px; }
.dash-main { padding: 22px; background: #fbfcfe; overflow: hidden; }
.dash-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.dash-page-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.dash-welcome { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }
.dash-welcome b { color: var(--navy); }
.dash-chip { background: #b91c1c; color: #fff; font-size: .58rem; font-weight: 700; padding: 1px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.dash-toolbar { display: flex; align-items: center; gap: 8px; }
.dash-select { font-size: .68rem; color: var(--text-soft); border: 1px solid var(--border-2); border-radius: 7px; padding: 5px 9px; }
.dash-btn-gold { font-size: .68rem; font-weight: 700; color: var(--navy); background: var(--gold); border-radius: 7px; padding: 5px 11px; }
.dash-btn-ghost { font-size: .68rem; color: var(--text-soft); border: 1px solid var(--border-2); border-radius: 7px; padding: 5px 11px; }
.dash-consolide { font-size: .64rem; color: var(--gold-dark); background: var(--gold-tint); border-left: 2px solid var(--gold); padding: 5px 10px; border-radius: 4px; margin-bottom: 16px; }
.dash-kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 20px; }
.dash-kpi { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; border-top: 3px solid var(--kpi-color, var(--gold)); box-shadow: var(--shadow-sm); position: relative; }
.dash-kpi-label { font-size: .6rem; color: var(--text-muted); margin-bottom: 4px; }
.dash-kpi-val { font-size: 1rem; font-weight: 800; color: var(--navy); }
.dash-kpi-unit { font-size: .55rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }
.dash-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.dash-chart-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); }
.dash-chart-title { font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.chart-canvas-wrap { position: relative; height: 190px; }

/* ===== FEATURES — « Pourquoi Gesti-Pro » (retravaillée) ===== */
#features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; counter-reset: feat; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); transition: width .35s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-gold); }
.feature-card:hover::before { width: 100%; }
.feature-card:hover .feat-glow { opacity: 1; }
.feat-glow { position: absolute; top: -20px; right: -20px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(255,179,0,.14), transparent 70%); opacity: 0; transition: opacity .3s; }
.feat-index { position: absolute; top: 26px; right: 30px; font-size: 2.6rem; font-weight: 900; color: var(--bg-soft2); line-height: 1; z-index: 0; }
.feat-index::before { counter-increment: feat; content: "0" counter(feat); }
.feat-icon { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-600)); color: var(--gold); display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 8px 20px rgba(13,27,42,.22); position: relative; z-index: 1; transition: transform .3s; }
.feature-card:hover .feat-icon { transform: translateY(-3px) scale(1.05); }
.feat-icon svg { width: 28px; height: 28px; }
.feat-title { font-size: 1.12rem; font-weight: 800; margin-bottom: 10px; color: var(--navy); position: relative; z-index: 1; }
.feat-desc { font-size: .9rem; color: var(--text-soft); line-height: 1.72; position: relative; z-index: 1; }

/* ===== CHARTS ===== */
#charts-section { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.charts-flex { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 50px; }
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.chart-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: var(--navy); }
.chart-card-title svg { width: 18px; height: 18px; color: var(--gold-dark); }
.chart-wrap { position: relative; height: 230px; }

/* ===== TESTIMONIALS ===== */
#testimonials { background: var(--bg); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; margin-top: 50px; }
.testi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: all .3s; box-shadow: var(--shadow-sm); }
.testi-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { font-size: .9rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 22px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; }
.testi-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.testi-role { font-size: .78rem; color: var(--text-muted); }

/* ===== CTA (bandeau navy) ===== */
#cta { background: linear-gradient(135deg, var(--navy) 0%, #16324f 55%, var(--navy) 100%); text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 640px; height: 640px; background: radial-gradient(circle, rgba(255,179,0,.18), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; }
.cta-title { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 900; margin-bottom: 16px; color: #fff; }
.cta-sub { font-size: 1.06rem; color: #b7c6d8; margin-bottom: 42px; line-height: 1.75; }
#cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
#cta .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ===== FOOTER (animé) ===== */
footer { background: var(--navy); position: relative; padding: 64px 5% 34px; overflow: hidden; }
#footer-canvas { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text .lt-name { color: var(--gold); }
.footer-brand .logo-text .lt-sub { color: #7f93a8; }
.footer-brand p { font-size: .9rem; color: #9db0c6; line-height: 1.75; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .88rem; color: #9db0c6; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: .82rem; color: #9db0c6; }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; transition: all .2s; }
.footer-social:hover { border-color: var(--gold); background: rgba(255,179,0,.14); }
.footer-social svg { width: 16px; height: 16px; color: #9db0c6; }
.footer-social:hover svg { color: var(--gold); }

/* ===== WHATSAPP BUTTON ===== */
.wa-btn { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s, box-shadow .25s; animation: bounce 2.6s ease-in-out infinite; }
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 12px 34px rgba(37,211,102,.6); }
.wa-btn svg { width: 34px; height: 34px; color: #fff; display: block; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37,211,102,.55); animation: waPulse 2.6s ease-out infinite; pointer-events: none; }

/* ===== MOBILE NAV ===== */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 1500; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.4rem; font-weight: 700; color: var(--navy); transition: color .2s; }
.mobile-nav a:hover { color: var(--gold-dark); }
.mobile-nav .btn-erp { font-size: 1.05rem; margin-top: 10px; }
.mobile-nav-close { position: absolute; top: 24px; right: 24px; background: none; border: none; cursor: pointer; color: var(--navy); font-size: 2rem; line-height: 1; }

/* ===== MODAL FORMULAIRE DÉMO ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(13,27,42,.55); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeInDown .25s ease; }
.modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative; animation: modalPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-head { background: linear-gradient(135deg, var(--navy), var(--navy-600)); padding: 26px 30px; border-radius: 22px 22px 0 0; position: relative; }
.modal-head h3 { color: #fff; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.modal-head p { color: #b7c6d8; font-size: .88rem; margin-top: 6px; }
.modal-head .m-logo { width: 34px; height: 34px; border-radius: 9px; }
.modal-close { position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.12); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .2s; }
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-body { padding: 26px 30px 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-field label .req { color: #dc2626; }
.form-field input, .form-field select {
  border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; font-size: .92rem;
  font-family: inherit; color: var(--navy); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,179,0,.18); }
.form-field input::placeholder { color: #94a3b8; }
.modal-actions { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.modal-actions .btn-primary { flex: 1; justify-content: center; min-width: 200px; }
.form-note { font-size: .76rem; color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .88rem; font-weight: 600; display: none; }
.form-status.show { display: block; animation: fadeInDown .3s ease; }
.form-status.ok { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.form-status.err { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.form-loader { width: 18px; height: 18px; border: 2px solid rgba(13,27,42,.25); border-top-color: var(--navy); border-radius: 50%; animation: spin .6s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%;} 50% { background-position: 100% 50%;} }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(1.3);} }
@keyframes bounce { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
@keyframes waPulse { from { opacity: 1; transform: scale(1);} to { opacity: 0; transform: scale(1.7);} }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.from-left.visible, .reveal.from-right.visible { transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav.main-nav, .header-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 76px 5%; }
  .dash-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .family-head { flex-wrap: wrap; }
  .family-count { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 320px; justify-content: center; }
  .modules-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
