/* ==========================================================================
   3L AMÉNAGEMENT - ULTRA PREMIUM CSS
   Architecture Mobile-First | Deep Green & Champagne Theme
   ========================================================================== */

:root {
  /* Ultra Premium Palette */
  --color-primary: #0A1C16; /* Deepest Forest Green (Almost Black) */
  --color-secondary: #0F2E23; /* Rich Emerald Dark */
  --color-accent: #D4AF37; /* Champagne Gold */
  --color-accent-hover: #EBC754;
  --color-bg: #F9F8F6; /* Warm Pearl/Sand */
  --color-surface: #FFFFFF;
  --color-text: #2D3748;
  --color-text-light: #718096;
  --color-border: #E2E8F0;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows (Softer, more elegant) */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(10, 28, 22, 0.08); /* Tinted shadow */
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
  
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }

.container {
  width: 100%;
  max-width: 1320px; /* Slightly wider for premium feel */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: var(--space-24) 0; }
.section-dark { background-color: var(--color-primary); color: var(--color-surface); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--color-surface); }

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.text-gold { color: var(--color-accent) !important; }
.text-overline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

.heading-xl { font-size: clamp(2.5rem, 6vw + 1rem, 5rem); }
.heading-lg { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); margin-bottom: var(--space-6); }
.heading-md { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin-bottom: var(--space-4); }
.text-lead { font-size: 1.125rem; color: var(--color-text-light); max-width: 65ch; margin-bottom: var(--space-6); }
.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-accent);
}
.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-surface);
}

/* ==========================================================================
   Header (Ultra Clean)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(249, 248, 246, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 28, 22, 0.05);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 48px; width: auto; }
.nav-links {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(10, 28, 22, 0.98); /* Deep Forest almost solid */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.nav-links.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-surface);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
}

.nav-links.active a {
  opacity: 1;
  transform: translateY(0);
}

.nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
.nav-links.active a:nth-child(2) { transition-delay: 0.15s; }
.nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
.nav-links.active a:nth-child(4) { transition-delay: 0.25s; }
.nav-links.active a:nth-child(5) { transition-delay: 0.3s; }

.nav-links a:hover {
  color: var(--color-accent);
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1000;
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn.active {
  color: var(--color-surface);
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero Section (Magazine Style)
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end; /* Align text to bottom for mobile */
  padding-bottom: 8vh;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  color: white;
  width: 100%;
  padding-top: 0; /* Fixed: Removed 45vh that pushed text off screen */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s, transform 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}
.hero-content-wrapper h1, .hero-content-wrapper p { color: white; }
.hero-content-wrapper p { color: rgba(255,255,255,0.85); font-size: 1.15rem; }

.hero-image-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background: var(--color-primary); /* Base color if video takes time to load */
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}

.hero-video-overlay {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Fonce moins (Lighter fade) */
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,28,22,0.7) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1); /* Flamboyant cinematic fade */
  pointer-events: none;
}

/* Video Ended Transition States */
.hero.video-ended .hero-video-overlay {
  opacity: 1;
}

.hero.video-ended .hero-content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   AI Simulator (Dark Mode 50K UX)
   ========================================================================== */
.simulator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.sim-panel {
  background: #0A1C16;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(212,175,55,0.1);
  position: relative;
  overflow: hidden;
}

.sim-tabs {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  margin-bottom: 2rem;
}
.sim-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all 0.3s;
}
.sim-tab.active {
  background: rgba(212,175,55,0.1);
  color: var(--color-accent);
}

.upload-area {
  border: 2px dashed rgba(212,175,55,0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: rgba(0,0,0,0.1);
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--color-accent);
  background: rgba(212,175,55,0.05);
}

#prompt-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: white;
  font-family: var(--font-body);
  resize: vertical;
  margin-bottom: 1.5rem;
}
#prompt-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.scan-line {
  width: 150px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  box-shadow: 0 0 15px var(--color-accent);
  animation: scan 1.5s ease-in-out infinite alternate;
}
@keyframes scan {
  0% { transform: translateY(-40px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* ==========================================================================
   Services Grid (Luxury Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-image { height: 320px; overflow: hidden; position: relative; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.service-card:hover .service-image img { transform: scale(1.05); }

.service-content {
  padding: var(--space-8) var(--space-8);
  position: relative;
  background: var(--color-surface);
}

.service-content ul {
  list-style: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.service-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}
.service-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ==========================================================================
   Founder & Trust Section (Willi & Camion)
   ========================================================================== */
.trust-section { background-color: var(--color-surface); padding: var(--space-24) 0; overflow: hidden; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }

.founder-block { position: relative; }
.founder-image {
  width: 100%; max-width: 450px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.founder-image img { border-radius: inherit; }

.founder-quote {
  background: var(--color-primary);
  color: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  position: relative;
  margin-top: -40px;
  margin-left: 20px;
  z-index: 3;
  box-shadow: var(--shadow-lg);
}
.founder-quote p { color: rgba(255,255,255,0.9); font-size: 1.1rem; font-style: italic; }
.founder-quote h4 { color: var(--color-accent); margin-top: 1rem; font-size: 1.25rem; }

/* Truck Promo Block */
.truck-promo {
  background: linear-gradient(135deg, var(--color-bg) 0%, #E3E0D8 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: 150px; /* Space for the truck popping out on top */
  position: relative;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cutout-truck {
  position: absolute;
  top: -120px; /* Popping out aggressively on mobile */
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  width: 90%;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.truck-promo:hover .cutout-truck { transform: translate(-50%, -10px) scale(1.05); }

.truck-text { 
  max-width: 500px; 
  margin: 0 auto; 
  padding-top: 80px; /* Push text down to make room for truck */
  position: relative; 
  z-index: 3; 
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.review-card {
  background: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,28,22,0.05);
}
.review-author { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--color-border); padding-top: 1rem;}
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: var(--font-heading); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-primary); color: white; padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.footer-col h4 { color: var(--color-accent); margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.875rem; }

/* ==========================================================================
   Horizontal Scroll (Native Mobile Feel)
   ========================================================================== */
.horizontal-scroll-snap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-8);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: var(--space-4);
}

.horizontal-scroll-snap::-webkit-scrollbar {
  display: none; /* Hide scrollbar for cleaner look */
}
.horizontal-scroll-snap {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-snap-card {
  scroll-snap-align: center;
  flex: 0 0 85%; /* Cards take up 85% of screen width */
  min-width: 280px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 768px) {
  .horizontal-scroll-snap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    gap: var(--space-6);
  }
  .scroll-snap-card {
    flex: auto;
  }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  
  .truck-promo { 
    text-align: left; 
    display: flex; 
    flex-direction: row; /* reset flex dir */
    align-items: center; 
    justify-content: space-between; 
    padding: var(--space-16); 
    margin-top: var(--space-24);
  }
  .truck-text { padding-top: 0; margin: 0; max-width: 400px; }
  .cutout-truck { 
    top: 50%; 
    left: auto;
    right: -2%; 
    transform: translateY(-50%); 
    width: 55%; 
    max-width: 600px;
  }
  .truck-promo:hover .cutout-truck { transform: translate(0, -55%) scale(1.05); }
}

@media (min-width: 1024px) {
  .nav-links { 
    position: static;
    width: auto; height: auto;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    opacity: 1; visibility: visible; transform: none;
    display: flex; gap: 2.5rem; align-items: center; 
  }
  .nav-links a { 
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text);
    opacity: 1; transform: none;
  }
  .nav-links a:hover { color: var(--color-accent); }
  .nav-links a.btn { color: var(--color-primary); }
  .nav-links a.btn:hover { color: var(--color-primary); }
  
  .mobile-menu-btn { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .horizontal-scroll-snap.values-grid { grid-template-columns: repeat(3, 1fr); }
  
  /* Hero Desktop Layout (50/50 split or Full Video) */
  /* Retain cinematic full width video on desktop for maximum premium feel */
  .hero { align-items: center; padding-bottom: 0; padding-top: var(--space-24); }
  .hero-content-wrapper { max-width: 700px; padding-top: 0; }
  .hero-content-wrapper p { font-size: 1.25rem; }
  .hero-image-wrapper { width: 100%; right: 0; left: 0; }
  
  .simulator-grid { grid-template-columns: 1fr 1.5fr; gap: 3rem; }
}

/* Utilities */
.hidden { display: none !important; }
.fade-in-up { animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
