/**
 * CSS Harmonisation Style Premium - Pages Électricité
 * Uniformise tous les styles de cartes avec effets prestige
 */

/* ============================================================================
   HARMONISATION DES CARTES - STYLE PREMIUM UNIFORME
   ============================================================================ */

/* Toutes les cartes héritent du style premium */
.card,
.expertise-card,
.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 54, 93, 0.12) !important;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

/* Effet hover premium avec ombrage et superposition */
.card:hover,
.expertise-card:hover,
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15),
              0 0 30px rgba(249, 115, 22, 0.12) !important;
  border-color: rgba(26, 54, 93, 0.2) !important;
}

/* Effet de brillance au survol */
.card::before,
.expertise-card::before,
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.card:hover::before,
.expertise-card:hover::before,
.service-card:hover::before {
  left: 100%;
}

/* ============================================================================
   ICÔNES PREMIUM - TOUJOURS EN BLANC DANS LES BOÎTES DE COULEUR
   ============================================================================ */

/* Why-icon avec gradient premium */
.why-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary, #1a365d) 0%, var(--color-accent, #146c6d) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(15, 61, 62, 0.2);
  transition: all 0.3s ease;
}

/* Forcer les icônes en BLANC dans les boîtes premium */
.why-icon i,
.why-icon svg,
.icon-box--prestige i,
.icon-box--prestige svg {
  color: white !important;
  fill: white !important;
  font-size: 1.5rem;
}

/* Effet hover sur les boîtes d'icônes */
.card:hover .why-icon,
.expertise-card:hover .why-icon,
.service-card:hover .why-icon,
.card:hover .icon-box--prestige,
.expertise-card:hover .icon-box--prestige,
.service-card:hover .icon-box--prestige {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(15, 61, 62, 0.3);
}

/* ============================================================================
   ICÔNES DANS LES TITRES - STYLE COHÉRENT
   ============================================================================ */

/* Icônes colorées dans les h2/h3 (pas dans les boîtes) */
.card h3 i,
.expertise-card h3 i,
.service-card h3 i {
  color: var(--color-primary, #1a365d) !important;
  margin-right: 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.card:hover h3 i,
.expertise-card:hover h3 i,
.service-card:hover h3 i {
  color: var(--color-accent, #146c6d) !important;
}

/* ============================================================================
   SECTION QUARTIERS - STYLE PREMIUM
   ============================================================================ */

.quartiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ============================================================================
   GLASS CARDS - DÉJÀ BIEN STYLÉES, ON GARDE L'UNIFORMITÉ
   ============================================================================ */

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-primary-light, rgba(26, 54, 93, 0.3));
  box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15),
              0 0 30px rgba(249, 115, 22, 0.15);
}

/* Icônes dans glass-card */
.glass-card i {
  color: var(--color-primary, #1a365d);
  transition: transform 0.3s ease;
}

.glass-card:hover i {
  transform: scale(1.15);
}

/* ============================================================================
   WHY-GRID ET WHY-CARD
   ============================================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(26, 54, 93, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15),
              0 0 30px rgba(249, 115, 22, 0.12);
  border-color: rgba(26, 54, 93, 0.2);
}

.why-card .why-icon {
  margin: 0 auto 1.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary, #1a365d);
}

.why-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   ICÔNES DES SERVICE-CARDS (4 PILIERS) - GRADIENT PREMIUM
   ============================================================================ */

.service-card__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary, #1a365d) 0%, var(--color-accent, #146c6d) 100%) !important;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 61, 62, 0.25);
  transition: all 0.3s ease;
}

.service-card__icon i,
.service-card__icon svg {
  color: white !important;
  fill: white !important;
  font-size: 1.8rem;
}

.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(15, 61, 62, 0.35);
}

/* ============================================================================
   WHAT-WE-DO-LIST - STYLE PREMIUM AVEC HOVER
   ============================================================================ */

.what-we-do-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.what-we-do-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(26, 54, 93, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.what-we-do-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(26, 54, 93, 0.12),
              0 0 20px rgba(249, 115, 22, 0.08);
  border-color: rgba(26, 54, 93, 0.2);
}

.what-we-do-list li i {
  color: var(--color-primary, #1a365d);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.what-we-do-list li:hover i {
  color: var(--color-accent, #146c6d);
  transform: scale(1.15);
}

.what-we-do-list li span {
  line-height: 1.6;
  color: #333;
}

.what-we-do-list li strong {
  color: var(--color-primary, #1a365d);
  font-weight: 700;
}

/* ============================================================================
   GLASS CARDS - RENFORCEMENT DU STYLE
   ============================================================================ */

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 54, 93, 0.15) !important;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  text-align: center;
}

.glass-card:hover {
  transform: translateY(-10px);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-color: rgba(26, 54, 93, 0.25) !important;
  box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15),
              0 0 30px rgba(249, 115, 22, 0.12) !important;
}

/* Icônes dans glass-card */
.glass-card i {
  color: var(--color-primary, #1a365d) !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.glass-card:hover i {
  transform: scale(1.2);
  color: var(--color-accent, #146c6d) !important;
}

/* ============================================================================
   PROCESS STEPS - STYLE PREMIUM AVEC HOVER
   ============================================================================ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(26, 54, 93, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  overflow: hidden;
}

/* Effet brillance */
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.process-step:hover::before {
  left: 100%;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15),
              0 0 30px rgba(249, 115, 22, 0.12);
  border-color: rgba(26, 54, 93, 0.2);
}

.process-step__number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary, #1a365d) 0%, var(--color-accent, #146c6d) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 61, 62, 0.25);
  transition: all 0.3s ease;
}

.process-step:hover .process-step__number {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 30px rgba(15, 61, 62, 0.35);
}

.process-step h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary, #1a365d);
}

.process-step p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .card,
  .expertise-card,
  .service-card,
  .glass-card {
    padding: 1.5rem;
  }

  .why-grid,
  .quartiers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .what-we-do-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
  }

  .service-card__icon i {
    font-size: 1.5rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .process-step {
    padding: 2rem 1.5rem;
  }

  .process-step__number {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

/* ============================================================================
   SLIDER INFINI MARQUES - VERSION REFACTORISEE (Claude)
   Approche CSS propre sans styles inline ni !important
   ============================================================================ */

/* Container - masque le debordement */
.marquee-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  position: relative;
}

/* Degradé de fondu sur les bords (effet premium) */
.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--color-gray-50, #f9fafb), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--color-gray-50, #f9fafb), transparent);
}

/* Track - piste de defilement */
.marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

/* Animation de defilement (GPU accelerated) */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause au survol */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* Logos */
.marquee-logo {
  flex: 0 0 auto;
  height: 55px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.marquee-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .marquee-track {
    gap: 40px;
    animation-duration: 30s;
  }

  .marquee-logo {
    height: 45px;
    max-width: 100px;
  }

  .marquee-container::before,
  .marquee-container::after {
    width: 50px;
  }
}

/* ============================================================================
   BADGES TEXTUELS (Alternative au slider)
   ============================================================================ */

.marques-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.marque-badge {
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-gray-800);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.marque-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
