/* Pages mères villes — styles mutualisés */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── HERO ── */

.hero--ville {
  background: linear-gradient(135deg, #1b3a5c 0%, #2a5580 60%, #1b3a5c 100%);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero--ville::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero--ville h1,
.hero--ville .hero__subtitle { color: #fff; }

.hero--ville .hero__subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero--ville .hero__content {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 360px;
    gap: 3rem;
  }
  .estimation-form-card {
    position: sticky;
    top: 90px;
  }
}

/* ── FORMULAIRE COMPACT ── */

.estimation-form-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  color: #333;
  border-top: 3px solid #c9a84c;
  position: relative;
  z-index: 1;
}

.estimation-form-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
  color: #1b3a5c;
}

.estimation-form-card__intro {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1rem;
}

.estimation-form select,
.estimation-form input[type="text"],
.estimation-form input[type="email"],
.estimation-form input[type="tel"],
.estimation-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid #d8d0c4;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  margin-bottom: 0.65rem;
  background: #fff;
  transition: border-color 0.2s;
}

.estimation-form select:focus,
.estimation-form input:focus,
.estimation-form textarea:focus {
  outline: 0;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.estimation-form textarea { resize: vertical; min-height: 48px; }

.estimation-form .cta-button {
  font-size: 0.95rem;
  padding: 12px 24px;
  margin-top: 0.25rem;
}

.form-rgpd {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.5rem;
  line-height: 1.5;
  text-align: center;
}

.form-rgpd a { color: #1b3a5c; }

.form-success-inline {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  color: #2e7d32;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-success-inline.visible { display: block; }

.form-error-inline {
  display: none;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  border-radius: 6px;
  padding: 0.6rem;
  color: #c62828;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.form-error-inline.visible { display: block; }

/* ── PREUVES SOCIALES ── */

.proof-band {
  background: #fff;
  padding: 36px 0;
  border-bottom: 1px solid #e8e3da;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}

.proof-grid .stat__value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #c9a84c;
  font-family: Georgia, serif;
}

.proof-grid .stat__label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.2rem;
}

/* ── CONTENU ── */

.content-block { max-width: 820px; }
.content-block p { margin-bottom: 1rem; }

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.bullet-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}

.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c9a84c;
  font-weight: 700;
}

.section-cta-row {
  text-align: center;
  margin-top: 2rem;
}

/* ── QUARTIERS ── */

.quartiers-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .quartiers-grid { grid-template-columns: repeat(2, 1fr); }
}

.quartier-card {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quartier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 58, 92, 0.1);
}

.quartier-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.quartier-card__meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.quartier-card__meta--fort { background: #e8f5e9; color: #2e7d32; }
.quartier-card__meta--moyen { background: #fff8e1; color: #f57f17; }
.quartier-card__meta--faible { background: #eceff1; color: #546e7a; }

.quartier-card p {
  font-size: 0.92rem;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* ── PROCESSUS ── */

.process-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e3da;
  transition: transform 0.2s, box-shadow 0.2s;
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 58, 92, 0.1);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c9a84c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.process-step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: #666; margin: 0; }

/* ── ZONES & LIENS ── */

.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.zones-list span {
  background: #1b3a5c;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.internal-links a {
  background: #fff;
  border: 1px solid #1b3a5c;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}

.internal-links a:hover {
  background: #1b3a5c;
  color: #fff;
}

/* ── MOBILE ── */

@media (max-width: 768px) {
  .hero--ville { padding: 56px 0 48px; }

  .estimation-form-card {
    margin-top: 0.5rem;
  }
}
