/* ============================================
   EVOVI - CSS GLOBAL
   Design System Premium & Conversion-Focused
   Palette : Navy #1B2A4A + Turquoise #4BBFB5
   ============================================ */

/* === VARIABLES === */
:root {
  --navy: #1B2A4A;
  --navy-light: #253761;
  --gold: #4BBFB5;
  --gold-light: #72CEC6;
  --gold-dark: #2EA099;
  --white: #FFFFFF;
  --off-white: #F5F8FA;
  --gray-100: #EEF2F6;
  --gray-200: #DDE4EC;
  --gray-400: #8FA3BC;
  --gray-600: #4E6480;
  --gray-800: #1B2A4A;
  --green: #2D7A51;
  --green-light: #E8F5EE;
  --red-light: #FFF0EE;
  --red: #D64545;
  /* Accent secondaire — corail chaleureux */
  --accent: #F5836B;
  --accent-light: #FEE8E3;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(27,42,74,0.06), 0 1px 2px rgba(27,42,74,0.04);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.09), 0 2px 8px rgba(27,42,74,0.06);
  --shadow-lg: 0 12px 40px rgba(27,42,74,0.13), 0 4px 16px rgba(27,42,74,0.08);
  --shadow-xl: 0 24px 64px rgba(27,42,74,0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 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: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html, body {
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-main); }
input, textarea, select { font-family: var(--font-main); }

/* === TYPOGRAPHY === */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--gray-600); line-height: 1.75; }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-green { color: var(--green); }

/* === LAYOUT === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 56px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(75,191,181,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(75,191,181,0.45);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(27,42,74,0.2);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,42,74,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.btn-full { width: 100%; }

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-200);
}

.card-navy {
  background: var(--navy);
  border-color: var(--navy-light);
}

.card-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: linear-gradient(135deg, rgba(75,191,181,0.15), rgba(75,191,181,0.08));
  color: var(--gold-dark);
  border: 1px solid rgba(75,191,181,0.3);
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
}

.badge-navy {
  background: rgba(27,42,74,0.08);
  color: var(--navy);
}

/* === SECTION HEADERS === */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 540px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar.dark-mode {
  background: transparent;
}

.navbar.dark-mode.scrolled {
  background: rgba(255,255,255,0.97);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  transition: var(--transition);
}

/* Logo image inversion on dark backgrounds */
.logo img.logo-img-dark {
  filter: brightness(10);
}
.navbar.scrolled .logo img.logo-img-dark {
  filter: none;
}

/* ─── DOUBLE LOGO : blanc sur sombre / coloré sur clair ─── */
/* Par défaut (fond sombre = hero) : affiche le logo blanc, cache le coloré */
.logo-white { display: inline-block; }
.logo-color { display: none; }

/* Après scroll (fond blanc) : affiche le logo coloré, cache le blanc */
.navbar.scrolled .logo-white { display: none; }
.navbar.scrolled .logo-color { display: inline-block; }

.logo-dark { color: var(--white); }

.navbar.scrolled .logo-dark { color: var(--navy); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--navy); }

.nav-link-dark {
  color: rgba(255,255,255,0.75);
}

.nav-link-dark:hover { color: var(--white); }

.navbar.scrolled .nav-link-dark { color: var(--gray-600); }
.navbar.scrolled .nav-link-dark:hover { color: var(--navy); }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  mix-blend-mode: difference;
  opacity: 0.95;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.25));
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.dark span { background: #fff; }
.navbar.scrolled .hamburger.dark span { background: #fff; }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--navy) 0%, #1e3358 50%, #142843 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(75,191,181,0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(75,191,181,0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(245,131,107,0.04) 0%, transparent 40%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(75,191,181,0.15);
  border: 1px solid rgba(75,191,181,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

.hero-trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* === PROFILES === */
.profiles-section {
  background: var(--off-white);
  padding: 80px 0;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: var(--transition);
}

.profile-card:hover::before { transform: scaleX(1); }

.profile-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(75,191,181,0.3);
}

.profile-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.profile-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.profile-card p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.profile-link:hover { gap: 10px; }

/* === STEPS === */
.steps-section {
  padding: 88px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200) 10%, var(--gray-200) 90%, transparent);
}

.step-item {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.step-item:hover .step-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

.step-item h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.step-item p {
  font-size: 0.87rem;
  line-height: 1.6;
}

/* === SOCIAL PROOF === */
.proof-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3358 100%);
  padding: 72px 0;
  overflow: hidden;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
}

.stats-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(75,191,181,0.1), transparent);
  pointer-events: none;
}

.stat-divider {
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-divider:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* === TESTIMONIALS === */
.testimonials-section {
  padding: 88px 0;
  background: var(--off-white);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: block;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* === CTA SECTION === */
.cta-section {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #152336 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(75,191,181,0.08) 0%, transparent 60%);
}

.cta-content { position: relative; z-index: 1; }

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.65); margin-bottom: 36px; font-size: 1.05rem; }

/* === TRUST BADGES === */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 36px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.trust-badge svg { color: var(--gold); }

/* === FAQ === */
.faq-section {
  padding: 88px 0;
  background: var(--white);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
  transition: var(--transition);
  gap: 16px;
}

.faq-question:hover { color: var(--gold-dark); }

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--gray-400);
}

.faq-item.open .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* === FOOTER === */
.footer {
  background: var(--gray-800);
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.4);
  max-width: 280px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-logo-img {
  width: auto;
  height: 26px;
  max-width: none;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.85;
}

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.9;
  margin-bottom: 14px;
}

.footer-mini-icon {
  width: 13px;
  height: 13px;
  color: var(--gold);
  margin-right: 6px;
  vertical-align: -2px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-social-link:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.16);
}

.footer-social-icon {
  width: 14px;
  height: 14px;
}

.footer-col h5 {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* === DIAGNOSTIC PAGE === */
.diagnostic-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #152336 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.diagnostic-hero h1 { color: var(--white); }
.diagnostic-hero p { color: rgba(255,255,255,0.65); }

.diagnostic-progress {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.progress-bar-track {
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.diagnostic-section {
  padding: 60px 0 80px;
  min-height: 70vh;
}

.question-card {
  max-width: 700px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.question-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.question-help {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.answers-grid {
  display: grid;
  gap: 12px;
}

.answers-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.answer-option {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.answer-option:hover {
  border-color: var(--gold);
  background: rgba(75,191,181,0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.answer-option.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(75,191,181,0.08), rgba(75,191,181,0.04));
  box-shadow: 0 0 0 3px rgba(75,191,181,0.15);
}

.answer-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.answer-option.selected .answer-icon {
  background: var(--gold);
}

.answer-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.answer-desc {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.diag-nav {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* === SCORE RESULT === */
.score-section {
  display: none;
  animation: fadeIn 0.6s ease;
  padding: 60px 0 80px;
}

.score-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.score-gauge {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  position: relative;
}

.score-gauge svg {
  transform: rotate(-90deg);
}

.score-gauge circle {
  fill: none;
  stroke-width: 14;
}

.score-gauge .track {
  stroke: var(--gray-200);
}

.score-gauge .fill {
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.score-max {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.score-label-text {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.score-axes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}

.score-axis {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
}

.score-axis-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.score-axis-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  display: block;
  margin-top: 2px;
}

/* === LEAD FORM === */
.lead-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.lead-form-wrapper h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(75,191,181,0.12);
}

.form-input::placeholder { color: var(--gray-400); }

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 24px;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-consent p {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* === SEO PAGES === */
.seo-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3358 55%, #253761 100%);
  padding: 128px 0 72px;
  position: relative;
}

.seo-hero h1 { color: var(--white); margin-bottom: 20px; }
.seo-hero .lead { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 580px; }

.problem-section {
  padding: 80px 0;
  background: var(--white);
}

.problem-list { margin: 32px 0; }

.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}

.problem-item:last-child { border-bottom: none; }

.problem-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-card {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-top: 32px;
}

.solution-card p { color: var(--green); font-weight: 500; }

/* === BLOG === */
.blog-hero {
  background: var(--off-white);
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--gray-200);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 60px 0;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  color: var(--white);
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  opacity: 0.8;
  transition: var(--transition);
}

.mobile-menu a:hover { opacity: 1; color: var(--gold); }

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 20px;
  transition: var(--transition);
}

.mobile-menu-close:hover { background: rgba(255,255,255,0.2); }

/* === FLOATING CTA === */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-divider:nth-child(2) { border-right: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn { max-width: 100%; }
  .btn-lg {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    padding: 16px 24px;
    line-height: 1.3;
    text-align: center;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .score-axes { grid-template-columns: 1fr; }
  .score-card { padding: 32px 24px; }
  .lead-form-wrapper { padding: 32px 20px; }
  .answers-grid.grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-trust { gap: 16px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; text-align: center; }
  .trust-row { gap: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .diag-nav { flex-direction: column; }
  .diag-nav .btn { width: 100%; }
  .floating-cta {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100vw - 32px);
  }
  .floating-cta .btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }
  .page-impots .hero .btn-lg,
  .page-epargne .hero .btn-lg {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
  .page-impots .btn-full,
  .page-epargne .btn-full {
    width: auto;
    max-width: min(86vw, 340px);
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .page-impots .floating-cta,
  .page-epargne .floating-cta {
    left: 50% !important;
    right: auto !important;
    width: min(86vw, 340px) !important;
    max-width: min(86vw, 340px) !important;
    transform: translate(-50%, 20px) !important;
  }
  .page-impots .floating-cta.visible,
  .page-epargne .floating-cta.visible {
    transform: translate(-50%, 0) !important;
  }
}

@media (max-width: 480px) {
  .hero { padding: 90px 0 60px; }
  .container { padding: 0 16px; }
  .card { padding: 24px 20px; }
  .profile-card { padding: 28px 24px; }
}

/* === UTILS === */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Fade in animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
