/* ══════════════════════════════════════════════════
   AIvance Group — Style principal
   Palette P5 : Navy #0F2942 · Bleu #4A90D9 · Vert sauge #4CAF7D
   Fond : #FFFFFF (blanc) / #F7F9F7 (naturel)
   Typographie : Outfit (titres) · DM Sans (corps)
══════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --navy:    #001F3F;
  --navymd:  #001F3F;
  --blue:    #4A90D9;
  --bluelt:  #EBF4FD;
  --sage:    #4CAF7D;
  --sagedk:  #2E7D52;
  --sagelt:  #E8F5ED;
  --border:  #E8F0E8;
  --bg:      #FFFFFF;
  --bgsec:   #F7F9F7;
  --text:    #1A2635;
  --textsec: #4A5568;
  --grey:    #6B7280;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #fff; color: var(--text); line-height: 1.65; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
img { display: block; }
a { color: inherit; text-decoration: none; }

/* ── LOGO L5 ── */
.logo { display: flex; align-items: center; gap: 11px; }
.logo-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.bar { border-radius: 3px; }
.b1 { width: 9px; height: 18px; background: rgba(255,255,255,.5); }
.b2 { width: 9px; height: 26px; background: var(--blue); }
.b3 { width: 9px; height: 36px; background: var(--sage); }
.logo-txt .name { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.2px; line-height: 1; }
.logo-txt .name em { color: var(--sage); font-style: normal; }
.logo-txt .sub { font-size: 8.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 3px; }

/* ── NAVIGATION ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--navy); border-bottom: 2px solid rgba(76,175,125,.28); }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: #fff; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--sage); }
.nav-cta { background: var(--sage) !important; padding: 9px 20px; border-radius: 7px; font-weight: 700 !important; transition: background .2s !important; }
.nav-cta:hover { background: var(--sagedk) !important; }
.nav-partner { border: 1.5px solid rgba(255,255,255,.3) !important; padding: 8px 16px; border-radius: 7px; font-weight: 600 !important; }
.nav-partner:hover { border-color: var(--sage) !important; color: var(--sage) !important; }
.nav-burger { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; }

/* Mobile menu */
.mobile-menu { display: none; flex-direction: column; background: var(--navymd); padding: 16px 24px; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,.8); font-size: 15px; font-weight: 500; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-menu a:hover { color: var(--sage); }
.nav-cta-mobile { background: var(--sage) !important; color: #fff !important; border-radius: 8px; padding: 11px 0 !important; text-align: center; margin-top: 8px; font-weight: 700 !important; border: none !important; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ── HERO ── */
.hero { background: var(--navy); min-height: 100vh; padding: 130px 40px 90px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: 52px 52px; pointer-events: none; }
.hero::after { content: ''; position: absolute; top: -20%; right: -8%; width: 55%; height: 90%; background: radial-gradient(ellipse, rgba(76,175,125,.13) 0%, transparent 65%); pointer-events: none; }
.hero-in { max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(76,175,125,.13); border: 1px solid rgba(76,175,125,.38); color: var(--sage); padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.hero h1 { font-size: clamp(44px,5vw,70px); font-weight: 900; color: #fff; margin-bottom: 20px; line-height: 1.05; }
.hero h1 em { color: var(--sage); font-style: normal; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 34px; max-width: 520px; line-height: 1.65; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 36px; }
.hk { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 14px; text-align: center; }
.hk-v { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--sage); }
.hk-l { font-size: 11px; color: rgba(255,255,255,.48); margin-top: 2px; }
.hero-photo-wrap { border-radius: 20px; overflow: hidden; border: 2px solid rgba(76,175,125,.22); box-shadow: 0 28px 70px rgba(0,0,0,.38); aspect-ratio: 4/3; position: relative; }
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,41,66,.2) 0%, transparent 55%); }
.hstat { position: absolute; background: #fff; border-radius: 12px; padding: 13px 17px; box-shadow: 0 8px 28px rgba(0,0,0,.2); border: 1px solid var(--border); }
.hstat.s1 { bottom: -16px; left: -24px; }
.hstat.s2 { top: -16px; right: -20px; }
.hs-v { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 900; color: var(--navy); line-height: 1; }
.hs-v span { color: var(--sage); }
.hs-l { font-size: 11px; color: var(--grey); margin-top: 2px; }

/* ── BOUTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 7px; background: var(--sage); color: #fff; padding: 14px 28px; border-radius: 9px; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; box-shadow: 0 4px 18px rgba(76,175,125,.3); transition: all .2s; cursor: pointer; border: none; }
.btn-primary:hover { background: var(--sagedk); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(76,175,125,.4); }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); color: #fff; padding: 14px 28px; border-radius: 9px; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; border: 1.5px solid rgba(255,255,255,.2); transition: all .2s; }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.btn-calendly { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--sage); padding: 13px 26px; border-radius: 9px; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; border: 1.5px solid var(--sage); transition: all .2s; margin-top: 12px; }
.btn-calendly:hover { background: rgba(76,175,125,.1); }

/* ── SECTIONS BASE ── */
.section { padding: 92px 40px; background: #fff; }
.section.alt { background: var(--bgsec); }
.sec-in { max-width: 1280px; margin: 0 auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--sage); margin-bottom: 9px; }
.sec-title { font-size: clamp(26px,3vw,40px); font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.sec-sub { font-size: 16px; color: var(--textsec); max-width: 580px; margin-bottom: 48px; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: all .55s ease; }
.reveal.v { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 52px 40px 26px; }
.footer-in { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 22px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.42); margin-top: 14px; max-width: 265px; line-height: 1.7; }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700; color: var(--sage); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 13px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.48); padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: var(--sage); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.26); }
.admin-link { color: rgba(255,255,255,.15) !important; font-size: 14px; }
.admin-link:hover { color: rgba(255,255,255,.4) !important; }
.footer-partner-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(76,175,125,.12); border: 1px solid rgba(76,175,125,.25); color: var(--sage); padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-top: 16px; cursor: pointer; transition: all .2s; }
.footer-partner-btn:hover { background: rgba(76,175,125,.2); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-in > div:last-child { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
