/* Hero Section */
.hero {
  background: url('/static/assets/img/Sofia-view.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}
/* iOS Safari ne supporte pas background-attachment: fixed (fond invisible).
   Sur appareils tactiles, on repasse en scroll pour que l'image s'affiche. */
@media (hover: none), (max-width: 968px) {
  .hero { background-attachment: scroll; }
}
.hero::before {
  content:''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3); opacity: 1;
}
.hero-content {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; z-index: 1; max-width: 900px; margin: 0 auto;
}
.hero-text { width: 100%; margin-bottom: 60px; }
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1; color: white;
  margin-bottom: 24px; letter-spacing: -0.02em; max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.hero p {
  font-size: 20px; color: rgba(255,255,255,0.8); margin-bottom: 48px;
  line-height: 1.6; font-weight: 400;
}
.hero-subtitle {
  font-size: 24px; font-weight: 600; color: var(--secondary);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px;
}
.hero-estimation { width: 100%; max-width: 700px; margin: 0 auto; }
.estimation-form { margin-bottom: 32px; }

.input-group {
  display: flex; align-items: center; background: white;
  border: 2px solid var(--gray-200); border-radius: 12px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  margin-bottom: 16px; transition: border-color 0.2s ease;
}
.input-group:focus-within {
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}
.location-icon { font-size: 18px; margin-right: 12px; color: var(--secondary); }
.address-input {
  flex: 1; border: none; outline: none; padding: 16px 12px;
  font-size: 16px; color: var(--gray-700); background: transparent;
}
.address-input::placeholder { color: var(--gray-400); font-style: italic; }
.estimation-btn {
  padding: 16px 32px; background: var(--secondary); color: white;
  border: none; border-radius: 8px; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.estimation-btn:hover {
  background: var(--accent); transform: translateY(-1px);
  box-shadow: 0 8px 25px -5px rgba(233, 30, 99, 0.3);
}

.suggestion { font-size: 14px; color: rgba(255,255,255,0.7); text-align: center; }
.address-link { color: var(--secondary); text-decoration: underline; font-weight: 600; }
.address-link:hover { color: #ff4081; }

.trust-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; font-size: 16px; color: rgba(255,255,255,0.8);
}
.rating-text { font-weight: 500; }
.stars { display: flex; gap: 2px; }
.star { font-size: 18px; }
.star.filled { color: #fbbf24; }
.rating-score { font-weight: 700; color: #f59e0b; font-size: 18px; }
.rating-count { font-weight: 600; color: rgba(255,255,255,0.9); }
.platform { color: rgba(255,255,255,0.7); }

/* Features Section */
.features { padding: 100px 0; background: white; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: 36px; font-weight: 800; color: var(--primary);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-header p {
  font-size: 18px; color: var(--gray-600); max-width: 600px; margin: 0 auto;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px;
}
.feature-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 16px;
  padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0); transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border-color: var(--gray-300);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card h3 {
  font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px;
}
.feature-card p { color: var(--gray-600); line-height: 1.7; }

/* How it works */
.how-it-works { padding: 100px 0; background: var(--gray-50); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; margin-top: 60px;
}
.step-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 16px;
  padding: 32px; text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  position: relative; transition: all 0.3s ease;
}
.step-number {
  width: 48px; height: 48px; background: var(--secondary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px;
}
.step-card p { color: var(--gray-600); line-height: 1.6; }

/* CTA Section */
.cta-section { padding: 80px 0; background: var(--secondary); color: white; }
.cta-content { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.cta-content p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; align-items: center; }

/* Pricing (Version propre) */
.pricing {
  padding: 100px 0;
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.pricing-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.pricing-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
}

/* FAQ */
.faq { padding: 100px 0; background: var(--gray-50); }
.faq-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px; margin-top: 60px;
}
.faq-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 16px;
  padding: 32px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.faq-card h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.faq-card p { color: var(--gray-600); line-height: 1.6; }

/* Responsive specifics */
@media (max-width: 968px){
  .hero-content { text-align: center; }
  .hero { padding: 80px 0 100px; }
  .hero h1 { font-size: 40px; }
  .input-group { flex-direction: column; padding: 20px; gap: 16px; }
  .address-input { width: 100%; text-align: center; }
  .estimation-btn { width: 100%; padding: 16px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .features-grid, .steps-grid, .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 32px; line-height: 1.2; }
  .hero p { font-size: 18px; }
  .trust-indicator { flex-direction: column; gap: 12px; }
  .stars { justify-content: center; }
}