/* ============================================
   home.css — ALB-ELEC homepage overrides
   À placer dans /assets/css/home.css
   ============================================ */

/* ---- HERO — réduction espace vertical ---- */
.hero-h1 {
  font-family: 'Abel', Arial, sans-serif !important;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}

/* Réduction padding hero tablette + espace bas */
@media (max-width: 992px) {
  header.hero {
    padding: 70px 0 70px !important;
  }
  .hero-content {
    margin-top: -40px !important;
  }
}

/* Réduction padding hero mobile — écrase le 110px de styles.min.css */
@media (max-width: 576px) {
  header.hero {
    padding: 60px 0 80px !important;
  }
  .hero-content {
    margin-top: -10px !important;
  }
}

/* CORRECTIF CRITIQUE — margin-bottom:200px sur .d-flex dans styles.min.css
   attrape les boutons hero sur mobile et crée l'espace vide */
@media (max-width: 768px) {
  header.hero .d-flex.justify-content-center,
  header.hero .hero-btns {
    margin-bottom: 0 !important;
  }
}

/* ---- BOUTONS HERO ---- */
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}

/* Override btn-custom uniquement dans le hero */
header.hero .btn-custom {
  font-size: 1.05rem !important;
  padding: 13px 30px !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 210, 0, 0.15);
  border: 1px solid rgba(255, 210, 0, 0.4);
  color: #FFD200;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 210, 0, 0.25);
}

.btn-outline-hero {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 600;
  padding: 13px 30px !important;
  border-radius: 50px !important;
  transition: all 0.3s ease;
  font-family: 'Abel', Arial, sans-serif;
  white-space: nowrap;
  line-height: 1.3 !important;
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #fff !important;
  color: #fff !important;
  transform: translateY(-3px);
}

/* ---- BANDE RÉASSURANCE ---- */
.reassurance-band {
  background: #fff;
  padding: 0;
  border-bottom: none;
}

.reassurance-item {
  padding: 18px 12px;
  border-right: 1px solid #eee;
}

.reassurance-item:last-child {
  border-right: none;
}

.reassurance-number {
  font-family: 'Abel', Arial, sans-serif !important;
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #0F1629;
  line-height: 1.2;
  margin-bottom: 3px;
}

.reassurance-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 576px) {
  .reassurance-item {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 12px 8px;
  }
  .reassurance-item:nth-child(odd) {
    border-right: 1px solid #eee;
  }
  .reassurance-item:last-child,
  .reassurance-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
}

/* ---- SERVICES PRINCIPAUX ---- */
.services-main {
  background: linear-gradient(135deg, #0F1629, #1E2A44);
  padding: 60px 0;
  text-align: center;
}

.autres-services-title {
  font-family: 'Abel', Arial, sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* Cards premium 4 services principaux */
.service-card-premium {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35) !important;
}

.priority-card {
  box-shadow: 0 0 0 3px #FFD200, 0 12px 32px rgba(255,210,0,0.25) !important;
}

.priority-card:hover {
  box-shadow: 0 0 0 3px #FFD200, 0 24px 48px rgba(255,210,0,0.35) !important;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,30,0.92) 0%, rgba(10,14,30,0.55) 55%, rgba(10,14,30,0.1) 100%);
  transition: background 0.35s ease;
}

.service-card-premium:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(10,14,30,0.97) 0%, rgba(10,14,30,0.7) 60%, rgba(10,14,30,0.2) 100%);
}

.service-card-body {
  position: relative;
  z-index: 2;
  padding: 24px 22px;
  text-align: left;
}

.service-badge-urgent {
  display: inline-block;
  background: #FFD200;
  color: #0F1629;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.service-card-title {
  font-family: 'Abel', Arial, sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.service-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: 0 0 10px;
  line-height: 1.5;
}

.service-card-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFD200;
  letter-spacing: 0.02em;
  transition: letter-spacing 0.2s ease;
}

.service-card-premium:hover .service-card-link {
  letter-spacing: 0.06em;
}

/* ---- BLOC URGENCE CTA ---- */
.urgence-cta {
  background: #0F1629;
  padding: 0;
}

.urgence-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0;
  min-height: 90px;
}

.urgence-cta-left {
  padding: 22px 32px;
  border-right: 1px solid rgba(255,210,0,0.2);
}

.urgence-cta-title {
  font-family: 'Abel', Arial, sans-serif !important;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 6px;
}

.urgence-cta-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.urgence-cta-sub span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.urgence-cta-sub span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFD200;
  opacity: 0.7;
}

.urgence-cta-right {
  display: flex;
  align-items: center;
  padding: 20px 36px;
  background: #FFD200;
  transition: background 0.25s ease;
  text-decoration: none;
}

.urgence-cta-right:hover {
  background: #e8c000;
}

.urgence-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.urgence-btn-number {
  font-family: 'Abel', Arial, sans-serif !important;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0F1629;
  line-height: 1;
  white-space: nowrap;
}

.urgence-btn-label {
  font-size: 0.7rem;
  color: rgba(15,22,41,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .urgence-cta-inner {
    grid-template-columns: 1fr;
  }
  .urgence-cta-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,210,0,0.2);
    padding: 18px 20px;
    text-align: center;
  }
  .urgence-cta-sub {
    justify-content: center;
  }
  .urgence-cta-right {
    justify-content: center;
    padding: 18px 20px;
  }
}

/* ---- SECTION SERVICES — ajustements cards secondaires ---- */
.service-card h3 {
  font-family: 'Abel', Arial, sans-serif !important;
}

/* ---- SECTION INTERVENTIONS RÉCENTES ---- */
.interventions-section {
  padding: 70px 0;
}

.interventions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intervention-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.intervention-dot {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 210, 0, 0.12);
  border: 1.5px solid rgba(255, 210, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD200;
  font-size: 1rem;
  margin-top: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.intervention-item:hover .intervention-dot {
  background: rgba(255, 210, 0, 0.22);
  border-color: #FFD200;
}

.intervention-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  flex: 1;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.intervention-item:hover .intervention-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 210, 0, 0.25);
  transform: translateY(-3px);
}

.intervention-date {
  display: inline-block;
  font-size: 0.72rem;
  color: #FFD200;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  font-family: 'Abel', Arial, sans-serif;
}

.intervention-title-card {
  font-family: 'Abel', Arial, sans-serif !important;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.3;
}

.intervention-desc {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
  line-height: 1.5;
}

.intervention-lieu {
  font-size: 0.75rem;
  color: rgba(255, 210, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 992px) {
  .interventions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .interventions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .interventions-section {
    padding: 50px 0;
  }
}

/* ---- CORRECTIF INTERVENTIONS — icônes dans les cards ---- */
.intervention-item {
  display: block !important;
}

.intervention-dot {
  display: none !important;
}

.intervention-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 210, 0, 0.12);
  border: 1.5px solid rgba(255, 210, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD200;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.intervention-item:hover .intervention-icon {
  background: rgba(255, 210, 0, 0.22);
  border-color: #FFD200;
}

/* Réajuste le padding card sans le dot externe */
.intervention-item .intervention-card {
  padding: 20px 20px 16px !important;
}

/* Header card intervention — icône à gauche, date+titre à droite */
.intervention-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.intervention-card-header .intervention-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.intervention-card-header .intervention-date {
  display: block;
  margin-bottom: 2px;
}

.intervention-card-header .intervention-title-card {
  margin: 0;
}