/* SERVICES 4 - TABS INTERACTIVE */
.services-4 {
  padding: 100px 5%;
  background: var(--white);
}
.services-4 .container {
  max-width: 1100px;
  margin: 0 auto;
}
.services-4 .header {
  text-align: center;
  margin-bottom: 50px;
}
.services-4 .eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.services-4 h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}
.services-4 .tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.services-4 .tab {
  padding: 14px 28px;
  background: color-mix(in srgb, var(--gray-light) 40%, var(--white));
  border: 2px solid var(--gray-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}
.services-4 .tab:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--on-secondary);
}
.services-4 .tab.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--on-secondary);
}
.services-4 .tabs-content {
  position: relative;
}
.services-4 .tab-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  animation: fadeIn 0.4s ease;
}
.services-4 .tab-content.active {
  display: grid;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.services-4 .tab-image {
  position: relative;
  height: 400px;
  overflow: hidden;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  border-radius: 15px;
}
.services-4 .tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services-4 .tab-image .badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary);
  color: var(--on-secondary);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.services-4 .tab-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--black);
  margin-bottom: 16px;
}
.services-4 .tab-info > p {
  font-size: 1rem;
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 28px;
}
.services-4 .features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.services-4 .feature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.services-4 .feature-icon {
  width: 28px;
  height: 28px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.services-4 .feature-icon svg {
  width: 14px;
  height: 14px;
  color: var(--white);
}
.services-4 .feature span {
  font-size: 0.9rem;
  color: var(--gray-dark);
}
.services-4 .btn-group {
  display: flex;
  gap: 16px;
}
.services-4 .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--secondary);
  color: var(--on-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.services-4 .btn:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.services-4 .btn-2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.services-4 .btn-2:hover {
  background: var(--secondary);
  color: var(--on-secondary);
}

/* ── REGROUPEMENT PAR METIER ──────────────────────────────────────────
   La variante est deja un jeu d'onglets. Sur un site a deux metiers, poser
   leurs services cote a cote donnerait une barre de treize onglets sans
   hierarchie. Le metier devient donc un PREMIER ETAGE qui filtre le second :
   on ne lit que les services du metier choisi.

   MONO-METIER : la barre de metiers n'est pas emise, les onglets ne portent
   ni `data-metier` ni `hidden`, et le JS ne s'accroche a rien.

   LA COULEUR : la rampe part de --secondary — la couleur que l'onglet actif
   porte deja. A 0 %, c'est-a-dire sur un site mono-metier ou sur le premier
   metier, la teinte est donc exactement celle d'avant. */
.services-4__metiers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.services-4__metier {
  --m-couleur: color-mix(in oklab, var(--secondary), var(--primary) var(--m-melange, 0%));
  --m-texte: color-mix(in oklab, var(--on-secondary), var(--on-primary) var(--m-melange, 0%));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.services-4__metier:hover {
  color: var(--m-couleur);
}
.services-4__metier.is-active {
  color: var(--m-couleur);
  border-bottom-color: var(--m-couleur);
}
/* L'onglet de service reprend la teinte de son metier, pour que le second
   etage se rattache visiblement au premier. */
.services-4 .tab:hover,
.services-4 .tab.active {
  background: var(--m-couleur, var(--secondary));
  border-color: var(--m-couleur, var(--secondary));
  color: var(--m-texte, var(--on-secondary));
}
.services-4 .tab {
  --m-couleur: color-mix(in oklab, var(--secondary), var(--primary) var(--m-melange, 0%));
  --m-texte: color-mix(in oklab, var(--on-secondary), var(--on-primary) var(--m-melange, 0%));
}
.services-4 .tab[hidden] {
  display: none;
}

@media (max-width: 1024px) {
  .services-4 .tab-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .services-4 .tab-image {
    height: 300px;
  }
}
@media (max-width: 640px) {
  .services-4 .features {
    grid-template-columns: 1fr;
  }
  .services-4 .btn-group {
    flex-direction: column;
  }
  .services-4 .btn,
  .services-4 .btn-2 {
    justify-content: center;
  }
}

/* ── TITRES : couleur de survol explicite (CLAUDE.md §4.13) ──────────
   Le main.css des themes stylise les balises Hn, hover compris. Chaque
   titre reprend ici sa couleur de base pour neutraliser cet heritage. */
.services-4 .tab-info h3:hover {
  color: var(--black);
}

.services-4 h2:hover {
  color: var(--primary);
}
