/* ============================================= */
/* == STYLES POUR LES PAGES DE SERVICE == */
/* ============================================= */

/* --- Section des "Signes" --- */
.page-service .hero {
  /* Aligner le comportement avec l'accueil: hauteur minimale, croissance possible */
  min-height: 58vh;
  padding: clamp(6rem, 15vw, 10rem) 0;
}

@media (min-width: 768px) {
  .page-service .hero {
    min-height: 70vh;
    padding: clamp(4rem, 8vw, 7rem) 0;
  }
}

@media (min-width: 1200px) {
  .page-service .hero {
    min-height: 60vh;
    padding: clamp(3.5rem, 6vw, 6rem) 0;
  }
}

.page-service .hero::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.76) 20%,
    var(--background) 90%
  );
}

.section--tight-top {
  padding-top: 0rem;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}
.subsection-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--brand);
}

.signs-grid {
  gap: 1.5rem;
}

.sign-card {
  text-align: center;
}

.sign-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: var(--background-alt);
  display: grid;
  place-items: center;
  color: var(--brand);
  border: 1px solid var(--border-color);
}
.sign-icon svg {
  width: 28px;
  height: 28px;
}

.sign-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

/* --- Symptoms (Signes) 2025 --- */
.symptoms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .symptoms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.symptom-card {
  background: linear-gradient(145deg, #ffffff, #f7f7f5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.symptom-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.symptom-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
}
.symptom-icon svg {
  width: 24px;
  height: 24px;
}

.symptom-title h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(61, 131, 163, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.symptom-points {
  list-style: none;
  padding: 0 0 0 0;
  margin: 0 0 0.75rem 0;
}

.symptom-points li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.symptom-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.symptom-cta {
  display: inline-block;
  font-weight: 800;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
}
.symptom-cta:hover {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

/* --- Mise en page du contenu principal --- */
.content-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .content-section {
    grid-template-columns: 2fr 1fr;
  }
}

.content-section h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.side-panel {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 120px; /* Aligné avec le bas du header sticky */
}

.side-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1rem;
}

.checklist li::before {
  content: "✔";
  color: var(--brand);
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- Intro KPIs & Alert --- */
.kpi-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  text-align: center;
}
.kpi-list li {
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  text-align: center;
}

.alert {
  background: linear-gradient(0deg, #fff, #fff),
    repeating-linear-gradient(
      45deg,
      rgba(61, 131, 163, 0.1) 0,
      rgba(61, 131, 163, 0.1) 10px,
      transparent 10px,
      transparent 20px
    );
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Center panel actions (buttons) */
.panel-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 1rem;
  justify-items: center; /* Center buttons in grid cells */
  text-align: center; /* Center inline content inside buttons */
}

@media (min-width: 576px) {
  .panel-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hide sidebar actions on mobile only */
@media (max-width: 767px) {
  .side-panel .panel-actions {
    display: none;
  }
}

/* --- Grille des prestations de service --- */
.services-grid .feature-card {
  background-color: var(--background);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-grid .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  background-color: var(--brand);
  color: white;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}

.services-grid .feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* --- Services 2025 Enhancements --- */
.service-badge {
  display: inline-block;
  margin: 0.25rem 0 0.75rem 0;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(61, 131, 163, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}

.service-points {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  text-align: left;
}

.service-points li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.service-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.service-cta {
  display: inline-block;
  font-weight: 800;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
}
.service-cta:hover {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

/* --- Section CTA --- */
.cta-section {
  background-color: var(--brand);
  color: var(--text-light);
  text-align: center;
}
.cta-section h2 {
  color: var(--text-light);
}
.cta-section .btn {
  background-color: white;
  color: var(--brand);
  border-color: white;
  font-weight: 700;
}
.cta-section .btn:hover {
  background-color: var(--background-alt);
  border-color: var(--background-alt);
}

/* ============================================= */
/* == NOUVEAU DESIGN PRESTATIONS (2025) == */
/* ============================================= */

.services-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-accordion-item {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.service-accordion-item.is-open {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.service-accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.service-accordion-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--brand);
  color: white;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.service-accordion-icon svg {
  width: 24px;
  height: 24px;
}

.service-accordion-title {
  flex-grow: 1;
}

.service-accordion-title h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--dark);
}

.service-accordion-indicator {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.service-accordion-indicator::before,
.service-accordion-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.service-accordion-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-accordion-item.is-open .service-accordion-indicator::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.service-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-in-out;
}

.service-accordion-item.is-open .service-accordion-content {
  grid-template-rows: 1fr;
}

.service-accordion-content-inner {
  overflow: hidden;
}

.service-accordion-content-inner > div {
  padding: 0 1.25rem 1.25rem 1.25rem;
  padding-left: calc(1.25rem + 50px + 1rem); /* Align with title */
}

.service-accordion-content-inner p {
  margin-bottom: 1rem;
}

.service-accordion-content-inner .service-points {
  text-align: left;
  margin-bottom: 1rem;
}

/* Desktop layout */
@media (min-width: 992px) {
  .services-accordion-container {
    max-width: 840px;
    margin: 0 auto;
  }

  .service-accordion-item {
    padding: 2rem;
  }

  .service-accordion-header {
    cursor: default;
    padding: 0;
    gap: 1.5rem;
  }

  .service-accordion-icon {
    width: 56px;
    height: 56px;
  }
  .service-accordion-icon svg {
    width: 28px;
    height: 28px;
  }

  .service-accordion-title h4 {
    font-size: 1.25rem;
  }

  .service-accordion-indicator {
    display: none;
  }

  .service-accordion-item.is-open .service-accordion-content,
  .service-accordion-content {
    display: block;
    grid-template-rows: 1fr; /* Override grid behavior */
    height: auto;
  }

  .service-accordion-content-inner {
    overflow: visible;
  }

  .service-accordion-content-inner > div {
    padding: 0;
    margin-top: 1rem;
    margin-left: calc(56px + 1.5rem); /* icon width + gap */
  }

  .service-accordion-content-inner .service-cta {
    margin-top: 1rem;
  }

  /* Make whole card clickable-looking on desktop */
  .service-accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
  }
  .service-accordion-item:hover .service-accordion-icon {
    transform: scale(1.05);
  }
}

/* ============================================= */
/* ==   PROCESSUS D'INTERVENTION (2025)     == */
/* ============================================= */

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

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  color: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  background-color: var(--brand);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--background-alt);
}

.step-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 0.5rem;
}
.step-title h3 {
  font-size: 1.2rem;
  margin: 0;
}
.step-icon-mini {
  display: none; /* Simplification du design */
}
.step-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(61, 131, 163, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 999px;
}
.step-points {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
}
.step-points li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.35rem 0;
  color: var(--muted);
}
.step-points li::before {
  content: "✔";
  color: var(--brand);
  position: absolute;
  left: 0;
  top: 2px;
}
.process-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: none;
  }
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .step-number {
    margin: 0;
  }

  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px; /* Aligné verticalement avec le centre des numéros */
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--border-color),
      var(--border-color) 4px,
      transparent 4px,
      transparent 8px
    );
    z-index: 1;
  }
  .step-title {
    justify-content: center;
  }
  .step-points li {
    padding-left: 0;
  }
  .step-points li::before {
    display: none; /* Pas de tiques sur le bureau pour un look plus épuré */
  }
}

/* ============================================= */
/* ==   CTA PRO 2025                          == */
/* ============================================= */
.cta-section-pro {
  background: var(--dark);
  color: var(--text-light);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-section-pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 150%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(61, 131, 163, 0.2),
    transparent 40%
  );
  transform: translateX(-50%) skewX(-20deg);
  pointer-events: none;
}

.cta-pro-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .cta-pro-content {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
}

.cta-pro-subheading {
  display: inline-block;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.cta-pro-text h2 {
  color: white;
  text-align: left;
  margin-bottom: 1rem;
}

.cta-pro-text p {
  color: var(--muted);
  max-width: 55ch;
}

.cta-pro-actions {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
}

.cta-phone-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.cta-phone-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cta-phone-icon svg {
  width: 24px;
  height: 24px;
}

.cta-phone-label {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
}

.cta-phone-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.cta-pro-actions .btn-primary {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 1.1rem;
}

.cta-availability {
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}

/* ============================================= */
/* ==   FAQ PRO 2025                          == */
/* ============================================= */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.faq-item[open] {
  border-color: var(--brand);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  list-style: none; /* Hide the default marker */
}

.faq-question::-webkit-details-marker {
  display: none; /* Hide the default marker for Safari */
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

.faq-answer p {
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet layout for testimonials */
@media (min-width: 768px) and (max-width: 1199px) {
  #avis .grid-3 {
    grid-template-columns: 1fr;
    max-width: 600px; /* Center the single column */
    margin: 0 auto;
  }
}
