/* ==========================================
   CSS PAGES SERVICES & COMMUNES
   Version: 4.0
   ========================================== */

/* Layout 2 colonnes et content-main déplacés dans shared.css */

.content-section {
  margin-bottom: var(--spacing-2xl);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--spacing-lg);
  line-height: 1.4;
  position: relative;
  display: inline;
  cursor: pointer;
  background: linear-gradient(transparent 60%, transparent 60%);
  transition: background 0.3s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 4px;
}

.content-section h2:hover {
  background: none;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: var(--spacing-md);
  max-width: 750px;
}

.content-section ul,
.content-section ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
  max-width: 750px;
}

.content-section li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: var(--spacing-sm);
}

.content-section a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-section a:hover {
  color: #DC2626;
  text-decoration: underline;
}

/* Icône étoile et rating Google */
.star-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  width: 20px;
  height: 20px;
}

.google-rating {
  color: var(--black);
  font-weight: normal;
}

/* Lien avis Google */
.google-reviews-link {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.google-reviews-link:hover {
  color: #10B981;
  text-decoration: none;
}

/* Lien rating Google (gras, gris, souligné) */
.google-rating-link {
  color: var(--gray-dark);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.google-rating-link:hover {
  color: #10B981;
  text-decoration: underline;
}

/* Callout conseil (citation avec guillemets verts) */
.conseil-callout {
  position: relative;
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) var(--spacing-xl);
  margin: var(--spacing-lg) 0;
  background: #F9FAFB;
  border-left: 4px solid #10B981;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 750px;
}

.conseil-callout p {
  font-style: italic;
  color: var(--gray-dark);
  margin: 0;
  line-height: 1.8;
}

.conseil-callout::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3rem;
  font-weight: 700;
  color: #10B981;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.8;
}

.conseil-callout::after {
  content: '"';
  position: absolute;
  bottom: -10px;
  right: 15px;
  font-size: 3rem;
  font-weight: 700;
  color: #10B981;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.8;
}

/* === FAQ SECTION (Style Simple - Cards) === */
.section-faq {
  background: var(--white);
  padding: var(--spacing-3xl) 0;
  margin-top: var(--spacing-xl);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.faq-item {
  background: var(--white-soft);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--red-primary);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.faq-answer {
  color: var(--gray-dark);
  line-height: 1.7;
}

.faq-answer p {
  font-size: 1rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 1.1rem;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }

  .faq-item {
    padding: var(--spacing-md);
  }
}

/* === SECTION TARIFS === */
.section-tarifs {
  /* Pas de style spécifique - comme les autres sections */
}

/* Timeline moderne */
.timeline-steps {
  margin-top: var(--spacing-lg);
  padding-left: 0;
  max-width: 750px;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: 0;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-timeline {
  flex-shrink: 0;
  width: 40px;
  min-height: 100px;
}

.step-timeline.step-3 {
  min-height: 40px;
}

.timeline-content {
  flex: 1;
  padding-top: 2px;
  padding-bottom: var(--spacing-lg);
  line-height: 1.8;
  color: var(--gray-dark);
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.timeline-content strong {
  color: var(--black);
}

.timeline-step:last-child .timeline-content {
  padding-bottom: 0;
}

/* Lien téléphone dans timeline */
.timeline-content .phone-link {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-content .phone-link:hover {
  color: #DC2626;
}

.tarifs-box {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tarif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 2px dashed #E5E7EB;
}

.tarif-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}

.tarif-prix {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red-primary);
  font-family: var(--font-heading);
}

.tarif-note {
  margin-top: var(--spacing-md);
  font-size: 0.95rem;
  color: var(--gray-dark);
  font-style: italic;
}

/* === HERO SERVICE v4.0 - Image de fond avec overlay noir === */
.hero-service {
  position: relative;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem var(--spacing-lg) var(--spacing-3xl);
}

/* Overlay noir avec opacité */
.hero-service .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Container centré au-dessus de l'overlay */
.hero-service .hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  text-align: center !important;
  padding: 0 var(--spacing-lg);
  margin: 0 auto;
  /* FORCER : écraser le grid de main.css */
  display: block !important;
  grid-template-columns: none !important;
}

/* Content centré avec fond noir */
.hero-service .hero-content {
  position: relative;
  z-index: 3;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(15px);
  padding: 2.5rem var(--spacing-xl);
  border-radius: 24px;
}

/* Titre H1 */
.hero-service .hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.2;
  text-align: center !important;
  width: 100%;
}

/* Sous-titre */
.hero-service .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--spacing-xl);
  line-height: 1.6;
  max-width: 700px;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

/* Stats visuelles dans hero service */
.hero-service .hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-service .stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 160px;
}

.hero-service .stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-service .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

/* Stat 24/7 en vert */
.hero-service .stat-item-availability .stat-value {
  color: #10B981 !important;
  font-weight: 800 !important;
}

/* Stat Google Hero (cliquable) */
.hero-service .stat-item-google-hero {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-service .stat-item-google-hero:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-service .hero-google-logo {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hero-service .stat-item-google-hero img,
.hero-service .stat-item-google-hero .hero-google-logo {
  width: 24px !important;
  height: 24px !important;
}

/* CTA centré - Côte à côte */
.hero-service .hero-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  width: 100%;
}

/* Bouton téléphone hero avec icône verte animée */
.btn-hero-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-hero-phone .phone-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-hero-phone .phone-icon-green {
  color: #FFFFFF;
  stroke: #FFFFFF;
  animation: ring 3s ease-in-out infinite;
}

/* Animation rotation téléphone */
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.btn-hero-phone .phone-text {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Badge Disponibilité dans hero service */
.hero-service .hero-availability-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
}

.hero-service .availability-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-service .availability-now {
  color: #10B981;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    -2px 0 0 #000,
    2px 0 0 #000,
    0 -2px 0 #000,
    0 2px 0 #000;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .hero-service {
    min-height: 60vh;
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .hero-service .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-service .stat-item {
    width: 100%;
    justify-content: center;
  }

  .hero-service .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }

  .btn-hero-phone,
  .hero-btn-whatsapp {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 24px;
  }
}

/* === CTA MID-PAGE (compact, after H2_2) === */
.cta-mid-page {
  background: linear-gradient(135deg, rgba(254, 252, 232, 0.3) 0%, rgba(254, 249, 195, 0.4) 50%, rgba(254, 243, 199, 0.5) 100%);
  border-radius: 12px;
  padding: var(--spacing-lg) var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.cta-mid-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 var(--spacing-sm);
}

.cta-mid-page-subtitle {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 var(--spacing-md);
  line-height: 1.5;
}

.btn-cta-mid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #F97316 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-cta-mid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-cta-mid .icon {
  font-size: 1.1rem;
}

/* === CTA FINAL === */
.cta-final {
  background: var(--gradient-primary);
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
  color: white;
  margin-top: var(--spacing-3xl);
}

.cta-final-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-final-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}

.cta-final-subtitle {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
}

.btn-cta-final {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: white;
  color: var(--red-primary);
  padding: var(--spacing-lg) var(--spacing-2xl);
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-cta-final:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .layout-two-cols {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .sidebar {
    order: 2;
  }

  .content-main {
    order: 1;
  }

  .cta-mid-page {
    padding: var(--spacing-md);
  }

  .btn-cta-mid,
  .btn-cta-final {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 24px;
  }
}

/* === GRILLE FACTEURS (PAGE TARIFS) === */
/* Par défaut : 1 colonne sur mobile */
.facteurs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* 2 colonnes sur tablette et desktop */
@media (min-width: 768px) {
  .facteurs-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }
}

/* Breadcrumb styles are now in templates/components/breadcrumb.html */
