/*
Theme Name: Hello Elementor LSF
Theme URI: https://libresolutionfinance.fr
Description: Child theme for Hello Elementor with custom branding for Libre Solution Finance
Author: Lionel Clément / PropulsLead
Author URI: https://propulslead.com
Template: hello-elementor
Version: 1.0.0
License: GPL v2 or later
Text Domain: hello-elementor-lsf
*/

:root {
  --orange: #EF4A00;
  --orange-light: #FF6B2B;
  --orange-glow: rgba(239, 74, 0, 0.12);
  --orange-subtle: rgba(239, 74, 0, 0.06);
  --anthracite: #4A4A4A;
  --dark: #1A1A1A;
  --charcoal: #2D2D2D;
  --warm-gray: #6B6B6B;
  --light-gray: #F7F5F3;
  --cream: #FAFAF8;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--sans);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(24px, 4vw, 80px);
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

/* Logo blanc visible par défaut (hero transparent), logo couleur masqué */
.nav-logo .logo-white { display: block; }
.nav-logo .logo-color { display: none; }

/* Au scroll : on inverse — logo couleur visible, logo blanc masqué */
.nav.scrolled .nav-logo .logo-white { display: none; }
.nav.scrolled .nav-logo .logo-color { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 18px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav.scrolled .nav-links a { color: var(--anthracite); }
.nav.scrolled .nav-links a:hover { color: var(--orange); background: var(--orange-subtle); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--orange) !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
  box-shadow: 0 2px 12px rgba(239, 74, 0, 0.3);
}

.nav-cta:hover {
  background: var(--orange-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(239, 74, 0, 0.4) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav.scrolled .nav-toggle span { background: var(--anthracite); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 64px clamp(24px, 4vw, 80px) 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 300px;
  color: rgba(255,255,255,0.45);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
}

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

.footer-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-indicator span {
  font-size: 0.75rem;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}
