:root {
  --bg: #090910;
  --bg-alt: #0e0e1a;
  --card: #111120;
  --text: #f0f0f8;
  --muted: #9ca3af;
  --quiet: #62697b;
  --dev-accent: #0ea5e9;
  --dev-accent-hi: #7dd3fc;
  --border: rgba(14, 165, 233, 0.2);
  --c-accent: #0ea5e9;
  --c-accent-hi: #7dd3fc;
  --c-accent-dim: rgba(14, 165, 233, 0.22);
  --c-accent-glow: rgba(14, 165, 233, 0.18);
  --c-border: rgba(14, 165, 233, 0.16);
  --c-border-hi: rgba(125, 211, 252, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; }
body.dev-page { height: auto !important; min-width: 320px; overflow: visible !important; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.dev-container { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }

.dev-nav {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 16, 0.84);
  backdrop-filter: blur(16px);
}

.dev-nav__inner { width: min(1120px, calc(100% - 56px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dev-nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.dev-nav__brand img { width: auto; height: 32px; filter: invert(1) drop-shadow(0 0 9px rgba(14,165,233,.45)); }
.dev-nav__brand span { padding-left: 12px; border-left: 1px solid rgba(125,211,252,.55); color: var(--dev-accent-hi); font-size: .75rem; font-weight: 850; letter-spacing: .22em; }
.dev-nav__links { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.dev-nav__links a { transition: color .25s ease; }
.dev-nav__links a:hover { color: var(--text); }
.dev-nav__links .dev-nav__contact { padding: 8px 14px; border: 1px solid rgba(125,211,252,.45); border-radius: 6px; color: var(--dev-accent-hi); }
.dev-nav__links .dev-nav__contact:hover { border-color: var(--dev-accent-hi); background: rgba(14,165,233,.11); }

.dev-hero { min-height: 100svh; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start; padding: clamp(104px, 12vh, 136px) 0 clamp(124px, 15vh, 168px); }
.dev-hero__grid { position: absolute; z-index: -3; inset: 0; background-image: linear-gradient(rgba(14,165,233,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14,165,233,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black, transparent); }
.dev-hero__orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.dev-hero__orb--one { width: 620px; height: 620px; left: -280px; top: 15%; background: rgba(14,165,233,.15); }
.dev-hero__orb--two { width: 460px; height: 460px; right: -230px; top: 25%; background: rgba(125,211,252,.09); }
.dev-hero__content { text-align: center; }
.dev-overview__content { display: grid; gap: clamp(28px, 4vw, 48px); }
.dev-overview__possibilities { text-align: center; }
.dev-overview__intro { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(.88rem, 1.35vw, 1rem); line-height: 1.7; }
.dev-overview__contact { margin-top: clamp(-4px, -.5vw, 0px); }
.dev-kicker { color: var(--dev-accent-hi); font-size: .68rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.dev-hero h1 { max-width: 1050px; margin: 18px auto 24px; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; }
.dev-hero h1 span, .dev-section-head h2 span, .dev-method h2 span { background: linear-gradient(125deg, var(--dev-accent-hi), #d9f4ff); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(14,165,233,.24)); }
.dev-hero__lead { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.12rem); line-height: 1.75; }
.dev-hero__alt-link { margin-top: 10px; color: var(--muted); font-size: .82rem; }
/* Jaune (couleur Play) car ce lien mène vers Magic Hat Play, pas vers Dev. */
.dev-hero__alt-link a { color: #fde047; font-weight: 700; text-decoration: none; }
.dev-hero__alt-link a:hover, .dev-hero__alt-link a:focus-visible { text-decoration: underline; }
.dev-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 7px; font-size: .84rem; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.dev-button:hover { transform: translateY(-2px); }
.dev-button--primary { background: var(--dev-accent); border-color: var(--dev-accent); box-shadow: 0 0 22px rgba(14,165,233,.28); }
.dev-button--primary:hover { background: var(--dev-accent-hi); border-color: var(--dev-accent-hi); color: #06131b; box-shadow: 0 0 34px rgba(14,165,233,.46); }
.dev-button--quiet { border-color: rgba(125,211,252,.42); color: var(--dev-accent-hi); background: rgba(14,165,233,.035); }
.dev-button--quiet:hover { border-color: var(--dev-accent-hi); background: rgba(14,165,233,.12); }
.service-scroll-cue { position: absolute; z-index: 8; bottom: clamp(14px,2.5vh,24px); left: 50%; display: flex; flex-direction: column; align-items: center; gap: 7px; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); color: var(--muted); font-size: clamp(.7rem,1.15vw,.82rem); font-weight: 750; letter-spacing: .14em; text-align: center; text-transform: uppercase; transition: color .25s ease, filter .25s ease; }
.service-scroll-cue svg { width: 34px; height: 46px; fill: none; stroke: var(--dev-accent-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 9px rgba(14,165,233,.68)); animation: service-scroll-invite 2.2s ease-in-out infinite; }
.service-scroll-cue:hover, .service-scroll-cue:focus-visible { color: var(--text); filter: brightness(1.2); }
.service-scroll-cue:focus-visible { outline: 1px solid var(--c-border-hi); outline-offset: 8px; border-radius: 4px; }
@keyframes service-scroll-invite { 0%,100% { transform: translateY(0); } 45% { transform: translateY(6px); } 62% { transform: translateY(2px); } }

.dev-section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vh, 54px); text-align: center; }
.dev-section-head h2, .dev-method h2, .dev-cta h2 { margin: 10px 0 16px; font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.12; letter-spacing: -.035em; }
.dev-section-head > p:last-child, .dev-method__intro > p:last-child, .dev-cta__card > div > p:last-child { color: var(--muted); }
.dev-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.dev-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(14,165,233,.08), transparent 35%), var(--card); cursor: default; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.dev-card::after { content: ''; position: absolute; inset: auto -90px -120px auto; width: 250px; height: 250px; border-radius: 50%; background: rgba(14,165,233,.08); filter: blur(40px); pointer-events: none; }
.dev-card:hover { transform: translateY(-4px); border-color: rgba(125,211,252,.5); box-shadow: 0 20px 50px rgba(0,0,0,.27), 0 0 30px rgba(14,165,233,.08); }
.dev-card__visual { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: clamp(96px, 13vh, 128px); min-height: clamp(96px, 13vh, 128px); margin: 0; border-bottom: 1px solid rgba(125,211,252,.18); background: #08080f; }
.dev-card__visual::after { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(to top, rgba(8,8,16,.88), transparent 58%), radial-gradient(circle at 75% 20%, rgba(125,211,252,.16), transparent 48%); pointer-events: none; }
.dev-card__visual-backdrop { position: absolute; z-index: 0; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; object-position: 50% 50%; opacity: .38; filter: blur(10px) saturate(.82) brightness(.72); transform: scale(1.08); transition: opacity .35s ease, filter .35s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.dev-card__visual-image { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; opacity: .96; filter: saturate(.94) contrast(1.03); transform: scale(.985); transition: opacity .35s ease, filter .35s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.dev-card__visual, .dev-card__visual img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.dev-card__visual img { pointer-events: none; }
.dev-card:hover .dev-card__visual-image { opacity: 1; filter: saturate(1.08) contrast(1.06); transform: scale(1); }
.dev-card:hover .dev-card__visual-backdrop { opacity: .5; filter: blur(10px) saturate(1) brightness(.76); transform: scale(1.12); }
.dev-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(15px, 2vh, 20px) clamp(16px, 1.7vw, 20px); }
.dev-card__body h3 { margin-bottom: 6px; font-size: clamp(.95rem, 1.35vw, 1.08rem); line-height: 1.25; }
.dev-card__body p { max-width: 43ch; color: var(--muted); font-size: clamp(.7rem, .8vw, .78rem); line-height: 1.42; }
.dev-card__project { display: grid; align-content: end; gap: 4px; width: 100%; min-height: 44px; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(125,211,252,.12); }
.dev-card__project-label { color: rgba(125,211,252,.72); font-size: .5rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dev-card__project-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dev-card__project-row strong { min-width: 0; overflow: hidden; color: #f0f9ff; font-size: .68rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.dev-card__project-link { flex-shrink: 0; color: var(--dev-accent-hi); font-size: .58rem; font-weight: 750; white-space: nowrap; transition: color .2s ease, transform .2s ease; }
.dev-card__project-link:hover, .dev-card__project-link:focus-visible { color: #fff; transform: translateX(2px); }
.dev-card__project-link:focus-visible { outline: 1px solid var(--dev-accent-hi); outline-offset: 3px; border-radius: 3px; }

.dev-projects {
  min-height: calc(100svh - 64px);
  scroll-margin-top: 64px;
  border-top: 1px solid rgba(14,165,233,.12);
  border-bottom: 1px solid rgba(14,165,233,.12);
  background: var(--bg);
}

.dev-projects .projects__header .eyebrow {
  color: var(--dev-accent-hi);
}

.dev-projects .dvd-grid { height: 100%; gap: var(--dev-portfolio-gap, 12px); }
.dev-projects .jacket {
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border: 1px solid rgba(125,211,252,.14);
  border-radius: 12px;
  background: linear-gradient(125deg, rgba(14,165,233,.07), #0b1119 46%);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.dev-projects .jacket:hover {
  z-index: 2;
  transform: translateY(-3px);
  border-color: rgba(125,211,252,.46);
  box-shadow: 0 16px 38px rgba(0,0,0,.42), 0 0 22px var(--jacket-glow);
}
.dev-projects .jacket__cover { width: 112px; height: 100%; min-height: 0; }
.dev-projects .jacket__cover img { object-fit: cover; }
.dev-projects .jacket__body {
  min-width: 0;
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  padding: 13px 18px;
}
.dev-projects .jacket__body h3 { margin: 0; color: #fff; font-size: .98rem; line-height: 1.2; }
.dev-projects .jacket__client { margin: 3px 0 0; color: #79879a; font-size: .63rem; font-weight: 700; }
.dev-projects .jacket__pitch { margin: 8px 0 0; color: #aeb8c6; font-size: .66rem; line-height: 1.45; }
.dev-projects .jacket__discover {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: #d4f2ff;
  font-size: .61rem;
  font-weight: 800;
}
.dev-projects .jacket__discover i { color: var(--dev-accent-hi); font-style: normal; transition: transform .2s ease; }
.dev-projects .jacket:hover .jacket__discover i { transform: translateX(4px); }
.dev-projects .jacket__shine { opacity: .55; pointer-events: none; }
.dev-projects.is-compact-layout .jacket { grid-template-columns: 92px minmax(0, 1fr); }
.dev-projects.is-compact-layout .jacket__cover { width: 92px; }
.dev-projects.is-compact-layout .jacket__body { padding-block: 9px; }
.dev-projects.is-compact-layout .jacket__pitch { display: none; }
.dev-projects.is-compact-layout .jacket__discover { margin-top: 5px; }

.dev-method__content { display: grid; gap: clamp(20px, 3vh, 34px); }
.dev-method__layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 100px; }
.dev-method__intro > p:last-child { max-width: 470px; line-height: 1.75; }
.dev-method__steps { list-style: none; display: grid; }
.dev-method__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: clamp(12px, 1.8vh, 20px) 0; border-bottom: 1px solid rgba(14,165,233,.13); }
.dev-method__steps li:first-child { border-top: 1px solid rgba(14,165,233,.13); }
.dev-method__steps li > span { padding-top: 3px; color: var(--dev-accent-hi); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.dev-method__steps strong { display: block; margin-bottom: 3px; font-size: 1rem; }
.dev-method__steps p { color: var(--muted); font-size: .84rem; }

.dev-cta { min-width: 0; }
.dev-cta__card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: clamp(82px, 9vw, 120px) 1fr auto; align-items: center; gap: clamp(20px, 2.8vw, 34px); padding: clamp(24px, 3.4vh, 36px) clamp(28px, 3.5vw, 44px); border: 1px solid rgba(125,211,252,.35); border-radius: 18px; background: radial-gradient(circle at 15% 50%, rgba(14,165,233,.16), transparent 35%), linear-gradient(135deg, #111f2b, #0a1119); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.dev-cta__card img { width: clamp(82px, 9vw, 120px); filter: drop-shadow(0 10px 22px rgba(14,165,233,.28)); }
.dev-cta h2 { margin-top: 7px; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.dev-cta__card > div > p:last-child { max-width: 580px; font-size: .88rem; }

.dev-footer { width: 100%; flex-shrink: 0; min-height: 56px; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 0 0; margin-top: 10px; border-top: 1px solid var(--border); color: var(--quiet); font-size: .72rem; }
.dev-footer .dev-nav__brand img { height: 27px; }
.dev-footer small { white-space: nowrap; }

@media (min-width: 769px) {
  html { height: 100% !important; overflow: hidden !important; }
  body.dev-page { height: 100% !important; overflow: hidden !important; }
  .service-scroll { position: fixed; inset: 64px 0 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; }
  .service-scroll main > section { width: 100%; height: calc(100svh - 64px); min-height: calc(100svh - 64px); scroll-margin-top: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .dev-overview {
    align-items: center;
    padding: clamp(22px, 3.5vh, 38px) 0 clamp(76px, 10vh, 98px);
  }
  .dev-overview__content { gap: clamp(13px, 2.2vh, 25px); }
  .dev-overview h1 { margin-block: 7px 12px; font-size: clamp(2.45rem, min(5.2vw, 8.2vh), 4.35rem); }
  .dev-overview .dev-hero__lead { font-size: clamp(.86rem, 1.45vw, 1rem); line-height: 1.55; }
  .dev-overview__intro { font-size: clamp(.78rem, 1.2vw, .92rem); line-height: 1.5; }
  .dev-overview .dev-grid { gap: clamp(8px, 1.2vw, 12px); }
  .dev-overview .dev-card__visual { height: clamp(76px, 11vh, 102px); min-height: clamp(76px, 11vh, 102px); }
  .dev-overview .dev-card__body { padding: clamp(12px, 1.8vw, 18px); }
  .dev-overview .dev-card__body h3 { margin-bottom: 4px; font-size: clamp(.88rem, 1.28vw, 1.05rem); }
  .dev-overview .dev-card__body p { font-size: clamp(.68rem, .82vw, .76rem); line-height: 1.45; }
  .dev-overview .dev-cta__card { grid-template-columns: clamp(64px, 7vh, 88px) 1fr auto; gap: clamp(16px, 2vw, 26px); padding: clamp(12px, 2vh, 22px) clamp(20px, 2.7vw, 34px); }
  .dev-overview .dev-cta__card img { width: clamp(64px, 7vh, 88px); }
  .dev-overview .dev-cta h2 { margin-block: 3px 6px; font-size: clamp(1.35rem, 2.4vw, 2rem); }
  .dev-overview .dev-cta__card > div > p:last-child { font-size: clamp(.7rem, .9vw, .82rem); line-height: 1.45; }
  .dev-overview .service-scroll-cue { bottom: clamp(8px, 1.6vh, 16px); gap: 3px; }
  .dev-overview .service-scroll-cue svg { width: 28px; height: 36px; }
  .dev-projects { height: calc(100svh - 64px); min-height: calc(100svh - 64px); overflow: hidden; }
  .dev-projects .projects__inner { width: 100%; height: 100%; min-height: 0; padding-top: clamp(12px, 2.4vh, 26px); padding-bottom: clamp(10px, 1.8vh, 20px); }
  .dev-projects .projects__header .eyebrow { margin-bottom: 3px; }
  .dev-projects .projects__header .section__title { margin-bottom: 3px; font-size: clamp(1.5rem, min(3.2vw, 4.5vh), 2.7rem); }
  .dev-projects .projects__filters-wrap { flex-shrink: 0; margin-bottom: clamp(6px, 1.4vh, 13px); }
  .dev-projects .projects__filters { margin-bottom: 0; }
  .dev-projects .dvd-wall-wrapper,
  .dev-projects .dvd-wall { min-height: 0; }
  .dev-method__layout { gap: clamp(48px, 7vw, 100px); }
}

@media (min-width: 769px) and (max-height: 850px) {
  .dev-overview { padding-top: 18px; padding-bottom: 72px; }
  .dev-overview__content { gap: 12px; }
  .dev-overview h1 { margin-block: 3px 8px; font-size: clamp(2.2rem, min(4.5vw, 7vh), 3.55rem); }
  .dev-overview .dev-card__visual { height: 72px; min-height: 72px; }
  .dev-overview .dev-card__body { padding-block: 10px; }
  .dev-overview .dev-card__body h3 { margin-bottom: 4px; font-size: .92rem; }
  .dev-overview .dev-card__body p { font-size: .67rem; line-height: 1.4; }
}

@media (min-width: 769px) and (max-height: 700px) {
  .dev-method { padding-block: 18px; }
  .dev-method__content { gap: 14px; }
  .dev-method__layout { gap: 42px; }
  .dev-method h2 { margin-block: 6px 10px; font-size: 2.15rem; }
  .dev-method__intro > p:last-child { font-size: .78rem; line-height: 1.5; }
  .dev-method__steps li { padding: 7px 0; }
  .dev-method__steps p { font-size: .73rem; }
  .dev-cta__card { grid-template-columns: 72px 1fr auto; gap: 18px; padding: 15px 22px; }
  .dev-cta__card img { width: 72px; }
  .dev-cta h2 { margin-block: 4px 6px; font-size: 1.45rem; }
  .dev-cta__card > div > p:last-child { font-size: .75rem; line-height: 1.45; }
}

@media (max-width: 820px) {
  .dev-nav__links > a:not(.dev-nav__contact) { display: none; }
  .dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-method__layout { grid-template-columns: 1fr; gap: 44px; }
  .dev-cta__card { grid-template-columns: 100px 1fr; padding: 34px; }
  .dev-cta__card img { width: 100px; }
  .dev-cta__card .dev-button { grid-column: 1 / -1; justify-self: start; }
}

@media (min-width: 769px) and (max-width: 820px) {
  .service-scroll main > .dev-overview { height: auto; min-height: calc(100svh - 64px); overflow: visible; }
  .dev-overview { padding-top: 44px; padding-bottom: 104px; }
}

@media (max-width: 640px) {
  .dev-container, .dev-nav__inner { width: min(100% - 32px, 1120px); }
  .dev-nav__inner { gap: 10px; }
  .dev-nav { height: 58px; }
  .dev-nav__brand img { height: 27px; }
  .dev-nav__brand span { font-size: .66rem; }
  .dev-nav__contact { font-size: .72rem; }
  .dev-nav__links .dev-nav__contact { padding-inline: 9px; }
  .dev-hero { padding: 92px 0 126px; }
  .dev-hero h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  .dev-overview__content { gap: 28px; }
  .dev-overview__intro { font-size: .86rem; }
  .dev-grid { grid-template-columns: 1fr; }
  .dev-card__visual { height: 130px; min-height: 130px; }
  .dev-card__body { padding: 18px 20px; }
  .dev-projects .jacket { grid-template-columns: 96px minmax(0, 1fr); }
  .dev-projects .jacket__cover { width: 96px; min-height: 132px; }
  .dev-projects .jacket__pitch { font-size: .64rem; }
  .dev-method__content { gap: 36px; }
  .dev-cta__card { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; text-align: center; }
  .dev-cta__card img { width: 112px; margin: 0 auto; }
  .dev-cta__card .dev-button { grid-column: auto; justify-self: stretch; }
  .dev-footer { grid-template-columns: 1fr; gap: 18px; padding-block: 32px; text-align: center; }
  .dev-footer .dev-nav__brand { margin-inline: auto; }
}

@media (max-width: 480px) {
  .dev-nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-scroll-cue svg { animation: none; }
  .dev-card, .dev-button { transition: none; }
}
