/* ==========================================================================
   À L'EAU DÉPANNAGE 74 - Design System & Styles
   Spécialiste Dépannage Plomberie Urgence 74 & 73
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --success: #10b981;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

/* Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes live-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes call-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), 0 10px 25px -5px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.75), 0 12px 30px -4px rgba(239, 68, 68, 0.7);
  }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-call-glow {
  animation: call-glow 2.4s infinite ease-in-out;
}

.radar-ping {
  position: relative;
  display: inline-flex;
}

.radar-ping::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: live-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Header & Top Bar */
.top-emergency-bar {
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.header-nav {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  background-color: #0f172a;
  background-image: 
    linear-gradient(to right, rgba(15, 20, 28, 0.92) 0%, rgba(15, 20, 28, 0.82) 48%, rgba(15, 20, 28, 0.62) 100%),
    url('img/img4.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 60%, rgba(15, 20, 28, 0.85) 100%);
  pointer-events: none;
}

.hero-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(34, 197, 94, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.925rem;
  font-weight: 700;
  color: #f0fdf4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-phone-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Hero Form Container */
.hero-form-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 28px;
  color: var(--text-main);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #f8fafc;
  color: #0f172a;
}

.form-input:focus {
  outline: none;
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* Services Grid & Cards */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: #38bdf8;
}

.service-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

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

.service-card:hover .service-card-img-wrapper img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.detection-highlight-card {
  border: 2px solid #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  position: relative;
}

.detection-highlight-card::before {
  content: '★ RECOMMANDÉ ASSURANCES';
  position: absolute;
  top: 0;
  right: 20px;
  transform: translateY(-50%);
  background: #0284c7;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  z-index: 10;
}

/* Section Octobre Rose Styling */
.octobre-rose-section {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fdf2f8 100%);
  border-top: 1px solid #fecdd3;
  border-bottom: 1px solid #fecdd3;
  padding: 60px 20px;
}

.et_pb_with_border.et_pb_module.et_pb_text {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px;
  border: 2px solid #fb7185;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.12);
  position: relative;
}

.et_pb_with_border h4 {
  color: #be123c;
  font-size: 1.5rem;
  margin-top: 16px;
  margin-bottom: 12px;
  font-weight: 800;
}

.et_pb_with_border p {
  color: #4c0519;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.et_pb_with_border a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e11d48;
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  margin-top: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.et_pb_with_border a:hover {
  background: #be123c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

/* Insurance Marquee */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 30px;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(270deg, #f8fafc 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  min-width: 100%;
  animation: marquee 24s linear infinite;
}

.insurance-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  color: #1e293b;
  font-size: 1.05rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  white-space: nowrap;
}

/* Testimonial Carousel */
.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.review-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.review-slide.active {
  display: block;
  opacity: 1;
}

/* Fournisseurs & Partenaires */
#section-n-30_3169252 {
  position: relative;
  padding: 20px 0;
}

.sb-bloc-inner.container_91546912_inner {
  background: linear-gradient(135deg, #033659 0%, #075985 50%, #02233a 100%) !important;
  border-radius: 20px;
  margin: 20px auto;
  max-width: 1240px;
  box-shadow: 0 15px 35px rgba(2, 43, 68, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 50px 20px !important;
}

.has_filter_bw {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.has_filter_bw .partner-item {
  background: #ffffff;
  padding: 16px 32px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.has_filter_bw .partner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.has_filter_bw .partner-item img {
  filter: none !important;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Floating Bottom Call Bar for Mobile */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-top: 2px solid #ef4444;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Interactive Accordion */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
}

.faq-trigger:hover {
  color: #0284c7;
}

.faq-content {
  display: none;
  padding-bottom: 20px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.open .faq-content {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Custom Modal / Toast Notification */
#notification-toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: #0f172a;
  color: white;
  border-radius: 12px;
  padding: 16px 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 1000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  border-left: 4px solid #10b981;
}

#notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}
