/* TechJutsu Solutions — design system */

:root {
  --bg: #0a0b0d;
  --bg-2: #111316;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f1;
  --muted: #a3a7a2;            /* 8:1 sur --bg */
  --label: #c4c8c3;            /* petits libellés mono : 11:1 sur --bg */
  --accent: #3cf07e;           /* vert signature, texte sombre dessus */
  --accent-ink: #04140a;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 88rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.975rem;
  border: 1px solid var(--line);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }

.logo img { height: 2.1rem; width: auto; }

.nav__links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.925rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.875rem; }

.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before {
  display: block; width: 1rem; height: 1.5px; background: currentColor; margin: auto;
  transition: transform .3s var(--ease);
}
.nav__toggle span::before { content: ""; transform: translateY(5px); }
.nav__toggle span { transform: translateY(-2.5px); }
.nav.is-open .nav__toggle span { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::before { transform: rotate(-90deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 4.5rem 0 auto; height: calc(100dvh - 4.5rem);
    flex-direction: column; gap: 0; padding: 1.5rem var(--gutter);
    background: var(--bg);
    visibility: hidden; opacity: 0;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; }
  .nav__links a {
    display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
    font-size: 1.75rem; color: var(--text); letter-spacing: -0.02em;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 2rem;
  overflow: hidden;
  isolation: isolate;
}

/* Grille fine + halo vert : pur CSS, zéro image */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute; z-index: -1;
  width: 60rem; height: 60rem; right: -20rem; top: -25rem;
  background: radial-gradient(circle, rgba(60, 240, 126, 0.16), transparent 60%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-6rem, 4rem) scale(1.1); } }

.hero__eyebrow { display: flex; align-items: center; gap: 0.75rem; color: var(--label); margin-bottom: 2rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(60, 240, 126, .15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(60, 240, 126, 0); } }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex: 1;
}

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 8.2vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.hero__title em { font-style: normal; color: var(--accent); }
@keyframes rise { from { transform: translateY(105%); } }

.hero__lead { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; }
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.fade { animation: fade 1s var(--ease) .35s both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

/* Mascotte : image fixe d'abord, canvas 3D par-dessus une fois prêt */
.leuk { position: relative; margin: 0; aspect-ratio: 1; width: 100%; max-width: min(40rem, 72vh); justify-self: center; animation: fade 1.2s var(--ease) .25s both; }
.leuk::before {
  content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 240, 126, .2), transparent 68%);
}
.leuk__poster, .leuk__canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease); }
.leuk__canvas { opacity: 0; }
.leuk.is-live .leuk__canvas { opacity: 1; }
.leuk.is-live .leuk__poster { opacity: 0; }

/* Cadre téléphone (cartes Réalisations, études de cas) */
.phone {
  position: absolute;
  top: 50%;
  width: clamp(10rem, 17vw, 15.5rem);
  aspect-ratio: 9 / 19;
  padding: 0.5rem;
  border-radius: 2.4rem;
  background: #1a1c1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 1.9rem; }


.hero__meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--label);
}
.hero__meta ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 860px) {
  .hero { padding-top: 6.5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 12rem; justify-content: center; }
    .hero__meta > span { display: none; }
}

/* ---------- Bande clients ---------- */

.clients { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.clients__label { color: var(--label); margin: 0 0 2rem; }

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; align-items: center; flex-shrink: 0;
  gap: clamp(3rem, 7vw, 6rem);
  padding-right: clamp(3rem, 7vw, 6rem);
  list-style: none; margin: 0;
  animation: scroll 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Logos clients : PNG blancs, même poids visuel, gris au repos */
.client { display: flex; align-items: center; opacity: .7; transition: opacity .3s; }
.client:hover { opacity: 1; }
.client img { height: var(--h); width: auto; filter: brightness(0) invert(1); }
.client--text { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
@media (max-width: 640px) {
  .client img { height: calc(var(--h) * .78); }
  .client--text { font-size: 1.25rem; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 12vw, 9rem) 0; }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__index { grid-column: 1 / -1; margin: 0; color: var(--accent); }
.h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.muted { color: var(--muted); }
.section__lead { margin: 0; max-width: 30rem; color: var(--muted); font-size: 1.125rem; justify-self: end; }

@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; }
  .section__lead { justify-self: start; }
}

/* Apparition au scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);            /* les filets entre cartes */
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  list-style: none; margin: 0; padding: 0;
}
.service {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
}
.js .service.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), background .4s var(--ease); }
.service:nth-child(3n+2) { transition-delay: .06s; }
.service:nth-child(3n+3) { transition-delay: .12s; }

/* liseré vert qui se dessine au survol */
.service::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.service:hover { background: var(--bg-2); }
.service:hover::before { transform: scaleX(1); }

.service__num { color: var(--label); transition: color .3s; }
.service:hover .service__num { color: var(--accent); }

/* icône et titre calés en haut ; les mots-clés descendent en bas */
.service__icon {
  width: 2.5rem; height: 2.5rem;
  margin-top: 2.5rem;
  flex-shrink: 0;
  fill: none; stroke: var(--text); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round;
  transition: stroke .3s, transform .5s var(--ease);
}
.service:hover .service__icon { stroke: var(--accent); transform: translateY(-4px); }

.service h3 { margin: 2rem 0 0.75rem; font-weight: 500; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; }
.service p { margin: 0; color: var(--muted); font-size: 0.975rem; }
.service .service__tags { margin-top: auto; padding-top: 1.5rem; font-size: 0.7rem; color: var(--label); }

.services__more { margin: 1.5rem 0 0; color: var(--label); text-align: right; }

@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service__icon { margin-top: 1.5rem; }
  .service h3 { margin-top: 1.25rem; }
  .services__more { text-align: left; }
}

/* ---------- Réalisations ---------- */

/* Projet phare : eTiké en grand format */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(40rem 30rem at 85% 30%, rgba(60, 240, 126, 0.14), transparent 65%),
    var(--bg-2);
  overflow: hidden;
}
.feature__badge { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--accent); }
.feature__title {
  margin: 1.5rem 0 1rem;
  font-weight: 500;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: .9;
  letter-spacing: -0.06em;
}
.feature__lead { margin: 0; max-width: 32rem; color: var(--muted); font-size: 1.125rem; }
.feature__points { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature__points li { display: flex; gap: 1.25rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.feature__points .mono { color: var(--accent); padding-top: .2rem; }
.feature__tags { margin: 1.75rem 0 0; color: var(--label); }

.feature__visual { position: relative; min-height: 26rem; }
.feature__dash {
  position: absolute; right: -6rem; top: 12%;
  width: 115%; max-width: none; height: auto;
  border-radius: .75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transition: transform .8s var(--ease);
}
.phone--feature {
  left: 18%; top: auto; bottom: -3rem;
  width: clamp(9.5rem, 15vw, 13rem);
  transform: rotate(-4deg);
  transition: transform .8s var(--ease);
}
.feature:hover .feature__dash { transform: translateX(-1rem); }
.feature:hover .phone--feature { transform: rotate(-2deg) translateY(-.75rem); }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature__visual { min-height: 20rem; }
  .feature__dash { right: -30%; top: 0; width: 130%; }
  .phone--feature { left: 4%; bottom: -5rem; }
}

/* Autres projets */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none; margin: clamp(1rem, 2vw, 1.5rem) 0 0; padding: 0;
}
.work a {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.work a:hover { border-color: rgba(60, 240, 126, 0.5); background: var(--bg-2); }
.work:nth-child(even) { transition-delay: .08s; }

.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 9%;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(60, 240, 126, 0.14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    #0d0e10;
  border-bottom: 1px solid var(--line);
}
.work__media > * { transition: transform .8s var(--ease); }
.work a:hover .work__media > * { transform: translateY(-.75rem); }

/* Cadre navigateur sombre */
.browser {
  width: 84%;
  border-radius: .75rem .75rem 0 0;
  background: #1a1c1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.browser__bar { display: flex; align-items: center; gap: .35rem; height: 1.9rem; padding: 0 .75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.browser__bar i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.browser__bar span {
  margin-left: .75rem; padding: .15rem .75rem;
  border-radius: 999px; background: rgba(255, 255, 255, .06);
  font: 400 .65rem/1.4 var(--mono); color: var(--label);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.rec {
  position: absolute; left: .75rem; top: .75rem;
  display: flex; align-items: center; gap: .4rem;
  padding: .2rem .55rem; border-radius: 999px;
  background: rgba(0, 0, 0, .7); color: #fff; font-size: .6rem;
}
.rec::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #ff4d4d; animation: pulse 2s ease-in-out infinite; }

/* Téléphone dans une carte : même cadre que le hero, sans positionnement absolu */
.phone--card { position: relative; top: auto; left: auto; width: 38%; transform: none; flex-shrink: 0; }

.work__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 2.5vw, 2rem); }
.work__meta { margin: 0; color: var(--label); }
.work__title {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: .9rem 0 .75rem;
  font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.05;
}
.work__arrow {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.work__arrow svg { width: 1rem; height: 1rem; }
.work a:hover .work__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.work__text { margin: 0; color: var(--muted); }
.work__tags { margin: auto 0 0; padding-top: 1.25rem; color: var(--label); }

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

.wide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg);
  transition: border-color .4s var(--ease);
}
.wide:hover { border-color: rgba(60, 240, 126, 0.5); }
.wide__body { display: flex; flex-direction: column; padding: clamp(1.5rem, 3.5vw, 3rem); }
.wide__title { margin: .9rem 0 1rem; font-weight: 500; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.045em; }
.wide__title .muted { display: block; font-size: .55em; letter-spacing: -0.03em; margin-top: .35rem; }
.wide__media {
  display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 0;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(60, 240, 126, 0.14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    #0d0e10;
}
.wide .browser { width: 100%; }

/* La page défile dans le cadre au survol (et toute seule sur écran tactile) */
.browser--scroll .browser__screen { aspect-ratio: auto; height: clamp(18rem, 32vw, 26rem); }
.browser--scroll .browser__screen img { height: auto; object-fit: initial; transition: transform 7s cubic-bezier(.45, 0, .55, 1); }
.wide:hover .browser--scroll img { transform: translateY(calc(-100% + clamp(18rem, 32vw, 26rem))); }
@media (hover: none) {
  .browser--scroll .browser__screen img { animation: page-scroll 16s cubic-bezier(.45, 0, .55, 1) 1s infinite alternate; }
}
@keyframes page-scroll { to { transform: translateY(calc(-100% + clamp(18rem, 32vw, 26rem))); } }

@media (max-width: 860px) {
  .wide { grid-template-columns: 1fr; }
  .wide__media { border-left: 0; border-top: 1px solid var(--line); order: -1; }
}

/* ---------- Éducation & formation ---------- */

.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.edu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.edu__visual {
  position: relative;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
/* photo en niveaux de gris, teintée vert par-dessus */
.edu__visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); }
.edu__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60, 240, 126, .18), transparent 40%, rgba(10, 11, 13, .95) 85%);
  mix-blend-mode: normal;
}
.edu__stats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.edu__stats p { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.edu__stats strong {
  font-weight: 500;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: .85;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.edu__stats span { color: var(--text); font-size: .925rem; line-height: 1.4; max-width: 14rem; }

.edu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.edu__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .25rem 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.edu__num { color: var(--accent); padding-top: .55rem; }
.edu__row h3 { margin: 0 0 .5rem; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; }
.edu__row p { margin: 0; color: var(--muted); }
.edu__ref {
  grid-column: 2;
  justify-self: start;
  margin-top: .9rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--label);
  font-size: .68rem;
  transition: border-color .3s, color .3s;
}
.edu__row:hover .edu__ref { border-color: var(--accent); color: var(--accent); }

/* Le bloc photo + chiffres accompagne la liste, sur grand écran seulement */
@media (min-width: 861px) {
  .edu__visual { position: sticky; top: 6.5rem; }
}

.edu__trust { margin-top: clamp(2rem, 4vw, 3rem); }
.edu__trust > p { margin: 0 0 1.5rem; color: var(--label); }
.edu__trust ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.edu__trust .client--text { font-size: 1.35rem; }

@media (max-width: 860px) {
  .edu { grid-template-columns: 1fr; }
  .edu__visual img { aspect-ratio: 4 / 3; }
}

/* ---------- Témoignages ---------- */

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.quote {
  display: flex; flex-direction: column;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--bg-2);
  transition: border-color .4s var(--ease);
}
.quote:hover { border-color: rgba(60, 240, 126, 0.5); }
.quote:nth-child(2) { transition-delay: .08s; }
.quote__mark { width: 2.5rem; height: auto; fill: var(--accent); }
.quote blockquote { margin: 2rem 0 2.5rem; }
.quote blockquote p {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.quote figcaption {
  display: flex; align-items: center; gap: 1rem;
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.quote__photo { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.quote figcaption > span { display: flex; flex-direction: column; line-height: 1.3; }
.quote figcaption strong { font-weight: 500; }
.quote figcaption > span > span { color: var(--muted); font-size: .9rem; }
.quote__logo { margin-left: auto; height: 1.75rem; width: auto; filter: brightness(0) invert(1); opacity: .7; }

@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
  .quote__logo { display: none; }
}

/* ---------- Méthode ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.step {
  position: relative;
  display: flex; flex-direction: column;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
/* trait vert qui se dessine d'une étape à l'autre à l'apparition */
.step::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease);
}
.step::after {
  content: "";
  position: absolute; left: 0; top: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(60, 240, 126, .15);
}
.step.is-in::before, html:not(.js) .step::before { transform: scaleX(1); }
.step:nth-child(2), .step:nth-child(2)::before { transition-delay: .15s; }
.step:nth-child(3), .step:nth-child(3)::before { transition-delay: .3s; }
.step:nth-child(4), .step:nth-child(4)::before { transition-delay: .45s; }

.step__num {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s var(--ease);
}
.step:hover .step__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { margin: 1.75rem 0 .75rem; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.step p { margin: 0; color: var(--muted); font-size: .975rem; }
.step .step__out { margin-top: auto; padding-top: 1.5rem; color: var(--text); font-size: .7rem; }
.step__out span { display: block; margin-bottom: .35rem; color: var(--accent); }

.cta-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: radial-gradient(30rem 12rem at 100% 50%, rgba(60, 240, 126, .12), transparent 70%), var(--bg);
}
.cta-strip p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.02em; }

@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  /* frise verticale sur mobile */
  .step { padding: 0 0 2.5rem 2rem; border-top: 0; border-left: 1px solid var(--line); }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 0; left: -1px; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .step.is-in::before, html:not(.js) .step::before { transform: scaleY(1); }
  .step::after { top: 0; left: -5px; }
  .step__num { font-size: 3rem; }
  .step h3 { margin-top: 1rem; }
  .cta-strip .btn { width: 100%; justify-content: center; }
}

/* ---------- Pourquoi TechJutsu ---------- */

.section--tight { padding-block: clamp(4rem, 9vw, 7rem); }
.reasons {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
.reason {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--bg-2);
  transition: border-color .4s var(--ease);
}
.reason:hover { border-color: rgba(60, 240, 126, 0.5); }
.reason:nth-child(2) { transition-delay: .08s; }
.reason:nth-child(3) { transition-delay: .16s; }
.reason__num { color: var(--accent); }
.reason h3 { margin: 2.5rem 0 .75rem; font-weight: 500; font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: -0.035em; line-height: 1.1; }
.reason p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } .reason h3 { margin-top: 1.25rem; } }

/* Signature de marque */
.signature { color: var(--label); letter-spacing: .04em; text-transform: none; }
.footer__sig { margin: 1rem 0 0; color: var(--accent); font-size: .78rem; letter-spacing: .02em; }

/* ---------- Équipe : organigramme ---------- */

/* Grille 4 colonnes : CEO centré, CTO au-dessus des 3 profils tech,
   Head of Sales au-dessus du profil business. Les traits sont des cellules
   de la même grille, donc toujours alignés sur les cartes. */
.org {
  --gap: clamp(1rem, 2vw, 1.5rem);
  --wire: rgba(255, 255, 255, 0.38);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gap);
  max-width: 60rem;
  list-style: none; margin: 0 auto; padding: 0;
}
.org__ceo  { grid-row: 1; grid-column: 3; }
.org__cto  { grid-row: 3; grid-column: 2; }
.org__hos  { grid-row: 3; grid-column: 4; }
.org__tech, .org__biz { grid-row: 5; }

.org__link { position: relative; grid-row: 2; height: 3rem; }
.org__link--b1, .org__link--b2, .org__link--b3, .org__link--b4 { grid-row: 4; }
.org__link--a2, .org__link--b2 { grid-column: 2; }
.org__link--a3, .org__link--b3 { grid-column: 3; }
.org__link--a4, .org__link--b4 { grid-column: 4; }
.org__link--b1 { grid-column: 1; }
.org__link::before, .org__link::after { content: ""; position: absolute; background: var(--wire); }
/* traits horizontaux (à mi-hauteur) */
.org__link::before { top: 50%; height: 1px; }
.org__link--a2::before, .org__link--b1::before { left: 50%; right: calc(var(--gap) / -2); }
.org__link--a3::before, .org__link--b2::before { left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); }
.org__link--a4::before, .org__link--b3::before { left: calc(var(--gap) / -2); right: 50%; }
.org__link--b4::before { display: none; }
/* traits verticaux */
.org__link::after { width: 1px; left: 50%; top: 50%; bottom: 0; }
.org__link--a3::after { top: 0; bottom: 50%; }   /* tige sous le CEO */
.org__link--b2::after, .org__link--b4::after { top: 0; }
.org__link span {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  padding: .2rem .6rem;
  border: 1px solid var(--wire); border-radius: 999px;
  background: var(--bg);
  color: var(--accent); font-size: .65rem; white-space: nowrap;
}

/* Cartes membres : centrées sous les traits */
.member__card { display: block; max-width: 12.5rem; margin-inline: auto; text-align: center; }
.member__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.member__card:hover .member__photo img, .member__card:focus-visible .member__photo img { filter: none; transform: scale(1.03); }
.org__ceo .member__photo, .org__cto .member__photo, .org__hos .member__photo { border-color: rgba(60, 240, 126, .45); }

/* pastille LinkedIn : apparaît au survol, toujours visible sur écran tactile */
.member__in {
  position: absolute; right: .75rem; bottom: .75rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: translateY(.5rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.member__in svg { width: 1rem; height: 1rem; fill: currentColor; }
.member__card:hover .member__in, .member__card:focus-visible .member__in { opacity: 1; transform: none; }
@media (hover: none) { .member__in { opacity: 1; transform: none; width: 2rem; height: 2rem; } }

.member__name { margin: 1rem 0 .35rem; font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -0.025em; line-height: 1.15; }
.member__role { margin: 0; color: var(--accent); }
.member__skills { margin: .25rem 0 0; color: var(--muted); font-size: .925rem; }

/* Mobile : arbre vertical, cartes en ligne, membres indentés sous leur responsable */
@media (max-width: 860px) {
  .org { display: flex; flex-direction: column; gap: .75rem; }
  .org > * { width: auto !important; }
  .org__link { display: none; height: auto; }
  .org__link--b2, .org__link--b4 { display: block; margin-top: 1rem; }
  .org__link--b2::before, .org__link--b2::after, .org__link--b4::before, .org__link--b4::after { display: none; }
  .org__link span { position: static; transform: none; display: inline-block; }
  .org__ceo { order: 1; } .org__link--b2 { order: 2; } .org__cto { order: 3; } .org__tech { order: 4; }
  .org__link--b4 { order: 5; } .org__hos { order: 6; } .org__biz { order: 7; }
  .org__tech, .org__biz { margin-left: 1.25rem; padding-left: 1rem; border-left: 1px solid var(--wire); }

  .member__card { display: flex; align-items: center; gap: 1rem; max-width: none; margin: 0; text-align: left; }
  .member__photo { width: 4.5rem; flex-shrink: 0; border-radius: .75rem; }
  .member__in { right: .3rem; bottom: .3rem; width: 1.6rem; height: 1.6rem; }
  .member__in svg { width: .75rem; height: .75rem; }
  .member__name { margin-top: 0; font-size: 1.05rem; }
  .member__skills { font-size: .875rem; }
}

/* Valeurs + recrutement */
.culture {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(4rem, 8vw, 6rem);
}
.values__title { margin: 0 0 1rem; color: var(--label); }
.values ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.values .mono { color: var(--accent); padding-top: .5rem; }
.values h3 { margin: 0 0 .4rem; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; }
.values p { margin: 0; color: var(--muted); }

.hiring {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.hiring__badge { display: flex; align-items: center; gap: .6rem; margin: 0; }
.hiring .dot { background: var(--accent-ink); box-shadow: 0 0 0 4px rgba(4, 20, 10, .15); }
.hiring__title { margin: 1.5rem 0 .75rem; font-weight: 500; font-size: clamp(2.5rem, 5vw, 4rem); line-height: .95; letter-spacing: -0.05em; }
.hiring > p { margin: 0; font-size: 1.05rem; }
.hiring__jobs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.hiring__jobs li { padding: .4rem .9rem; border: 1px solid rgba(4, 20, 10, .3); border-radius: 999px; font-size: .9rem; }
.btn--dark { margin-top: auto; background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.btn--dark:hover { background: #000; }

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

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(50rem 30rem at 0% 100%, rgba(60, 240, 126, 0.10), transparent 65%),
    #050607;
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__info .section__index { margin-bottom: 1.5rem; }
.contact__info .section__lead { margin-top: 1.5rem; justify-self: start; }
.contact__list { list-style: none; margin: 2.5rem 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.contact__list .mono { color: var(--label); padding-top: .2rem; }
.contact__list a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.contact__list a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.btn--wa svg { width: 1.15rem; height: 1.15rem; transform: none !important; }
.btn--wa:hover { border-color: var(--accent); color: var(--accent); }

.form {
  display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--bg-2);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field > span { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: .75rem;
  background: var(--bg);
  color: var(--text);
  font: inherit; font-size: 1rem;   /* 16px : pas de zoom auto sur iOS */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c4c8c3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem;
  padding-right: 2.75rem;
}
.field select:invalid { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 240, 126, .18);
}
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; }
.form__status { padding: .9rem 1rem; border-radius: .75rem; font-size: .975rem; }
.form__status.is-ok { background: rgba(60, 240, 126, .12); border: 1px solid rgba(60, 240, 126, .5); color: var(--text); }
.form__status.is-error { background: rgba(255, 99, 99, .1); border: 1px solid rgba(255, 99, 99, .5); color: var(--text); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit, .btn--wa { width: 100%; justify-content: center; }
  .contact__list li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Footer ---------- */

.footer { background: #050607; border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand .logo img { height: 2.4rem; }
.footer__brand p { max-width: 22rem; margin: 1.25rem 0 0; color: var(--muted); font-size: .95rem; }
.footer__col > p { margin: 0 0 1rem; color: var(--label); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__col a { color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__col li { color: var(--muted); font-size: .95rem; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--label);
}
.footer__bottom a:hover { color: var(--accent); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Études de cas (work-*.html, générées par tools/build_cases.py) ---------- */

.todo { color: #ffb84d; font-family: var(--mono); font-size: .85em; }

/* Panneau sombre commun aux maquettes (même fond que les cartes Réalisations) */
.stage {
  display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 0;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(60, 240, 126, 0.14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    #0d0e10;
}
.stage .browser { width: min(100%, 60rem); }
.stage .phone--card { width: min(15rem, 60%); }
.browser__screen--auto { aspect-ratio: auto; }
.browser__screen--auto img { height: auto; }
.stage:hover .browser--scroll img { transform: translateY(calc(-100% + clamp(18rem, 32vw, 26rem))); }
.phones { display: flex; justify-content: center; gap: clamp(.75rem, 2vw, 1.5rem); width: 100%; }
.phones .phone--card { width: min(13rem, 31%); }
.phones .phone--card:nth-child(2) { transform: translateY(-1.25rem); }

.case-hero { padding: 7.5rem 0 clamp(2.5rem, 5vw, 4rem); }
.case-hero__back { display: inline-block; color: var(--label); margin-bottom: 2.5rem; transition: color .2s; }
.case-hero__back:hover { color: var(--accent); }
.case-hero__cat { margin: 0; color: var(--accent); }
.case-hero__title {
  margin: 1rem 0 1.25rem;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -0.055em;
}
.case-hero__lead { max-width: 44rem; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; }
.case-hero__tags { margin: 1.5rem 0 0; color: var(--label); }
.case-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem;
  margin: clamp(2rem, 4vw, 3rem) 0; padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}
.case-meta dt { color: var(--label); margin-bottom: .35rem; }
.case-meta dd { margin: 0; }
.case-meta a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.case-meta a:hover { color: var(--accent); }
.stage--hero { min-height: 20rem; }
.stage--hero .browser { width: min(100%, 48rem); }
.stage--hero .browser__screen--auto { max-height: 28rem; }
.stage--hero .browser__screen--auto img { height: 100%; object-fit: cover; object-position: center 30%; }

.case-block { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.case-block__title { margin: 0 0 1.75rem; color: var(--accent); font-weight: 400; font-size: .75rem; }
.case-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; }
.case-split .case-block__title { margin: .35rem 0 0; }
.case-text p { margin: 0 0 1.1rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; letter-spacing: -0.01em; }
.case-text p:last-child { margin-bottom: 0; }
.case-text strong { font-weight: 500; color: var(--accent); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.feat { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--bg); }
.feat .mono { color: var(--accent); }
.feat h3 { margin: 1.5rem 0 .5rem; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.15; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips li { padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.gallery .stage { align-items: flex-end; }
.gallery .browser { width: 92%; }
.gallery > :only-child { grid-column: 1 / -1; }

.quote--case { max-width: 56rem; }

.next {
  display: grid; gap: .5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.next > .mono { color: var(--label); }
.next__name { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 500; font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -0.05em; line-height: 1; }
.next__cat { color: var(--accent); }
.next:hover { border-color: rgba(60, 240, 126, 0.5); background: var(--bg-2); }
.next:hover .work__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.next + .cta-strip { margin-top: clamp(1rem, 2vw, 1.5rem); }

@media (max-width: 860px) {
  .case-meta { grid-template-columns: 1fr; }
  .case-split { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .phones .phone--card:nth-child(2) { transform: none; }
}

/* Lien « étude de cas » sur les grandes cartes de l'accueil */
.case-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.75rem; font-weight: 500; }
.case-link .work__arrow { width: 2.5rem; height: 2.5rem; }
.case-link:hover .work__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { flex-wrap: wrap; flex-shrink: 1; justify-content: center; gap: 1.5rem 3rem; padding: 0; }
  .marquee__track[aria-hidden] { display: none; }
}
