/* services.css
   ─────────────────────────────────────────────── */

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}
.service-card {
  padding: clamp(2.5rem,4vw,4rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background .25s;
  cursor: default;
}
.service-card:nth-child(even)            { border-right: none; }
.service-card:nth-last-child(-n+2)       { border-bottom: none; }
/* dernier impair seul sur sa ligne */
.service-card:last-child:nth-child(odd)  { border-right: none; border-bottom: none; grid-column: span 2; }
.service-card:hover                      { background: var(--surface); }

/* ghost number behind each card */
.service-card::before {
  content: attr(data-num);
  position: absolute;
  right: -.5rem; bottom: -2.5rem;
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: clamp(8rem,14vw,13rem); line-height: 1;
  letter-spacing: -.06em;
  color: var(--text); opacity: .028;
  pointer-events: none; user-select: none;
  transition: opacity .4s;
}
.service-card:hover::before { opacity: .06; }

/* top row: icon + number */
.sv-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.2rem;
}
.sv-icon-wrap {
  width: 48px; height: 48px;
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, transform .38s cubic-bezier(.16,1,.3,1);
}
.sv-icon-wrap svg {
  width: 20px; height: 20px;
  color: var(--accent);
  transition: color .3s, transform .38s cubic-bezier(.16,1,.3,1);
}
.service-card:hover .sv-icon-wrap {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: rotate(-6deg);
}
.service-card:hover .sv-icon-wrap svg {
  transform: rotate(6deg);
}

.sv-num {
  font-size: .58rem; letter-spacing: .2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: .2rem;
}

/* title */
.sv-title {
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: clamp(1.25rem,2.2vw,1.85rem);
  letter-spacing: -.028em; line-height: 1.05;
  color: var(--text); margin-bottom: 1.1rem;
  transition: letter-spacing .35s cubic-bezier(.16,1,.3,1);
}
.service-card:hover .sv-title { letter-spacing: -.016em; }

/* desc */
.sv-desc {
  font-size: .88rem; color: var(--muted); line-height: 1.78;
  padding-right: 3rem;
}

/* arrow */
.sv-arrow {
  position: absolute;
  right: clamp(2rem,3vw,3.5rem); bottom: clamp(2rem,3vw,3.5rem);
  font-size: 1.15rem; color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .3s, transform .38s cubic-bezier(.16,1,.3,1);
}
.service-card:hover .sv-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* accent line on hover bottom */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.service-card:hover::after { transform: scaleX(1); }

/* ── PROCESS ── */
.process-section {
  padding: 8rem clamp(1.5rem,4vw,4rem);
  border-bottom: 1px solid var(--border);
}
.process-section h2 {
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: clamp(1.6rem,3vw,2.6rem); letter-spacing: -.028em;
  margin-bottom: 5rem; color: var(--text);
  display: flex; align-items: center; gap: 1.2rem;
}
.process-section h2::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border); display: block;
}
.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 1.25rem; /* centre vertical du dot (2.5rem / 2) */
  left: 1.25rem; /* centre horizontal du premier dot */
  right: 1.25rem; /* centre horizontal du dernier dot */
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 55%);
  z-index: 0;
  pointer-events: none;
}
.p-step {
  padding: 0 2.5rem 0 0;
  border-right: 1px solid var(--border);
  position: relative; z-index: 1;
}
.p-step:last-child { border-right: none; padding-right: 0; }
.p-step + .p-step  { padding-left: 2.5rem; }

.p-dot {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2.2rem;
  position: relative; z-index: 1;
  background: var(--bg);
  transition: background .3s, border-color .3s, transform .38s cubic-bezier(.16,1,.3,1);
}
.p-dot span {
  font-size: .58rem; letter-spacing: .1em;
  color: var(--accent); font-weight: 700;
  transition: color .3s;
}
.p-step:hover .p-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12);
}
.p-step:hover .p-dot span { color: #fff; }
.p-step h3 {
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: 1.05rem; letter-spacing: -.015em;
  margin-bottom: .85rem; color: var(--text);
}
.p-step p { font-size: .87rem; color: var(--muted); line-height: 1.75; }

/* ── COLLAB ── */
.collab-section {
  padding: 8rem clamp(1.5rem,4vw,4rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.collab-section h2 {
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: clamp(1.6rem,3vw,2.6rem); letter-spacing: -.028em;
  margin-bottom: .9rem; color: var(--text);
}
.collab-section > p {
  color: var(--muted); font-size: .97rem;
  margin-bottom: 3.5rem; max-width: 560px; line-height: 1.78;
}
.collab-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.collab-card {
  padding: 2.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color .3s, border-left-color .3s,
              background .3s, transform .38s cubic-bezier(.16,1,.3,1);
}
.collab-card:hover {
  border-color: var(--border-2);
  border-left-color: var(--accent);
  transform: translateY(-4px);
}
.collab-label {
  font-size: .58rem; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 1.4rem;
  display: block; text-transform: uppercase; font-weight: 600;
}
.collab-card h3 {
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: 1.15rem; letter-spacing: -.02em;
  margin-bottom: .9rem; color: var(--text);
}
.collab-card p { font-size: .88rem; color: var(--muted); line-height: 1.75; }

/* ── CTA ── */
.services-cta {
  padding: 8rem clamp(1.5rem,4vw,3.5rem);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 2rem;
}
.services-cta h2 {
  font-family: 'PPTelegraf',sans-serif; font-weight: 900;
  font-size: clamp(2.4rem,5.5vw,5rem); letter-spacing: -.04em;
  color: var(--text); max-width: 660px; line-height: .9;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; }
  .service-card:last-child { grid-column: span 1; }
  .service-card::before { display: none; }
  .process-section, .collab-section, .services-cta { padding: 4rem 1.5rem; }
  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process-steps::before { display: none; }
  .p-step {
    padding: 2rem 0; border-right: none;
    border-top: 1px solid var(--border); padding-left: 0 !important;
  }
  .p-step:first-child { border-top: none; padding-top: 0; }
  .collab-grid { grid-template-columns: 1fr; gap: 1rem; }
  .collab-card:hover { transform: none; }
  .services-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1024px) {
  .collab-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }
  .p-step { padding: 0 2rem 2.5rem 0; border-right: 1px solid var(--border); }
  .p-step:nth-child(even) { border-right: none; padding-left: 2rem; padding-right: 0; }
  .p-step:nth-child(n+3) { padding-top: 2.5rem; border-top: 1px solid var(--border); }
}
