/* ==========================================================================
   KRISMANN ESPACES VERTS - BRETAGNE
   Style "Artisan Haute Performance & Réassurance" (Inspiré Docteur Habitat)
   Palette : Orange Vif (#FF6B00 / #EA580C), Blanc Pur (#FFFFFF), Slate (#0F172A)
   ========================================================================== */

:root {
  --primary-orange: #FF6B00;
  --primary-orange-dark: #DD5A00;
  --primary-orange-light: #FFF2EA;
  --primary-orange-glow: rgba(255, 107, 0, 0.4);
  --navy-dark: #0B132B;
  --navy-deep: #070C1E;
  --slate-dark: #0F172A;
  --slate-mid: #334155;
  --slate-light: #64748B;
  --pure-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --green-emerald: #10B981;
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--slate-mid);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange-dark);
}

/* Pulse Animations for CTA */
.pulse-orange {
  animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

/* Swiper Hero */
.hero-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .slide-img-bg {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 12, 30, 0.94) 0%, rgba(15, 23, 42, 0.85) 55%, rgba(255, 107, 0, 0.38) 100%);
  z-index: 2;
}

/* Showcase Swiper (Carrousel Défilant dédié aux Élagueurs) */
.showcase-swiper {
  width: 100%;
  padding-bottom: 50px !important;
}

.showcase-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(255, 107, 0, 0.35);
  border-color: var(--primary-orange);
}

/* Fallback card media wrapper */
.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.card-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Swiper Pagination & Controls */
.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #FFFFFF !important;
  opacity: 0.5 !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  width: 32px !important;
  border-radius: 6px !important;
  background: var(--primary-orange) !important;
  opacity: 1 !important;
  box-shadow: 0 0 12px var(--primary-orange);
}

.showcase-swiper .swiper-pagination-bullet {
  background: #94A3B8 !important;
}

.showcase-swiper .swiper-pagination-bullet-active {
  background: var(--primary-orange) !important;
}

.swiper-button-prev,
.swiper-button-next {
  width: 48px !important;
  height: 48px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
  color: #FFFFFF !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--primary-orange) !important;
  border-color: var(--primary-orange) !important;
  transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}

@media (max-width: 640px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

/* Trust Pillar Cards */
.trust-badge-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--primary-orange);
  background: #FFFFFF;
}

.trust-badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Service Cards */
.pro-service-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.pro-service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-orange);
  box-shadow: 0 25px 45px -15px rgba(255, 107, 0, 0.22);
}

.pro-service-card:hover .service-icon-box {
  background-color: var(--primary-orange);
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}

.service-icon-box {
  transition: all 0.35s ease;
}

/* Before / After Slider */
.ba-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  user-select: none;
  background: #0F172A;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  width: 50%;
  z-index: 2;
  border-right: 4px solid var(--primary-orange);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
  border: 3px solid #FFFFFF;
}

.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.ba-badge {
  position: absolute;
  bottom: 18px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  z-index: 5;
  letter-spacing: 0.5px;
}

.ba-badge-before {
  left: 18px;
  border-left: 3px solid #EF4444;
}

.ba-badge-after {
  right: 18px;
  border-right: 3px solid #10B981;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(7, 12, 30, 0.98);
    backdrop-filter: blur(14px);
    border-top: 3px solid var(--primary-orange);
    padding: 10px 12px;
    gap: 8px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Gallery Item Transitions */
.gallery-item {
  transition: all 0.4s ease;
}

.gallery-item.hidden-item {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

/* Comparison Table (Docteur Habitat Style) */
.table-check {
  color: #10B981;
  font-size: 1.25rem;
}
.table-cross {
  color: #EF4444;
  font-size: 1.25rem;
}

/* Bande défilante (Marquee) */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}
.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 30s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Effet de camion qui roule (vibration et léger balancement) */
@keyframes drive-wobble {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-1.5px) rotate(-0.5deg); }
  50% { transform: translateY(1px) rotate(0deg); }
  75% { transform: translateY(-1px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.animate-drive {
  animation: drive-wobble 0.3s linear infinite;
}
