﻿/* ==================================================
   HOME â€” Hero + sections de la page d'accueil
   (Hero / Features / Tech strip / About / Portfolio / Process / Services)
================================================== */

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 11.1875rem 1.5rem 18.75rem;
  background-color: #0c0b0d;
  background-image: url("/images/hero.avif");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      80% 60% at 50% 35%,
      rgba(12, 11, 13, 0.18) 0,
      rgba(12, 11, 13, 0.55) 60%,
      rgba(12, 11, 13, 0.78) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(12, 11, 13, 0.05) 0%,
      rgba(12, 11, 13, 0.4) 70%,
      rgba(12, 11, 13, 0.55) 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(160px, 22vh, 320px);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 11, 13, 0) 0%,
    rgba(12, 11, 13, 0.55) 55%,
    rgba(12, 11, 13, 0.85) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__identity {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.hero__name {
  font-weight: 900;
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #e9e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__role {
  font: 600 1.2rem/1.35 var(--ff-heading);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 0.55rem;
  color: #efeefe;
}

.hero__role::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 140px;
  height: 2px;
  opacity: 0.85;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
}

.hero__tagline {
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: clamp(1rem, 2.1vw, 2rem);
  line-height: 1.45;
  opacity: 0.96;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero__cta {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Social bar */
.hero__social {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-left: var(--gutter);
  z-index: 3;
  left: calc(
    max(0px, (100vw - var(--container)) / 2) + var(--gutter) -
      (var(--social-size) / 2)
  );
}

.hero__social-link {
  color: #fff;
  opacity: 0.9;
  display: inline-grid;
  place-items: center;
  width: var(--social-size);
  height: var(--social-size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    border-color 0.2s;
}

.hero__social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero__social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__social-line {
  width: 1px;
  height: calc(var(--overlap) + 1rem);
  background: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

@media (max-width: 980px) {
  .hero__social {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 7rem 1rem 11rem;
    background-position: center top;
  }

  .hero__inner {
    gap: 1rem;
  }

  .hero__name {
    font-size: 2.35rem;
  }

  .hero__role {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .hero__tagline {
    margin-top: 0.65rem;
  }

  .hero__cta {
    margin-top: 0.75rem;
    gap: 0.75rem;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 6.25rem;
    padding-bottom: 9.5rem;
  }

  .hero__name {
    font-size: 2.05rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: min(100%, 18rem);
  }
}

/* =========================
   Sections gÃ©nÃ©riques de HOME
   (tes placeholders)
========================= */
.section {
  padding-block: clamp(4rem, 7vw, 6rem);
}
.section__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section__container h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin-bottom: 0.8rem;
}
.section__container p {
  color: #eae7ff;
  line-height: 1.7;
}

/* =========================
   KICKER (utilisÃ© sur la home)
========================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.kicker > span {
  width: 56px;
  height: 2px;
  background: var(--clr-accent);
  opacity: 0.9;
  border-radius: 2px;
}

.kicker h2,
.kicker h3,
.kicker p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

/* =========================
   FEATURES â€” PILL
========================= */
.features {
  position: relative;
  margin-top: calc(-1 * var(--overlap));
  z-index: 2;
}
.features--pill {
  --badge-size: 64px;
  --icon-size: 28px;
}

.features--pill .features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

.features--pill .feature {
  position: relative;
  border-radius: 20px;
  padding: calc(1.35rem + var(--badge-size) / 2) 1.35rem 1.35rem;
  backdrop-filter: blur(8px);
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.18) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.78), rgba(24, 20, 33, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
}
.features--pill .feature::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--badge-size) / 2);
  transform: translateX(-50%);
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  background:
    radial-gradient(
      60% 60% at 30% 30%,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.05)
    ),
    linear-gradient(180deg, #9a85ff 0%, #7f62ff 100%);
  box-shadow: 0 12px 26px rgba(138, 107, 255, 0.35);
  pointer-events: none;
  z-index: 0;
}
.features--pill .feature .feature__icon {
  position: absolute;
  left: 50%;
  top: calc(
    -1 * var(--badge-size) / 2 + (var(--badge-size) - var(--icon-size)) / 2
  );
  transform: translateX(-50%);
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0) invert(1) contrast(110%);
  object-fit: contain;
}
.features--pill .feature h3 {
  font: 800 1.1rem/1.25 var(--ff-heading);
  letter-spacing: 0.02em;
  margin: 0.1rem 0 0.45rem;
}
.features--pill .feature p {
  color: #e6e1f4;
  font-size: 0.95rem;
  line-height: 1.6;
}
.features--pill .feature p + p {
  margin-top: 0.35rem;
}
.features--pill .feature:hover,
.features--pill .feature:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(138, 107, 255, 0.22) inset;
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.28) 0,
      rgba(20, 18, 27, 0) 58%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.84), rgba(24, 20, 33, 0.6));
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 380px) {
  .features--pill {
    --badge-size: 56px;
    --icon-size: 24px;
  }
}

/* =========================
   TECH STRIP
========================= */
.brand-strip {
  padding-top: 80px;
  --gap: clamp(2rem, 6vw, 5rem);
  --speed: 28s;
  --row-h: 90px;
  --edge-fade: 10%;
}

.brand-strip__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-strip__scroller {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: var(--row-h);
  isolation: isolate;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent var(--edge-fade),
    #000 25%,
    #000 75%,
    transparent calc(100% - var(--edge-fade))
  );
  mask-image: linear-gradient(
    90deg,
    transparent var(--edge-fade),
    #000 25%,
    #000 75%,
    transparent calc(100% - var(--edge-fade))
  );
}

.brand-strip__scroller::before,
.brand-strip__scroller::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 11, 13, 0.98), rgba(12, 11, 13, 0)) 0 /
      max(48px, 6vw) 100% no-repeat,
    linear-gradient(-90deg, rgba(12, 11, 13, 0.98), rgba(12, 11, 13, 0)) 100% /
      max(48px, 6vw) 100% no-repeat;
}

.brand-strip__list {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  flex-shrink: 0;
  min-width: 100%;
  padding: 18px 0;
  transform: translateX(0);
  animation: brand-scroll var(--speed) linear infinite;
}

.brand-strip__list + .brand-strip__list {
  margin-left: var(--gap);
}

@keyframes brand-scroll {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.brand {
  --icon: 44px;
  --scale: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
  font: 700 0.8rem/1 var(--ff-heading);
  letter-spacing: 0.06em;
  color: #e6e6f7;
  opacity: 0.9;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  will-change: transform;
}

.brand:hover {
  transform: translateY(-2px) scale(1.03);
  opacity: 1;
}

.brand__icon {
  width: var(--icon);
  height: var(--icon);
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.brand__icon > img,
.brand__icon > svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(var(--scale));
  transform-origin: center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.brand--next .brand__icon > img,
.brand--next .brand__icon > svg {
  filter: brightness(0) invert(1) contrast(1.05)
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.brand--react {
  --scale: 1.18;
}
.brand--wordpress {
  --scale: 1.04;
}
.brand--node {
  --scale: 1.04;
}

@media (max-width: 720px) {
  .brand-strip {
    --row-h: 80px;
    --gap: clamp(1.25rem, 6vw, 2.25rem);
  }

  .brand {
    --icon: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-strip__list {
    animation: none !important;
  }
}

/* =========================
   ABOUT
========================= */
.about {
  --circle: min(440px, 44vw);
  --ring: 8px;
  --svg-extra: 200px;
  --accent: var(--clr-accent, #8a6bff);

  padding-block: clamp(5rem, 8vw, 3rem);
  padding-bottom: 0;
}

.about__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.about__eyebrow > span {
  width: 56px;
  height: 2px;
  background: var(--clr-accent);
  opacity: 0.9;
  border-radius: 2px;
}
.about__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
}

.about__title {
  margin-top: 0.6rem;
  font-weight: 800;
  font-size: clamp(1rem, 2.1vw, 2rem);
  line-height: 1.2;
}

.about__lead {
  margin-top: 1rem;
  color: #eae7ff;
  line-height: 1.7;
  max-width: 58ch;
  text-align: left;
}

.about__bullets {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.about__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #f2f0ff;
}
.about__bullets .check {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: #fff;
  filter: drop-shadow(0 4px 10px rgba(138, 107, 255, 0.35));
  background:
    radial-gradient(
      closest-side,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(180deg, #b7a7ff 0%, #7f62ff 100%);
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}

.about__cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.about__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(var(--circle) + 140px);
}

.about__media::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--circle) + var(--svg-extra));
  height: calc(var(--circle) + var(--svg-extra));
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      46% 46% at 50% 60%,
      rgba(138, 107, 255, 0.35),
      rgba(138, 107, 255, 0) 70%
    ),
    url("/images/bg/about-bg.svg") center/contain no-repeat;
  opacity: 0.95;
}

.about__figure {
  position: relative;
  z-index: 1;
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  padding: var(--ring);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s ease;
}

.about__figure:hover {
  transform: scale(1.035);
}

.about__figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.about__label {
  position: absolute;
  right: -70px;
  bottom: 26px;
  top: 350px;
  rotate: -90deg;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}
.about__label > span {
  width: 60px;
  height: 2px;
  background: #b9afff;
  opacity: 0.9;
  border-radius: 2px;
}
.about__label p {
  margin: 0;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .about {
    --circle: 400px;
  }
}

@media (max-width: 1024px) {
  .about {
    --circle: 400px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .about__container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    place-items: center;
    gap: 1rem;
  }
  .about__media {
    grid-area: media;
    margin: 0 auto;
  }
  .about__content {
    grid-area: content;
    text-align: center;
  }
  .about__title,
  .about__lead {
    margin-inline: auto;
    max-width: 100ch;
  }
  .about__bullets {
    justify-items: center;
  }
  .about__bullets li {
    justify-content: center;
  }
  .about__cta {
    justify-content: center;
  }
  .about__label {
    display: none;
  }
}

@media (max-width: 760px) {
  .about {
    padding-top: 3.75rem;
  }

  .about__container {
    grid-template-areas:
      "content"
      "media";
    place-items: stretch;
    gap: 1.5rem;
  }

  .about__content {
    text-align: left;
  }

  .about__title,
  .about__lead {
    max-width: none;
    margin-inline: 0;
  }

  .about__title {
    font-size: 1.45rem;
  }

  .about__bullets {
    justify-items: start;
  }

  .about__bullets li {
    justify-content: flex-start;
  }

  .about__cta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .about__cta .btn {
    flex: 1 1 14rem;
  }

  .about__media {
    min-height: calc(var(--circle) + 90px);
  }
}

@media (max-width: 520px) {
  .about {
    --circle: 230px;
    --svg-extra: 140px;
  }

  .about__cta .btn {
    flex-basis: 100%;
  }
}

/* =========================
   PORTFOLIO + CAROUSEL
========================= */
.portfolio {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.portfolio__head {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
}

.portfolio__title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin: 0.4rem 0 0.3rem;
}

.portfolio__lead {
  color: #eae7ff;
  max-width: 65ch;
}

.portfolio__filters {
  max-width: var(--container);
  margin: 1rem auto 1.25rem;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.portfolio__filters button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: 700 0.85rem/1 var(--ff-heading);
  letter-spacing: 0.06em;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.portfolio__filters button:hover,
.portfolio__filters button:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.portfolio__filters .is-active,
.portfolio__filters button[aria-selected="true"] {
  background: var(--clr-accent);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(138, 107, 255, 0.35);
}

.portfolio__carousel {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: 1.25rem;
}

.portfolio__empty {
  max-width: var(--container);
  margin: 1rem auto;
  padding-inline: var(--gutter);
  color: #eae7ff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.18) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.78), rgba(24, 20, 33, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(138, 107, 255, 0.22) inset;
  border-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.project-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16/10;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(13, 11, 18, 0.6);
}

.project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img {
  transform: scale(1);
}

.project-card__body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 0.75rem;
  padding: 1.05rem;
  flex: 1 1 auto;
}

.project-card__meta {
  color: #cfcaf2;
  font-size: 0.9rem;
}

.project-card__title {
  margin: 0;
  font: 900 1.05rem/1.25 var(--ff-heading);
}

.project-card__desc {
  margin: 0;
  color: #efeefe;
  line-height: 1.65;
  opacity: 0.98;
}

.project-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
}

.project-card__tags li {
  font: 800 0.72rem/1 var(--ff-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.project-card__actions {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.35rem;
}

.project-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--clr-accent);
  color: #fff;
  font: 800 0.9rem/1 var(--ff-heading);
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(138, 107, 255, 0.24);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card__button:hover,
.project-card__button:focus-visible {
  background: #a08cff;
  box-shadow: 0 14px 30px rgba(138, 107, 255, 0.32);
  transform: translateY(-1px);
  outline: none;
}

/* Carousel */
.carousel {
  position: relative;
  text-align: left;
  margin-bottom: 22px;
}

.carousel > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  overflow: hidden;
}

/* Offsets (jusqu'Ã  6) */
.carousel
  > input:nth-of-type(6):checked
  ~ .carousel__slides
  .carousel__slide:first-of-type {
  margin-left: -500%;
}
.carousel
  > input:nth-of-type(5):checked
  ~ .carousel__slides
  .carousel__slide:first-of-type {
  margin-left: -400%;
}
.carousel
  > input:nth-of-type(4):checked
  ~ .carousel__slides
  .carousel__slide:first-of-type {
  margin-left: -300%;
}
.carousel
  > input:nth-of-type(3):checked
  ~ .carousel__slides
  .carousel__slide:first-of-type {
  margin-left: -200%;
}
.carousel
  > input:nth-of-type(2):checked
  ~ .carousel__slides
  .carousel__slide:first-of-type {
  margin-left: -100%;
}
.carousel
  > input:nth-of-type(1):checked
  ~ .carousel__slides
  .carousel__slide:first-of-type {
  margin-left: 0;
}

/* Thumb active */
.carousel
  > input:nth-of-type(1):checked
  ~ .carousel__thumbnails
  li:nth-of-type(1),
.carousel
  > input:nth-of-type(2):checked
  ~ .carousel__thumbnails
  li:nth-of-type(2),
.carousel
  > input:nth-of-type(3):checked
  ~ .carousel__thumbnails
  li:nth-of-type(3),
.carousel
  > input:nth-of-type(4):checked
  ~ .carousel__thumbnails
  li:nth-of-type(4),
.carousel
  > input:nth-of-type(5):checked
  ~ .carousel__thumbnails
  li:nth-of-type(5),
.carousel
  > input:nth-of-type(6):checked
  ~ .carousel__thumbnails
  li:nth-of-type(6) {
  box-shadow: 0 0 0 5px rgba(138, 107, 255, 0.45);
}

.carousel__slides {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.carousel__slide {
  position: relative;
  flex: 1 0 100%;
  width: 100%;
  overflow: hidden;
  transition: margin-left 0.3s ease-out;
  white-space: normal;
}

.carousel__slide figure {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  align-items: stretch;
}

.ratio-3x2 {
  aspect-ratio: 3/2;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
}

.ratio-3x2 > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__slide figcaption {
  align-self: stretch;
  padding: 0.25rem 0 0 0;
  flex: 0 0 clamp(280px, 34%, 420px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.carousel__slide figcaption h4 {
  font: 800 1.05rem/1.25 var(--ff-heading);
  margin: 0;
}

.carousel__slide figcaption .meta {
  color: #cfcaf2;
  opacity: 0.9;
  font-size: 0.9rem;
}

.carousel__slide figcaption p {
  color: #efeefe;
  line-height: 1.65;
  opacity: 0.98;
}

.carousel__slide figcaption .carousel__desc {
  text-align: left;
}

.carousel__more {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--clr-accent-text);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}
.carousel__more:hover {
  text-decoration: underline;
}
.carousel__more:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.carousel__slide .caption-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  padding: 0.6rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: 0.2s;
  background: rgba(255, 255, 255, 0.05);
}

.carousel__slide .caption-link:hover,
.carousel__slide .caption-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.carousel__thumbnails {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 14px 0 0;
}

.carousel__thumbnails li {
  flex: 1 1 auto;
  max-width: calc((100% / 6) - 0.75rem);
  border-radius: 10px;
  transition: 0.25s;
}

.carousel__thumbnails label {
  display: block;
  aspect-ratio: 1/1;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.carousel__thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

@media (max-width: 1024px) {
  .carousel__slide figcaption {
    flex-basis: clamp(240px, 38%, 360px);
    min-width: 240px;
  }
}

@media (max-width: 820px) {
  .carousel__slide figure {
    flex-direction: column;
  }

  .carousel__slide figcaption {
    flex-basis: auto;
    min-width: 0;
    padding-top: 0.5rem;
  }

  .carousel__slide .caption-link {
    margin-top: 0.6rem;
  }
}

@media (max-width: 800px) {
  .portfolio__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .portfolio__all {
    justify-self: start;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PROCESS
========================= */
.process {
  padding-block: clamp(5rem, 8vw, 3rem);
  padding-bottom: 0;
  color: #fff;
}
.process__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.process__card {
  position: relative;
  border-radius: 20px;
  padding: 1.35rem;
  backdrop-filter: blur(8px);
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.18) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.78), rgba(24, 20, 33, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
}
.process__card:hover,
.process__card:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(138, 107, 255, 0.22) inset;
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.28) 0,
      rgba(20, 18, 27, 0) 58%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.84), rgba(24, 20, 33, 0.6));
  border-color: rgba(255, 255, 255, 0.12);
}

.process__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(1.8rem, 3.6vw, 2.6rem);
}
.process__intro .kicker {
  color: var(--clr-accent-text);
  letter-spacing: 0.14em;
  font-weight: 800;
  opacity: 0.95;
}
.process__intro h2 {
  font: 900 clamp(1.6rem, 3.2vw, 2.3rem) / 1.2 var(--ff-heading);
  margin: 0.55rem 0 0.8rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.process__intro .lead {
  color: #ece8ff;
  line-height: 1.65;
  opacity: 0.95;
}

.process__meta {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  padding: 0 1rem;
  margin: 1rem auto 0;
  max-width: 44rem;
}

.process__meta li {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 800 0.78rem/1 var(--ff-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process__track {
  position: relative;
  background: url("/images/bg/work-line.png") center/100% 100% no-repeat;
  min-height: clamp(210px, 26vw, 280px);
  margin: clamp(3.5rem, 7.8vw, 5.1rem) clamp(0.25rem, 1.5vw, 0.75rem);
}

.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  --dot-lg: 190px;
  --dot-sm: 170px;
}

.process__step {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: var(--dot-lg);
  height: var(--dot-lg);
  border-radius: 50%;
  padding: 1.4rem 1.2rem;
  background:
    radial-gradient(
      70% 70% at 30% 30%,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.06) 65%,
      transparent 66%
    ),
    linear-gradient(180deg, #9a85ff 0%, #7f62ff 100%), #7f62ff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  outline: none;
  z-index: 1;
}

.process__step:nth-child(1) {
  top: -58px;
  left: -1%;
}
.process__step:nth-child(2) {
  width: var(--dot-sm);
  height: var(--dot-sm);
  bottom: -58px;
  left: 24%;
}
.process__step:nth-child(3) {
  top: -58px;
  right: 24%;
}
.process__step:nth-child(4) {
  width: var(--dot-sm);
  height: var(--dot-sm);
  bottom: -58px;
  right: 0;
}

.process__num {
  font: 900 2rem/1 var(--ff-heading);
  color: #fff;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}
.process__title {
  font: 800 0.98rem/1.35 var(--ff-heading);
  margin: 0;
  color: #fff;
}

.process__cta {
  text-align: center;
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
}
.process__cta .btn {
  box-shadow: 0 8px 24px rgba(138, 107, 255, 0.32);
}
.process__cta .btn:hover {
  transform: translateY(-2px);
}

.process__note {
  margin: 0.9rem auto 0;
  max-width: 42rem;
  color: rgba(234, 231, 255, 0.9);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .process__track {
    background: none;
    min-height: 0;
    margin: 1.6rem 0;
  }
  .process__steps {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1.1rem 1.25rem;
    justify-items: center;
  }
  .process__step {
    position: static;
    width: 160px;
    height: 160px;
  }

  .process__meta {
    gap: 0.55rem;
  }
}
@media (max-width: 520px) {
  .process__steps {
    grid-template-columns: 1fr;
  }
  .process__step {
    width: 140px;
    height: 140px;
  }

  .process__meta {
    justify-content: center;
  }

  .process__meta li {
    width: 100%;
    max-width: 18rem;
  }
}

/* =========================
   SERVICES
========================= */
.services {
  padding-block: clamp(3.25rem, 5.5vw, 4.75rem);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 45% at 50% 10%,
    rgba(138, 107, 255, 0.18),
    rgba(12, 11, 13, 0) 70%
  );
  opacity: 0.95;
}

.services__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.services__intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(1.25rem, 2.6vw, 1.9rem);
}

.services__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.services__kicker > span {
  width: 56px;
  height: 2px;
  background: var(--clr-accent);
  opacity: 0.9;
  border-radius: 2px;
}

.services__kicker h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  text-shadow: none;
}

.services__subtitle {
  margin-top: 0.9rem;
  color: #ece8ff;
  line-height: 1.7;
  opacity: 0.96;
}

.services__cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.services__stack {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 2.2vw, 1.6rem);
}

.service {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.18) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.78), rgba(24, 20, 33, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  isolation: isolate;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
  background:
    radial-gradient(
      70% 60% at 30% 20%,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(180deg, #9a85ff 0%, #7f62ff 100%);
}

.service::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
  background: radial-gradient(
    55% 55% at 50% 40%,
    rgba(138, 107, 255, 0.28),
    rgba(138, 107, 255, 0) 70%
  );
}

.service:hover,
.service:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(138, 107, 255, 0.22) inset;
  border-color: rgba(255, 255, 255, 0.14);
}

.service:hover::before,
.service:focus-within::before {
  opacity: 1;
}

.service:hover::after,
.service:focus-within::after {
  opacity: 1;
}

.service__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1.25fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
  padding: clamp(0.9rem, 1.8vw, 1.2rem);
  align-items: center;
}

.service__left {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num head"
    "tags tags";
  gap: 0.5rem 0.75rem;
  align-content: start;
}

.service__num {
  grid-area: num;
  font: 900 1.45rem/1 var(--ff-heading);
  letter-spacing: 0.06em;
  color: var(--clr-accent-text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  transition: color 0.25s ease;
}

.service:hover .service__num,
.service:focus-within .service__num {
  color: rgba(255, 255, 255, 0.95);
}

.service__head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.service__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--clr-accent-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.service:hover .service__icon,
.service:focus-within .service__icon {
  color: #fff;
  background: rgba(12, 11, 13, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.service__title {
  margin: 0;
  font: 900 clamp(1.02rem, 1.2vw, 1.18rem) / 1.2 var(--ff-heading);
  transition: color 0.25s ease;
}

.service__tags {
  grid-area: tags;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0.05rem 0 0;
  color: #efeefe;
}

.service__tags li {
  font: 800 0.68rem/1 var(--ff-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.service:hover .service__tags li,
.service:focus-within .service__tags li {
  background: rgba(12, 11, 13, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.service__right {
  display: grid;
  gap: 0.45rem;
  align-content: center;
}

.service__text {
  margin: 0;
  color: #ece8ff;
  line-height: 1.55;
  opacity: 0.96;
  text-align: left;
  transition: color 0.25s ease;
}

.service:hover .service__text,
.service:focus-within .service__text {
  color: #fff;
  opacity: 0.98;
}

.service__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--clr-accent-text);
  padding: 0.1rem 0;
  transition: color 0.25s ease;
}

.service:hover .service__link,
.service:focus-within .service__link {
  color: #fff;
}

.service__link:hover {
  text-decoration: underline;
}

.service__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 8px;
}

.services__note {
  margin-top: clamp(1.1rem, 2.2vw, 1.5rem);
  text-align: center;
  color: #eae7ff;
  opacity: 0.95;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .service__grid {
    grid-template-columns: 1fr;
  }

  .service__text {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .service__grid {
    padding: 1rem;
  }

  .service__left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "head"
      "tags";
    gap: 0.5rem;
  }

  .service__num {
    font-size: 1.35rem;
  }

  .service__tags li {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service::before,
  .service::after,
  .service__num,
  .service__icon,
  .service__text,
  .service__link {
    transition: none !important;
  }
}
/* =========================
   HOME â€” BLOG
========================= */
.home-blog {
  padding-block: clamp(4rem, 7vw, 6rem);
  position: relative;
}

.home-blog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 45% at 50% 10%,
    rgba(138, 107, 255, 0.14),
    rgba(12, 11, 13, 0) 70%
  );
  opacity: 0.95;
}

.home-blog__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* âœ… FIX : on force le placement des 3 Ã©lÃ©ments dans une grid 2 colonnes */
.home-blog__head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker cta"
    "intro  cta";
  gap: 1.25rem;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
  margin-bottom: 1.35rem;
}

/* Mapping des zones */
.home-blog__head > .kicker {
  grid-area: kicker;
}
.home-blog__head > .home-blog__intro {
  grid-area: intro;
}
.home-blog__head > .home-blog__all {
  grid-area: cta;
  justify-self: end;
}

.home-blog__intro {
  text-align: left;
}

.home-blog__title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 0.4rem 0 0.3rem;
}

.home-blog__lead {
  margin: 0;
  color: #eae7ff;
  line-height: 1.7;
  max-width: 65ch;
}

.home-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 820px) {
  .home-blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-blog__card {
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.18) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.78), rgba(24, 20, 33, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.home-blog__card:hover,
.home-blog__card:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(138, 107, 255, 0.22) inset;
  border-color: rgba(255, 255, 255, 0.14);
}

.home-blog__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-blog__media {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}

.home-blog__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.home-blog__card:hover .home-blog__img,
.home-blog__card:focus-within .home-blog__img {
  transform: scale(1.06);
}

.home-blog__body {
  padding: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.home-blog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  color: #cfcaf2;
  font-size: 0.9rem;
}

.home-blog__pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font: 800 0.72rem/1 var(--ff-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-blog__card-title {
  margin: 0;
  font: 900 1.05rem/1.25 var(--ff-heading);
}

.home-blog__desc {
  margin: 0;
  color: #efeefe;
  line-height: 1.65;
  opacity: 0.98;
}

.home-blog__more {
  margin-top: 0.25rem;
  font-weight: 900;
  color: var(--clr-accent-text);
}

.home-blog__empty {
  color: #eae7ff;
  opacity: 0.95;
}

@media (max-width: 800px) {
  .home-blog__head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "intro"
      "cta";
    align-items: start;
  }

  .home-blog__head > .home-blog__all {
    justify-self: start;
  }
}

