/* ============================================
   Cartogo — Page d'accueil : Hero
   ============================================ */

.hero {
  position: relative;
  background: var(--color-white);
  padding: 64px 0 150px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.hero-text .eyebrow-line {
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-title .highlight {
  color: var(--color-teal);
  position: relative;
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-apps {
  display: flex;
  gap: 14px;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.app-badge:hover {
  background: var(--color-dark-2);
  transform: translateY(-3px);
}

.app-badge svg { width: 20px; height: 20px; }
.app-badge span { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.app-badge small { display: block; font-size: 0.62rem; opacity: 0.7; font-weight: 400; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(242,179,61,0.28), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-pin {
  position: absolute;
  top: 6%;
  left: 18%;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(242,179,61,0.45);
  z-index: 3;
  animation: floatPin 3s ease-in-out infinite;
}

.hero-pin span {
  transform: rotate(45deg);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 800;
}

@keyframes floatPin {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(-10px); }
}

.hero-car-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  filter: drop-shadow(0 30px 40px rgba(1,42,44,0.25));
  animation: floatCar 6s ease-in-out infinite;
}

@keyframes floatCar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-skyline {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  opacity: 0.5;
  z-index: 1;
}

/* ============== Barre de recherche flottante ============== */

.search-card {
  position: relative;
  z-index: 10;
  margin-top: -90px;
  background: linear-gradient(135deg, var(--color-dark-2), var(--color-dark));
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-medium);
}

.search-card-title {
  color: var(--color-white);
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.search-form {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1fr auto;
  gap: 14px;
}

.search-field {
  position: relative;
}

.search-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold-light);
  margin-bottom: 7px;
}

.search-field label svg { width: 13px; height: 13px; }

.search-field input,
.search-field select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--color-white);
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.search-field input::placeholder { color: rgba(255,255,255,0.45); }

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.13);
}

.search-field select option {
  color: #000;
}

.search-submit {
  align-self: end;
}

.search-submit .btn {
  width: 100%;
  height: 100%;
  min-height: 48px;
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-desc { margin-inline: auto; }
  .hero-apps { justify-content: center; }
  .search-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 110px; }
  .search-card { margin-top: -60px; padding: 24px 18px; }
  .search-form { grid-template-columns: 1fr; }
  .hero-apps { flex-direction: column; align-items: center; }
  .hero-apps-top { display: none; }
}
