/* ============================================================
   Services — Particuliers / Entreprises (overlapping cards)
   ============================================================ */

.services {
  padding-top: 180px;
  background-color: var(--color-white);
}

.services__container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Desktop layout (≥ 768px) ---------- */
.services__desktop {
  display: none;
}

@media (min-width: 768px) {
  .services__desktop {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
}

.services__card {
  position: relative;
  flex-shrink: 0;
  transition: all 500ms ease;
}

/* Active card sizing */
.services__card--active {
  width: 750px;
}

.services__card-image--active {
  position: relative;
  width: 750px;
  height: 503px;
}

.services__card-image--active img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inactive card sizing + overlap (LEFT card; active card overlaps it on the right) */
.services__card--inactive {
  width: 613px;
  margin-right: -50px;
  cursor: pointer;
}

.services__card--inactive:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 4px;
}

.services__card-image--inactive {
  position: relative;
  width: 613px;
  height: 403px;
}

.services__card-image--inactive img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Pink overlay on the active card ---- */
.services__overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 374px;
  height: 550px;
  background-color: var(--color-pink);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  transition: all 500ms ease;
}

/* ---- Vertical pink strip on the inactive card (left edge, since the card sits on the left) ---- */
.services__strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 105px;
  height: 100%;
  background-color: var(--color-pink);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 500ms ease;
}

.services__strip-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 1px;
}

/* ---- Text inside the active overlay (shared with mobile content) ---- */
.services__title {
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.2;
}

.services__paragraph {
  margin: 0 0 16px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 22px;
}

.services__list {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services__list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 22px;
}

.services__bullet {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background-color: var(--color-white);
}

/* ---------- Mobile layout (< 768px) — tab system ---------- */
.services__mobile {
  display: block;
}

@media (min-width: 768px) {
  .services__mobile {
    display: none;
  }
}

.services__mobile-tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.services__mobile-tab {
  background: none;
  border: none;
  padding: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.6;
  border-bottom: 3px solid transparent;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
  line-height: 1.2;
}

.services__mobile-tab.is-active {
  opacity: 1;
  color: var(--color-pink);
  border-bottom-color: var(--color-pink);
}

.services__mobile-sep {
  color: var(--color-pink);
  font-size: 22px;
  line-height: 1;
}

.services__mobile-panel {
  background-color: var(--color-pink);
  padding: 32px 24px;
}

.services__mobile-panel[hidden] {
  display: none;
}

/* Override section spacing on mobile */
@media (max-width: 767px) {
  .services {
    padding-top: 80px;
  }
}
