/* ============================================
   BASE & VARIABLES
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0b2545;
  --blue-2: #13315c;
  --accent: #1e6fd9;
  --accent-2: #00b894;
  --light: #f5f8fc;
  --text: #1d2733;
  --muted: #5a6b7b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11,37,69,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: .2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER & NAV
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6edf5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--blue); display: flex; align-items: center; gap: 6px; letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.logo-icon { color: var(--accent); font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--blue); font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav-cta { color: #fff !important; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--blue); cursor: pointer; }

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: .25s; cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(30,111,217,.3); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--accent); color: #fff; }

/* ============================================
   SLIDER (CORRIGÉ POUR NE PAS SE SUPERPOSER)
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--blue);
}

.hero-slider .slide {
  position: absolute; /* Force les slides à rester au même endroit */
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-overlay {
  position: absolute; inset: 0;
  /* Dégradé sombre pour que le texte blanc soit TOUJOURS lisible */
  background: linear-gradient(90deg, rgba(11,37,69,0.95) 0%, rgba(11,37,69,0.8) 40%, rgba(11,37,69,0.4) 100%);
}

.slide-content {
  position: relative; z-index: 3; color: #fff; max-width: 800px;
  transform: translateY(20px); opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.hero-slider .slide.active .slide-content {
  transform: translateY(0); opacity: 1;
}

.slide-content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 20px; color: #fff;
}

.slide-content p {
  font-size: 1.15rem; opacity: 0.9; margin-bottom: 36px; max-width: 640px; color: #fff;
}

.badge {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; margin-bottom: 24px; backdrop-filter: blur(6px); color:#fff;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Flèches */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Points */
.slider-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 12px;
}
.slider-dots .dot {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s;
}
.slider-dots .dot.active { background: #fff; transform: scale(1.2); }

/* ============================================
   RESTE DU SITE (SECTIONS, CARTES, ETC.)
   ============================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--light); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--blue); font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

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

.card {
  background: #fff; border: 1px solid #e6edf5; border-radius: var(--radius);
  padding: 34px 28px; transition: .3s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(30,111,217,.12); }
.card-icon { font-size: 2.2rem; margin-bottom: 18px; }
.card h3 { color: var(--blue); font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--muted); margin-bottom: 16px; }

.check-list { list-style: none; margin: 20px 0 30px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); font-weight: 500; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 800; background: #e7f7f1; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; }

.feature { text-align: center; padding: 20px; }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature h4 { color: var(--blue); margin-bottom: 8px; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .9rem; }

.cta-section { background: linear-gradient(135deg,var(--blue),var(--accent)); color: #fff; padding: 80px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-inner p { opacity: .9; margin-bottom: 30px; font-size: 1.05rem; }

/* ============================================
   FOOTER & WHATSAPP
   ============================================ */
.footer { background: var(--blue); color: #b9c9db; padding: 70px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.logo-light { color: #fff; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .5px; }
.footer a { display: block; color: #b9c9db; margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer p { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .85rem; color: #8aa2bd; }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
  transition: .25s;
}
.whatsapp-float:hover { transform: scale(1.08); background: #1eb955; color: #fff; }

/* ============================================
   PAGES INTERNES
   ============================================ */
.hero-inner { padding: 100px 0; background: var(--blue); }
.hero-inner h1 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); color:#fff; }
.hero-inner p { color: #fff; }
.hero-overlay { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.2; }
.hero-content { position: relative; max-width: 820px; color: #fff; }

/* ============================================
   BARRE DE CONFIANCE
   ============================================ */
.trust-bar { background: var(--blue); color: #fff; padding: 32px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.trust-inner strong { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.trust-inner span { font-size: .85rem; opacity: .8; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid #e6edf5; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-slider { height: 100vh; min-height: 700px; }
  .slide-overlay { background: rgba(11,37,69,0.85); }
  .slider-arrow { display: none; }
  .slide-content h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2,1fr); }
  .section { padding: 70px 0; }
}