/* ==========================================================================
   Thomas Gline — Portfolio
   Tokens repris de DESIGN.md (palette Apple : fond clair, encre #1d1d1f,
   bleu réservé aux CTA, rayons 28px, boutons pilule).
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --mid: #707070;
  --deep: #474747;
  --hairline: #d6d6d6;
  --canvas: #f5f5f7;
  --paper: #ffffff;
  --wash: #e8e8ed;
  --faded: #fafafc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --ember: #b64400;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 28px;
  --section: clamp(96px, 12vw, 160px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* Masques SplitText : un peu d'air pour ne pas couper accents et jambages */
.line-mask, .char-mask { padding: .14em .06em .1em; margin: -.14em -.06em -.1em; }

/* Curseur natif masqué quand le curseur perso est actif */
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
}

/* --------------------------------------------------------------------------
   Typo partagée
   -------------------------------------------------------------------------- */

.label {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}
.label span { color: var(--ink); }

.section-title {
  font-size: clamp(48px, 8.4vw, 128px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.045em;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease-out), background-color .3s;
}
.btn__arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translate(2px, 2px); }
.btn[href^="http"]:hover .btn__arrow,
.btn[data-lightbox]:hover .btn__arrow { transform: translate(3px, -3px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }

.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn--ghost:hover { color: var(--paper); }
.btn--ghost:hover::before { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader { display: none; }
.js .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
}
.loader__inner {
  position: absolute;
  inset: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.loader__name { font-size: 14px; font-weight: 500; color: #a1a1a6; }
.loader__count {
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Curseur
   -------------------------------------------------------------------------- */

.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .2s;
  }
  .js .cursor--link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  /* « Voir en grand » : le point reste petit, le texte s'affiche juste à sa droite */
  .cursor__label {
    position: absolute;
    top: -2px;
    left: 20px;
    width: min-content;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .25s, transform .35s var(--ease-out);
  }
  .js .cursor--label .cursor__label { opacity: 1; transform: none; }
  .js .cursor--hidden { width: 0; height: 0; margin: 0; }
  .js .cursor--hidden .cursor__label { opacity: 0; }
}

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: transform .5s var(--ease-out), background-color .4s, backdrop-filter .4s;
}
.nav--solid {
  background: rgba(250, 250, 252, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav--hidden { transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
  padding-inline: var(--gutter);
}
.nav__logo { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.nav__logo sup { font-size: 9px; font-weight: 500; margin-left: 2px; color: var(--mid); }

.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a {
  position: relative;
  font-size: 14px;
  color: var(--deep);
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--deep); }
.nav__status i {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34c759;
}
.nav__status i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34c759;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 760px) {
  .nav__links a:not(:last-child), .nav__status { display: none; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 96px;
  overflow: hidden;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}
.hero__meta span:last-child { text-align: right; }
.hero__clock time { color: var(--ink); font-variant-numeric: tabular-nums; }

.hero__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(40px, 8vh, 96px);
}
.hero__lead {
  max-width: 21ch;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__title {
  display: flex;
  justify-content: space-between;
  gap: .22em;
  margin-top: auto;
  padding: 0 var(--gutter);
  font-size: 15vw; /* recalculé en JS pour remplir exactement la largeur */
  font-weight: 700;
  line-height: .86;
  letter-spacing: -0.055em;
  white-space: nowrap;
  align-items: flex-start;
}
.hero__word {
  display: block;
  padding: .12em 0 .06em;
  margin-top: -.12em;
  overflow-x: visible;
  overflow-y: clip;
}

@media (max-width: 760px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__intro { flex-direction: column; align-items: flex-start; }
  .hero__title { flex-direction: column; gap: 0; font-size: 30vw; }
}

/* --------------------------------------------------------------------------
   Reel (colonnes de captures en parallaxe)
   -------------------------------------------------------------------------- */

.reel { position: relative; }
.reel__frame {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--canvas);
}
.reel__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  padding-inline: clamp(10px, 1.4vw, 20px);
  margin-top: -50vh;
}
.reel__col { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 20px); }
.reel__col img {
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.6vw, 24px);
  background: var(--wash);
}
.reel__img--wide { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.reel__img--mid { object-position: 50% 45%; }

.reel__caption {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 980px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .reel__cols { grid-template-columns: repeat(2, 1fr); margin-top: -25vh; }
  .reel__col:nth-child(n + 3) { display: none; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  padding-block: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__track { display: flex; align-items: center; flex-shrink: 0; }
.marquee__track span { padding-inline: .18em; white-space: nowrap; }
.marquee__dot { font-size: .4em; color: var(--mid); }
/* Contour calculé sur la silhouette des lettres (filtre #outline dans index.html) :
   pas de traits internes, même avec les polices aux formes superposées */
.marquee__row--outline span:not(.marquee__dot) { filter: url(#outline); }

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
}
.about__text {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.about__sub {
  max-width: 34ch;
  margin-top: 40px;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.38;
  color: var(--mid);
}
.about__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.about__pills li {
  padding: 10px 20px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 15px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.about__pills li:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.about__passions { margin-top: 28px; font-size: 15px; color: var(--mid); }

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

/* --------------------------------------------------------------------------
   Projets — index
   -------------------------------------------------------------------------- */

.work { background: var(--canvas); }
.work__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }

.index { border-bottom: 1px solid var(--hairline); }
.index li { border-top: 1px solid var(--hairline); }
.index a {
  display: grid;
  grid-template-columns: 64px 1fr auto 80px;
  align-items: center;
  gap: 24px;
  padding-block: clamp(18px, 2.4vw, 32px);
  transition: opacity .4s var(--ease-out);
}
.index__num, .index__type, .index__year { font-size: 14px; color: var(--mid); }
.index__year { text-align: right; font-variant-numeric: tabular-nums; }
.index__name {
  font-size: clamp(36px, 5.6vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) {
  .index:hover a { opacity: .3; }
  .index a:hover { opacity: 1; }
  .index a:hover .index__name { transform: translateX(24px); }
}

.index__preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  background: var(--wash);
}
.index__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (max-width: 760px) {
  .index a { grid-template-columns: 36px 1fr auto; }
  .index__type { display: none; }
}

/* --------------------------------------------------------------------------
   Projets — fiche
   -------------------------------------------------------------------------- */

.project { padding-block: var(--section); background: var(--paper); }
.project--alt { background: var(--canvas); }

.project__head {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 24px;
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.project__num { padding-top: 1.2em; font-size: 14px; font-weight: 500; color: var(--mid); }
.project__title {
  font-size: clamp(64px, 12vw, 184px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.055em;
}
.project__kicker {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: clamp(19px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mid);
}
.badge { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ember); }
.badge::before { content: "● "; font-size: 9px; vertical-align: 2px; }

/* La marge latérale est sur le conteneur : la scène épinglée garde sa position exacte */
.stage-wrap { padding-inline: clamp(8px, 1.6vw, 24px); }
.project__stage {
  position: relative;
  height: clamp(480px, min(64vw, 100vh - 96px), 900px);
  container-type: size;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 105%, var(--tint-2), var(--tint) 70%);
  cursor: zoom-in;
}
.stage__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project__body {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px 64px;
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}
.project__desc { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -0.015em; }
.project__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project__meta dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}
.project__meta dd { font-size: 17px; }
.project__body .btn { justify-self: start; }

@media (max-width: 900px) {
  .project__body { grid-template-columns: 1fr; }
  .project__head { grid-template-columns: 1fr; }
  .project__num { padding-top: 0; margin-bottom: 8px; }
  .project__kicker { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   Mockups (en CSS : nets à toutes les tailles)
   -------------------------------------------------------------------------- */

/* Ordinateur portable */
.laptop { container-type: inline-size; width: 100%; }
.laptop__screen {
  padding: 1.8cqw 1.8cqw 2.4cqw;
  border-radius: 3cqw 3cqw 0 0;
  background: #0b0b0c;
  box-shadow: inset 0 0 0 .25cqw #3a3a3c;
}
.laptop__viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: .5cqw;
  background: #2b2b2b;
}
.laptop__viewport img { width: 100%; height: auto; }
.laptop__base {
  position: relative;
  width: 114%;
  height: 2.6cqw;
  margin-left: -7%;
  border-radius: 0 0 3cqw 3cqw;
  background: linear-gradient(#e6e6e9 0%, #c3c4c8 55%, #9d9ea3 100%);
  box-shadow: 0 3cqw 5cqw -2cqw rgba(0, 0, 0, .35);
}
.laptop__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 1cqw;
  transform: translateX(-50%);
  border-radius: 0 0 1.2cqw 1.2cqw;
  background: #a9aaae;
}

/* Smartphone */
.phone { container-type: inline-size; width: clamp(180px, 22vw, 320px); flex-shrink: 0; }
.phone__screen {
  position: relative;
  box-sizing: content-box;
  width: calc(100cqw - 6cqw);
  aspect-ratio: 402 / 874;
  overflow: hidden;
  border: 3cqw solid #0b0b0c;
  border-radius: 15cqw;
  background: #000;
  box-shadow: 0 0 0 .7cqw #b9babe, 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.phone__screen img, .phone__screen video { width: 100%; height: auto; }
.phone__screen video { height: 100%; object-fit: cover; }

/* Fenêtre de navigateur */
.browser {
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
  border-radius: 1.4cqw;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 90px -40px rgba(0, 0, 0, .45);
}
.browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9cqw;
  height: 4.4cqw;
  padding-inline: 1.8cqw;
  background: #ececef;
}
.browser__bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: .5cqw 4cqw;
  border-radius: .9cqw;
  background: #fff;
  font-size: 1.35cqw;
  color: var(--mid);
  letter-spacing: 0;
  white-space: nowrap;
}
.browser__viewport { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__viewport img { width: 100%; height: auto; }

/* Mises en scène par projet (cqw / cqh = % de la largeur / hauteur de la scène) */
.stage__inner--cinemon .laptop { width: min(74cqw, 120cqh, 1000px); margin-right: 10cqw; }
.phone--cinemon {
  position: absolute;
  right: 8cqw;
  bottom: 9cqh;
  width: min(16cqw, 30cqh);
}

.stage__inner--duo { gap: clamp(24px, 6vw, 96px); }
.stage__inner--duo .phone { width: min(24cqw, 38cqh, 320px); }
.phone--tilt-l { transform: rotate(-6deg); }
.phone--tilt-r { transform: rotate(6deg) translateY(6%); }
.phone--offset { transform: translateY(10%); }

.stage__word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(120px, 26vw, 400px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
  pointer-events: none;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; }
.chip--a { top: 16%; left: 14%; }
.chip--b { bottom: 16%; right: 13%; }

.project__stage--astro { background: var(--tint); }
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 85% 65%, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 10% 70%, rgba(255,255,255,.8) 0 1px, transparent 1.5px);
  background-size: 260px 260px, 340px 340px, 300px 300px, 220px 220px, 380px 380px;
  opacity: .8;
}
.planet { position: absolute; border-radius: 50%; pointer-events: none; }
.planet--a {
  top: 10%;
  left: 9%;
  width: clamp(80px, 11vw, 170px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 32% 30%, #ffd8bf 0%, #f08a52 38%, #c3501f 75%, #8a3412 100%);
}
.planet--b {
  bottom: 12%;
  right: 10%;
  width: clamp(48px, 6vw, 96px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 32% 30%, #fff3c9 0%, #f2c45a 40%, #c9902a 80%, #8f6418 100%);
}

.stage__inner--gabrielle .browser { width: min(74cqw, 126cqh); }
.shot {
  position: absolute;
  overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 18px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45);
}
.shot img { width: 100%; height: auto; }
.shot--a { left: 4%; bottom: 8%; width: 32%; }
.shot--b { right: 4%; top: 9%; width: 30%; }

@media (max-width: 760px) {
  .project__stage { height: auto; aspect-ratio: 4 / 5; }
  .stage__inner--cinemon .laptop { width: 84cqw; margin: 0 10cqw 12cqh 0; }
  .phone--cinemon { width: 28cqw; right: 6cqw; bottom: 12cqh; }
  .stage__inner--duo { gap: 16px; }
  .stage__inner--duo .phone { width: 38cqw; }
  /* Workout : le mot passe au-dessus des téléphones, les pastilles en dessous */
  .stage__word { top: 12%; font-size: 25cqw; color: rgba(255, 255, 255, .75); }
  .chip { gap: 6px; padding: 8px 12px; font-size: clamp(11px, 3.2cqw, 13px); }
  .chip::before { width: 6px; height: 6px; }
  .chip--a { top: auto; bottom: 5%; left: 4%; }
  .chip--b { bottom: 5%; right: 4%; }
  .stage__inner--gabrielle .browser { width: 88cqw; }
  .shot--a { width: 52%; bottom: 7%; }
  .shot--b { width: 48%; top: 7%; }
}

/* --------------------------------------------------------------------------
   Compétences
   -------------------------------------------------------------------------- */

.skills__list { border-bottom: 1px solid var(--hairline); }
.skills__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
  padding-block: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
}
.skills__row h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.skills__row ul { display: flex; flex-wrap: wrap; gap: 10px; }
.skills__row li {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--canvas);
  font-size: 15px;
  transition: background-color .3s, color .3s;
}
.skills__row li:hover { background: var(--ink); color: var(--paper); }

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

/* --------------------------------------------------------------------------
   Parcours (horizontal sur desktop)
   -------------------------------------------------------------------------- */

.journey { background: var(--canvas); overflow: hidden; }
.journey__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(40px, 6vh, 72px);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(72px, 11vh, 120px);
}
.journey__head { display: grid; gap: 20px; }

.journey__track {
  position: relative;
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: var(--gutter);
  padding-top: 40px;
}
.journey__line {
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 2px;
  background: var(--hairline);
}
.journey__line span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(280px, 26vw, 380px);
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
}
.step::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px var(--canvas);
}
.step__date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}
.step h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.step p { margin-top: auto; font-size: 15px; line-height: 1.45; color: var(--mid); }

.step--now { background: var(--ink); color: var(--paper); }
.step--now .step__date { color: #a1a1a6; }
.step--now p { color: #a1a1a6; }
.step--now::before { background: var(--blue); }
.step--now .step__date::after {
  content: "En cours";
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .journey__pin { min-height: 0; }
  .journey__track { flex-direction: column; width: auto; padding-top: 0; padding-left: calc(var(--gutter) + 28px); }
  .journey__line { top: 0; bottom: 0; left: calc(var(--gutter) + 5px); right: auto; width: 2px; height: auto; }
  .journey__line span { transform-origin: top; }
  .step { width: auto; min-height: 0; }
  .step::before { top: 34px; left: -29px; }
}

/* --------------------------------------------------------------------------
   Contact & footer
   -------------------------------------------------------------------------- */

.contact { padding-top: var(--section); background: var(--paper); }
.contact .label { margin-bottom: 24px; }
.contact__title {
  font-size: clamp(56px, 11vw, 176px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.055em;
}
.contact__mail {
  position: relative;
  display: inline-block;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(26px, 4.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--link);
  overflow-wrap: anywhere;
}
.contact__mail-line {
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease-out);
}
.contact__mail:hover .contact__mail-line { transform: scaleX(1); transform-origin: left; }

.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--section);
  padding-block: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--mid);
}
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Visionneuse
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(245, 245, 247, .94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding-inline: var(--gutter);
  flex-shrink: 0;
}
.lightbox__title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.lightbox__close {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
}
.lightbox__scroller { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.lightbox__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--gutter) 80px;
}
.lightbox__item { margin: 0; }
.lightbox__item--wide { width: 100%; }
.lightbox__item--phone { width: min(375px, 100%); }
.lightbox__item img, .lightbox__item video {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--wash);
}
.lightbox__item figcaption { margin-top: 10px; font-size: 14px; color: var(--mid); text-align: center; }

/* --------------------------------------------------------------------------
   Mouvement réduit : tout reste lisible, sans animation
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .loader, .js .cursor { display: none; }
  .reel__cols { margin-top: 0; }
}
