:root {
  --midnight: #080B18;
  --deep: #263B86;
  --electric: #7656E8;
  --electric-ink: #7252E7; /* même violet, à peine plus sombre : texte sur fond clair à 4,66:1 (AA) */
  --lavender: #C5B7FF;
  --pearl: #F4F2FF;
  --coral: #FF7A59;
  --ink-soft: rgba(244, 242, 255, 0.78);
  --line: rgba(197, 183, 255, 0.22);
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);

  /* Échelle typographique (valeurs à 390 / 1024 / 1440 px de large).
     La phrase du hero reste le plus grand texte du site ; chaque palier est ~1,15 × plus petit. */
  --fs-hero: clamp(2.6rem, 6.7vw, 6.1rem);       /* 42 / 69 / 96 px  — phrase d'accueil (2 lignes à 1440) */
  --fs-display: clamp(2.5rem, 5.8vw, 5.25rem);   /* 40 / 59 / 84 px  — titre d'une page (projet, mentions) */
  --fs-section: clamp(2.25rem, 5.05vw, 4.6rem);  /* 36 / 52 / 73 px  — grands titres de section, noms des projets */
  --fs-title: clamp(1.9rem, 3.9vw, 3.5rem);      /* 30 / 40 / 56 px  — titre de la section À propos */
  --fs-h2: clamp(1.5rem, 2.6vw, 2.4rem);         /* 24 / 27 / 37 px  — titres courants */
  --fs-lead: clamp(1.35rem, 2.3vw, 2.15rem);     /* 22 / 24 / 33 px  — phrases mises en avant */
  --fs-h3: clamp(1.4rem, 2.2vw, 2.1rem);         /* 22 / 23 / 32 px */
  --fw-display: 600;
  --fw-section: 500;                             /* grands titres de section, un peu allégés */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 50; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: var(--midnight); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--pearl); color: var(--midnight); font-weight: 600;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ─── Fluide ─── */
.fluid-layer { position: fixed; inset: 0; z-index: 0; background: var(--midnight); }
.fluid-layer canvas {
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
.is-loaded .fluid-layer canvas { opacity: 1; }
.fluid-fallback { display: none; position: absolute; inset: 0; overflow: hidden; filter: blur(60px); }
.no-webgl .fluid-layer canvas { display: none; }
.no-webgl .fluid-fallback { display: block; }
.fluid-fallback span { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.fluid-fallback span:nth-child(1) { background: var(--electric); left: -10%; top: -15%; }
.fluid-fallback span:nth-child(2) { background: var(--deep); right: -15%; top: 20%; animation-duration: 22s; }
.fluid-fallback span:nth-child(3) { background: var(--coral); left: 25%; bottom: -35%; opacity: .45; animation-duration: 26s; }
@keyframes drift { to { transform: translate3d(12vw, 8vh, 0) scale(1.15); } }
.is-reduced .fluid-fallback span { animation: none; }

/* ─── Curseur ─── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--pearl);
  transition: transform .45s var(--ease-out);
}
.cursor.is-hover .cursor__dot { transform: scale(4.2); }
.cursor__label { position: absolute; transform: translate(-50%, -50%); font-size: .75rem; font-weight: 600; color: var(--midnight); white-space: nowrap; }
@media (pointer: fine) { html.js body, html.js a, html.js button { cursor: none; } }

/* ─── En-tête ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.4rem var(--pad);
  transition: background-color .45s ease, box-shadow .45s ease, padding .45s var(--ease-out), -webkit-backdrop-filter .45s, backdrop-filter .45s;
}
.site-header.is-solid {
  padding-top: .85rem; padding-bottom: .85rem;
  background: rgba(8, 11, 24, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(197, 183, 255, .14);
}
.site-header.is-solid.on-light { background: rgba(244, 242, 255, .84); box-shadow: 0 1px 0 rgba(8, 11, 24, .1); }
html.menu-open .site-header.is-solid { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; letter-spacing: -.01em; }
.brand img { transition: transform .8s var(--ease-out); }
.brand:hover img { transform: rotate(-14deg) scale(1.08); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; align-items: center; }
.nav li { display: flex; align-items: center; height: 2rem; }
.nav li + li::before { content: ''; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--lavender); opacity: .7; margin: 0 .25rem; }
.nav a { display: flex; align-items: center; height: 2rem; padding: 0 .5rem; font-size: .95rem; line-height: 2rem; font-weight: 500; overflow: hidden; }
.nav a span { display: block; position: relative; line-height: 2rem; transition: transform .55s var(--ease-out); }
.nav a span::after { content: attr(data-text); position: absolute; left: 0; top: 150%; color: var(--coral); }
.nav a:hover span, .nav a:focus-visible span { transform: translateY(-150%); }

.btn-pill {
  display: inline-flex; align-items: center;
  padding: .85rem 1.35rem; border-radius: 999px;
  background: var(--pearl); color: var(--midnight);
  font-weight: 600; font-size: .95rem;
  transition: transform .5s var(--ease-out), background-color .3s;
  will-change: transform;
}
.btn-pill .magnetic__inner { display: inline-flex; align-items: center; gap: .6rem; transition: transform .5s var(--ease-out); }
.btn-pill:hover { background: var(--lavender); }
.btn-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); transition: transform .4s var(--ease-out); }
.btn-pill:hover .btn-pill__dot { transform: scale(1.8); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: .6rem;
  background: rgba(244, 242, 255, .08); color: var(--pearl);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1rem; font: 500 .9rem var(--font-body);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.menu-toggle__bars { width: 16px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: transform .4s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: scaleY(.25); }
.site-header .brand__name, .site-header .nav a, .menu-toggle { transition: color .4s ease, background-color .4s ease, border-color .4s ease; }
.site-header.on-light .brand__name, .site-header.on-light .nav a { color: var(--midnight); }
.site-header.on-light .nav li + li::before { background: var(--electric); }
.site-header.on-light .btn-pill { background: var(--midnight); color: var(--pearl); }
.site-header.on-light .menu-toggle { color: var(--midnight); background: rgba(8, 11, 24, .06); border-color: rgba(8, 11, 24, .18); }
html.menu-open .site-header.on-light .menu-toggle, html.menu-open .site-header.on-light .brand__name { color: var(--pearl); }

.menu-mobile {
  position: fixed; inset: 0; z-index: 35;
  display: flex; align-items: flex-end;
  padding: 7rem var(--pad) 3rem;
  background: rgba(8, 11, 24, .82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  clip-path: circle(0% at calc(100% - 3rem) 2.6rem);
  transition: clip-path .8s var(--ease-out);
}
.menu-mobile.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.6rem); }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile a { font-family: var(--font-display); font-weight: var(--fw-section); font-size: var(--fs-section); line-height: 1.1; display: block; }

/* ─── Hero ─── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7.5rem var(--pad) 2rem;
  perspective: 1200px;
  overflow: hidden;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 22% 72%, rgba(8, 11, 24, .4), transparent 70%),
    radial-gradient(ellipse 38% 30% at 84% 74%, rgba(8, 11, 24, .55), transparent 75%),
    linear-gradient(to bottom, rgba(8, 11, 24, .5), transparent 22%);
}
.hero__inner { position: relative; transform-style: preserve-3d; will-change: transform, opacity; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  margin: 0 0 clamp(1.2rem, 3vh, 2.2rem);
  font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lavender);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 122, 89, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 122, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 89, 0); } }

.hero__title {
  margin: 0; width: fit-content;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-hero);
  line-height: .92;
  letter-spacing: -.035em;
  text-shadow: 0 4px 40px rgba(8, 11, 24, .6);
}
.line { display: block; }
.line--accent { color: var(--lavender); }
/* Texte en dégradé : text-shadow passerait par-dessus le dégradé, on utilise une ombre portée équivalente */
.line--accent em, .contact__title span { text-shadow: none; filter: drop-shadow(0 4px 40px rgba(8, 11, 24, .6)); }
.line--accent em { font-style: normal; background: linear-gradient(100deg, var(--lavender) 10%, var(--coral) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w { display: inline-block; vertical-align: top; padding: .02em .02em .08em; margin: -.02em -.02em -.08em; }
/* Entrée des mots : seul le bas est masqué pendant la montée, puis plus rien, pour que l'ombre douce ne soit jamais coupée net */
.js .w { clip-path: inset(-1em -1em 0 -1em); }
.js.is-loaded .w { clip-path: inset(-1em); transition: clip-path 0s linear calc(var(--i) * 85ms + 1600ms); }
.w > span { display: inline-block; }
.js .w > span { transform: translate3d(0, 112%, 0) rotate(6deg); transform-origin: left bottom; }
.js.is-loaded .w > span { transform: none; transition: transform 1.25s var(--ease-out) calc(var(--i) * 85ms + 250ms); }

.hero__sub {
  max-width: 34ch;
  margin: clamp(1.6rem, 4vh, 2.8rem) 0 0 auto;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: #E4E0F8;
  text-shadow: 0 2px 18px rgba(8, 11, 24, .9);
}
.js .hero__kicker, .js .hero__sub, .js .hero__bottom { opacity: 0; transform: translateY(14px); }
.js.is-loaded .hero__kicker, .js.is-loaded .hero__sub, .js.is-loaded .hero__bottom { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--ease-out); }
.js.is-loaded .hero__kicker { transition-delay: .1s; }
.js.is-loaded .hero__sub { transition-delay: 1s; }
.js.is-loaded .hero__bottom { transition-delay: 1.25s; }

.hero__bottom {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem;
  margin-top: clamp(2rem, 6vh, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
.hero__clock { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.hero__clock .label { color: var(--lavender); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__clock .value { font-variant-numeric: tabular-nums; font-weight: 500; }
.hero__clock .tz { color: var(--ink-soft); font-weight: 400; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.scroll-cue__line { width: 1px; height: 46px; background: rgba(244, 242, 255, .25); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--coral); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(240%); } }
.hero__hint { margin: 0; justify-self: end; display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-soft); }
.hint-orb { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--lavender), var(--electric) 60%, var(--coral)); animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: translate(5px, -3px) scale(1.2); border-radius: 45% 55% 50% 50%; } }

/* ─── Utilitaires ─── */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lavender);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--electric-ink); }
.section-title {
  margin: 1.2rem 0 0; max-width: 22ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em;
}
.js [data-reveal] { opacity: 0; transform: translate3d(0, 44px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.3s var(--ease-out); }

.reduce-toggle {
  padding: .6rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--pearl);
  font: 500 .85rem var(--font-body);
  transition: background-color .3s, color .3s;
}
.reduce-toggle[aria-pressed="true"] { background: var(--pearl); color: var(--midnight); }

/* ─── Transition vague ─── */
.wave { position: fixed; inset: 0; z-index: 95; pointer-events: none; visibility: hidden; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave.is-active, .wave-pending .wave { visibility: visible; pointer-events: auto; }

/* ─── Toast ─── */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 96; margin: 0;
  padding: .9rem 1.4rem; border-radius: 999px;
  background: var(--pearl); color: var(--midnight); font-weight: 600; font-size: .95rem;
  box-shadow: 0 20px 50px -12px rgba(8, 11, 24, .6);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ─── Réalisations ─── */
.works {
  position: relative; z-index: 1;
  padding: clamp(6rem, 14vh, 10rem) var(--pad) clamp(5rem, 12vh, 8rem);
  background: linear-gradient(to bottom, rgba(8, 11, 24, 0), rgba(8, 11, 24, .6) 14%, rgba(8, 11, 24, .6));
}
.works__list { list-style: none; margin: clamp(3rem, 8vh, 5rem) 0 0; padding: 0; position: relative; z-index: 2; border-top: 1px solid var(--line); }
.work__link {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.4rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .5s ease;
}
.work__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--electric), var(--coral));
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.work.is-active .work__link::after, .work__link:focus-visible::after { transform: scaleX(1); }
.work__name {
  font-family: var(--font-display); font-weight: var(--fw-section);
  font-size: var(--fs-section); line-height: .95; letter-spacing: -.035em;
  text-shadow: 0 6px 40px rgba(8, 11, 24, .45);
  transition: transform .8s var(--ease-out);
  justify-self: start;
}
.work.is-active .work__name { transform: translateX(clamp(.5rem, 1.6vw, 1.6rem)); }
.work__meta { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; font-size: .98rem; color: var(--pearl); text-shadow: 0 1px 14px rgba(8, 11, 24, .9); }
.work__city { color: var(--lavender); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.works__list.has-active .work:not(.is-active) .work__link { opacity: .32; }
.work__thumb { display: none; }

.works__preview {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: clamp(260px, 30vw, 500px); aspect-ratio: 16 / 10;
  pointer-events: none; will-change: transform;
}
.works__preview-mask {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px;
  -webkit-mask: url(../assets/blob.svg) center / 0% 0% no-repeat;
  mask: url(../assets/blob.svg) center / 0% 0% no-repeat;
  transition: -webkit-mask-size .45s cubic-bezier(.6, 0, .4, 1), mask-size .45s cubic-bezier(.6, 0, .4, 1);
}
.works__preview.is-open .works__preview-mask {
  -webkit-mask-size: 250% 250%; mask-size: 250% 250%;
  transition: -webkit-mask-size 1.1s var(--ease-out), mask-size 1.1s var(--ease-out);
}
.works__preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.18); transition: transform 1.2s var(--ease-out);
}
.works__preview.is-snap .works__preview-mask { transition: none; }
.works__preview img.is-current { opacity: 1; }
.works__preview.is-open img { transform: scale(1); }

/* ─── Bandeau ─── */
.marquee { position: relative; z-index: 1; overflow: hidden; background: var(--pearl); padding-top: clamp(2rem, 5vh, 3.5rem); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 70s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-weight: 600; white-space: nowrap;
  font-size: var(--fs-section); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--electric);
  padding: 0 .35em;
}
.marquee i { flex: none; width: .5em; height: .5em; font-size: var(--fs-section); border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: var(--coral); }
.marquee i:nth-of-type(2n) { background: var(--electric); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ─── À propos / Méthode ─── */
.about {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--pearl); color: var(--midnight);
  padding: clamp(5rem, 12vh, 8rem) var(--pad) clamp(6rem, 14vh, 10rem);
}
.drops { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.drop { position: absolute; top: 0; left: 0; border-radius: 50%; opacity: .55; will-change: transform; }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr .75fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: end; }
.about__title {
  margin: 1.2rem 0 2rem; max-width: 18ch;
  font-family: var(--font-display); font-weight: var(--fw-section);
  font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.03em;
}
.about__lead { margin: 0; max-width: 48ch; font-size: clamp(1rem, 1.2vw, 1.15rem); color: #2B3050; }
.about__photo { margin: 0; }
.about__portrait {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%;
  animation: morph 14s ease-in-out infinite alternate;
}
.is-reduced .about__portrait { animation: none; }

/* Lisibilité sur le fluide : voile bleu nuit très flouté derrière chaque bloc de texte.
   Nappe pleine résolution (CSS), opacité max ≈ 0,55 au cœur, bords fondus sur ~2,5 × --veil-blur :
   aucune forme visible, le fluide paraît seulement plus calme derrière le texte. */
[data-veil] { position: relative; isolation: isolate; --veil-blur: 40px; --veil-alpha: .55; }
/* Le voile déborde volontairement de son bloc : on le coupe au bord de l'écran pour éviter tout défilement horizontal */
.p-hero, .p-next, .contact { overflow-x: clip; }
[data-veil]::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(var(--veil-blur) * -.9);
  border-radius: calc(var(--veil-blur) * 2);
  background: rgba(8, 11, 24, var(--veil-alpha));
  filter: blur(var(--veil-blur));
}
.hero__title, .p-hero__title, .contact__title { --veil-blur: 64px; }
.p-next__name { --veil-blur: 56px; }
.js .hero__title::before { opacity: 0; }
.js.is-loaded .hero__title::before { opacity: 1; transition: opacity 1.6s ease .2s; }
/* Petits textes posés sur le fluide : ombre large et douce, jamais de contour */
.hero__kicker, .contact > .eyebrow, .p-hero .eyebrow, .p-next > .eyebrow { text-shadow: 0 2px 18px rgba(8, 11, 24, .9); }
.photo-ph {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%;
  background: radial-gradient(circle at 30% 25%, var(--lavender), var(--electric) 55%, var(--deep));
  color: var(--pearl); font-weight: 600;
  animation: morph 14s ease-in-out infinite alternate;
}
.photo-ph span { padding: .5rem 1rem; border-radius: 999px; background: rgba(8, 11, 24, .55); }
@keyframes morph { 50% { border-radius: 58% 42% 55% 45% / 46% 58% 42% 54%; } 100% { border-radius: 40% 60% 48% 52% / 55% 38% 62% 45%; } }
.about__photo figcaption { margin-top: 1rem; font-size: .85rem; color: #3B4060; }

.method { position: relative; z-index: 1; margin-top: clamp(5rem, 12vh, 8rem); }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(8, 11, 24, .16); }
.step { position: relative; padding: 2.2rem 2rem 0 0; }
.step + .step { padding-left: 2rem; border-left: 1px solid rgba(8, 11, 24, .12); }
.step__drop {
  display: block; width: 26px; height: 26px; margin: 0 0 1.6rem 4px;
  border-radius: 0 50% 50% 50%; background: var(--c); transform: rotate(45deg);
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.step:hover .step__drop { transform: rotate(45deg) scale(1.45) translate(-3px, -3px); }
.step h3 { margin: 0 0 .7rem; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -.02em; }
.step:not(:last-child) h3::after { content: ' →'; color: var(--coral); }
.step p { margin: 0; max-width: 30ch; color: #343A5A; font-size: .98rem; }
.js .step[data-reveal]:nth-child(2).is-in { transition-delay: .12s; }
.js .step[data-reveal]:nth-child(3).is-in { transition-delay: .24s; }
.js .step[data-reveal]:nth-child(4).is-in { transition-delay: .36s; }

/* ─── Contact ─── */
.contact {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(7rem, 16vh, 10rem) var(--pad) clamp(4rem, 10vh, 6rem);
}
.contact__title {
  margin: 1.4rem 0 clamp(2.5rem, 6vh, 4rem);
  font-family: var(--font-display); font-weight: var(--fw-section);
  font-size: var(--fs-section); line-height: .95; letter-spacing: -.035em;
  text-shadow: 0 4px 40px rgba(8, 11, 24, .6);
}
.contact__title span { display: block; background: linear-gradient(100deg, var(--lavender) 15%, var(--coral) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact__row { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(2rem, 6vw, 6rem); }
.copy-btn {
  position: relative; display: grid; place-items: center;
  width: clamp(150px, 15vw, 210px); aspect-ratio: 1; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--coral));
  color: var(--midnight);
  font: 600 1.3rem/1.05 var(--font-display); text-align: center;
  box-shadow: 0 24px 70px -14px rgba(118, 86, 232, .75);
  transition: transform .6s var(--ease-out), box-shadow .4s;
}
.copy-btn::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(197, 183, 255, .45); animation: ring 3s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.copy-btn .magnetic__inner { display: grid; transition: transform .6s var(--ease-out); }
.copy-btn__idle, .copy-btn__done { grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease-out); }
.copy-btn__done { opacity: 0; transform: translateY(12px); }
.copy-btn.is-copied .copy-btn__idle { opacity: 0; transform: translateY(-12px); }
.copy-btn.is-copied .copy-btn__done { opacity: 1; transform: none; }
.contact__details { margin: 0; display: grid; gap: 1.3rem; }
.contact__details dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.contact__details dd { margin: .2rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.contact__details a { background: linear-gradient(var(--coral), var(--coral)) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.contact__details a:hover, .contact__details a:focus-visible { background-size: 100% 1px; }
.tz { color: var(--ink-soft); font-weight: 400; }

/* ─── Footer ─── */
.site-footer {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
  padding: 2rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 24, .82);
  font-size: .85rem; color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--pearl); text-decoration: underline; text-decoration-color: rgba(197, 183, 255, .5); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: var(--coral); }
.site-footer__credit { margin-left: auto !important; }

/* ─── Pages projets ─── */
.p-hero {
  position: relative; z-index: 1; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--pad) 2.4rem;
}
.p-hero__title {
  margin: 1.2rem 0 clamp(1.5rem, 4vh, 2.5rem); width: fit-content;
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-display); line-height: .9; letter-spacing: -.04em;
  text-shadow: 0 4px 40px rgba(8, 11, 24, .6);
}
.p-hero__title .w > span { color: var(--pearl); }
.p-hero__meta { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.p-hero__meta p { margin: 0; max-width: 40ch; color: var(--pearl); }
.btn-live {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  background: var(--client, var(--coral)); color: var(--client-ink, var(--midnight));
  font-weight: 600; transition: transform .5s var(--ease-out);
}
.btn-live svg { transition: transform .5s var(--ease-out); }
.btn-live:hover svg { transform: translate(3px, -3px); }
.btn-live--soon { background: transparent; color: var(--pearl); border: 1px dashed var(--client); cursor: default; }
.btn-live--soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--client); animation: pulse 2.4s infinite; }

.sound-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--pearl);
  transition: background-color .3s, color .3s, opacity .3s;
}
.sound-toggle:hover { background: rgba(244, 242, 255, .08); }
.sound-toggle[aria-pressed="true"] { background: var(--pearl); color: var(--midnight); }
.sound-toggle:disabled { opacity: .45; }
.sound-toggle .sound-on { display: none; }
.sound-toggle[aria-pressed="true"] .sound-on { display: inline; }
.sound-toggle[aria-pressed="true"] .sound-off { display: none; }

.p-brief {
  position: relative; z-index: 1; background: var(--pearl); color: var(--midnight);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
}
.p-brief h2 { margin: 0 0 1.2rem; }
.p-brief p { margin: 0; max-width: 32ch; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lead); line-height: 1.18; letter-spacing: -.015em; }

.p-views {
  position: relative; z-index: 1;
  padding: clamp(5rem, 12vh, 8rem) var(--pad) clamp(7rem, 16vh, 11rem);
  background: radial-gradient(ellipse 60% 50% at 70% 60%, color-mix(in srgb, var(--client, var(--electric)) 22%, transparent), transparent 70%), var(--midnight);
}
.p-views__stage { position: relative; max-width: 1280px; margin: 3rem auto 0; }
.frame {
  position: relative; overflow: hidden; background: #11152A;
  border: 1px solid rgba(197, 183, 255, .18);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7);
}
.frame img { width: 100%; height: auto; transition: transform var(--dur, 9s) cubic-bezier(.45, 0, .2, 1); }
.frame:hover img, .frame:focus-visible img { transform: translateY(var(--shift, 0%)); }
.frame--desktop { width: 80%; aspect-ratio: 16 / 10; border-radius: 18px; }
.frame--mobile {
  position: absolute; right: 2%; bottom: -12%;
  width: 21%; aspect-ratio: 390 / 844; border-radius: 30px;
  border: 7px solid #1A1F38;
}
.p-views__hint { margin: 1.2rem 0 0; font-size: .85rem; color: var(--ink-soft); }

.p-ba { position: relative; z-index: 1; padding: clamp(5rem, 12vh, 8rem) var(--pad); background: var(--midnight); }
.p-ba__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2.5rem; }
.p-ba__item { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #11152A; border: 1px solid rgba(197, 183, 255, .18); }
.p-ba__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.p-ba__tag {
  position: absolute; top: 1rem; left: 1rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(8, 11, 24, .78); color: var(--pearl); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Fiche projet : bandeau sous le titre, 4 colonnes séparées par un filet */
.p-fiche { position: relative; z-index: 1; background: var(--midnight); padding: clamp(2.5rem, 6vh, 4rem) var(--pad); }
.p-fiche__grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.p-fiche__grid > div { padding: 1.5rem 1.5rem 1.6rem; }
.p-fiche__grid > div:first-child { padding-left: 0; }
.p-fiche__grid > div + div { border-left: 1px solid var(--line); }
.p-fiche dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.p-fiche dd { margin: .7rem 0 0; font-size: .98rem; line-height: 1.45; color: var(--pearl); }
.p-fiche dd span { display: block; color: var(--ink-soft); }
.p-fiche dd a { text-decoration: underline; text-decoration-color: rgba(197, 183, 255, .5); text-underline-offset: 3px; overflow-wrap: anywhere; }
.p-fiche dd a:hover { text-decoration-color: var(--client, var(--coral)); }

/* Sous le capot : rangées alternées image / texte */
.p-capot { position: relative; z-index: 1; background: var(--midnight); padding: clamp(5rem, 12vh, 8rem) var(--pad); }
.p-capot__note { margin: 1rem 0 0; max-width: 60ch; font-size: .9rem; color: var(--ink-soft); }
.p-capot__list { list-style: none; margin: clamp(3rem, 7vh, 4.5rem) 0 0; padding: 0; display: grid; gap: clamp(4rem, 10vh, 7rem); }
.p-capot__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.p-capot__row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.p-capot__row:nth-child(even) .p-capot__fig { order: 2; }
.p-capot__fig { margin: 0; }
.p-capot__fig figcaption { margin-top: .8rem; font-size: .82rem; color: var(--ink-soft); }
.p-capot__media { overflow: hidden; border-radius: 18px; background: #11152A; border: 1px solid rgba(197, 183, 255, .18); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.p-capot__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
.p-capot__num { display: block; margin-bottom: 1rem; font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em; color: var(--client, var(--coral)); }
.p-capot__text h3 { margin: 0 0 .9rem; font-family: var(--font-display); font-weight: var(--fw-section); font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.015em; }
.p-capot__text p { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }

/* Sur téléphone : écrans côte à côte (fond clair) */
.p-phone { position: relative; z-index: 1; background: var(--pearl); color: var(--midnight); padding: clamp(5rem, 12vh, 8rem) var(--pad); }
.p-phone__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.2rem 3rem; }
.p-phone__head p { margin: 0; max-width: 46ch; font-size: 1.05rem; line-height: 1.6; color: #2B3050; }
.p-phone__screens { list-style: none; padding: 0; margin: clamp(3rem, 7vh, 4.5rem) auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.p-phone__screens figure { margin: 0; }
.p-phone__frame { overflow: hidden; aspect-ratio: 390 / 844; border-radius: 30px; border: 7px solid #1A1F38; background: #11152A; box-shadow: 0 40px 80px -40px rgba(8, 11, 24, .55); }
.p-phone__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p-phone__screens figcaption { margin-top: .9rem; text-align: center; font-size: .85rem; font-weight: 500; color: #3B4060; }

/* Qualité technique : scores mesurés */
.p-quality { position: relative; z-index: 1; background: var(--midnight); padding: clamp(5rem, 12vh, 8rem) var(--pad) clamp(3rem, 7vh, 4rem); }
.p-quality__scores { list-style: none; padding: 0; margin: clamp(2.5rem, 6vh, 3.5rem) 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-block: 1px solid var(--line); }
.p-quality__scores li { padding: 1.6rem 1.5rem; }
.p-quality__scores li:first-child { padding-left: 0; }
.p-quality__scores li + li { border-left: 1px solid var(--line); }
.p-quality__scores strong { display: block; font-family: var(--font-display); font-weight: var(--fw-section); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p-quality__scores span { display: block; margin-top: .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.p-quality__meta { margin: 1.2rem 0 0; max-width: 72ch; font-size: .85rem; color: var(--ink-soft); }
.p-quality__meta + .p-quality__meta { margin-top: .4rem; }
.p-quality__benefits { list-style: none; padding: 0; margin: clamp(2.5rem, 6vh, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.p-quality__benefits li { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.55; color: var(--pearl); }

/* Page 404 */
.p-404 { min-height: 100svh; }
.p-404__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-live--ghost { background: transparent; color: var(--pearl); border: 1px solid var(--line); }
.btn-live--ghost:hover { border-color: var(--pearl); }

/* Rappel du lien avant « Projet suivant » */
.p-cta { position: relative; z-index: 1; background: var(--midnight); padding: clamp(3rem, 7vh, 4.5rem) var(--pad) clamp(4rem, 9vh, 6rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem; }
.p-cta p { margin: 0; font-family: var(--font-display); font-weight: var(--fw-section); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; }

.p-next { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; padding: clamp(6rem, 14vh, 9rem) var(--pad); }
.p-next a { display: inline-block; }
.p-next__name {
  display: flex; align-items: center; gap: .3em;
  font-family: var(--font-display); font-weight: var(--fw-section);
  font-size: var(--fs-section); line-height: .95; letter-spacing: -.035em;
  text-shadow: 0 4px 40px rgba(8, 11, 24, .6);
  transition: transform .8s var(--ease-out);
}
.p-next__name svg { width: .55em; height: .55em; flex: none; transition: transform .8s var(--ease-out); }
.p-next a:hover .p-next__name { transform: translateX(1.5vw); }
.p-next a:hover .p-next__name svg { transform: rotate(-45deg); }

/* ─── Mentions légales ─── */
.legal { position: relative; z-index: 1; background: var(--pearl); color: var(--midnight); padding: 10rem var(--pad) 6rem; }
.legal h1 { margin: 1rem 0 3rem; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-display); line-height: .95; letter-spacing: -.04em; }
.legal section { max-width: 70ch; padding: 1.8rem 0; border-top: 1px solid rgba(8, 11, 24, .14); }
.legal h2 { margin: 0 0 .8rem; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.legal p { margin: 0 0 .6rem; color: #2B3050; }
.legal a { text-decoration: underline; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .p-fiche__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-fiche__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .p-fiche__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .p-fiche__grid { grid-template-columns: 1fr; }
  .p-fiche__grid > div, .p-fiche__grid > div + div { padding: 1.2rem 0; border-left: 0; }
  .p-fiche__grid > div + div { border-top: 1px solid var(--line); }
  .p-phone__screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .p-phone__screens li { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .nav, .site-header > .btn-pill { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__sub { margin-left: 0; }
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__hint { display: none; }
  .hero__scrim { background: linear-gradient(to top, rgba(8, 11, 24, .85) 0%, rgba(8, 11, 24, .6) 55%, rgba(8, 11, 24, .15) 80%, transparent 100%); }
  .works__preview { display: none; }
  .work__link { grid-template-columns: 1fr; }
  .work__meta { justify-self: start; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: .3rem 1rem; }
  .work__thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; margin-top: .4rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: 2rem; border-top: 1px solid rgba(8, 11, 24, .12); }
  .p-brief { grid-template-columns: 1fr; }
  .frame--desktop { width: 100%; }
  .frame--mobile { width: 30%; right: -2%; bottom: -18%; border-width: 5px; border-radius: 22px; }
  .p-views__hint { margin-top: 4.5rem; }
  .p-ba__grid { grid-template-columns: 1fr; }
  .p-capot__row, .p-capot__row:nth-child(even) { grid-template-columns: 1fr; gap: 1.6rem; }
  .p-capot__row:nth-child(even) .p-capot__fig { order: 0; }
  .p-quality__scores { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-quality__scores li:nth-child(3) { padding-left: 0; border-left: 0; }
  .p-quality__scores li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .p-quality__benefits { grid-template-columns: 1fr; }
  .site-footer__credit { margin-left: 0 !important; }
}
@media (max-width: 480px) {
  .site-header { padding-top: 1.1rem; }
  .hero { padding-bottom: 1.4rem; }
  .hero__kicker { letter-spacing: .08em; font-size: .74rem; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { margin-top: 2rem; border-top: 1px solid rgba(8, 11, 24, .12); }
  .contact__row { flex-direction: column; align-items: flex-start; }
}

/* ─── Mouvement réduit ─── */
.is-reduced .w > span, .is-reduced [data-reveal],
.is-reduced .hero__kicker, .is-reduced .hero__sub, .is-reduced .hero__bottom { transform: none !important; opacity: 1 !important; transition: none !important; }
.is-reduced .w { clip-path: none !important; }
.is-reduced .hero__title::before { opacity: 1 !important; transition: none !important; }
.is-reduced .pulse, .is-reduced .scroll-cue__line::after, .is-reduced .hint-orb, .is-reduced .marquee__track, .is-reduced .photo-ph, .is-reduced .copy-btn::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
