/* Homepage Île-de-France - 2025 Mobile-First */

/* Icon System */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

.icon-primary { color: #0047BA; }
.icon-yellow { color: #F4BD00; }
.icon-success { color: #28A745; }
.icon-orange { color: #FF6B35; }
.icon-white { color: #FFFFFF; }

/* Hero Section - Île-de-France Focused with Background Image */
.hero-local {
  background:
    linear-gradient(135deg, rgb(0 71 186 / 10%) 0%, rgba(0, 58, 155, .94) 100%),
    url('/images/oxylis_icondens_1920x1080_1600x640.webp') center center / cover no-repeat;
  color: #FFFFFF;
  padding: var(--space-12) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

@media (min-width: 768px) {
  .hero-local {
    background:
      linear-gradient(135deg, rgb(0 71 186 / 10%) 0%, rgba(0, 58, 155, .94) 100%),
      url('/images/oxylis_icondens_1920x1080_1600x640.webp') center center / cover no-repeat;
    min-height: 500px;
  }
}

.hero-local-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-local h1,
.hero-local p,
.hero-local .city-badge {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: var(--space-2) var(--space-4);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero-local h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.region-name {
  color: #F4BD00;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* Live Availability Indicator */
.availability-bar {
  background: #28A745;
  color: #FFFFFF;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) auto;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Department Links Section */
.department-links-section {
  background: #F8F9FA;
  padding: var(--space-12) 0;
}

.department-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.department-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: #0047BA;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.department-link:hover {
  background: #003A9B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
}

/* Map Section */
.map-section {
  background: #FFFFFF;
  padding: var(--space-8) 0;
}

.map-container {
  background: #F8F9FA;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Recent Interventions */
.interventions-list {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.intervention-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid #E5E7EB;
  transition: background 0.2s ease;
}

.intervention-item:last-child {
  border-bottom: none;
}

.intervention-item:hover {
  background: #F8F9FA;
}

.intervention-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0047BA 0%, #003A9B 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.intervention-icon.icon-flame-bg {
  background: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%);
}

.intervention-details {
  flex: 1;
}

.intervention-service {
  font-weight: 600;
  color: #1f2731;
  margin-bottom: 4px;
}

.intervention-location {
  font-size: 0.9rem;
  color: #6B7280;
}

.intervention-time {
  font-size: 0.85rem;
  color: #96A0AD;
  white-space: nowrap;
}

/* Product Accordion */
.accordion-local {
  margin-top: var(--space-8);
}

.accordion-item-local {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.accordion-item-local:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header-local {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: #F8F9FA;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-header-local:hover {
  background: #E5E7EB;
}

.accordion-header-local.active {
  background: #0047BA;
  color: #FFFFFF;
}

.accordion-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-icon svg {
  transition: transform 0.3s ease;
}

.accordion-header-local.active .accordion-icon svg {
  transform: rotate(180deg);
}

.accordion-content-local {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-local.active {
  max-height: 500px;
}

.accordion-body {
  padding: var(--space-4);
}

/* Sidebar */
.sidebar-local {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.rating-widget {
  text-align: center;
  padding: var(--space-4);
  background: linear-gradient(135deg, #F4BD00 0%, #FFD700 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.rating-stars {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.rating-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.rating-count {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.related-cities {
  margin-top: var(--space-6);
}

.related-cities h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  color: #1f2731;
}

.cities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.city-link {
  padding: var(--space-2) var(--space-3);
  background: #F8F9FA;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #0047BA;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: block;
}

.city-link:hover {
  background: #0047BA;
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card-link:hover .service-card {
  border-color: #0047BA;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 71, 186, 0.15);
}

/* Responsive - Mobile-First Optimizations */
@media (max-width: 768px) {
  .icon-xl { width: 24px; height: 24px; }
  .intervention-icon { width: 40px; height: 40px; }

  .accordion-header-local {
    min-height: 48px;
    padding: var(--space-4) var(--space-5);
  }

  .city-badge {
    flex-direction: column;
    gap: var(--space-1);
  }

  .map-container {
    height: 300px;
  }

  .intervention-item {
    flex-direction: column;
    text-align: center;
  }

  .sidebar-local {
    position: static;
    margin-top: var(--space-8);
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .department-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .accordion-icon svg {
    transition: none;
  }

  .pulse-dot {
    animation: none;
  }
}
