/* ==== home.css ==== */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, rgba(13,27,42,0.9) 0%, rgba(27,38,59,0.8) 100%), url('../assets/img/hero-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-light);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Services */
.services {
  padding: 80px 0;
  background-color: #f9fafb;
}

/* ✅ Cards cliquables et interactives */
.service-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(13, 27, 42, 0.03);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -6px rgba(0,0,0,0.15);
}

.service-card img {
  width: 45%;
  height: auto;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
  width: 55%;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.service-card.reverse {
  flex-direction: row-reverse;
}

/* Contact */
.contact {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form textarea {
  resize: vertical;
}

/* ==== Effets 3D & Ombres — Form Contact ==== */

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: white;
  /* ✅ Ombre douce + léger effet 3D (inset sombre + relief) */
  box-shadow: 
    0 4px 12px rgba(13, 27, 42, 0.08),
    inset 0 -2px 0 rgba(0,0,0,0.03);
  transition: 
    box-shadow 0.4s ease,
    transform 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  /* ✅ Effet "lift" + ombre portée accrue (sensation de profondeur) */
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(13, 27, 42, 0.15),
    inset 0 -3px 0 rgba(0,0,0,0.05),
    0 0 0 3px rgba(13, 27, 42, 0.1);
}

/* ✅ Bouton d'envoi — effet 3D poussé */
.contact-form .btn {
  padding: 16px 36px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Base 3D : ombre directionnelle + dégradé subtil */
  background: linear-gradient(145deg, #1a2e4a, #0d1b2a);
  color: white;
  box-shadow: 
    0 6px 0 #0a1522, /* ombre "base" pour effet 3D */
    0 10px 20px rgba(13, 27, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.contact-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 4px 0 #0a1522,
    0 12px 25px rgba(13, 27, 42, 0.35);
}

.contact-form .btn:active {
  transform: translateY(1px);
  box-shadow: 
    0 2px 0 #0a1522,
    0 6px 15px rgba(13, 27, 42, 0.2);
}

.contact-form .btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.contact-form .btn:hover::after {
  opacity: 1;
}

.map-container {
  grid-column: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}

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

/* Responsive Home */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .service-card,
  .service-card.reverse {
    flex-direction: column;
  }
  .service-card img,
  .service-content { width: 100%; }
  /* .contact-grid { grid-template-columns: 1fr; } */
}

/* 📱 Mobile : 1 colonne, ordre explicite */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-row: 1;
  }

  .contact-form {
    grid-row: 2;
  }

  .map-container {
    grid-row: 3;
  }
}