/* ==========================================================================
   Axel Dev — portfolio
   Direction : studio éditorial. Noir charbon, blanc cassé, gris chauds,
   un seul accent vermillon. Geist (texte) · Instrument Serif (accents)
   · Geist Mono (étiquettes).

   Sommaire
   01. Jetons        06. Héros          11. À propos
   02. Base          07. Scène 3D       12. Contact & formulaire
   03. Mise en page  08. Projets        13. Pied de page
   04. Composants    09. Services       14. Mouvement réduit
   05. En-tête/menu  10. Méthode        15. Responsive
   ========================================================================== */

/* 01. Jetons ------------------------------------------------------------- */
:root {
  --ink: #141413;
  --ink-2: #1C1B19;
  --ink-3: #262420;
  --paper: #F2F0EB;
  --paper-2: #E8E5DE;
  --stone: #D6D2C9;

  --text: var(--ink);
  --text-2: #55534E;
  --text-3: #6C6962;
  --line: rgba(20, 20, 19, .12);
  --line-strong: rgba(20, 20, 19, .24);

  --on-dark: #F2F0EB;
  --on-dark-2: #ABA79E;
  --on-dark-3: #8E8B83;
  --line-dark: rgba(242, 240, 235, .13);

  --accent: #E4572E;
  --accent-ink: #B9401C;
  --accent-soft: rgba(228, 87, 46, .14);
  --ok: #3EA66A;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 3.9vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: 76px;
  --section-y: clamp(104px, 13vw, 190px);
  --radius: 4px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* 02. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: normal; }
sup { font-size: .62em; line-height: 0; vertical-align: super; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
#top { scroll-margin-top: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 200; left: 16px; top: 12px; padding: 12px 18px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  font-size: 15px; transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* 03. Mise en page ------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* 04. Composants --------------------------------------------------------- */

/* Étiquette de section : « 01 —— Projets » */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.label__num { display: inline-flex; align-items: center; gap: 14px; color: var(--accent-ink); }
.label__num::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.label--light { color: var(--on-dark-2); }
.label--light .label__num { color: var(--accent); }

/* Titres de section */
.title {
  font: 500 clamp(2.5rem, 1.15rem + 4.3vw, 5.25rem)/1 var(--font-sans);
  letter-spacing: -.048em;
  text-wrap: balance;
}
.title em, .about__statement em, .contact__title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.012em;
}
.title em { color: var(--text-2); }
.title--light { color: var(--on-dark); }
.title--light em { color: var(--on-dark-2); }

.section-head { display: grid; gap: 28px; max-width: 980px; margin-bottom: clamp(64px, 8vw, 120px); }
.section-head__intro { max-width: 33em; font-size: 18px; color: var(--text-2); }
.section-head--compact { margin-bottom: 0; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; column-gap: var(--col-gap); }
.section-head--split > div { display: grid; gap: 28px; }
.section-head--split .section-head__intro { justify-self: end; }

/* Boutons */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-fill: var(--accent); --btn-fill-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 8px 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 15.5px/1 var(--font-sans); letter-spacing: -.005em; white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), transform .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill); border-radius: inherit;
  transform: translateY(102%); transition: transform .55s var(--ease-out);
}
.btn:hover { color: var(--btn-fill-fg); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: color-mix(in srgb, var(--btn-fg) 12%, transparent);
  transition: background-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn__icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon { background: color-mix(in srgb, var(--btn-fill-fg) 12%, transparent); }
.btn:hover .btn__icon svg { transform: translateX(2px); }
.btn:hover .btn__icon svg path[d^="M8 3"] { transform: none; }
.btn--sm { min-height: 44px; padding-left: 20px; padding-right: 5px; gap: 10px; font-size: 14.5px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); --btn-fill-fg: var(--paper); border-color: var(--line-strong); padding-right: 26px; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-fill: var(--paper); --btn-fill-fg: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-fill: var(--accent); --btn-fill-fg: var(--ink); }

/* Liens fléchés */
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 15.5px/1 var(--font-sans);
  padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out); }
.link-arrow__icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease-out), color .3s ease; }
.link-underline:hover { background-size: 100% 1px; }

/* Disponibilité */
.status { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1.3 var(--font-sans); }
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .status__dot::after { animation: pulse 2.6s var(--ease-out) infinite; }
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* Fenêtre de navigateur */
.browser {
  position: relative; overflow: hidden; border-radius: 9px;
  background: #FBFAF7;
  box-shadow: 0 0 0 1px rgba(20, 20, 19, .09), 0 2px 4px rgba(20, 20, 19, .04), 0 34px 70px -28px rgba(20, 20, 19, .42);
}
.browser__bar {
  position: relative; display: flex; align-items: center; height: 30px; padding: 0 12px;
  background: #F4F2EE; border-bottom: 1px solid rgba(20, 20, 19, .07);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(20, 20, 19, .16); }
.browser__url {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 14px; border-radius: 6px; background: rgba(20, 20, 19, .05);
  font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .02em; color: rgba(20, 20, 19, .5);
}
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser--dark { background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 34px 70px -28px rgba(0, 0, 0, .6); }
.browser--dark .browser__bar { background: #1B1B1C; border-bottom-color: rgba(255, 255, 255, .06); }
.browser--dark .browser__dots i { background: rgba(255, 255, 255, .18); }
.browser--dark .browser__url { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); }

/* Téléphone */
/* --pw : largeur du téléphone dans son conteneur. Le contour (padding en %)
   se calcule sur la largeur du conteneur : on le ramène à celle du téléphone. */
.phone {
  --pw: 100%;
  position: relative; padding: calc(var(--pw) * .042); border-radius: 15% / 7%;
  background: #0E0E0E;
  box-shadow: inset 0 0 0 1.5px #2C2C2C, 0 0 0 1px rgba(20, 20, 19, .2), 0 40px 70px -24px rgba(20, 20, 19, .5);
}
.phone::before { content: ""; position: absolute; z-index: 2; top: 3.2%; left: 50%; width: 30%; height: 2.6%; transform: translateX(-50%); border-radius: 999px; background: #0E0E0E; }
.phone__screen { overflow: hidden; border-radius: 11% / 5.2%; aspect-ratio: 640 / 1385; background: #222; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Pastilles */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .03em; color: var(--text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; vertical-align: middle;
  padding: 5px 10px 5px 9px; border-radius: 999px; background: var(--paper-2);
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Apparitions au défilement */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 05. En-tête & menu ----------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease-out), background-color .4s ease, border-color .4s ease, color .4s ease;
}
.header.is-scrolled { background: rgba(242, 240, 235, .82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-101%); }
.header.is-dark { color: var(--on-dark); }
.header.is-dark.is-scrolled { background: rgba(20, 20, 19, .78); border-bottom-color: var(--line-dark); }
.header.is-dark .nav__link { color: var(--on-dark-2); }
.header.is-dark .nav__link:hover, .header.is-dark .nav__link.is-active { color: var(--on-dark); }
.header.is-dark .nav__link sup { color: var(--accent); }
.header.is-dark .btn--dark { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.header.is-dark .menu-toggle { border-color: var(--line-dark); }
.header.is-dark .menu-toggle__icon { background: var(--paper); }
.header.is-dark .menu-toggle__icon i { background: var(--ink); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 11px; font: 600 17px/1 var(--font-sans); letter-spacing: -.03em; }
.logo__mark { width: 26px; height: 26px; transition: transform .6s var(--ease-out); }
.logo__mark-front { fill: var(--accent); transform-origin: 38px 24px; transition: transform .6s var(--ease-out); }
.logo:hover .logo__mark-front { transform: translate(-3px, 3px); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link { position: relative; display: block; padding: 10px 14px; font-size: 15px; color: var(--text-2); transition: color .3s ease; }
.nav__link sup { margin-left: 3px; font-family: var(--font-mono); font-size: 9px; color: var(--accent-ink); }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__cta { margin-left: 18px; }

.menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 16px; margin-left: auto; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 14px/1 var(--font-sans); }
.menu-toggle__icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); }
.menu-toggle__icon i { position: absolute; width: 12px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease-out); }
.menu-toggle__icon i:first-child { transform: translateY(-2.5px); }
.menu-toggle__icon i:last-child { transform: translateY(2.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; display: flex;
  padding-top: var(--header-h); background: var(--ink); color: var(--on-dark);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: 32px 40px; overflow-y: auto; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; font: 500 clamp(2.2rem, 10vw, 3.6rem)/1 var(--font-sans); letter-spacing: -.05em; transform: translateY(105%); transition: transform .8s var(--ease-out); transition-delay: calc(.12s + var(--i, 0) * .06s); }
.menu__list span { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.menu.is-open .menu__list a { transform: none; }
.menu__foot { display: grid; gap: 14px; color: var(--on-dark-2); opacity: 0; transition: opacity .6s ease .45s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__mail { font-size: 18px; color: var(--on-dark); }
body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--on-dark); transform: none; }
body.menu-open .menu-toggle { border-color: var(--line-dark); }
body.menu-open .menu-toggle__icon { background: var(--paper); }
body.menu-open .menu-toggle__icon i { background: var(--ink); }

/* 06. Héros -------------------------------------------------------------- */
.hero { position: relative; min-height: max(100svh, 760px); padding-top: calc(var(--header-h) + clamp(16px, 3vh, 40px)); padding-bottom: clamp(28px, 4vh, 48px); overflow: hidden; isolation: isolate; }

.hero__grid-lines { position: absolute; inset: 0; left: 50%; transform: translateX(-50%); z-index: -1; display: flex; justify-content: space-between; pointer-events: none; }
.hero__grid-lines span { position: relative; width: 1px; height: 100%; background: linear-gradient(to bottom, rgba(20, 20, 19, 0), rgba(20, 20, 19, .07) 12%, rgba(20, 20, 19, .07) 88%, rgba(20, 20, 19, 0)); transform-origin: top; }
.hero__grid-lines span::after { content: "+"; position: absolute; top: calc(var(--header-h) + 74px); left: 50%; transform: translate(-50%, -50%); font: 300 13px/1 var(--font-mono); color: rgba(20, 20, 19, .28); }

.hero__inner {
  position: relative; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  grid-template-rows: auto 1fr auto auto;
  min-height: calc(max(100svh, 760px) - var(--header-h) - clamp(16px, 3vh, 40px) - clamp(28px, 4vh, 48px));
}
.hero__meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero__role { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }

.hero__title {
  grid-column: 1 / span 7; grid-row: 2; align-self: end;
  margin-top: clamp(32px, 6vh, 72px);
  font: 500 clamp(2.85rem, 1.1rem + 5.15vw, 6.6rem)/.97 var(--font-sans);
  letter-spacing: -.055em;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em 0; margin-bottom: -.12em; }
.hero__title .w > span { display: inline-block; }
.hero__title .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--accent); padding-right: .03em; }

.hero__aside { grid-column: 1 / span 6; grid-row: 3; display: grid; gap: 32px; margin-top: clamp(28px, 4.5vh, 48px); }
.hero__lead { max-width: 31em; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll { grid-column: 1 / span 3; grid-row: 4; align-self: end; display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(32px, 5vh, 56px); width: max-content; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.hero__scroll-line { position: relative; width: 1px; height: 42px; overflow: hidden; background: var(--line-strong); }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-line::after { animation: scroll-cue 2.4s var(--ease-in-out) infinite 2.6s; }
}
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Entrée du héros (déclenchée par .is-ready sur <html>) */
.js .hero__title .w > span { transform: translateY(108%); transition: transform 1.25s var(--ease-out); transition-delay: calc(.18s + var(--i, 0) * .055s); }
.js .hero__meta, .js .hero__aside, .js .hero__scroll, .js .stage__caption { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero__meta { transition-delay: .1s; }
.js .hero__aside { transition-delay: .75s; }
.js .hero__scroll { transition-delay: 1.1s; }
.js .stage__caption { transition-delay: 1.7s; }
.js .hero__grid-lines span { transform: scaleY(0); transition: transform 1.6s var(--ease-in-out); transition-delay: calc(var(--i, 0) * .07s); }
.js .hero__meta { border-bottom-color: transparent; }
.is-ready .hero__title .w > span,
.is-ready .hero__meta, .is-ready .hero__aside, .is-ready .hero__scroll, .is-ready .stage__caption { opacity: 1; transform: none; }
.is-ready .hero__grid-lines span { transform: none; }
.is-ready .hero__meta { border-bottom-color: var(--line); transition-property: opacity, transform, border-color; }

/* 07. Scène 3D ----------------------------------------------------------- */
.hero__stage {
  position: relative; grid-column: 8 / -1; grid-row: 2 / span 3; align-self: center;
  margin-right: calc(var(--gutter) * -1.4); margin-left: calc(var(--col-gap) * -1);
  padding-top: 30px;
  perspective: 2300px; perspective-origin: 40% 30%;
}
.stage__glow { position: absolute; inset: 12% -10% 0 8%; z-index: -1; background: radial-gradient(closest-side, rgba(228, 87, 46, .2), rgba(228, 87, 46, 0) 70%), radial-gradient(closest-side at 30% 70%, rgba(140, 130, 112, .22), rgba(140, 130, 112, 0)); filter: blur(28px); opacity: 0; transition: opacity 2s ease .6s; }
.is-ready .stage__glow { opacity: 1; }
.stage__scene {
  --rx: 9deg; --ry: -21deg; --rz: 1.5deg;
  position: relative; width: 100%; aspect-ratio: 1 / .9;
  transform-style: preserve-3d;
  /* --mx / --my : position du pointeur (-1 → 1) · --sp : progression du défilement (0 → 1) */
  transform:
    translate3d(0, calc(var(--sp, 0) * -64px), 0)
    rotateX(calc(var(--rx) - var(--my, 0) * 3.5deg + var(--sp, 0) * 6deg))
    rotateY(calc(var(--ry) + var(--mx, 0) * 5deg))
    rotateZ(var(--rz));
}
.win { position: absolute; transform-style: preserve-3d; transform: translate3d(0, 0, var(--z)); }
.win--back  { left: 33%; top: 0;   width: 67%; --z: -230px; }
.win--mid   { left: 1%;  top: 19%; width: 69%; --z: -100px; }
.win--front { left: 26%; top: 44%; width: 73%; --z: 40px; }
.win--phone { left: 3%;  top: 45%; width: 20%; --z: 150px; }

.js .win { opacity: 0; transform: translate3d(0, 90px, calc(var(--z) - 160px)); transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out); }
.js .win--back { transition-delay: .35s; }
.js .win--mid { transition-delay: .5s; }
.js .win--front { transition-delay: .65s; }
.js .win--phone { transition-delay: .85s; }
.is-ready .win { opacity: 1; transform: translate3d(0, 0, var(--z)); }

/* Cotes (lignes de dimension) */
.dim { position: absolute; display: block; color: var(--accent); pointer-events: none; }
.dim i { position: absolute; display: block; }
.dim b { position: absolute; padding: 2px 6px; background: var(--paper); font: 500 10px/1.2 var(--font-mono); letter-spacing: .06em; color: var(--accent-ink); white-space: nowrap; }
.dim--x { left: 0; right: 0; top: -22px; height: 9px; }
.dim--x i { inset: 0; border-inline: 1px solid currentColor; transform-origin: center; }
.dim--x i::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.dim--x b { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dim--y { top: 0; bottom: 0; right: -22px; width: 9px; }
.dim--y i { inset: 0; border-block: 1px solid currentColor; transform-origin: center; }
.dim--y i::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: currentColor; }
.dim--y b { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
.dim--phone { top: auto; bottom: -22px; }
.js .dim i { transform: scale(0); transition: transform 1.1s var(--ease-in-out) 1.55s; }
.js .dim--x i { transform: scaleX(0); }
.js .dim--y i { transform: scaleY(0); }
.js .dim b { opacity: 0; transition: opacity .6s ease 2.2s; }
.is-ready .dim i { transform: none; }
.is-ready .dim b { opacity: 1; }

.stage__caption { position: absolute; left: calc(var(--col-gap) + 4px); bottom: -34px; display: flex; gap: 12px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--text-3); }
.stage__caption span { color: var(--ink); }

/* 07 bis. Donner envie --------------------------------------------------- */
.desire { border-top: 1px solid var(--line); }
.desire__title {
  margin: 28px 0 clamp(56px, 7vw, 104px);
  font: 500 clamp(2.9rem, .8rem + 6.6vw, 8.4rem)/.92 var(--font-sans); letter-spacing: -.058em;
  text-wrap: balance;
}
.desire__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.012em; color: var(--accent); padding-right: .04em; }
.desire__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.desire__text { grid-column: 1 / span 5; display: grid; gap: 22px; justify-items: start; color: var(--text-2); font-size: 17px; }
.desire__lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--ink); letter-spacing: -.01em; }
.desire__text .btn { margin-top: 12px; }
.levers { grid-column: 7 / -1; }
.lever { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding: clamp(24px, 2.6vw, 34px) 0; border-top: 1px solid var(--line); }
.lever:last-child { border-bottom: 1px solid var(--line); }
.lever__num { grid-row: span 2; padding-top: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent-ink); }
.lever__title { font: italic 400 clamp(2rem, 1.4rem + 1.4vw, 2.8rem)/1 var(--font-serif); letter-spacing: -.01em; }
.lever p { margin-top: 10px; max-width: 30em; color: var(--text-2); }

/* 08. Projets ------------------------------------------------------------ */
.projects { padding-top: clamp(96px, 11vw, 160px); }
.projects__list { display: grid; row-gap: clamp(112px, 13vw, 200px); }
.project { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }

.project__stage {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 11; padding: 7.5% 8.5%;
  background: var(--stage); border-radius: var(--radius); overflow: hidden;
}
.project__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%); }
.project__browser { width: 100%; transition: transform 1s var(--ease-out), box-shadow 1s var(--ease-out); }
.project:hover .project__browser, .project:focus-within .project__browser { transform: translateY(-10px) scale(1.012); }
.browser__view--scroll img { position: absolute; inset: 0 0 auto; height: auto; object-fit: initial; transform: translateY(0); transition: transform 3.2s cubic-bezier(.45, .05, .2, 1); }
.project:hover .browser__view--scroll img, .project:focus-within .browser__view--scroll img { transform: translateY(-65.38%); }

.project__info { display: grid; gap: 16px; align-content: end; padding-bottom: 6px; }
.project__index { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ink); }
.project__index span { color: var(--text-3); }
.project__name { margin-top: 10px; font: 500 clamp(2.6rem, 1.6rem + 2.4vw, 4.2rem)/.95 var(--font-sans); letter-spacing: -.055em; transition: transform .7s var(--ease-out); }
.project:hover .project__name { transform: translateX(6px); }
.project__sector { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: italic 400 23px/1.2 var(--font-serif); color: var(--text-2); }
.project__goal { max-width: 27em; margin-top: 6px; color: var(--text-2); }
.project .tags { margin-top: 4px; }
.project__cta { justify-self: start; margin-top: 14px; }
.project__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project__cta:focus-visible { outline: none; }
.project__cta:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: var(--radius); }
.project:hover .link-arrow__icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.project:hover .link-arrow__icon svg { transform: translateX(2px) rotate(-45deg); }
.project:hover .link-arrow--external .link-arrow__icon svg { transform: translate(1px, -1px); }

.project--a .project__stage { grid-column: 1 / span 8; }
.project--a .project__info { grid-column: 9 / -1; padding-left: clamp(0px, 1.5vw, 24px); }
.project--b .project__info { grid-column: 1 / span 4; grid-row: 1; align-self: start; align-content: start; padding-top: 4px; }
.project--b .project__stage { grid-column: 5 / -1; grid-row: 1; overflow: visible; }
.project--b .project__phone { --pw: 17%; position: absolute; right: 5.5%; bottom: -9%; width: var(--pw); transition: transform 1.1s var(--ease-out); }
.project--b:hover .project__phone { transform: translateY(-18px); }

.projects__pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.project--c, .project--d { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.project--c { grid-column: 1 / span 7; }
.project--d { grid-column: 9 / -1; margin-top: clamp(96px, 16vw, 240px); }
.project--c .project__stage { aspect-ratio: 16 / 12.4; }
.project--c .project__info, .project--d .project__info { padding-right: 8%; }

.project__stage--tall { aspect-ratio: 4 / 5; padding: 0; place-items: start; }
.project__phone--hero { --pw: 43%; position: absolute; z-index: 2; left: 11%; top: 11%; width: var(--pw); transition: transform 1.1s var(--ease-out); }
.project__browser--peek { position: absolute; left: 36%; top: 26%; width: 112%; transition: transform 1.1s var(--ease-out); }
.project--d:hover .project__phone--hero { transform: translateY(-14px) rotate(-1.2deg); }
.project--d:hover .project__browser--peek { transform: translateX(-12px); }

/* Badge qui suit le curseur au survol des projets */
.cursor { position: fixed; z-index: 120; left: 0; top: 0; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor span {
  display: grid; place-items: center; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%;
  background: var(--accent); color: var(--ink); text-align: center; padding: 18px;
  font: 500 11px/1.25 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--ease-out);
}
.cursor.is-visible span { transform: scale(1); }

/* 09. Services ----------------------------------------------------------- */
.services { background: var(--ink); color: var(--on-dark); }
.services .section-head__intro { color: var(--on-dark-2); }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.services__aside { grid-column: 1 / span 5; align-self: stretch; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.services__aside .screen { position: sticky; top: calc(var(--header-h) + 40px); }
.services__list { grid-column: 7 / -1; counter-reset: service; }

.service {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 36px; gap: 20px;
  padding: clamp(30px, 3.4vw, 46px) 0; border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3); transition: color .6s var(--ease-out);
}
.service:last-child { border-bottom: 1px solid var(--line-dark); }
.service::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.service__num { padding-top: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; transition: color .5s ease; }
.service__body { transition: transform .7s var(--ease-out); }
.service__title { font: 500 clamp(1.55rem, 1rem + 1.35vw, 2.35rem)/1.08 var(--font-sans); letter-spacing: -.035em; }
.service__text { margin-top: 14px; max-width: 32em; font-size: 16.5px; line-height: 1.6; transition: color .6s var(--ease-out); }
.service__icon { width: 32px; height: 32px; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease-out), color .5s ease; }
.service.is-active { color: var(--on-dark); }
.service.is-active::before { transform: scaleX(1); }
.service.is-active .service__num, .service.is-active .service__icon { color: var(--accent); }
.service.is-active .service__text { color: var(--on-dark-2); }
.service.is-active .service__body { transform: translateX(6px); }
.service.is-active .service__icon { transform: rotate(-8deg) scale(1.06); }

/* Écran de démonstration */
.screen { border-radius: 10px; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-dark), 0 40px 80px -40px rgba(0, 0, 0, .7); overflow: hidden; }
.screen__bar { position: relative; display: flex; align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line-dark); }
.screen__bar .browser__dots i { background: rgba(242, 240, 235, .16); }
.screen__label { position: absolute; left: 50%; transform: translateX(-50%); font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); white-space: nowrap; }
.screen__body { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(90% 70% at 50% 0%, rgba(242, 240, 235, .05), rgba(242, 240, 235, 0)); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 9%; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
.scene.is-active { opacity: 1; visibility: visible; }
.scene * { transition: transform .9s var(--ease-out), opacity .7s ease, width .9s var(--ease-out), stroke-dashoffset 1.4s var(--ease-out); }

/* Scène 1 : maquette qui s'assemble */
.mk { width: 100%; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 7%; padding: 6% 7%; border-radius: 6px; background: var(--paper); }
.mk i { display: block; border-radius: 3px; background: var(--stone); }
.mk__nav { display: flex; align-items: center; gap: 6%; }
.mk__nav i { width: 9%; height: 7px; }
.mk__nav .mk__logo { width: 16%; height: 10px; background: var(--ink); margin-right: auto; }
.mk__nav .mk__cta { width: 15%; height: 16px; border-radius: 999px; background: var(--accent); }
.mk__hero { display: grid; gap: 9px; }
.mk__h1 { width: 78%; height: 16px; background: var(--ink) !important; }
.mk__h1--short { width: 52%; }
.mk__p { width: 64%; height: 7px; margin-top: 4px; }
.mk__btn { width: 22%; height: 18px; margin-top: 6px; border-radius: 999px !important; background: var(--ink) !important; }
.mk__img { border-radius: 4px; background: linear-gradient(135deg, #CFC7B6, #A99F8B); }
.mk__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; }
.mk__cols i { height: 28px; }
.scene--build .mk > * { opacity: 0; transform: translateY(14px); }
.scene--build.is-active .mk > * { opacity: 1; transform: none; }
.scene--build.is-active .mk > :nth-child(2) { transition-delay: .1s; }
.scene--build.is-active .mk > :nth-child(3) { transition-delay: .2s; }
.scene--build.is-active .mk > :nth-child(4) { transition-delay: .3s; }

/* Scène 2 : typographie, couleurs, interaction */
.scene--design { grid-template-rows: auto auto auto; align-content: center; justify-items: start; gap: 26px; }
.spec { display: flex; align-items: flex-end; gap: 22px; }
.spec__aa { font: italic 400 clamp(4.5rem, 7vw, 6.5rem)/.8 var(--font-serif); color: var(--on-dark); }
.spec__meta { padding-bottom: 6px; font: 400 12px/1.7 var(--font-mono); color: var(--on-dark-2); }
.spec__meta b { display: inline-block; min-width: 54px; font-weight: 500; color: var(--on-dark); }
.swatches { display: flex; gap: 10px; }
.swatches i { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(242, 240, 235, .18); }
.ui-btn { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 500 14px/1 var(--font-sans); }
.ui-cursor { position: absolute; right: -14px; bottom: -18px; width: 24px; height: 24px; fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.scene--design .spec, .scene--design .swatches, .scene--design .ui-btn { opacity: 0; transform: translateX(-16px); }
.scene--design.is-active .spec, .scene--design.is-active .swatches, .scene--design.is-active .ui-btn { opacity: 1; transform: none; }
.scene--design.is-active .swatches { transition-delay: .1s; }
.scene--design.is-active .ui-btn { transition-delay: .2s; }
.scene--design .swatches i { transform: scale(.4); }
.scene--design.is-active .swatches i { transform: none; }
.scene--design.is-active .swatches i:nth-child(2) { transition-delay: .2s; }
.scene--design.is-active .swatches i:nth-child(3) { transition-delay: .26s; }
.scene--design.is-active .swatches i:nth-child(4) { transition-delay: .32s; }

/* Scène 3 : écrans */
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 5%; width: 100%; }
.dev { display: flex; flex-direction: column; gap: 7px; padding: 9px; border: 1.5px solid rgba(242, 240, 235, .5); border-radius: 8px; }
.dev i { display: block; height: 6px; border-radius: 2px; background: rgba(242, 240, 235, .22); }
.dev .dev__h { height: 10px; width: 70%; background: var(--paper); }
.dev .dev__l--s { width: 50%; }
.dev__row { display: grid; gap: 5px; margin-top: auto; }
.dev__row i { height: 22px; background: rgba(242, 240, 235, .1); border: 1px solid rgba(242, 240, 235, .2); }
.dev--desk { width: 48%; aspect-ratio: 16 / 10.5; }
.dev--desk .dev__row { grid-template-columns: repeat(3, 1fr); }
.dev--tab { width: 25%; aspect-ratio: 3 / 4; }
.dev--tab .dev__row { grid-template-columns: repeat(2, 1fr); }
.dev--phone { width: 13%; aspect-ratio: 9 / 18; border-radius: 10px; }
.dev--phone .dev__row i { height: 26px; }
.dev--desk .dev__row i:first-child, .dev--tab .dev__row i:first-child, .dev--phone .dev__row i { border-color: var(--accent); background: var(--accent-soft); }
.scene--devices .dev { opacity: 0; transform: translateY(24px); }
.scene--devices.is-active .dev { opacity: 1; transform: none; }
.scene--devices.is-active .dev--tab { transition-delay: .12s; }
.scene--devices.is-active .dev--phone { transition-delay: .24s; }

/* Scène 4 : performance & recherche */
.scene--perf { grid-template-columns: auto 1fr; align-items: center; gap: 8%; }
.gauge { position: relative; width: clamp(110px, 11vw, 150px); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; }
.gauge__track { stroke: rgba(242, 240, 235, .1); }
.gauge__value { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
.scene--perf.is-active .gauge__value { stroke-dashoffset: 28; transition-delay: .15s; }
.gauge__label { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 26px/1 var(--font-serif); color: var(--on-dark); }
.serp { padding: 18px 20px; border-radius: 8px; background: var(--paper); color: var(--ink); }
.serp__url { font: 400 11.5px/1.3 var(--font-mono); color: #3E7D4E; }
.serp__title { margin: 6px 0 6px; font: 500 17px/1.25 var(--font-sans); color: #2A43B8; }
.serp__desc { font-size: 12.5px; line-height: 1.45; color: #55534E; }
.scene--perf .serp { opacity: 0; transform: translateY(16px); }
.scene--perf.is-active .serp { opacity: 1; transform: none; transition-delay: .25s; }

/* Scène 5 : prise de rendez-vous */
.scene--booking { align-content: center; gap: 18px; }
.cal { width: min(100%, 320px); padding: 18px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.cal__head { font: 500 14px/1 var(--font-sans); letter-spacing: -.01em; }
.cal__days, .cal__slots { display: grid; gap: 6px; margin-top: 14px; }
.cal__days { grid-template-columns: repeat(5, 1fr); }
.cal__slots { grid-template-columns: repeat(4, 1fr); }
.cal i { display: grid; place-items: center; height: 34px; border-radius: 6px; border: 1px solid var(--line); font: 500 11.5px/1 var(--font-mono); font-style: normal; color: var(--text-2); }
.cal i.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.toast { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line-dark); font: 500 13px/1 var(--font-sans); }
.toast__check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); }
.toast__check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene--booking .toast { opacity: 0; transform: translateY(14px) scale(.96); }
.scene--booking.is-active .toast { opacity: 1; transform: none; transition-delay: .5s; }
.scene--booking .cal { opacity: 0; transform: translateY(14px); }
.scene--booking.is-active .cal { opacity: 1; transform: none; }

/* 10. Méthode ------------------------------------------------------------ */
.method { border-bottom: 1px solid var(--line); }
.timeline { --progress: 0; position: relative; }
.timeline__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
.timeline__track { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.timeline__fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--progress)); transform-origin: left; }
.step { position: relative; display: flex; flex-direction: column; padding-top: 52px; padding-right: clamp(0px, 1.6vw, 24px); }
.step__node { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); transition: background-color .5s ease, box-shadow .5s ease, transform .6s var(--ease-out); }
.step.is-reached .step__node { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 7px var(--accent-soft); transform: scale(1.08); }
.step__num { font: italic 400 clamp(3.4rem, 5vw, 4.8rem)/.8 var(--font-serif); letter-spacing: -.02em; color: var(--stone); transition: color .7s ease; }
.step.is-reached .step__num { color: var(--ink); }
.step__title { margin: 26px 0 14px; font: 500 clamp(1.25rem, 1rem + .6vw, 1.55rem)/1.2 var(--font-sans); letter-spacing: -.025em; }
.step__text { color: var(--text-2); font-size: 16px; }
.step__out { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 15px; line-height: 1.45; }
.step__out span { display: block; margin-bottom: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
/* Sur grand écran, les étapes partagent les mêmes lignes : titres, textes
   et livrables restent alignés quelle que soit la longueur des textes. */
@media (min-width: 1025px) {
  .timeline__steps { grid-template-rows: repeat(4, auto); }
  .step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}

/* 11. À propos ----------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.portrait { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.portrait img, .portrait__placeholder { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; }
.portrait__placeholder {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(20, 20, 19, 0) 0 15px, rgba(20, 20, 19, .035) 15px 16px), var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.portrait__mono { font: 400 clamp(7rem, 14vw, 12rem)/1 var(--font-serif); letter-spacing: -.04em; color: #D2CDC3; }
.portrait__mono em { font-style: italic; }
.portrait__note { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.portrait__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.portrait__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--text-2); }
.portrait__caption span:first-child { color: var(--ink); }

.about__content { grid-column: 7 / -1; display: grid; gap: 32px; padding-top: 4px; }
.about__statement { font: 400 clamp(2rem, 1.2rem + 2.3vw, 3.45rem)/1.06 var(--font-sans); letter-spacing: -.04em; text-wrap: balance; }
.about__statement em { color: var(--text-2); }
.about__text { display: grid; gap: 18px; max-width: 34em; font-size: 18px; color: var(--text-2); }
.about__text p:first-child { color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.principles li { display: grid; gap: 8px; align-content: start; }
.principles__num { font: italic 400 22px/1 var(--font-serif); color: var(--accent-ink); }
.principles strong { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.principles span:last-child { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* 12. Contact & formulaire ----------------------------------------------- */
.contact { background: var(--ink); color: var(--on-dark); padding-bottom: clamp(88px, 10vw, 150px); }
.contact__title {
  margin: 32px 0 clamp(64px, 8vw, 120px);
  font: 500 clamp(3.1rem, .8rem + 7.6vw, 9.8rem)/.9 var(--font-sans); letter-spacing: -.06em;
  text-wrap: balance;
}
.contact__title em { color: var(--accent); padding-right: .04em; }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.contact__aside { grid-column: 1 / span 4; display: grid; gap: 32px; justify-items: start; }
.contact__lead { font-size: 19px; line-height: 1.55; color: var(--on-dark-2); }
.contact__details { width: 100%; margin-top: 24px; }
.contact__details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact__details dt { padding-top: 3px; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.contact__details dd { font-size: 16px; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.status--inline { font-size: 15px; font-weight: 400; }

.form { grid-column: 6 / -1; position: relative; display: grid; gap: 30px; padding: clamp(28px, 3.4vw, 48px); border-radius: 10px; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-dark); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 8px; }
.field__label { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.field__input {
  width: 100%; min-height: 52px; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(242, 240, 235, .24); border-radius: 0;
  color: var(--on-dark); font: 400 18px/1.4 var(--font-sans);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.field__input::placeholder { color: var(--on-dark-3); opacity: 1; }
.field__input:hover { border-bottom-color: rgba(242, 240, 235, .45); }
.field__input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field__input--area { resize: vertical; min-height: 140px; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--on-dark-2); border-bottom: 1.5px solid var(--on-dark-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__select select { appearance: none; padding-right: 32px; cursor: pointer; }
.field__select select:invalid { color: var(--on-dark-3); }
.field__select option { color: var(--ink); background: var(--paper); }
.field__error { min-height: 0; font-size: 13.5px; line-height: 1.4; color: #FF9B78; }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-bottom-color: #FF9B78; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 4px; }
.form__legal { max-width: 25em; font-size: 13.5px; line-height: 1.5; color: var(--on-dark-3); }
.form__legal a { color: var(--on-dark-2); background-size: 100% 1px; }
.form__status { display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.form__status.is-success, .form__status.is-error { display: flex; }
.form__status.is-success { background: rgba(62, 166, 106, .14); color: #A6E3BC; }
.form__status.is-error { background: rgba(228, 87, 46, .14); color: #FFB59C; }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.form.is-sending .form__submit { pointer-events: none; opacity: .75; }
.form.is-sending .form__submit .btn__icon svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 13. Pied de page ------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding-top: clamp(64px, 7vw, 96px); border-top: 1px solid var(--line-dark); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: start; }
.footer__col { grid-column: span 3; display: grid; gap: 18px; }
.footer__head { font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: var(--on-dark); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease-out); }
.footer__col a:hover { background-size: 100% 1px; }
.footer__top-link { grid-column: 10 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark); font-size: 14.5px; transition: background-color .4s ease, color .4s ease; }
.footer__top-link:hover { background: var(--on-dark); color: var(--ink); }
.footer__wordmark {
  margin: clamp(56px, 8vw, 120px) 0 0;
  font: 500 calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 3.6)/.78 var(--font-sans);
  letter-spacing: -.07em; white-space: nowrap; color: var(--on-dark);
  transform: translateX(-.04em);
}
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 28px 0 36px; margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--on-dark-3); }

/* 14. Mouvement réduit --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__meta, .js .hero__aside, .js .hero__scroll, .js .stage__caption, .js .win, .js .dim b { opacity: 1; }
  .js [data-reveal], .js .hero__title .w > span, .js .hero__meta, .js .hero__aside, .js .hero__scroll, .js .stage__caption, .js .hero__grid-lines span, .js .dim i { transform: none; }
  .js .win { transform: translate3d(0, 0, var(--z)); }
  .stage__glow { opacity: 1; }
  .browser__view--scroll img { transition: none; }
  .project:hover .browser__view--scroll img, .project:focus-within .browser__view--scroll img { transform: none; }
}

/* 15. Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero__inner { grid-template-rows: auto auto auto auto auto; min-height: 0; }
  .hero__title { grid-column: 1 / span 11; margin-top: clamp(36px, 7vh, 64px); }
  .hero__aside { grid-column: 1 / span 9; }
  .hero__stage { grid-column: 2 / -1; grid-row: 4; margin: clamp(48px, 7vw, 80px) calc(var(--gutter) * -1) 0 0; padding-top: 0; }
  .stage__scene { aspect-ratio: 1 / .66; --rx: 8deg; --ry: -16deg; }
  .win--back  { left: 38%; width: 52%; }
  .win--mid   { left: 10%; top: 16%; width: 54%; }
  .win--front { left: 33%; top: 38%; width: 58%; }
  .win--phone { left: 13%; top: 36%; width: 15%; }
  .stage__caption { left: 0; bottom: -8px; }
  .hero__scroll { grid-row: 5; margin-top: 56px; }
  .services__aside { grid-column: 1 / span 6; }
  .services__list { grid-column: 7 / -1; }
}

@media (max-width: 1024px) {
  .desire__text, .levers { grid-column: 1 / -1; }
  .levers { margin-top: 56px; }
  .nav, .header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-head--split { grid-template-columns: 1fr; row-gap: 28px; }
  .section-head--split .section-head__intro { justify-self: start; }
  .project--a .project__stage, .project--b .project__stage { grid-column: 1 / -1; }
  .project--a .project__info, .project--b .project__info { grid-column: 1 / span 9; padding: 32px 0 0; }
  .project--b .project__info { grid-row: 2; }
  .project--b .project__stage { margin-bottom: 4%; }
  .projects__pair { row-gap: clamp(96px, 12vw, 140px); }
  .project--c { grid-column: 1 / -1; }
  .project--d { grid-column: 1 / -1; margin-top: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .project--d .project__stage { grid-column: 1 / span 7; }
  .project--d .project__info { grid-column: 8 / -1; padding-right: 0; }
  .services__grid { row-gap: 56px; }
  .services__aside { grid-column: 1 / -1; }
  .services__aside .screen { display: none; }
  .services__list { grid-column: 1 / -1; }
  .timeline__steps { grid-template-columns: 1fr 1fr; row-gap: 64px; }
  .timeline__track { display: none; }
  .about__grid { row-gap: 56px; }
  .portrait { grid-column: 1 / span 6; position: relative; top: auto; }
  .about__content { grid-column: 1 / -1; }
  .contact__aside { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); align-items: start; }
  .contact__aside .contact__lead { grid-column: 1 / -1; max-width: 32em; }
  .contact__details { grid-column: 2; grid-row: 2 / span 2; margin-top: -18px; }
  .form { grid-column: 1 / -1; margin-top: 56px; }
  .footer__col { grid-column: span 4; }
  .footer__top-link { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .logo__text { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__role { display: none; }
  .hero__title { grid-column: 1 / -1; font-size: clamp(2.6rem, 11.4vw, 4rem); line-height: .98; }
  .hero__aside { grid-column: 1 / -1; gap: 26px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__actions .btn--line { justify-content: center; }
  .hero__stage { grid-column: 1 / -1; margin-right: calc(var(--gutter) * -1); margin-left: 0; margin-top: 52px; perspective: 1400px; }
  .stage__scene { aspect-ratio: 1 / .78; --rx: 7deg; --ry: -14deg; }
  .win--back  { left: 34%; top: 0; width: 64%; }
  .win--mid   { left: 4%; top: 17%; width: 66%; }
  .win--front { left: 27%; top: 41%; width: 70%; }
  .win--phone { left: 9%; top: 40%; width: 21%; }
  .dim--y, .stage__caption { display: none; }
  .hero__grid-lines span:nth-child(even) { display: none; }
  .hero__scroll { display: none; }
  .browser__bar { height: 22px; padding: 0 8px; }
  .browser__dots { gap: 4px; }
  .browser__dots i { width: 6px; height: 6px; }
  .browser__url { font-size: 9px; padding: 2px 8px; }

  .section-head__intro { font-size: 17px; }
  .project__stage { padding: 6%; }
  .project--a .project__info, .project--b .project__info { grid-column: 1 / -1; }
  .project--b .project__phone { --pw: 22%; right: 4%; }
  .project--d { display: grid; grid-template-columns: minmax(0, 1fr); }
  .project--d .project__stage, .project--d .project__info { grid-column: 1 / -1; }
  .project--c .project__info, .project--d .project__info { padding-right: 0; }
  .project__sector { font-size: 21px; }

  .service { grid-template-columns: 40px minmax(0, 1fr); }
  .service__icon { display: none; }
  .screen__body { aspect-ratio: 16 / 11; }
  .scene { padding: 7%; }
  .scene--perf { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .scene--perf .serp { display: none; }
  .scene--design { gap: 16px; }

  .timeline { padding-left: 34px; }
  .timeline__steps { grid-template-columns: 1fr; row-gap: 48px; }
  .timeline__track { display: block; left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline__fill { transform: scaleY(var(--progress)); transform-origin: top; }
  .step { padding-top: 0; padding-right: 0; }
  .step__node { left: -34px; top: 6px; }
  .step__title { margin-top: 18px; }

  .portrait { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .about__text { font-size: 17px; }

  .contact__aside { grid-template-columns: 1fr; }
  .contact__details { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .contact__details > div { grid-template-columns: 1fr; gap: 6px; }
  .form { padding: 24px 20px; margin-top: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; justify-content: space-between; }

  .footer__col { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(2.4rem, 11.6vw, 3rem); }
  .stage__scene { aspect-ratio: 1 / .84; }
  .tags li { font-size: 11px; }
}

/* 16. Pages annexes (mentions légales, 404) ------------------------------- */
.page-legal .header { position: sticky; }
.legal { padding-block: clamp(64px, 9vw, 128px) clamp(96px, 11vw, 160px); }
.legal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px; align-items: start; }
.legal__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 24px; }
.legal__head .title { font-size: clamp(2.4rem, 1.2rem + 3vw, 4.2rem); }
.legal__note { font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--text-2); }
.legal__body { grid-column: 7 / -1; display: grid; gap: 48px; }
.legal__body section { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal__body h2 { font: 500 22px/1.2 var(--font-sans); letter-spacing: -.025em; }
.legal__body p, .legal__body li { color: var(--text-2); }
.legal__body strong { color: var(--ink); font-weight: 500; }
.legal__body ul { display: grid; gap: 6px; }
.legal__body li { position: relative; padding-left: 18px; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink); }
.legal__back { margin-left: auto; }
.footer--slim { padding-top: 0; }
.footer--slim .footer__bottom { margin-top: 0; }

.page-404 { background: var(--ink); color: var(--on-dark); }
.notfound { min-height: 100svh; display: grid; align-items: center; padding-block: 64px; }
.notfound__inner { display: grid; gap: 28px; justify-items: start; }
.notfound__title { max-width: 12em; font: 500 clamp(2.8rem, 1rem + 6vw, 7rem)/.95 var(--font-sans); letter-spacing: -.055em; text-wrap: balance; }
.notfound__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.012em; color: var(--accent); }
.notfound__text { font-size: 19px; color: var(--on-dark-2); }

@media (max-width: 1024px) {
  .legal__head { grid-column: 1 / -1; position: static; }
  .legal__body { grid-column: 1 / -1; }
}
