/* ==================================== */
/* 1. VARIABLES GLOBALES (Racine)       */
/* ==================================== */
:root {
  /* --- COULEURS PREMIUM --- */
  --color-brand-primary: #2E7D32;
  /* Vert Forêt Profond */
  --color-brand-hover: #1B5E20;
  /* Vert encore plus sombre */
  --color-brand-secondary: #C5A059;
  /* Or Végétal / Terre */
  --color-accent-orange: #E65100;
  /* Orange Brûlé */

  --color-text-main: #1A1A1A;
  /* Noir presque pur */
  --color-text-secondary: #555555;
  /* Gris moyen */
  --color-text-light: #999999;
  /* Gris clair */

  --color-bg-body: #F9F9F9;
  /* Blanc cassé très léger */
  --color-bg-surface: #FFFFFF;
  /* Blanc pur */
  --color-bg-alt: #F0F2F0;
  /* Gris/Vert très pâle */

  --color-border: #E0E0E0;
  --color-shadow: rgba(0, 0, 0, 0.06);
  --color-shadow-hover: rgba(0, 0, 0, 0.12);

  /* --- DÉGRADÉS --- */
  --gradient-primary: linear-gradient(135deg, #2E7D32, #1B5E20);
  --gradient-gold: linear-gradient(135deg, #C5A059, #A6823C);
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));

  /* --- TYPOGRAPHIE & CONFIG --- */
  --font-family: 'Outfit', 'Inter', sans-serif;
  /* Police plus moderne */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ==================================== */
/* 2. CONFIGURATION DE BASE             */
/* ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: var(--font-family);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.7;
  margin: 0;
  padding-top: 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  /* Crénage serré pour look moderne */
  color: var(--color-text-main);
}

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

/* Focus accessible */
:focus-visible {
  outline: 3px solid var(--color-brand-secondary);
  outline-offset: 2px;
}

/* ==================================== */
/* 3. HEADER & NAVIGATION               */
/* ==================================== */

/* --- Top Bar --- */
.top-bar {
  background-color: #111;
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
  letter-spacing: 0.02em;
}

.contact-info span {
  margin-right: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  color: var(--color-brand-secondary);
}

.social-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-icon:hover {
  color: var(--color-brand-secondary);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--color-shadow);
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar-brand .logo-img {
  height: 55px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 12px;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-brand-primary);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-brand-primary);
}

/* --- Bouton CTA (Devis) --- */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: white !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-normal);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.btn-primary-custom:hover::before {
  opacity: 1;
}


/* ==================================== */
/* 4. CAROUSEL HERO (Cinématique)       */
/* ==================================== */
:root {
  --carousel-height-desktop: 650px;
  /* Plus grand pour impact */
  --carousel-height-mobile: 450px;
}

#heroCarousel .carousel-item {
  height: var(--carousel-height-desktop);
}

#heroCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  /* Plus sombre pour contraste texte */
}

.hero-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: left;
  max-width: 800px;
  padding-left: 5%;
}

.hero-caption .badge {
  background-color: var(--color-brand-secondary) !important;
  color: #000 !important;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 4px;
}

.hero-caption h5 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-caption p {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

@media (max-width: 768px) {
  #heroCarousel .carousel-item {
    height: var(--carousel-height-mobile);
  }

  .hero-caption h5 {
    font-size: 2.2rem;
  }

  .hero-caption {
    bottom: 40%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==================================== */
/* 5. SECTIONS & TITRES                 */
/* ==================================== */
.section-badge {
  color: var(--color-brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: white;
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--color-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  min-width: 160px;
}

.stat-box .h2 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================================== */
/* 6. CARTES SERVICES (Glassmorphism)   */
/* ==================================== */
.service-card-v2 {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  height: 100%;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card-v2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-brand-primary);
  opacity: 0.05;
  border-radius: 50% 0 0 0;
  z-index: -1;
  transition: var(--transition-normal);
}

.service-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--color-shadow-hover);
  border-color: transparent;
}

.service-card-v2:hover::after {
  transform: scale(5);
  opacity: 0.03;
}

.icon-box-v2 {
  width: 60px;
  height: 60px;
  background: var(--color-bg-alt);
  color: var(--color-brand-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card-v2:hover .icon-box-v2 {
  background: var(--color-brand-primary);
  color: white;
  transform: rotateY(180deg);
}

/* ==================================== */
/* 7. CARTES PRODUITS (Premium)         */
/* ==================================== */
.product-card {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px var(--color-shadow);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.1);
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-brand-primary);
}

.btn-buy {
  background-color: #111;
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: var(--transition-normal);
}

.btn-buy:hover {
  background-color: var(--color-brand-secondary);
  color: #000;
  transform: scale(1.05);
}

/* ==================================== */
/* 8. AVANTAGES & TÉMOIGNAGES           */
/* ==================================== */
.avantage-card {
  padding: 30px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px var(--color-shadow);
  display: flex;
  align-items: center;
  gap: 25px;
  transition: var(--transition-normal);
}

.avantage-card:hover {
  transform: translateX(10px);
  border-left: 5px solid var(--color-brand-secondary);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Témoignages */
.card.border-0.shadow-sm {
  border-radius: var(--radius-md);
  padding: 2rem !important;
  background: #fff;
  transition: var(--transition-normal);
}

.card.border-0.shadow-sm:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-5px);
}

.text-warning {
  color: var(--color-brand-secondary) !important;
}


/* ==================================== */
/* 9. FOOTER (Luxe)                     */
/* ==================================== */
.footer {
  background-color: #0a0a0a;
  color: #888;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: white;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.footer-links a {
  color: #888;
  display: block;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-brand-secondary);
  padding-left: 10px;
}

.footer-bottom {
  background: #000;
  padding: 30px 0;
  margin-top: 80px;
  border-top: 1px solid #222;
  font-size: 0.9rem;
}

/* ==================================== */
/* 10. PAGES INTERNES (Contact/Devis)   */
/* ==================================== */
.page-header {
  /* Nouveau Design : Dégradé Profond et Moderne (Sans Image) */
  background: linear-gradient(120deg, #143d1f 0%, #2E7D32 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: white;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.2);
}

/* Motif subtil en arrière-plan (CSS pur) */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.contact-info-box,
.contact-form-box,
.devis-form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  padding: 50px;
  border: none;
}

.form-control,
.form-select {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #eee;
  background: #fcfcfc;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
  background: white;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  z-index: 9999;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  background: #128C7E;
  color: white;
}