/* ===== GLOBAL.CSS — Partagé par toutes les pages ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary:     #111111;
  --primary-dark:#000000;
  --accent:      #d9a62e;
  --accent-dark: #b58316;
  --success:     #22c55e;
  --danger:      #ef4444;
  --light-bg:    #f7f7f5;
  --border:      #deded9;
  --text:        #171717;
  --muted:       #6d6d68;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.site-nav {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}
.nav-brand {
  display: block;
  width: 156px;
  height: 52px;
  font-size: 0;
  background: #000000 url('../assets/aidefinance-logo.png') center / 52px 52px no-repeat;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: var(--white); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 9px 20px;
}
.nav-links a.nav-cta:hover { background: var(--accent-dark); }

/* Lang dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,.18); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
  z-index: 999;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}
.lang-menu button:hover { background: var(--light-bg); }
.lang-menu button.active { background: rgba(26,60,110,.07); color: var(--primary); font-weight: 700; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── FOOTER ── */
.site-footer {
  background: #000000;
  color: rgba(255,255,255,.55);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--white); }
.footer-brand {
  display: inline-block;
  width: 220px;
  margin-bottom: 10px;
  line-height: 0;
}
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 1rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-col h6 {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── PAGE HERO BANNER (pages internes) ── */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 24px;
  text-align: center;
  color: var(--white);
}
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: .85rem; }
.breadcrumb-nav a { color: var(--accent); text-decoration: none; }
.breadcrumb-nav span { color: rgba(255,255,255,.5); }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(26,60,110,.08);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #111; box-shadow: 0 4px 16px rgba(217,166,46,.28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 24px rgba(217,166,46,.36); color: #111; }
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 16px rgba(240,165,0,.35); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 8px 24px rgba(240,165,0,.45); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ── RTL ── */
[dir="rtl"] body { font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
}

/* Palette overrides for dedicated page styles */
.about-hero, .page-banner { background: #fff !important; color: #111 !important; }
.about-hero h1, .page-banner h1 { color: #111 !important; }
.about-hero p, .page-banner p { color: var(--muted) !important; }
.about-intro h2, .value-grid h3, .faq-list summary, .contact-item strong,
.form-heading h2, .result-card h2, .track-box label { color: #111 !important; }
.about-intro, .faq-main, .contact-main, .tracking-main, .values { background: #fff !important; }
.mission-panel, .contact-form, .track-box, .faq-list details, .value-grid article { background: #fff !important; }

/* Les textes d'accent passent au noir ; l'or reste reserve aux fonds et bordures. */
.hero-eyebrow, .hero h1 .line-accent, .stat-num, .float-tag-gold,
.testimonials-section .section-tag, .stars, .footer-brand-name span,
.section-tag, .breadcrumb-nav a, .step-tag, .form-card-header .step-tag {
  color: #000000 !important;
}
.site-footer .footer-brand-name span { color: #ffffff !important; }

/* Le noir plein est reserve au header et au footer. */
.hero, .testimonials-section, .cta-section { background: #fff !important; }
.hero h1, .hero .float-card-title, .hero .float-card-text,
.hero .stat-label, .hero .hero-desc, .testimonials-section .section-title,
.testimonials-section .section-sub, .testimonial-text, .author-name,
.author-country, .cta-section h2, .cta-section p { color: #111 !important; }
.hero .hero-float-card { background: #fff; border-color: var(--border); color: #111; }
.hero .btn-outline-white { color: #111; border-color: #111; }
.hero .btn-outline-white:hover { background: #111; color: #fff; }
