:root {
  --primary: #F46200;
  --primary-hover: #D95700;
  --primary-light: #FFF0E5;
  --secondary: #1A1A1A;
  
  --text-main: #4A4A4A;
  --text-muted: #7A7A7A;
  
  --bg-main: #FDFBF7; 
  --bg-white: #FFFFFF;
  --bg-light: #F7F5F0;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-orange: 0 10px 25px -5px rgba(244, 98, 0, 0.3);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(244, 98, 0, 0.4);
}

.btn-white {
  background-color: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 110px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 85px;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--secondary);
  font-size: 1.05rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 4px;
}

.mobile-text {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content .highlight {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-muted);
  max-width: 90%;
}

/* Search Box */
.search-box {
  background: white;
  padding: 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 650px;
  border: 1px solid #E2E8F0;
}

.search-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 16px;
  gap: 12px;
  border-right: 1px solid #E2E8F0;
}

.search-input-group:last-of-type {
  border-right: none;
}

.search-input-group i {
  color: var(--primary);
  flex-shrink: 0;
}

.search-input-group input {
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  color: var(--secondary);
}

.search-btn {
  padding: 14px 32px;
  flex-shrink: 0;
}

/* Hero Image & Floating Trust */
.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.floating-trust {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: white;
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #f0f0f0;
}

.trust-avatars {
  display: flex;
}

.trust-avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -16px;
}
.trust-avatars img:first-child {
  margin-left: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
}
.trust-text strong {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1;
}
.trust-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   QUICK CTA
   ========================================================================== */
.quick-cta {
  padding: 40px 0;
  margin-top: 40px;
}

.quick-cta-inner {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: var(--shadow-orange);
}

.quick-cta-text h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 8px;
}
.quick-cta-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   PROCESS (COMMENT CA MARCHE)
   ========================================================================== */
.process-section {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

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

.process-card {
  text-align: center;
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}

.process-card:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-orange);
}

.process-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ==========================================================================
   SERVICES (ACTION CARDS)
   ========================================================================== */
.services-action {
  padding: 100px 0;
  background: var(--bg-main);
}

.action-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  gap: 60px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.action-card:last-child {
  margin-bottom: 0;
}

.action-card.reverse {
  flex-direction: row-reverse;
}

.action-card-text {
  flex: 1;
}

.action-card-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.action-card-text p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: var(--text-main);
}

.action-card-img {
  flex: 0 0 400px;
}

.action-card-img img {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   AVANTAGES
   ========================================================================== */
.benefits-section {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.benefits-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.benefits-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefits-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.icon-box {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.benefits-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-main);
}

.cta-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-orange);
}

.cta-box h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta-box p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 80px 0 24px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container, .benefits-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 32px;
  }
  .search-box {
    margin: 0 auto;
  }
  .floating-trust {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
  .quick-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .action-card, .action-card.reverse {
    flex-direction: column;
    text-align: center;
  }
  .action-card-img {
    flex: auto;
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand > div {
    justify-content: center;
  }
  .footer-contact ul {
    align-items: center;
  }
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Header Mobile: Logo à gauche, bouton "Devis" à droite avec le menu */
  .nav-links, .desktop-text {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    align-items: center;
    gap: 20px;
    border-top: 1px solid #eee;
  }
  .mobile-text {
    display: inline;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-container {
    padding: 0 16px;
    gap: 12px;
  }

  .logo-img {
    height: 80px; /* Constrain height to avoid huge logo */
    max-width: 250px; /* Constrain width to leave room for buttons */
  }
  
  .header.scrolled .logo-img {
    height: 65px;
  }

  .btn-devis {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  /* Hero adjustments */
  .hero {
    padding-top: 130px;
    padding-bottom: 60px;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }

  /* Formulaire Mobile (Empilé et esthétique) */
  .search-box {
    flex-direction: column;
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    width: 100%;
  }
  
  .search-input-group {
    width: 100%;
    background: white;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1px solid #E2E8F0;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
  }
  
  .search-btn {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 16px;
  }

  .hero-img {
    height: 300px; /* Moins grand sur mobile */
  }
  
  .floating-trust {
    padding: 12px 20px;
    width: 90%;
    bottom: -20px;
  }
  
  .quick-cta-inner {
    padding: 32px 20px;
  }

  .action-card {
    padding: 24px;
    gap: 32px;
  }
  
  .action-card-text h3 {
    font-size: 1.8rem;
  }
  
  .cta-box {
    padding: 40px 20px;
  }
  
  .cta-box h2 {
    font-size: 2rem;
  }
  
  .benefits-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
