/* ============================================================
   NETIX PRO — Design System v2
   Couleurs originales du site : bleu marine #0D1B2A + turquoise #00C8A8
   Typographie compacte — H1 max 2rem sur mobile, 2.6rem desktop
   ============================================================ */

:root {
  --navy:    #0D1B2A;
  --navy2:   #112236;
  --navy3:   #1A3350;
  --cream:   #F0F1F3;
  --white:   #FFFFFF;
  --accent:  #00BFA5;
  --accent2: #0099FF;
  --text:    #1A2940;
  --muted:   #5A6A84;
  --border:  rgba(13,27,42,.10);
  --radius:  8px;
  --radius-lg: 14px;
  --shadow:  0 2px 20px rgba(13,27,42,.07);
  --shadow-lg: 0 8px 40px rgba(13,27,42,.13);
  --font-head: 'Syne', 'Segoe UI', Arial, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typographie — COMPACTE ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
}
/* H1 : max 2.6rem desktop, 1.75rem mobile — plus jamais plein écran */
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.7rem);  font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; font-size: .95rem; }
a  { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 7px;
  font-family: var(--font-body); font-weight: 500; font-size: .875rem;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #ffffff; font-weight:600; }
.btn-primary:hover  { background: #00b396; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,200,168,.3); }
.btn-outline  { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover  { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-dark     { background: var(--navy); color: var(--white); }
.btn-dark:hover     { background: var(--navy2); transform: translateY(-1px); }

/* ── Badge ── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(0,200,168,.13); color: var(--accent);
}
.badge-blue { background: rgba(0,153,255,.12); color: var(--accent2); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,27,42,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}

/* Logo — reproduit fidèlement le logo Netix Pro */
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; fill: var(--navy); }
.logo-text {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--white); letter-spacing: -.01em;
}
.logo-text span { color: var(--accent); }


/* ── Logo exact ── */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: #00C8A8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-text {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  color: var(--white); letter-spacing: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 7px 12px; border-radius: 6px;
  font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.85);
  transition: var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { background: rgba(255,255,255,.08); color: var(--white); }

/* Dropdown */
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px 5px 5px; z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 7px 12px; border-radius: 5px;
  font-size: .83rem; color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: rgba(255,255,255,.07); color: var(--white); }

.nav-new {
  font-size: .58rem; font-weight: 700; letter-spacing: .04em;
  background: var(--accent); color: var(--navy);
  padding: 1px 5px; border-radius: 3px; margin-left: 3px;
  vertical-align: middle;
}
.new-pill {
  font-size: .58rem; font-weight: 700;
  background: var(--accent); color: var(--navy);
  padding: 1px 5px; border-radius: 3px; margin-left: 4px;
}

.nav-cta { margin-left: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── Hero — compact, laisse voir la suite ── */
.hero {
  background: var(--navy);
  padding: 64px 0 52px;        /* réduit vs avant */
  position: relative; overflow: hidden;
  min-height: auto;            /* jamais fullscreen */
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(0,200,168,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}
.hero-badge { margin-bottom: 14px; }
.hero h1 { color: var(--white); margin-bottom: 14px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,.6); font-size: .95rem;
  margin-bottom: 24px; max-width: 440px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero visual cards */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-cluster { position: relative; width: 300px; height: 260px; }
.h-card {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  padding: 14px 16px; backdrop-filter: blur(8px);
}
.h-card .h-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: .9rem; margin-bottom: 8px;
}
.h-card .h-label { font-family: var(--font-head); color: var(--white); font-size: .82rem; font-weight: 600; }
.h-card .h-sub   { color: rgba(255,255,255,.45); font-size: .7rem; margin-top: 2px; }
.h-card:nth-child(1) { top: 0;   left: 0;  width: 160px; }
.h-card:nth-child(2) { top: 16px; right: 0; width: 145px; }
.h-card:nth-child(3) { bottom: 24px; left: 16px; width: 148px; }
.h-card:nth-child(4) { bottom: 8px;  right: 8px; width: 138px; }

/* Scroll hint arrow */
.scroll-hint {
  text-align: center; padding: 16px 0 0;
  color: rgba(255,255,255,.3); font-size: .75rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.scroll-hint svg { animation: bounce 1.6s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ── Stats bar ── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  text-align: center; padding: 28px 0;
}
.stat-item { padding: 0 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-num em { color: var(--accent); font-style: normal; }
.stat-label { font-size: .75rem; color: var(--muted); margin-top: 3px; }

/* ── Page hero (pages internes) — compact ── */
.page-hero {
  background: var(--navy); padding: 52px 0 44px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(0,200,168,.08) 0%, transparent 65%);
}
.page-hero .breadcrumb {
  font-size: .75rem; color: rgba(255,255,255,.4); margin-bottom: 12px;
  display: flex; gap: 6px; align-items: center;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.2); }
.page-hero h1 { color: var(--white); max-width: 640px; }
.page-hero p  { color: rgba(255,255,255,.55); max-width: 560px; margin-top: 12px; font-size: .95rem; }

/* ── Solution cards ── */
.solutions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.sol-card-main {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px 18px;
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
}
.sol-card-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.sol-icon-wrap {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.sol-card-main h3 { color: var(--navy); font-size: 1rem; margin: 0; }
.sol-card-main p  { font-size: .83rem; color: var(--muted); margin: 0; }
.sol-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.sol-tag  { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; letter-spacing: .02em; }
.sol-arrow { margin-top: auto; color: var(--accent); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 3px; }

/* ── Content layout ── */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.content-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 26px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.feature-list li::before {
  content: '✓'; display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,200,168,.15); color: var(--accent);
  font-size: .65rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

/* ── CTA strip ── */
.cta-strip {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0,200,168,.12) 0%, transparent 70%);
}
.cta-strip h2 { color: var(--white); position: relative; }
.cta-strip p  { color: rgba(255,255,255,.5); margin: 10px 0 20px; position: relative; font-size: .9rem; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 52px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1.4fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand p { font-size: .83rem; max-width: 240px; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-head); color: var(--white); font-size: .8rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a { font-size: .83rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; font-size: .77rem;
}
.footer-contact-item { display: flex; gap: 8px; align-items: center; font-size: .83rem; margin-bottom: 8px; }
.footer-contact-item a:hover { color: var(--accent); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: var(--transition);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 24px; height: 24px; fill: white; }

/* ── Grilles utilitaires ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.fade-up   { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 62px 0 0 0;
    background: var(--navy); padding: 20px; overflow-y: auto; z-index: 99;
  }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.04); }
  .dropdown.open .dropdown-menu { display: block; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section  { padding: 44px 0; }
}

/* ── Form styles (page contact) ── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: .83rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 13px; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: .875rem; color: var(--text); background: var(--cream);
  transition: border-color .18s, background .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form-group textarea { min-height: 120px; resize: vertical; }


/* ============================================================
   CORRECTION MENU MOBILE — hamburger + sous-menus
   ============================================================ */
@media (max-width: 900px) {
  .navbar-inner { position: relative; }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    cursor: pointer;
    border: 0;
    background: transparent;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-cta { display: none !important; }

  .nav-links {
    display: none !important;
  }

  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 62px);
    padding: 18px 20px 28px;
    margin: 0;
    overflow-y: auto;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 1000;
  }

  .nav-links.open > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .nav-links.open > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px;
    color: rgba(255,255,255,.92);
    font-size: .95rem;
  }

  .nav-links.open .dropdown-menu {
    position: static !important;
    min-width: 0;
    width: 100%;
    margin: 0 0 10px;
    padding: 4px 0 8px 12px;
    background: rgba(255,255,255,.04);
    border: 0;
    border-left: 2px solid var(--accent);
    border-radius: 0 0 8px 8px;
    box-shadow: none;
  }

  .nav-links.open .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .nav-links.open .dropdown-menu a {
    padding: 10px 12px;
    color: rgba(255,255,255,.76);
  }

  body.menu-open {
    overflow: hidden;
  }
}
