/* ── Neo Finance — Site Vitrine CSS ── */

:root {
  /* Palette logo officielle */
  --navy: #1B1C5E;           /* Navy foncé — texte logo */
  --navy-light: #252680;     /* Navy médium */
  --cyan: #00C4D4;           /* Cyan principal logo */
  --cyan-dark: #009BAA;      /* Cyan foncé hover */
  --teal: #1A7A65;           /* Vert teal — e du logo */
  --cyan-light: #E0F8FA;     /* Cyan très clair */
  /* Alias conservés pour compatibilité */
  --gold: #00C4D4;
  --gold-light: #E0F8FA;
  --white: #ffffff;
  --off-white: #f5f8fa;
  --text: #1B1C5E;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --nav-h: 72px;
}

[data-theme="dark"] {
  --navy: #0a0b2e;
  --navy-light: #1B1C5E;
  --off-white: #0f1020;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --white: #1e293b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* ── TYPOGRAPHY ── */
.display-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── NAVBAR ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .site-nav.scrolled {
  background: rgba(15,23,42,0.97);
}

.site-nav .container { height: 100%; }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.brand-mark.sm { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }

.brand-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}

[data-theme="dark"] .brand-text { color: #fff; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--off-white);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.btn-theme-toggle:hover { background: var(--off-white); color: var(--text); }

.btn-cta {
  background: var(--navy);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-cta:hover { background: var(--gold); transform: translateY(-1px); }

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.btn-menu span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 0 20px;
}

.mobile-menu.open { display: block; }

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu ul li a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .mobile-cta {
  display: inline-block;
  margin-top: 12px;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  border-bottom: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,196,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,212,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,196,212,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; padding: 80px 0; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,196,212,0.12);
  border: 1px solid rgba(0,196,212,0.30);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--gold); }

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-hero-primary:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,196,212,0.40); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.stat-item .stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ── SECTIONS ── */
.section { padding: 90px 0; }
.section-alt { background: var(--off-white); }

.section-header { margin-bottom: 56px; }
.section-header .section-label { margin-bottom: 12px; display: block; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
[data-theme="dark"] .section-header h2 { color: #fff; }
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin-top: 12px; }

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(0,196,212,0.10);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
[data-theme="dark"] .service-card h3 { color: #fff; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── EXPERTISE TABS ── */
.expertise-tab {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.expertise-tab:hover, .expertise-tab.active {
  border-color: var(--gold);
  background: rgba(0,196,212,0.06);
}

.expertise-tab h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.expertise-tab p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ── DIRIGEANT ── */
.dirigeant-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.dirigeant-card::before {
  content: '"';
  position: absolute;
  top: -20px; right: 30px;
  font-size: 180px;
  font-family: Georgia, serif;
  color: rgba(0,196,212,0.10);
  line-height: 1;
}

.dirigeant-quote {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 28px;
  position: relative;
}

.dirigeant-name { font-weight: 700; color: #fff; font-size: 16px; }
.dirigeant-title { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.dirigeant-badge { font-size: 12px; color: var(--gold); margin-top: 4px; }

/* ── FORMS ── */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

label.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  padding: 10px 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,39,68,0.12);
  outline: none;
}

.btn-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--gold); transform: translateY(-1px); }

/* ── PAGE HERO (pages intérieures) ── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

[data-theme="dark"] .page-hero::after { background: var(--off-white); }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p { font-size: 16px; color: rgba(255,255,255,0.65); }

/* ── BLOG ── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  height: 100%;
}

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

.post-card-img { height: 200px; background: var(--navy); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img .post-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 36px;
}

.post-card-body { padding: 24px; }
.post-category { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.post-card-body h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 10px; }
[data-theme="dark"] .post-card-body h3 { color: #fff; }
.post-card-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.post-meta { font-size: 12px; color: var(--text-muted); margin-top: 16px; display: flex; gap: 12px; }

/* ── CONTACT INFO ── */
.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  height: 100%;
}

.contact-info-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 28px; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(0,196,212,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.contact-item-value { font-size: 14px; font-weight: 500; color: #fff; margin-top: 2px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

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

.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 260px; }
.footer-brand-name { font-weight: 700; font-size: 17px; color: #fff; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
  transition: all 0.2s;
}

.footer-social:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-col h6 { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.footer-contact li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .btn-cta { display: none; }
  .btn-menu { display: flex; }
  .site-nav { background: var(--white); box-shadow: var(--shadow-sm); }
  [data-theme="dark"] .site-nav { background: #0f172a; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .dirigeant-card { padding: 28px 24px; }
  .form-section { padding: 24px 20px; }
}
