@import "fonts.css";
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #121212;
}

body.services-page {
  min-height: 100vh;
  color: white;
  font-family: "Parkinsans", sans-serif;
}

main.services-page-main {
  background-color: #161616;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.services-page-intro {
  width: min(1100px, 100%);
  margin: 0 auto;
  text-align: center;
  padding-top: 4rem;
}
.services-page-intro p {
  margin: 2rem auto;
  margin-top: 4rem;
  width: min(1000px, 100%);
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.services-page-title-wrap {
  position: relative;
  width: min(1000px, 100%);
  margin-inline: auto;
}

.services-title-plus {
  position: absolute;
  width: clamp(16px, 2.2vw, 26px);
  height: clamp(16px, 2.2vw, 26px);
  pointer-events: none;
  opacity: 0.95;
}
.services-title-plus svg {
  display: block;
  width: 100%;
  height: 100%;
}

.services-title-plus--top-left {
  left: clamp(0.4rem, 1.15vw, 0.9rem);
  top: clamp(-0.32rem, -0.55vw, -0.14rem);
  color: #507cff;
}

.services-title-plus--bottom-right {
  right: clamp(0.4rem, 1.15vw, 0.9rem);
  bottom: clamp(-0.32rem, -0.55vw, -0.14rem);
  color: #ef476f;
}

h1.services-page-title {
  margin: 0;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  clip-path: inset(0% 0% -5% 0%);
  margin-top: 8rem;
}

h1.services-page-title[data-title-animated=pending] {
  visibility: hidden;
}

h1.services-page-title > span > span {
  display: inline-block;
  will-change: transform, opacity;
}

.services-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 1.1rem;
  min-height: 60vh;
}

.services-list-panel {
  padding: 1.1rem;
}

.service-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
}

.service-card {
  font-family: "Parkinsans", sans-serif;
  width: 80%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-left: 4px solid var(--service-accent, #507cff);
  background: #161616;
  color: white;
  text-align: left;
  padding: 1rem 1.1rem;
  font-size: clamp(1.08rem, 1.75vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover, .service-card:focus-visible {
  background: #212121;
  border-color: rgba(255, 255, 255, 0.56);
  border-left-color: var(--service-accent, #507cff);
  transform: translateX(4px);
}
.service-card:focus-visible {
  outline: 2px solid #507cff;
  outline-offset: 2px;
}
.service-card.is-active {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.56);
  border-left-color: var(--service-accent, #507cff);
  color: #fff;
}

.service-card-label {
  display: block;
  width: 100%;
}

.service-card:nth-child(1) {
  --service-accent: #507cff;
}

.service-card:nth-child(2) {
  --service-accent: #9CC071;
}

.service-card:nth-child(3) {
  --service-accent: #E1B148;
}

.service-card:nth-child(4) {
  --service-accent: #AB5861;
}

.service-card:nth-child(5) {
  --service-accent: #9650FF;
}

.service-card:nth-child(6) {
  --service-accent: #39AF8B;
}

.service-detail-panel {
  padding: 1.5rem;
  position: relative;
}

.service-detail {
  width: 80%;
  margin-inline: auto;
  position: relative;
  padding-left: 1rem;
  margin-left: 0.2rem;
  --detail-border-scale: 1;
  --detail-border-opacity: 1;
}
.service-detail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--service-accent, #507cff);
  transform-origin: top center;
  transform: scaleY(var(--detail-border-scale));
  opacity: var(--detail-border-opacity);
  will-change: transform, opacity;
  pointer-events: none;
}
.service-detail h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
.service-detail p {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 1.38vw, 1.24rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.service-detail ul {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.service-detail li {
  font-size: clamp(1rem, 1.24vw, 1.14rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}
.service-detail a.service-detail-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  transition: background-color 0.3s, color 0.3s;
}
.service-detail a.service-detail-cta:hover {
  background-color: rgb(255, 255, 255);
  color: #161616;
}

.service-detail[data-service-detail=site-web] {
  --service-accent: #507cff;
}

.service-detail[data-service-detail=ecommerce] {
  --service-accent: #9CC071;
}

.service-detail[data-service-detail=charte] {
  --service-accent: #E1B148;
}

.service-detail[data-service-detail=accessibilite] {
  --service-accent: #AB5861;
}

.service-detail[data-service-detail=uiux] {
  --service-accent: #9650FF;
}

.service-detail[data-service-detail=database] {
  --service-accent: #39AF8B;
}

.service-detail[hidden] {
  display: none !important;
}

.services-cta-banner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  background: #1d1d1d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.services-cta-banner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}

.services-cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.services-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Parkinsans", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  line-height: 1;
  padding: 0.78rem 1.08rem;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.services-cta-button:hover, .services-cta-button:focus-visible {
  transform: translateY(-1px);
}
.services-cta-button:focus-visible {
  outline: 2px solid #507cff;
  outline-offset: 2px;
}

.services-cta-button--secondary {
  color: #f4f4f4;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
}
.services-cta-button--secondary:hover, .services-cta-button--secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.services-cta-button--primary {
  color: #fff;
  border: 1px solid #507cff;
  background: #507cff;
}
.services-cta-button--primary:hover, .services-cta-button--primary:focus-visible {
  border-color: #6f92ff;
  background: #6f92ff;
}

@media (max-width: 1050px) {
  main.services-page-main {
    padding-top: 108px;
  }
  .services-split {
    grid-template-columns: 1fr;
  }
  .services-cta-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .services-cta-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  main.services-page-main {
    padding: 96px 16px 32px;
  }
  .services-list-panel {
    padding: 0.75rem;
  }
  .service-card {
    width: 100%;
  }
  .service-detail-panel {
    padding: 1rem;
  }
  .service-detail {
    width: 100%;
  }
  .services-title-plus--top-left {
    left: 0;
  }
  .services-title-plus--bottom-right {
    right: 0;
  }
  .services-cta-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .services-cta-button {
    width: 100%;
  }
}

/* Compact services index on phones */
@media screen and (max-width: 720px) {
  main.services-page-main {
    gap: 1.5rem;
  }

  .services-page-intro {
    width: 100%;
    padding-top: 0;
  }

  h1.services-page-title {
    margin-top: 1rem;
    font-size: 2.5rem;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .services-page-intro p {
    width: 100%;
    margin: 1.75rem auto 0;
    font-size: 1rem;
  }

  .services-split {
    min-height: 0;
    margin-top: 0.5rem;
  }

  .services-list-panel {
    padding: 0.5rem 0;
  }

  .service-cards {
    gap: 0.65rem;
  }

  .service-card {
    min-height: 50px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .service-detail-panel {
    padding: 1.25rem 0 0;
  }

  .service-detail {
    margin-inline: 0;
    padding-left: 0.85rem;
  }

  .service-detail h2 {
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .service-detail p,
  .service-detail li {
    font-size: 1rem;
  }

  .service-detail a.service-detail-cta {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .services-cta-banner {
    margin-top: 1rem;
    padding: 1.25rem 1rem;
  }

  .services-cta-button {
    min-height: 46px;
    line-height: 1.3;
    text-align: center;
  }
}

@media screen and (max-width: 420px) {
  main.services-page-main {
    padding-inline: 12px;
  }

  h1.services-page-title {
    font-size: 2.15rem;
  }

  .services-title-plus {
    display: none;
  }

  .service-card {
    padding-inline: 0.8rem;
  }
}
