/* ============================================================
   VILLE.CSS — City Page Specific Styles
   Couvreur Haute-Marne (52)
   Extends style.css for individual city/commune pages
   ============================================================ */

/* -------------------------
   Ville Hero
------------------------- */
.ville-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 50%, var(--color-accent) 100%);
  color: #fff;
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decorative circles */
.ville-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ville-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Third decorative circle via nested element */
.ville-hero .hero-circle {
  position: absolute;
  top: 50%;
  left: 60%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.ville-hero h1 {
  font-size: var(--font-size-4xl);
  color: #fff;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.ville-hero h1 span {
  color: var(--color-warning-light);
}

.ville-hero .hero-lead,
.ville-hero .ville-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

/* Ville Stats Row */
.ville-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.ville-stats .stat {
  text-align: center;
}

.ville-stats .stat-value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.ville-stats .stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA Buttons inside hero (override section .ville-cta) */
.ville-hero .ville-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: 0;
  background: none;
  position: static;
  overflow: visible;
  color: inherit;
  text-align: center;
}

.ville-hero .ville-cta::before,
.ville-hero .ville-cta::after {
  display: none;
}


/* -------------------------
   Ville Info Badges (Glassmorphism)
------------------------- */
.ville-infos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.ville-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.ville-info:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.ville-info-icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.ville-info strong {
  color: var(--color-warning-light);
  font-weight: 700;
}

.ville-info span {
  color: rgba(255, 255, 255, 0.8);
}


/* -------------------------
   Content Section
------------------------- */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-section:nth-child(even) {
  background-color: var(--color-bg-light);
}

.content-section .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.content-section .section-title.text-center {
  text-align: center;
}

.content-text {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-medium);
}

.content-text h2 {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-text h3 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.content-text p {
  margin-bottom: var(--space-md);
}

.content-text strong {
  color: var(--color-text-dark);
}

/* List items with green check */
.content-text ul {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.content-text ul li {
  position: relative;
  padding-left: var(--space-xl);
  line-height: 1.7;
  color: var(--color-text-medium);
}

.content-text ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Ordered list variant */
.content-text ol {
  margin-bottom: var(--space-lg);
  counter-reset: content-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.content-text ol li {
  position: relative;
  padding-left: var(--space-xl);
  line-height: 1.7;
  color: var(--color-text-medium);
  counter-increment: content-counter;
}

.content-text ol li::before {
  content: counter(content-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* Service Cards on Ville Page — see "Price Display Fix" section below */


/* -------------------------
   FAQ Accordion on Ville Page
   (extends .faq-item from style.css)
------------------------- */
.ville-faq .faq-item {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.ville-faq .faq-item.active {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.ville-faq .faq-question {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
}

.ville-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ville-faq .faq-item.active .faq-answer {
  max-height: 800px;
}

.ville-faq .faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
}

.ville-faq .faq-answer-inner p {
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  line-height: 1.8;
}

.ville-faq .faq-answer-inner ul {
  margin-top: var(--space-sm);
}


/* Communes List — moved to style.css for global availability */


/* -------------------------
   Ville CTA Section
------------------------- */
.ville-cta {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ville-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.ville-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.ville-cta .container {
  position: relative;
  z-index: 1;
}

.ville-cta h2 {
  color: #fff;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
}

.ville-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ville-cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.ville-cta .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ville-cta .btn-primary:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ville-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.ville-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.ville-cta-phone {
  display: block;
  margin-top: var(--space-lg);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-warning-light);
  text-decoration: none;
  transition: all var(--transition-base);
}

.ville-cta-phone:hover {
  color: #fff;
  transform: scale(1.05);
}


/* -------------------------
   Ville Two-Column Layout
------------------------- */
.ville-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.ville-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.ville-sidebar-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-lg);
}

.ville-sidebar-card h4 {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border-light);
}


/* -------------------------
   Nearby Cities Section
------------------------- */
.nearby-cities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.nearby-city-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nearby-city-link:hover {
  background: var(--color-bg-white);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nearby-city-link .distance {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-left: auto;
}


/* -------------------------
   Local Info Block
------------------------- */
.local-info {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(26, 54, 93, 0.03) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(37, 99, 235, 0.1);
  margin: var(--space-xl) 0;
}

.local-info h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.local-info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  font-size: var(--font-size-sm);
}

.local-info-row:last-child {
  border-bottom: none;
}

.local-info-row .label {
  color: var(--color-text-light);
}

.local-info-row .value {
  color: var(--color-text-dark);
  font-weight: 600;
}


/* -------------------------
   H2 Centering for all Ville Sections
------------------------- */
.ville-intro h2,
.ville-services h2,
.ville-avantages h2,
.ville-faq h2,
.ville-voisines h2,
.ville-contact h2 {
  text-align: center;
}


/* -------------------------
   Avantage Cards (Ville Pages)
   HTML uses .avantage (not .avantage-item)
------------------------- */
.ville-avantages .avantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.avantage {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-xs) var(--space-lg);
  align-items: start;
  padding: var(--space-xl);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.avantage:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.avantage .avantage-number {
  grid-row: 1 / 3;
  align-self: start;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avantage h3 {
  align-self: end;
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--color-text-dark);
}

.avantage p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  line-height: 1.7;
}


/* -------------------------
   Voisines Pills (Neighboring Communes)
------------------------- */
.voisines-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.voisines-pills .pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.voisines-pills .pill:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}


/* -------------------------
   Contact Form (Ville Pages)
------------------------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

/* Service select, message textarea, and RGPD checkbox span full width */
.contact-form .form-group:nth-last-child(-n+4) {
  grid-column: 1 / -1;
}

.contact-form button[type="submit"] {
  grid-column: 1 / -1;
}

/* RGPD Checkbox Alignment */
.form-rgpd {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: var(--space-sm) !important;
}

.form-rgpd input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.form-rgpd label {
  font-weight: 400 !important;
  font-size: var(--font-size-sm) !important;
  color: var(--color-text-medium) !important;
  line-height: 1.5;
  cursor: pointer;
}

.form-rgpd label a {
  color: var(--color-accent);
  text-decoration: underline;
}


/* -------------------------
   Price Display Fix (Ville Service Cards)
   HTML: <p class="price">À partir de <strong>40€/m²</strong></p>
------------------------- */
.ville-services .service-card .price {
  display: block;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  text-align: center;
}

.ville-services .service-card .price strong {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-top: var(--space-xs);
}


/* -------------------------
   FAQ Answer Padding Fix (Ville Pages)
   HTML has .faq-answer > p (no .faq-answer-inner wrapper)
------------------------- */
.ville-faq .faq-answer > p {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  line-height: 1.8;
  margin: 0;
}


/* -------------------------
   Responsive — 1024px
------------------------- */
@media (max-width: 1024px) {
  .ville-grid {
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
  }

  .nearby-cities {
    grid-template-columns: 1fr;
  }
}


/* -------------------------
   Responsive — 768px
------------------------- */
@media (max-width: 768px) {
  /* Ville hero */
  .ville-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .ville-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .ville-hero .hero-lead,
  .ville-hero .ville-subtitle {
    font-size: var(--font-size-base);
  }

  .ville-stats {
    gap: var(--space-lg);
  }

  .ville-stats .stat-value {
    font-size: var(--font-size-xl);
  }

  .ville-hero .ville-cta {
    flex-direction: column;
    align-items: center;
  }

  .ville-hero .ville-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Info badges */
  .ville-infos {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .ville-info {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Layout */
  .ville-grid {
    grid-template-columns: 1fr;
  }

  .ville-sidebar {
    position: static;
  }

  /* Content */
  .content-section {
    padding: var(--space-2xl) 0;
  }

  .content-section .section-title {
    text-align: center;
  }

  /* Service cards */
  .ville-services .services-grid {
    grid-template-columns: 1fr;
  }

  /* Avantages grid */
  .ville-avantages .avantages-grid {
    grid-template-columns: 1fr;
  }

  .avantage {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .avantage .avantage-number {
    grid-row: auto;
  }

  /* FAQ */
  .ville-faq .faq-question {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
  }

  .ville-faq .faq-answer > p {
    padding: 0 var(--space-lg) var(--space-lg);
  }

  /* Pills */
  .voisines-pills {
    gap: var(--space-xs);
  }

  .voisines-pills .pill {
    padding: 6px 14px;
    font-size: var(--font-size-xs);
  }

  /* Contact form */
  .contact-form {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .ville-cta h2 {
    font-size: var(--font-size-2xl);
  }

  .ville-cta p {
    font-size: var(--font-size-base);
  }

  .ville-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ville-cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .ville-cta-phone {
    font-size: var(--font-size-xl);
  }

  /* Nearby cities */
  .nearby-cities {
    grid-template-columns: 1fr;
  }
}


/* -------------------------
   Responsive — 480px
------------------------- */
@media (max-width: 480px) {
  .ville-hero h1 {
    font-size: var(--font-size-2xl);
  }

  .ville-info {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-xs);
  }

  .content-text {
    font-size: var(--font-size-sm);
  }

  .content-text ul li::before,
  .content-text ol li::before {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .content-text ul li,
  .content-text ol li {
    padding-left: var(--space-lg);
  }

  .local-info {
    padding: var(--space-md);
  }
}
