/* =============================================
   MeilleurTaux – style.css
   Premium Fintech CSS
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --primary: #0A2A66;
  --secondary: #1CCB7F;
  --light: #F7FAFC;
  --dark: #0F172A;
  --text: #334155;
  --border: #E2E8F0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 50px rgba(10,42,102,0.12), 0 4px 16px rgba(10,42,102,0.06);
  --shadow-card: 0 8px 32px rgba(10,42,102,0.10);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

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

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(10,42,102,0.25);
}
.btn--primary:hover {
  background: #0c3580;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,42,102,0.30);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--green {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(28,203,127,0.3);
}
.btn--green:hover {
  background: #17b870;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,203,127,0.35);
}

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* =============================================
   TYPOGRAPHY UTILITIES
   ============================================= */
.text-green { color: var(--secondary); }
.section-tag {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in--delay { transition-delay: 0.15s; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: 90px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(10,42,102,0.12); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__icon { flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; }
.logo__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.logo__sub {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active {
  color: var(--primary);
  background: rgba(10,42,102,0.06);
}
.nav__link.active {
  color: var(--secondary);
  background: rgba(28,203,127,0.08);
  font-weight: 600;
}

/* Header right */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.header__phone:hover { color: var(--secondary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, #F7FAFC 0%, #EEF4FF 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28,203,127,0.12);
  color: #0e9e61;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

/* Hero title */
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Hero advantages */
.hero__advantages {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.advantage {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.advantage__icon {
  width: 40px;
  height: 40px;
  background: rgba(28,203,127,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.advantage strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.advantage span {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Hero CTA */
.hero__cta {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Trust */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.trust__label { color: var(--text); }
.trust__label strong { color: var(--dark); }
.stars { color: #f59e0b; letter-spacing: 1px; }
.trust__count { color: #94a3b8; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__img-wrap { position: relative; }
.hero__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Simulator card */
.simulator-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.simulator__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Form elements */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.select-wrap { position: relative; }
.form-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
  font-weight: 500;
}
.form-select:focus { outline: none; border-color: var(--secondary); }
.select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
}

/* Slider */
.slider-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  position: relative;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(28,203,127,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(28,203,127,0.5);
}
.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
.slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}
.simulator__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 12px;
}

/* =============================================
   PARTNERS
   ============================================= */
.partners {
  background: var(--white);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partners__label {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 500;
}
.partners__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.partner-logo {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.partner-logo:hover { opacity: 1; }
.partner-logo--more {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  font-style: italic;
}

/* =============================================
   SOLUTIONS
   ============================================= */
.solutions {
  padding: 100px 0;
  background: var(--white);
}
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.sol-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all var(--transition);
  cursor: pointer;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(28,203,127,0.3);
}
.sol-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(10,42,102,0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}
.sol-card:hover .sol-card__icon {
  background: rgba(28,203,127,0.12);
  color: var(--secondary);
}
.sol-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.sol-card__desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}
.sol-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  transition: gap var(--transition);
  display: inline-block;
}
.sol-card:hover .sol-card__link { text-decoration: underline; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how {
  background: #f0fdf7;
  padding: 100px 0;
}
.how__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.step {
  text-align: center;
  padding: 0 16px;
}
.step__num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(10,42,102,0.25);
}
.step__icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}
.step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.step p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}
.step__connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  margin-top: -32px;
}
.connector__line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), rgba(28,203,127,0.3));
  border-radius: 1px;
  position: relative;
}

/* =============================================
   STATS
   ============================================= */
.stats {
  background: var(--primary);
  padding: 60px 0;
}
.stats__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--secondary);
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}
.stat-rating {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--secondary);
  display: block;
}
.stat-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: 100px 0;
  background: var(--light);
  overflow: hidden;
}
.testimonials__slider { overflow: hidden; }
.testimonials__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.testi-card {
  flex: 0 0 calc(33.33% - 16px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.testi-quote { margin-bottom: 16px; }
.testi-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--secondary);
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-footer strong { display: block; font-size: 0.9rem; color: var(--dark); }
.testi-footer span { font-size: 0.78rem; color: #94a3b8; }
.testi-stars { margin-left: auto; color: #f59e0b; font-size: 0.9rem; }

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.dot {
  width: 10px;
  height: 10px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.dot.active {
  background: var(--secondary);
  width: 28px;
  border-radius: 5px;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 100px 0;
  background: var(--white);
}
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question.open { color: var(--secondary); }
.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 200px;
  padding-bottom: 20px;
}
.faq-answer p {
  padding: 0 24px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0c3580 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: 120px;
  width: 200px;
  height: 200px;
  background: rgba(28,203,127,0.08);
  border-radius: 50%;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-banner__left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cta-banner__icon {
  width: 64px;
  height: 64px;
  background: rgba(28,203,127,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.cta-banner__left h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.cta-banner__left p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer__col--brand { padding-right: 24px; }
.footer__desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px;
  height: 38px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); }
.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 20px;
}
.footer__links li + li { margin-top: 10px; }
.footer__links a {
  font-size: 0.88rem;
  color: #64748b;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--secondary); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #64748b;
}
.footer__contact svg { color: var(--secondary); flex-shrink: 0; }
.footer__contact a:hover { color: var(--secondary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: #94a3b8;
}
.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal a {
  font-size: 0.82rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--secondary); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* 1200px */
@media (max-width: 1200px) {
  .solutions__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__img { height: 400px; }
  .simulator-card { width: 300px; right: -10px; }
}

/* 992px */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 600px; margin: 0 auto; }
  .simulator-card { bottom: 20px; right: 20px; }
  .how__steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .step__connector { display: none; }
  .solutions__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .partners__inner { gap: 24px; }
  .stats__inner { gap: 24px; }
  .stat-divider { display: none; }
}

/* 768px */
@media (max-width: 768px) {
  .nav { 
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .nav.open { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 12px 16px; }
  .hamburger { display: flex; }
  .header__phone { display: none; }
  .how__steps { grid-template-columns: 1fr; }
  .testi-card { flex: 0 0 calc(100% - 0px); }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__left { flex-direction: column; }
  .solutions__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta { flex-direction: column; }
  .hero__advantages { flex-direction: column; gap: 16px; }
}

/* 576px */
@media (max-width: 576px) {
  .simulator-card {
    position: static;
    width: 100%;
    margin-top: 24px;
    right: auto;
    bottom: auto;
  }

  .versmobile{
  display: none;
}

  .hero__img { height: 260px; }
  .solutions__grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .btn--lg { padding: 14px 24px; font-size: 0.9rem; }
  .section-title { font-size: 1.5rem; }
  .stats__inner { flex-direction: column; gap: 28px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .partners__logos { justify-content: center; }
  .partners__inner { flex-direction: column; text-align: center; }
}

/* =============================================
   DROPDOWN MENU — Solutions
   Ajout uniquement — aucune règle existante modifiée
   ============================================= */

/* Élément <li> parent du dropdown */
.nav__item--dropdown {
  position: relative;
}

/* Bouton trigger : hérite du style .nav__link,
   on ajoute juste le flex pour la flèche */
.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav__link--dropdown:hover,
.nav__item--dropdown.open .nav__link--dropdown {
  color: var(--primary);
  background: rgba(10,42,102,0.06);
}
.nav__item--dropdown.open .nav__link--dropdown {
  color: var(--secondary);
  background: rgba(28,203,127,0.08);
  font-weight: 600;
}

/* Flèche — pivote à l'ouverture */
.dropdown-arrow {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform var(--transition), color var(--transition);
}
.nav__item--dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--secondary);
}

/* Panneau dropdown
   Utilise visibility + opacity + transform pour une transition fluide
   (display:none/block ne peut pas être animé) */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 540px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 8px 32px rgba(10,42,102,0.10);
  z-index: 1100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(.4,0,.2,1),
    transform 0.22s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0.22s;
}
.nav__item--dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.22s cubic-bezier(.4,0,.2,1),
    transform 0.22s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0s;
}

/* Petite flèche décorative pointant vers le trigger */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--white);
  border-left: 1.5px solid var(--border);
  border-top: 1.5px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

/* Grille 2 colonnes × 3 lignes */
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 12px;
}

/* Chaque lien solution */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.dropdown-item:hover {
  background: rgba(10,42,102,0.04);
}
.dropdown-item:hover .di-icon {
  background: rgba(28,203,127,0.12);
  color: var(--secondary);
}

/* Icône de chaque item */
.di-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(10,42,102,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
  margin-top: 1px;
}

/* Textes de l'item */
.dropdown-item strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  line-height: 1.25;
}
.dropdown-item span {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Pied du panneau — "Voir toutes nos solutions" */
.dropdown-footer {
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  background: var(--light);
}
.dropdown-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  transition: gap var(--transition);
}
.dropdown-footer__link:hover { gap: 13px; }

/* ── Mobile : dropdown en accordion ── */
@media (max-width: 768px) {

  /* Réinitialisation complète des styles desktop :
     on écrase position, transform, opacity, visibility
     pour un accordion en flux normal */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 12px;
    background: var(--light);
    /* Annuler visibility:hidden du desktop */
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: hidden;
    /* Masquage via max-height animée */
    max-height: 0;
    margin-top: 0;
    transition: max-height 0.35s ease, margin-top 0.2s ease;
  }
  .dropdown-menu::before { display: none; }

  /* Ouvert : on révèle la hauteur */
  .nav__item--dropdown.open .dropdown-menu {
    max-height: 700px;
    margin-top: 4px;
    /* Pas besoin de retoucher visibility/opacity : déjà forcés */
  }

  /* Grille 1 colonne sur mobile */
  .dropdown-grid {
    grid-template-columns: 1fr;
    padding: 6px 8px;
    gap: 2px;
  }

  .dropdown-item { padding: 10px 10px; }
  .di-icon { width: 34px; height: 34px; }
  .dropdown-item strong { font-size: 0.82rem; }
  .dropdown-footer { padding: 10px 14px; }

  /* Trigger pleine largeur avec flèche à droite */
  .nav__link--dropdown {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.92rem;
    display: flex;
  }
}