/* ============================================
   HOME.CSS — Styles spécifiques à l'accueil
   Serruriers du Léman
============================================ */

/* === HERO === */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 13, 13, 0.96) 0%,
    rgba(13, 13, 13, 0.82) 45%,
    rgba(13, 13, 13, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 180px;
  padding-bottom: var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.hero__text h1 {
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* H1 SEO discret (arbitrage 22/08/2026) : le H1 porte « Serrurier à Sciez/Genève »,
   la tagline « L'Écrin de votre sécurité » garde le rendu visuel de l'ancien H1. */
.hero__seo-h1 {
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(232, 232, 232, 0.85);
  max-width: 520px;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
}

/* Icônes rapides hero */
.hero__quick-services {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.quick-service {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quick-service__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
  flex-shrink: 0;
}

.quick-service__icon svg {
  width: 18px;
  height: 18px;
}

.quick-service span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* Indicateur scroll */
.hero__scroll {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* === WHY US === */
.why-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.why-us__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.why-us__image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.why-us__badge {
  position: absolute;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.why-us__badge svg {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.why-us__badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-white);
}

.why-us__badge span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.why-us__content h2 {
  margin-bottom: var(--spacing-md);
}

/* === CTA URGENCE === */
.cta-urgence {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1208 50%, #0d0d0d 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-urgence::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-urgence__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.cta-urgence__content h2 {
  margin-bottom: var(--spacing-sm);
}

.cta-urgence__content p {
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0;
}

.cta-urgence__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

/* === RESPONSIVE HOME === */
@media (max-width: 1200px) {
  .why-us {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .hero__bg img {
    object-position: 70% center;
    filter: brightness(1.15);
  }

  .hero__overlay {
    background: rgba(13, 13, 13, 0.68);
  }

  .hero__quick-services {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .why-us {
    grid-template-columns: 1fr;
  }

  .why-us__image img {
    height: 320px;
  }

  .cta-urgence__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-urgence__content p {
    max-width: 100%;
  }

  .cta-urgence__actions {
    width: 100%;
  }

  .cta-urgence__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
  }

  .why-us__badge {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
}

@media (max-width: 320px) {
  .quick-service span {
    display: none;
  }
}
