/* =========================================================
   SOFIANE BABOUR — Portfolio
   Identité : violet électrique · noir · blanc
   Étoile-éclair, tags découpés, gros numéros coupés
   ========================================================= */

:root {
  --violet: #8604ef;
  --violet-2: #9000ff;
  --blue-violet: #620efb;
  --grad: linear-gradient(110deg, #8f02ec 0%, #7908f2 45%, #620efb 100%);
  --black: #000;
  --ink: #0b0b0b;
  --white: #fff;
  --font: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", sans-serif;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; } /* rien ne dépasse sur les côtés (bandeaux penchés) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font);
  font-weight: 600;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; -webkit-user-drag: none; }
/* pas de surlignage bleu au toucher sur mobile */
a, button, .gal { -webkit-tap-highlight-color: transparent; }
/* focus clavier visible et propre (accessibilité), invisible à la souris */
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--violet); color: var(--white); }

/* ---------- TAGS (formes découpées du portfolio) ---------- */
.tag {
  --tag-bg: var(--violet);
  --tag-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1;
  color: var(--tag-fg);
  padding: .55em 1em .65em;
  isolation: isolate;
  white-space: nowrap;
}
.tag::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--tag-bg);
  z-index: -1;
  clip-path: polygon(3% 8%, 96% 0, 100% 62%, 88% 76%, 64% 70%, 0 100%);
  transition: transform .5s var(--ease-out);
}
.tag--white { --tag-bg: var(--white); --tag-fg: var(--violet); }
.tag--violet { --tag-bg: var(--violet); --tag-fg: var(--white); }
.tag--big { font-size: clamp(30px, 4.4vw, 72px); font-weight: 800; text-transform: none; padding: .35em .6em .5em; }
.tag--upper { text-transform: uppercase; }
.tag--shape1::before { clip-path: polygon(4% 10%, 92% 0, 100% 66%, 86% 82%, 66% 72%, 0 100%); }
.tag--shape2::before { clip-path: polygon(6% 8%, 94% 0, 100% 92%, 37% 86%, 16% 100%, 0 90%); }
.tag--shape3::before { clip-path: polygon(0 18%, 82% 0, 100% 10%, 94% 72%, 56% 78%, 50% 92%, 30% 78%, 4% 100%); }
.tag--shape4::before { clip-path: polygon(2% 12%, 30% 4%, 34% 0, 98% 10%, 100% 30%, 92% 90%, 20% 84%, 18% 100%, 6% 88%); }
.tag--shape5::before { clip-path: polygon(4% 14%, 24% 4%, 92% 6%, 100% 18%, 96% 98%, 40% 92%, 0 100%); }
a.tag:hover::before, .tag[data-magnetic]:hover::before { transform: scale(1.06) rotate(-1.5deg); }

/* ---------- BIG NUMBERS coupés en bas à droite ---------- */
.bignum {
  position: absolute;
  right: clamp(8px, 2vw, 32px);
  bottom: 0;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(120px, 20vw, 340px);
  line-height: .72;
  letter-spacing: -.02em;
  color: var(--black);
  transform: translateY(18%);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.bignum--white { color: var(--white); }

/* ---------- reveal helpers ---------- */
/* marge basse pour ne jamais couper les jambages (j, g, p, q…) */
.reveal-line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; }
.reveal-line > span { display: inline-block; will-change: transform; }

/* ---------- INTRO (1re arrivée sur le site seulement, voir main.js) ---------- */
.intro { display: none; }
html.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  /* filet de sécurité : si le JS ne tourne pas, l'intro disparaît d'elle-même */
  animation: introFailsafe 0s 6s forwards;
}
@keyframes introFailsafe { to { visibility: hidden; } }
html.intro-on body { overflow: hidden; }
.intro__bg { position: absolute; inset: 0; background: var(--black); }
.intro__stage {
  position: absolute; left: 50%; top: 50%; width: min(34vw, 230px); aspect-ratio: 2200 / 2018;
  transform: translate(-50%, -50%);
}
.intro__star { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.intro__glow {
  position: absolute; left: 50%; top: 50%; width: 260%; max-width: none; opacity: 0;
  transform: translate(-50%, -50%); filter: blur(60px);
}
.intro__ring {
  position: absolute; left: 50%; top: 50%; width: 180%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); transform: translate(-50%, -50%) scale(0); opacity: 0;
}
.intro__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) * .7);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.intro__name, .intro__count { display: block; overflow: hidden; }
.intro__name > span, .intro__count > span { display: block; transform: translateY(110%); }
.intro__name { font-weight: 700; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .08em; text-transform: uppercase; }
.intro__count { font-family: var(--font-cond); font-weight: 900; font-size: clamp(44px, 6vw, 96px); line-height: .85; }
.intro__count b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.intro__bar i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- CURSOR ---------- */
/* Curseur natif = l'étoile du logo : aucun décalage, clic précis, lisible sur tous les fonds
   (violet + contour blanc ; au survol d'un élément cliquable : blanc + contour violet) */
html, body {
  cursor: url("assets/img/cursor-star.png") 9 9, auto;
  cursor: -webkit-image-set(url("assets/img/cursor-star.png") 1x, url("assets/img/cursor-star@2x.png") 2x) 9 9, auto;
  cursor: image-set(url("assets/img/cursor-star.png") 1x, url("assets/img/cursor-star@2x.png") 2x) 9 9, auto;
}
a, button, .gal, .card, .code, .work__row, .links__row, .lightbox__close, .lightbox__nav {
  cursor: url("assets/img/cursor-star-hover.png") 9 9, pointer;
  cursor: -webkit-image-set(url("assets/img/cursor-star-hover.png") 1x, url("assets/img/cursor-star-hover@2x.png") 2x) 9 9, pointer;
  cursor: image-set(url("assets/img/cursor-star-hover.png") 1x, url("assets/img/cursor-star-hover@2x.png") 2x) 9 9, pointer;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: transform .6s var(--ease), color .4s;
}
/* Nav sur fond clair : passe en noir (au lieu du mode "difference" qui virait au vert) */
.nav.is-light { color: var(--black); }
.nav.is-light .nav__logo img { filter: invert(1); }
.nav.is-light .nav__links a::before, .nav.is-light .nav__burger span { background: var(--black); }
.nav__logo img { transition: filter .4s; }
.menu-open .nav.is-light { color: var(--white); }
.menu-open .nav.is-light .nav__logo img { filter: none; }
.menu-open .nav.is-light .nav__burger span { background: var(--white); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 44px); }
.nav__links a {
  position: relative; display: inline-block;
  padding: 12px 4px;   /* zone de clic plus généreuse */
  font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .02em;
}
.nav__links a span { display: inline-block; }
.nav__links a::before {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 2px;
  background: var(--white); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 3px; background: var(--white); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .8s var(--ease);
  display: flex; align-items: flex-end;
  padding: var(--pad); padding-bottom: 12vh;
  overflow: hidden;
}
.menu-open .menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.menu__star { position: absolute; width: 120vw; right: -50vw; top: -10vh; opacity: .35; filter: brightness(0); }
.menu__links { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-weight: 800; font-size: clamp(44px, 12vw, 90px); line-height: 1; text-transform: uppercase; }
.menu__links i { font-style: normal; font-size: .3em; vertical-align: top; margin-right: .4em; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  background: var(--black);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
}
/* grain animé façon print */
.hero::after {
  content: ""; position: absolute; inset: -50%; z-index: 8; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .08;
  animation: grain .6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -3%); } 100% { transform: translate(0, 0); }
}
.hero__stage { position: absolute; inset: 0; }

/* Étoile-éclair 3D : calques extrudés */
.hero__star {
  --s: min(60vw, 92vh);
  position: absolute; z-index: 1;
  left: 50%; top: 50%;
  width: var(--s); aspect-ratio: 1 / 1.018;
  margin-left: calc(var(--s) * -.5);
  margin-top: calc(var(--s) * -.509);
  pointer-events: none;
}
.hero__star-inner { position: absolute; inset: 0; will-change: transform; }
.star-layer {
  position: absolute; inset: 0; display: block;
  -webkit-mask: url("assets/img/star-bolt-white.webp") center / contain no-repeat;
          mask: url("assets/img/star-bolt-white.webp") center / contain no-repeat;
  /* plus on s'enfonce, plus le violet s'assombrit */
  background: color-mix(in srgb, #5a00c8 calc(100% - var(--k) * 7.5%), #0a0014);
  will-change: transform;
}
.star-layer--top {
  background: linear-gradient(115deg, #9a10ff 0%, #8604ef 25%, #620efb 50%, #a63dff 70%, #8f02ec 100%);
  background-size: 260% 260%;
  animation: starFlow 7s ease-in-out infinite alternate;
  overflow: hidden;
}
.star-layer--top::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.1) 54%, transparent 62%);
  background-size: 300% 100%;
  animation: starShine 4.2s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes starFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes starShine { 0%, 35% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

/* Nom géant : contour, les lettres se remplissent au survol */
.hero__type {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(96px, min(23vw, 40vh), 440px);
  line-height: .8; letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
  pointer-events: none; user-select: none;
}
.hero__l { display: block; white-space: nowrap; will-change: transform; }
.hero__l1 { align-self: flex-start; }
.hero__l2 { align-self: flex-end; }
.hero__type .char { display: inline-block; pointer-events: auto; will-change: transform; }
.hero__flash { position: absolute; inset: 0; z-index: 9; background: var(--violet); opacity: 0; pointer-events: none; }

/* Bas du hero */
.hero__bottom {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(18px, 3.5vh, 40px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  z-index: 7;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
}
.hero__clock b { font-family: var(--font-cond); font-weight: 800; font-size: 22px; letter-spacing: .02em; margin-left: 6px; font-variant-numeric: tabular-nums; }
.hero__scroll, .phead__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.hero__scroll i, .phead__scroll i { width: 2px; height: 44px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero__scroll i::after, .phead__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative; z-index: 5;
  background: var(--violet);
  padding: clamp(14px, 1.6vw, 24px) 0;
  overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
  margin: -2.2vw 0;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: flex; align-items: center; gap: .6em;
  padding-right: .6em;
  font-weight: 800; font-size: clamp(28px, 4.4vw, 70px); line-height: 1;
  text-transform: uppercase; white-space: nowrap;
}
.marquee__item img { height: .9em; width: auto; }

/* ---------- ABOUT ---------- */
.about {
  position: relative;
  background: var(--white); color: var(--black);
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(120px, 14vw, 200px) var(--pad) clamp(140px, 16vw, 240px);
  overflow: hidden;
}
.about__name { font-weight: 800; font-size: clamp(44px, 6.4vw, 108px); line-height: .9; }
.about__role { font-weight: 700; font-size: clamp(24px, 3vw, 50px); line-height: 1.05; margin-top: .15em; }
.about__block { margin-top: clamp(36px, 4.5vw, 70px); }
.about__block .tag { font-size: clamp(26px, 2.8vw, 46px); }
.about__block p { margin: .5em 0 0 clamp(20px, 3vw, 56px); font-weight: 700; font-size: clamp(20px, 2.1vw, 34px); line-height: 1.2; }
.about__visual { position: relative; display: flex; justify-content: center; }
.about__frame {
  position: relative; width: min(100%, 560px);
  aspect-ratio: 5 / 6.2;
  padding: clamp(28px, 4vw, 56px);
}
.about__frame::before {
  content: ""; position: absolute; inset: 0;
  background: var(--violet);
  clip-path: polygon(0 8%, 6% 0, 82% 2%, 100% 12%, 98% 96%, 76% 100%, 10% 98%, 2% 70%);
}
.about__photo { position: relative; width: 100%; height: 100%; overflow: hidden; clip-path: polygon(0 2%, 100% 0, 98% 100%, 2% 98%); }
.about__photo img { width: 100%; height: 115%; object-fit: cover; object-position: center 25%; }
.about__sig { position: absolute; width: 34%; right: -6%; bottom: -4%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }

/* ---------- POSITIONNEMENT ---------- */
.position {
  position: relative; background: var(--violet);
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(80px, 9vw, 140px) var(--pad);
  overflow: hidden;
}
.position__text { align-self: center; }
.position__item { position: relative; margin-top: clamp(36px, 4vw, 60px); padding-left: clamp(0px, 3.5vw, 60px); }
.position__bullet { width: clamp(52px, 5vw, 76px); margin: 0 0 14px calc(clamp(0px, 3.5vw, 60px) * -1); }
.position__item p { font-weight: 700; font-size: clamp(18px, 1.7vw, 27px); line-height: 1.22; max-width: 30ch; }
.position__item p + p { margin-top: 1em; }
.position__grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: clamp(10px, 1.2vw, 20px);
}
.pgrid { overflow: hidden; position: relative; }
.pgrid img { width: 100%; height: 120%; object-fit: cover; }
.pgrid--1 { aspect-ratio: 4 / 5.2; }
.pgrid--2 { aspect-ratio: 4 / 3.6; align-self: end; }
.pgrid--3 { aspect-ratio: 4 / 4.2; }
.pgrid--4 { aspect-ratio: 4 / 5.6; margin-top: calc(clamp(10px, 1.2vw, 20px) * -1 - 12%); }

/* ---------- PROJETS INDEX ---------- */
.work {
  position: relative; background: var(--white); color: var(--black);
  padding: clamp(110px, 12vw, 180px) var(--pad) clamp(80px, 8vw, 140px);
  overflow: hidden;
}
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 80px); }
.work__title { font-weight: 800; font-size: clamp(64px, 12vw, 200px); line-height: .85; }
.work__sub { font-weight: 700; font-size: clamp(17px, 1.5vw, 24px); line-height: 1.25; text-align: right; }
.work__list { border-top: 3px solid var(--black); position: relative; z-index: 2; }
.work__list li { border-bottom: 3px solid var(--black); }
.work__row {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 44px) 0;
  overflow: hidden;
  isolation: isolate;
}
.work__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--violet);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.work__row:hover::before { transform: scaleY(1); }
.work__row:hover { color: var(--white); }
.work__row > * { transition: transform .6s var(--ease), color .3s; }
.work__row:hover .work__name { transform: translateX(clamp(10px, 2vw, 30px)); }
.work__row:hover .work__arrow { transform: rotate(-45deg); }
.work__num { font-family: var(--font-cond); font-weight: 900; font-size: clamp(36px, 4vw, 64px); line-height: 1; }
.work__name { font-weight: 800; font-size: clamp(36px, 6.4vw, 110px); line-height: .9; text-transform: uppercase; }
.work__meta { font-weight: 700; font-size: clamp(14px, 1.3vw, 20px); text-align: right; }
.work__arrow { font-size: clamp(32px, 4vw, 64px); font-weight: 700; line-height: 1; }
.work__preview {
  position: fixed; top: 0; left: 0; z-index: 50;
  width: clamp(260px, 26vw, 420px); aspect-ratio: 16 / 9;
  pointer-events: none;
  overflow: hidden;
  clip-path: polygon(2% 6%, 97% 0, 100% 92%, 4% 100%);
  opacity: 0; transform: scale(.6);
}
.work__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PROJECT ---------- */
.project { position: relative; overflow: hidden; }
.project--light { background: var(--white); color: var(--black); }
.project--violet { background: var(--violet); color: var(--white); }
.project__intro {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(110px, 10vw, 160px) var(--pad) clamp(160px, 16vw, 260px);
}
.project__star {
  --w: min(95vw, 1300px);
  position: absolute; right: calc(-1 * var(--w) * .5); top: 50%;
  width: var(--w);
  margin-top: calc(var(--w) * -.56);
  pointer-events: none;
}
.project--light .project__star { filter: none; }
.project__text { position: relative; z-index: 2; max-width: min(640px, 48vw); }
.project__text .tag { margin-bottom: clamp(40px, 7vw, 110px); }
.project__title { font-weight: 800; font-size: clamp(48px, 6.4vw, 110px); line-height: .9; margin-bottom: .3em; }
.project__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.project__chips li {
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  padding: 7px 14px; border: 2px solid currentColor; border-radius: 999px;
}
.project__text p { font-weight: 700; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.22; max-width: 34ch; }
.project__text p + p { margin-top: 1em; }

/* horizontal scroll gallery */
.hscroll { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--black); }
.project--violet .hscroll { background: var(--violet); }
.hscroll__track {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 32px);
  height: 100%;
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.slide {
  flex: none;
  height: min(78vh, calc((100vw - 2 * var(--pad)) * .5625));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #111;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.1s var(--ease-out); }
.slide:hover img { transform: scale(1); }
.hscroll__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(18px, 4vh, 40px); height: 3px; background: rgba(255,255,255,.2); }
.hscroll__progress i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }

/* ---------- CONTACT ---------- */
.contact {
  position: relative; background: var(--black);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(110px, 10vw, 160px) var(--pad);
  overflow: hidden;
}
.contact__bolt { position: absolute; width: max(120vw, 900px); left: -40vw; top: -30%; pointer-events: none; }
.contact__inner { position: relative; z-index: 2; margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.contact__kicker { font-weight: 700; font-size: clamp(18px, 1.8vw, 28px); margin-bottom: .6em; }
.contact__title { font-weight: 800; font-size: clamp(60px, 12vw, 210px); line-height: .86; margin-bottom: clamp(30px, 4vw, 60px); }
.contact__inline-star { display: inline-block; height: .78em; width: auto; vertical-align: -.02em; }
.tag--cta { font-family: var(--font); font-weight: 800; font-size: clamp(30px, 4vw, 64px); text-transform: uppercase; padding: .35em .7em .5em; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  border-top: 2px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--pad);
  font-weight: 600; font-size: 15px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.94);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 92vw; max-height: 86vh; object-fit: contain; transform: scale(.94); transition: transform .6s var(--ease-out); }
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close { position: absolute; top: 18px; right: var(--pad); font-size: 28px; font-weight: 700; width: 52px; height: 52px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; font-weight: 700; width: 64px; height: 64px; background: var(--violet); clip-path: polygon(6% 10%, 96% 0, 100% 88%, 0 100%); }
.lightbox__prev { left: var(--pad); }
.lightbox__next { right: var(--pad); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-cond); font-weight: 800; font-size: 22px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr; padding-top: 120px; }
  .about__visual { order: -1; }
  .position { grid-template-columns: 1fr; }
  .work__row { grid-template-columns: auto 1fr auto; }
  .work__meta { display: none; }
}
@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { height: 36px; }
  .about__frame { width: 86%; }
  .about__block p { margin-left: 12px; }
  .position__item { padding-left: 0; }
  .position__bullet { margin-left: 0; }
  .work__sub { text-align: left; }
  .project__star { --w: 110vw; right: -42vw; top: 40px; margin-top: 0; }
  .project__text { max-width: none; }
  .project__text .tag { margin-bottom: 40vw; }
  .project__intro { min-height: auto; }
  /* gallery: vertical stack on mobile */
  .hscroll { height: auto; padding: 0 0 60px; }
  .hscroll__track { flex-direction: column; width: 100%; padding: 0 16px; gap: 14px; transform: none !important; }
  .slide { width: 100%; height: auto; }
  .hscroll__progress { display: none; }
  .contact__inner { text-align: left; align-items: flex-start; margin-left: 0; }
  .contact__bolt { left: -60vw; top: -10%; width: 200vw; }
  .bignum { font-size: 34vw; }
  .lightbox__nav { width: 48px; height: 48px; font-size: 24px; top: auto; bottom: 16px; transform: none; }
}

/* =========================================================
   MULTI-PAGES : transition, en-têtes, cartes, page suivante
   ========================================================= */

/* Transition entre pages */
.pt {
  position: fixed; inset: 0; z-index: 950;
  background: var(--grad);
  display: grid; place-items: center;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.pt__star { width: min(30vw, 220px); }
html.is-entering .pt { clip-path: inset(0 0 0 0); }
html.no-loader .loader { display: none; }

/* Lien actif dans la nav */
.nav__links a[aria-current="page"]::before { transform: scaleX(1); }
.menu__links a[aria-current="page"] { -webkit-text-stroke: 2px var(--white); color: transparent; }

/* En-tête de page */
.phead {
  position: relative; background: var(--black);
  height: 100vh; height: 100svh; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(40px, 8vh, 90px);
  overflow: hidden;
}
.phead__star {
  position: absolute; right: -14vw; top: 50%;
  width: min(70vw, 1000px); margin-top: calc(min(70vw, 1000px) * -.6);
  pointer-events: none;
}
.phead__kicker { position: relative; z-index: 2; font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4em; }
.phead__title {
  position: relative; z-index: 2;
  font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(84px, 20vw, 380px); line-height: .8; letter-spacing: -.01em;
  white-space: nowrap;
}
.phead__title .char, .project__title .char { display: inline-block; will-change: transform; }
.project__title, .phead__title { overflow: hidden; padding-bottom: .14em; margin-bottom: -.1em; }
.phead__scroll { position: absolute; right: var(--pad); bottom: clamp(40px, 8vh, 90px); z-index: 2; }

/* Accueil : projets */
.work--home { padding-bottom: clamp(100px, 10vw, 160px); }
.work__sub--left { text-align: left; }

/* Cartes projets */
.cards {
  background: var(--black);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px);
  padding: clamp(60px, 7vw, 120px) var(--pad);
}
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.card__img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 2%, 100% 0, 98% 100%, 1% 98%); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.18) rotate(-1.5deg); }
.card__title { font-weight: 800; font-size: clamp(36px, 5vw, 84px); line-height: .9; }

/* Page suivante */
/* Titre à gauche, étoile dans sa propre colonne à droite : ils ne se chevauchent jamais */
.next {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-content: center; align-items: center; column-gap: clamp(24px, 4vw, 70px);
  min-height: 80vh; padding: var(--pad);
  background: var(--black); overflow: hidden; isolation: isolate;
}
.next .next__label { grid-column: 1; grid-row: 1; }
.next .next__title { grid-column: 1; grid-row: 2; white-space: nowrap; font-size: clamp(56px, 10.5vw, 210px); }
.next .next__star { position: static; grid-column: 2; grid-row: 1 / 3; margin: 0; width: clamp(90px, 14vw, 240px); }
.next::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .9s var(--ease);
}
.next:hover::before { clip-path: inset(0 0 0 0); }
.next__label { font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); text-transform: uppercase; letter-spacing: .08em; }
.next__title {
  font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(70px, 15vw, 280px); line-height: .85;
  color: transparent; -webkit-text-stroke: 2px var(--white);
  transition: color .6s var(--ease);
}
.next:hover .next__title { color: var(--white); }
.next__star {
  position: absolute; right: 4vw; top: 50%; width: clamp(120px, 18vw, 300px); margin-top: calc(clamp(120px, 18vw, 300px) * -.5);
  transition: transform 1s var(--ease-out);
}
.next__star { transition: transform 1s var(--ease-out), filter .5s; }
.next:hover .next__star { transform: rotate(25deg) scale(1.15); filter: brightness(0) invert(1); }

/* Contact page */
.contact--page { min-height: 100vh; }
.links { background: var(--white); color: var(--black); padding: clamp(60px, 7vw, 120px) var(--pad); }
.links__row {
  position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 36px) 0;
  border-bottom: 3px solid var(--black);
  isolation: isolate; overflow: hidden;
}
.links__row:first-child { border-top: 3px solid var(--black); }
.links__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--violet); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.links__row:hover::before { transform: scaleY(1); }
.links__row:hover { color: var(--white); }
.links__name { font-weight: 800; font-size: clamp(36px, 6vw, 100px); line-height: .9; text-transform: uppercase; transition: transform .6s var(--ease); }
.links__row:hover .links__name { transform: translateX(clamp(10px, 2vw, 30px)); }
.links__handle { font-weight: 700; font-size: clamp(14px, 1.4vw, 22px); }
.links__arrow { font-size: clamp(28px, 3.5vw, 56px); font-weight: 700; }

/* Footer */
.footer__logo img { height: 34px; width: auto; transition: transform .6s var(--ease-out); }
.footer__logo:hover img { transform: rotate(-20deg) scale(1.1); }
.footer__links { display: flex; gap: 22px; font-weight: 700; text-transform: uppercase; }
.footer__links a:hover { color: var(--violet-2); }

@media (max-width: 767px) {
  .hero__star { --s: 92vw; }
  .hero__type { font-size: 27vw; justify-content: space-between; padding-top: 20vh; padding-bottom: 22vh; -webkit-text-stroke-width: 1.5px; }
  .hero__role, .hero__scroll { display: none; }
  .phead__title { font-size: 21vw; }
  .phead__star { width: 120vw; right: -50vw; margin-top: -80vw; }
  .phead__scroll { display: none; }
  .cards { grid-template-columns: 1fr; }
  .next .next__title { font-size: 13vw; }
  .next .next__star { width: 16vw; }
  .links__row { grid-template-columns: 1fr auto; }
  .links__handle { display: none; }
  .footer { justify-content: center; text-align: center; }
}

/* =========================================================
   FORMULAIRE DE CONTACT
   ========================================================= */
.cform {
  position: relative; background: var(--black); color: var(--white);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.8vw, 28px);
  padding: clamp(80px, 9vw, 150px) var(--pad);
  border-top: 1px solid rgba(255,255,255,.12);
}
.cform__aside { grid-column: 1 / 6; align-self: start; position: sticky; top: 110px; }
.cform__label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 22px; }
.cform__title { font-weight: 800; font-size: clamp(42px, 5.2vw, 88px); line-height: .92; }
.cform__title--outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.cform__note { margin-top: 26px; font-weight: 600; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; max-width: 30ch; opacity: .8; }

.cform__form { grid-column: 7 / 13; position: relative; display: flex; flex-direction: column; gap: 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; min-width: 0; }
.field__label { font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; padding: 0; }
.field input, .field textarea {
  font: inherit; font-weight: 600; font-size: clamp(18px, 1.5vw, 22px);
  color: var(--white); background: transparent;
  border: 0; border-bottom: 2px solid rgba(255,255,255,.25); border-radius: 0;
  padding: 8px 0 12px; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--violet-2); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff4d6d; }

/* Choix = tags découpés de l'identité */
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pick span {
  position: relative; display: inline-block; isolation: isolate;
  padding: 10px 16px 12px; font-weight: 700; font-size: 15px;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: color .3s, border-color .3s, transform .4s var(--ease-out);
}
.pick span::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--violet);
  clip-path: polygon(3% 8%, 96% 0, 100% 62%, 88% 76%, 64% 70%, 0 100%);
  transform: scale(0); transition: transform .45s var(--ease-out);
}
.pick:hover span { border-color: var(--white); }
.pick input:checked + span { border-color: transparent; transform: rotate(-2deg); }
.pick input:checked + span::before { transform: scale(1); }
.pick input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }

.cform__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cform__submit { font-size: clamp(24px, 2.6vw, 40px); }
.cform__submit[disabled] { opacity: .5; pointer-events: none; }
.cform__status { font-weight: 700; font-size: 15px; }
.cform__status.is-error { color: #ff4d6d; }

/* Écran de confirmation */
.cform__done {
  position: absolute; inset: -20px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
  background: var(--grad); padding: clamp(28px, 4vw, 60px);
  clip-path: inset(100% 0 0 0); visibility: hidden;
}
.cform__done img { width: 90px; }
.cform__done strong { font-weight: 800; font-size: clamp(40px, 5vw, 80px); line-height: .9; text-transform: uppercase; }
.cform__done p { font-weight: 600; font-size: 20px; }
.cform__again { margin-top: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .cform__aside, .cform__form { grid-column: 1 / -1; }
  .cform__aside { position: static; margin-bottom: 50px; }
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   À PROPOS — "Mon approche" (dans la DA : violet, tags, étoiles)
   ========================================================= */
.approach {
  position: relative; overflow: hidden;
  background: var(--violet); color: var(--white);
  padding: clamp(90px, 10vw, 170px) var(--pad) clamp(90px, 10vw, 170px);
}
.approach__star {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(70vw, 1000px); right: -24vw; top: -6%;
  opacity: .14;
}
.approach > *:not(.approach__star) { position: relative; z-index: 1; }
.approach__tag { margin-bottom: clamp(40px, 5vw, 80px); }

.approach__statement {
  font-weight: 800; font-size: clamp(32px, 4.6vw, 78px); line-height: 1.08; letter-spacing: -.01em;
  max-width: 22ch;
}
/* mots-clés surlignés en noir, comme un tag */
.approach__statement em {
  font-style: normal; color: var(--white); background: var(--black);
  padding: 0 .18em .04em; margin: 0 .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.approach__statement .w { display: inline-block; opacity: .18; will-change: opacity; }

.approach__story {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 70px);
  margin: clamp(60px, 7vw, 110px) 0;
  max-width: 1100px;
}
.approach__bullet { width: clamp(46px, 4vw, 64px); margin-bottom: 14px; }
.approach__item p { font-weight: 700; font-size: clamp(18px, 1.6vw, 25px); line-height: 1.3; }

/* Principes : cartes noires découpées, gros numéros condensés en contour */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 22px); list-style: none; }
.principle {
  position: relative; background: var(--black);
  padding: clamp(26px, 2.4vw, 38px) clamp(18px, 1.8vw, 28px) clamp(30px, 2.8vw, 44px);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  transition: transform .5s var(--ease-out);
}
.principle:nth-child(even) { clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
.principle:hover { transform: translateY(-8px) rotate(-1deg); }
.principle__num {
  display: block; font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(64px, 6vw, 110px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--violet-2);
}
.principle__title { font-weight: 800; font-size: clamp(22px, 2vw, 32px); text-transform: uppercase; margin: .7em 0 .45em; }
.principle p { font-weight: 600; font-size: 16px; line-height: 1.45; opacity: .8; }

.expertise { margin-top: clamp(60px, 7vw, 110px); }
.expertise__label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 18px; }
.expertise__list { display: flex; flex-wrap: wrap; gap: 12px 10px; list-style: none; }
.expertise__list .tag { font-size: clamp(17px, 1.5vw, 23px); }

@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .approach__story { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .approach__star { width: 140vw; right: -70vw; }
}

/* Bonhomme étoile sur la photo : violet avec contour blanc (sticker), lisible partout */
span.about__sig { display: block; aspect-ratio: 1917 / 2200; background: none; -webkit-mask: none; mask: none;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
span.about__sig i {
  display: block; width: 100%; height: 100%;
  background: var(--grad);
  -webkit-mask: url("assets/img/star-signature-white.webp") center / contain no-repeat;
          mask: url("assets/img/star-signature-white.webp") center / contain no-repeat;
}
/* Accueil : seule la mention du rôle reste en bas */
.hero__bottom { justify-content: center; }

/* =========================================================
   GALERIE ÉDITORIALE (pages projet) — grille 12 colonnes
   ========================================================= */
.gallery {
  --gap: clamp(14px, 1.8vw, 28px);
  --rule: rgba(255, 255, 255, .22);
  position: relative;
  padding: clamp(60px, 7vw, 120px) var(--pad) clamp(90px, 10vw, 160px);
  color: var(--white);
}
.project--light .gallery { background: var(--black); }
.project--violet .gallery { background: var(--violet); --rule: rgba(255, 255, 255, .35); }
.gallery__head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  padding-bottom: 16px; margin-bottom: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
  font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.gallery__label { font-size: clamp(15px, 1.3vw, 20px); letter-spacing: .08em; }
.gallery__cats { opacity: .6; text-align: center; }
.gallery__count { text-align: right; font-family: var(--font-cond); font-weight: 800; font-size: clamp(16px, 1.4vw, 22px); letter-spacing: .06em; }

.gallery__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap); row-gap: clamp(70px, 9vw, 150px);
  align-items: start;
}
.gal { position: relative; }
.gal__media { pointer-events: none; } /* le clic passe toujours par la figure entière */
/* chaque visuel garde ses vraies proportions (--ar) : rien n'est recadré */
.gal__media { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); background: rgba(255,255,255,.04); }
.gal__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.gal__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* rangée (stories, moodboard) : plusieurs visuels côte à côte, une seule légende */
.gal-group { min-width: 0; }
.gal-row { display: flex; gap: var(--gap); align-items: flex-start; }
.gal--cell { flex: 1 1 0; min-width: 0; }
.gal__media::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .5s; pointer-events: none; }
.gal:hover .gal__media::after { opacity: .12; }

/* Légende : filet, numéro de figure, titre, chapitre */
.gal__cap {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.gal__fig { font-family: var(--font-cond); font-weight: 800; font-size: 14px; letter-spacing: .08em; opacity: .55; }
.gal__title { font-weight: 700; font-size: clamp(15px, 1.25vw, 19px); letter-spacing: .02em; text-transform: none; }
.gal__cat { opacity: .55; }

/* Compositions */
.gal--full   { grid-column: 1 / -1; }
.gal--center { grid-column: 2 / 12; }
.gal--pair-a { grid-column: 1 / 7; }
.gal--pair-b { grid-column: 7 / 13; margin-top: clamp(80px, 14vw, 240px); }
/* image large + légende en colonne latérale */
.gal--left, .gal--right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.gal--left .gal__media  { grid-column: 1 / 10; grid-row: 1; }
.gal--left .gal__cap    { grid-column: 10 / 13; grid-row: 1; }
.gal--right .gal__media { grid-column: 4 / 13; grid-row: 1; }
.gal--right .gal__cap   { grid-column: 1 / 4; grid-row: 1; text-align: right; }
.gal--left .gal__cap, .gal--right .gal__cap { grid-template-columns: 1fr; gap: 6px; margin-top: 0; }
.gal--right .gal__cap > * { justify-self: end; }

@media (max-width: 767px) {
  .gallery__head { grid-template-columns: 1fr auto; }
  .gallery__cats { display: none; }
  .gallery__grid { row-gap: 48px; }
  .gal--full, .gal--center, .gal--pair-a, .gal--pair-b, .gal--left, .gal--right { grid-column: 1 / -1; margin-top: 0; }
  .gal--left, .gal--right { display: block; }
  .gal--left .gal__cap, .gal--right .gal__cap { margin-top: 12px; text-align: left; grid-template-columns: auto 1fr auto; gap: 12px; }
  .gal--right .gal__cap > * { justify-self: start; }
}

/* =========================================================
   PAGE SOOMSOOM FM — vert nuit, réaliste : photo réelle,
   lampe torche, grain argentique
   ========================================================= */
.project--soom {
  --night: #040a06;
  --night-2: #0a160d;
  background: linear-gradient(180deg, var(--night-2), var(--night));
  color: #ecefe9;
  position: relative;
}
/* grain argentique */
.project--soom::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .06;
  animation: grain .5s steps(3) infinite;
}
.project--soom .project__intro { overflow: hidden; }
.project--soom .hscroll { background: transparent; }
.project--soom .hscroll__progress { background: rgba(236, 239, 233, .15); }
.project--soom .hscroll__progress i { background: #ecefe9; }
.project--soom .tag--white { --tag-fg: var(--night-2); }
.project--soom .bignum { color: transparent; -webkit-text-stroke: 1.5px rgba(236, 239, 233, .14); }
.project--soom .project__text { position: relative; z-index: 3; }
.project--soom .project__text p { color: rgba(236, 239, 233, .86); }
/* chips sobres : texte simple séparé par des barres */
.project--soom .project__chips { gap: 0; }
.project--soom .project__chips li { border: 0; border-radius: 0; padding: 0; font-size: 13px; letter-spacing: .14em; color: rgba(236, 239, 233, .6); }
.project--soom .project__chips li + li::before { content: "/"; margin: 0 .7em; opacity: .4; }

/* Scène : le mur d'affiches réel, dans le noir */
.scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  /* scène quasi éteinte, désaturée, teinte vert nuit */
  filter: brightness(.16) saturate(.5) contrast(1.1);
}
.scene__img--lit {
  /* zone éclairée par la lampe : lumière froide, chute douce */
  filter: brightness(.95) saturate(.8) contrast(1.08);
  -webkit-mask-image: radial-gradient(circle clamp(140px, 17vw, 280px) at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.25) 65%, transparent 100%);
          mask-image: radial-gradient(circle clamp(140px, 17vw, 280px) at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.25) 65%, transparent 100%);
}
/* ombre côté texte + vignette, pour rester lisible et cinéma */
.scene__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,10,6,.92) 0%, rgba(4,10,6,.75) 32%, rgba(4,10,6,.1) 62%, transparent 100%),
    radial-gradient(ellipse 120% 90% at 60% 50%, transparent 50%, rgba(0,0,0,.65) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 22%);
}

/* Mots secrets : discrets, se décodent au survol */
.code {
  border-bottom: 1px dotted rgba(236, 239, 233, .45);
  transition: color .2s, border-color .2s;
}
.code.is-decoding { color: #fff; border-bottom-color: transparent; font-family: var(--font-cond); letter-spacing: .06em; }

/* Lecture de fréquence : texte seul, sobre */
.readout {
  position: absolute; z-index: 4; right: var(--pad); bottom: clamp(30px, 6vh, 60px);
  font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(236, 239, 233, .45);
}
.readout__freq { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: rgba(236, 239, 233, .8); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .scene__img { object-position: 70% 50%; }
  .scene__shade { background: linear-gradient(0deg, rgba(4,10,6,.95) 30%, rgba(4,10,6,.55) 70%, rgba(4,10,6,.3)); }
  .readout { left: var(--pad); right: auto; bottom: 20px; }
}

/* =========================================================
   PAGE LUMERIA — "Beauty for every mood"
   La page entière change de couleur selon le mood choisi
   ========================================================= */
.project--lumi {
  --mood: #f062f8; --mood-2: #c41fd1; --ink: #ffffff; --accent: #a3ff12;
  background: var(--mood); color: var(--ink);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.project--lumi[data-mood="fresh"]    { --mood: #a3ff12; --mood-2: #6bd60a; --ink: #22106b; --accent: #f062f8; }
.project--lumi[data-mood="electric"] { --mood: #3313e0; --mood-2: #2209a8; --ink: #ffffff; --accent: #a3ff12; }
.project--lumi[data-mood="sunset"]   { --mood: #f26a1b; --mood-2: #d34a06; --ink: #ffffff; --accent: #3313e0; }

.lumi { min-height: 100vh; overflow: hidden; padding-bottom: clamp(70px, 8vw, 120px); }
.lumi__wipe { position: absolute; inset: 0; z-index: 0; clip-path: circle(0% at 50% 50%); pointer-events: none; }
.lumi__wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lumi__wave-path { fill: #fff; }

/* Étincelles de la marque */
.lumi__sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lumi__spark { position: absolute; left: var(--sx); top: var(--sy); width: var(--ss); display: block; }
.spark { display: block; width: 100%; height: auto; fill: var(--accent); transition: fill .6s; }
.lumi__spark:nth-child(odd) .spark { fill: #fff; }
.trail-spark { position: absolute; top: 0; left: 0; width: 22px; z-index: 5; pointer-events: none; }

/* Texte */
.lumi__text { position: relative; z-index: 3; max-width: min(560px, 44vw); }
.lumi__text .tag--white { --tag-fg: var(--mood); transition: color .6s; }
.lumi__text .tag { margin-bottom: clamp(28px, 4vw, 56px); }
.lumi__title { margin: 0 0 28px; line-height: 1; filter: drop-shadow(0 6px 0 var(--mood-2)); }
/* le vrai logo, en masque : il prend la couleur d'encre du mood */
.lumi__logo {
  display: block; width: min(100%, 520px); aspect-ratio: 1261 / 393;
  background: var(--ink); transition: background-color .6s;
  -webkit-mask: url("assets/img/lumeria-logo.webp") left center / contain no-repeat;
          mask: url("assets/img/lumeria-logo.webp") left center / contain no-repeat;
}
.project--lumi .project__chips li { border-color: currentColor; }
.project--lumi .project__text p { color: var(--ink); }

/* Sélecteur de mood */
.lumi__moods { margin-top: clamp(26px, 3vw, 44px); }
.lumi__moods-label { display: block; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 12px; }
.lumi__moods-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lumi__mood {
  position: relative; padding: 10px 18px 11px; border-radius: 999px;
  font-weight: 800; font-size: 15px; letter-spacing: .02em;
  background: #fff; color: #22106b;
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
  transition: transform .4s var(--ease-out), box-shadow .3s;
}
.lumi__mood::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.lumi__mood[data-mood="glossy"]::before { background: #f062f8; }
.lumi__mood[data-mood="fresh"]::before { background: #a3ff12; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.lumi__mood[data-mood="electric"]::before { background: #3313e0; }
.lumi__mood[data-mood="sunset"]::before { background: #f26a1b; }
.lumi__mood:hover { transform: translateY(-3px) rotate(-2deg); }
.lumi__mood[aria-pressed="true"] { background: #22106b; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.project--lumi[data-mood="fresh"] .lumi__mood[aria-pressed="true"] { background: #22106b; }

/* Visuel : vraie photo dans un cadre liquide + badge qui tourne */
.lumi__visual {
  position: absolute; z-index: 2;
  --vw: min(29vw, 58vh, 440px);
  right: clamp(40px, 9vw, 170px); top: 50vh;
  width: var(--vw); aspect-ratio: var(--ar, 703 / 1048);
  margin-top: calc(var(--vw) * -.745 + 36px);
}
/* Le vrai produit, détouré, qui flotte */
.lumi__float { position: absolute; inset: 0; z-index: 2; will-change: transform; }
.lumi__product {
  width: 100%; height: 100%; object-fit: contain;
  /* la photo source est coupée en bas : fondu doux */
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
          mask-image: linear-gradient(180deg, #000 82%, transparent 99%);
}
.lumi__halo {
  position: absolute; z-index: 0; left: 50%; top: 46%;
  width: 115%; aspect-ratio: 1; margin-left: -57.5%; margin-top: -57.5%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mood) 0%, color-mix(in srgb, var(--mood) 45%, transparent) 45%, transparent 70%);
  transition: background .6s;
}
.lumi__shadow {
  position: absolute; z-index: 1; left: 18%; right: 18%; bottom: -6%; height: 7%;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.28), transparent 70%);
}
.lumi__badge {
  position: absolute; z-index: 3;
  width: 34%; right: -14%; top: 4%;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.25));
  animation: badgeSpin 16s linear infinite;
}
@keyframes badgeSpin { to { transform: rotate(360deg); } }

/* Galerie aux couleurs du mood */
.project--lumi .gallery { background: transparent; color: var(--ink); --rule: color-mix(in srgb, var(--ink) 35%, transparent); }

@media (max-width: 900px) {
  .lumi { display: flex; flex-direction: column; align-items: stretch; }
  .lumi__text { max-width: none; }
  .lumi__visual { position: relative; right: auto; top: auto; margin: 56px auto 0; width: min(62vw, 340px); --vw: min(62vw, 340px); }
  .lumi__wave { display: none; }
}

/* =========================================================
   PAGE SWEET MOOD — fond bleu ciel clair, logo à gauche, texte à droite
   ========================================================= */
.project--sweet {
  --sw-pink: #d27fb5; --sw-blue: #35bfee; --sw-sky: #c2ebfb; --sw-cream: #fdf9ee; --sw-black: #0e0c10;
  background: var(--sw-sky); color: var(--sw-black);
}
.sweet {
  min-height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.8vw, 28px);
  align-items: center;
  padding: clamp(110px, 10vw, 160px) var(--pad) clamp(90px, 9vw, 140px);
}
/* Fond du haut : bleu de marque en aplat + lettrage géant du logo, ton sur ton,
   recadré comme sur le packaging (pas de flou, pas de dégradé) */
.sweet { position: relative; background: #41c4f1; }
.sweet__super {
  position: absolute; z-index: 0; pointer-events: none; display: block;
  width: 96vw; aspect-ratio: 916 / 644;
  right: -24vw; top: 50%; margin-top: calc(96vw * -.36);
  background: #2ea9dc;
  -webkit-mask: url("assets/projets/sweetmood/logo-lettres.webp") center / contain no-repeat;
          mask: url("assets/projets/sweetmood/logo-lettres.webp") center / contain no-repeat;
  transform: rotate(-9deg);
  will-change: transform;
}
.sweet__logo { filter: drop-shadow(0 12px 0 rgba(14, 12, 16, .22)) !important; }

/* le tag passe sur sa propre ligne : le logo et le texte se centrent l'un sur l'autre */
.sweet { align-content: center; }
.sweet__left { display: contents; }
.sweet__left .tag--white { --tag-fg: var(--sw-black); grid-column: 1 / -1; grid-row: 1; justify-self: start; margin-bottom: clamp(28px, 4vw, 56px); position: relative; z-index: 2; }
.sweet__title { line-height: 1; grid-column: 1 / 7; grid-row: 2; position: relative; z-index: 2; }
.sweet__right { grid-row: 2; align-self: center; }
.sweet__logo {
  width: min(100%, 640px); height: auto; display: block; transform-origin: 50% 80%;
  filter: drop-shadow(0 14px 0 rgba(14, 12, 16, .14));
}
.sweet__right { grid-column: 8 / 13; position: relative; z-index: 2; }
.project--sweet .project__chips { margin-bottom: 30px; }
.project--sweet .project__chips li { border-color: var(--sw-black); color: var(--sw-black); background: #fff; box-shadow: 0 3px 0 var(--sw-black); }
.project--sweet .sweet__right p { font-weight: 700; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.32; color: var(--sw-black); }
.project--sweet .sweet__right p + p { margin-top: 1em; }

.marquee--sweet { background: var(--sw-pink); border-color: var(--sw-black); transform: rotate(1.5deg) scale(1.04); margin: 0 0 -1vw; }
.marquee--sweet .marquee__item { color: var(--sw-black); }
.marquee--sweet .marquee__item i { font-style: normal; color: var(--sw-cream); font-size: .7em; }

.project--sweet .gallery { background: var(--sw-cream); color: var(--sw-black); --rule: rgba(14,12,16,.25); }


/* Case "À venir" dans la galerie */
.gal--narrow { grid-column: 5 / 9; }
.gal--soon { cursor: default; }
.gal__soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(14,12,16,.05) 0 14px, transparent 14px 28px), #fff !important;
  border: 2px dashed rgba(14,12,16,.3);
  pointer-events: auto;
}
.gal__soon-tag {
  font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; background: var(--sw-pink, var(--violet)); color: #fff; border-radius: 999px;
}
.gal__soon strong { font-weight: 800; font-size: clamp(26px, 3.4vw, 54px); line-height: 1; }
.gal__soon-sub { font-weight: 600; font-size: 15px; opacity: .6; }

@media (max-width: 900px) {
  .sweet { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .sweet__super { width: 220vw; right: -90vw; margin-top: -40vw; }
  .gal--narrow { grid-column: 3 / 11; }
}
@media (max-width: 767px) { .gal-row { flex-wrap: wrap; } .gal--cell { flex: 1 1 40%; } .gal--narrow { grid-column: 1 / -1; } }

/* =========================================================
   ACCUEIL v2 — nom géant + pile de projets en 3D
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* anti-flash : les éléments animés à l'arrivée restent cachés jusqu'à ce que le JS soit prêt */
.js:not(.ready) .hero2__line > span, .js:not(.ready) .hcard, .js:not(.ready) .hero2__role, .js:not(.ready) .hero2__index,
.js:not(.ready) .phead__title, .js:not(.ready) .project__title, .js:not(.ready) .nav > * { opacity: 0; }

.hero2 {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 600px;
  background: var(--black);
  display: grid; place-items: center;
}
.hero2__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 50% 58%, rgba(134, 4, 239, .45), transparent 70%),
    radial-gradient(ellipse 30% 30% at 50% 62%, rgba(98, 14, 251, .35), transparent 70%);
}
/* nom géant : derrière la pile de projets */
.hero2__name {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(84px, 11vh, 130px) var(--pad) clamp(70px, 10vh, 110px);
  font-family: var(--font-cond); font-weight: 900;
  font-size: clamp(90px, min(21vw, 36vh), 420px); line-height: .78; letter-spacing: -.01em;
  color: var(--white);
}
.hero2__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero2__line > span { display: inline-block; will-change: transform; }
.hero2__line--1 { align-self: flex-start; }
.hero2__line--2 { align-self: flex-end; }

/* pile de cartes projets */
.hero2__stack {
  position: relative; z-index: 2;
  width: min(40vw, 62vh, 620px); aspect-ratio: 4 / 3;
  perspective: 1400px;
}
.hcard {
  position: absolute; inset: 0; display: block;
  transform-style: preserve-3d; will-change: transform;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
}
.hcard img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  clip-path: polygon(0 2%, 100% 0, 99% 100%, 1% 98%);
}
.hcard__tag { position: absolute; left: -14px; bottom: -18px; font-size: clamp(16px, 1.5vw, 24px); }
.hcard:not(.is-top) { pointer-events: none; }
.hcard__tag { transition: transform .5s var(--ease-out); }
.hcard.is-top:hover .hcard__tag { transform: translateY(-4px) rotate(-3deg); }

.hero2__role, .hero2__index {
  position: absolute; z-index: 3; bottom: calc(2.2vw + clamp(26px, 5vh, 52px)); /* au-dessus du bandeau penché */
  font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5;
}
.hero2__role { left: var(--pad); }
.hero2__role span { opacity: .55; }
.hero2__index { right: var(--pad); text-align: right; display: flex; align-items: baseline; gap: 6px; }
.hero2__num { font-family: var(--font-cond); font-weight: 900; font-size: 34px; letter-spacing: 0; color: var(--violet-2); }
.hero2__index > span:nth-child(2) { opacity: .5; }
.hero2__proj { margin-left: 10px; }

@media (max-width: 767px) {
  .hero2__name { font-size: 25vw; padding-top: 16vh; padding-bottom: 17vh; }
  .hero2__stack { width: 80vw; }
  .hero2__role { display: none; }
  .hero2__index { left: var(--pad); right: var(--pad); justify-content: center; }
  .hero2__num { font-size: 26px; }
}

/* =========================================================
   ACCUEIL 3D — personnage Three.js + nom XXL derrière
   ========================================================= */
.js:not(.ready) .hero3d__line > span { opacity: 0; }
.hero3d {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  background: radial-gradient(ellipse 70% 60% at 50% 46%, #17101f 0%, #070608 55%, #000 100%);
}
.hero3d__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 40% 48% at 50% 52%, rgba(134, 4, 239, .34), transparent 70%);
}
/* grande étoile violette derrière le personnage */
.hero3d__star {
  position: absolute; z-index: 1; left: 50%; top: 52%; pointer-events: none;
  width: min(128vh, 112vw); height: auto; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px rgba(134, 4, 239, .45));
  will-change: transform;
}
.js:not(.ready) .hero3d__star { opacity: 0; }
/* scène 3D devant l'étoile : le personnage est entier, net, sans fondu */
.hero3d__stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero3d__fallback {
  display: none; position: absolute; left: 50%; bottom: 0; height: 88%; width: auto; transform: translateX(-50%);
}
.hero3d--fallback .hero3d__canvas { display: none; }
.hero3d--fallback .hero3d__fallback { display: block; }
/* « Directeur Artistique » en bas, au centre, par-dessus la veste */
.hero3d__role {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(70px, 10vh, 110px);
  margin: 0; text-align: center; white-space: nowrap;
  font-weight: 800; font-size: clamp(13px, 1.1vw, 17px); letter-spacing: .16em; text-transform: uppercase; line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .85);
}
.hero3d__role span { opacity: .7; font-weight: 700; font-size: .82em; }
@media (max-width: 767px) {
  .hero3d__star { width: 185vw; top: 42%; }
  .hero3d__role { bottom: 64px; font-size: 12px; }
}

/* =========================================================
   PAGES PROJET (gabarit unique, neutre) + PAGE PROJETS (grille)
   Grand visuel d'ouverture · très grand titre · présentation · visuels en grand
   ========================================================= */
.pj { --pj-gap: clamp(8px, .8vw, 12px); --pj-radius: clamp(10px, 1.1vw, 18px); --pj-muted: rgba(255, 255, 255, .55); background: var(--ink); }

/* ---- ouverture ---- */
.pj-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; padding: var(--pj-gap); }
.pj-hero__media { position: absolute; inset: var(--pj-gap); border-radius: var(--pj-radius); overflow: hidden; background: #151515; }
.pj-hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; will-change: transform; }
.pj-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
.pj-hero__over { position: absolute; left: calc(var(--pj-gap) + var(--pad)); right: calc(var(--pj-gap) + var(--pad)); bottom: calc(var(--pj-gap) + clamp(24px, 5vh, 56px)); z-index: 2; }
.pj-hero__kicker { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin-bottom: clamp(6px, 1.2vh, 14px); font-weight: 700; font-size: clamp(12px, 1vw, 15px); letter-spacing: .14em; text-transform: uppercase; }
.pj-hero__kicker span:first-child { color: var(--white); }
.pj-hero__kicker span + span { color: rgba(255, 255, 255, .7); }
.pj-title {
  font-family: var(--font-cond); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 12.5vw, 230px); line-height: .82; letter-spacing: -.005em;
  overflow: hidden; padding-bottom: .04em;
}
@media (max-width: 767px) { .pj-title { font-size: clamp(44px, 15vw, 64px); } }
.pj-title .char { display: inline-block; will-change: transform; }

/* ---- présentation ---- */
.pj-info {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2.4fr; gap: clamp(28px, 6vw, 120px);
  padding: clamp(70px, 12vh, 150px) calc(var(--pj-gap) + var(--pad)) clamp(60px, 10vh, 130px);
}
.pj-back { display: inline-flex; margin-bottom: clamp(28px, 5vh, 56px); padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.pj-back:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.pj-meta dl { display: grid; gap: 22px; }
.pj-meta dt { margin-bottom: 6px; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pj-muted); }
.pj-meta dd { font-weight: 600; font-size: 17px; line-height: 1.45; }
.pj-body { max-width: 980px; }
.pj-body p { font-weight: 500; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, .78); max-width: 720px; }
.pj-body p + p { margin-top: 1.2em; }
.pj-body .pj-lead { margin-bottom: clamp(26px, 4vh, 44px); max-width: none; font-weight: 600; font-size: clamp(24px, 2.6vw, 44px); line-height: 1.2; letter-spacing: -.01em; color: var(--white); }
.pj-body em, .pj-body i { font-style: italic; }

/* ---- visuels ---- */
.pj-gal { display: grid; gap: var(--pj-gap); padding: 0 var(--pj-gap) var(--pj-gap); }
.pj-row { display: grid; gap: var(--pj-gap); }
.pj-row--pair { grid-template-columns: 1fr 1fr; align-items: start; }
.pj-fig { position: relative; border-radius: var(--pj-radius); overflow: hidden; background: #151515; }
.pj-fig__media { aspect-ratio: var(--ar, 16 / 9); overflow: hidden; }
.pj-fig__media img, .pj-fig__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* visuel vertical seul : affiché en entier, centré dans un grand panneau */
.pj-fig--tall .pj-fig__media { aspect-ratio: auto; height: min(94vh, 1200px); display: grid; place-items: center; padding: clamp(16px, 3vw, 48px); }
.pj-fig--tall .pj-fig__media img, .pj-fig--tall .pj-fig__media video { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: calc(var(--pj-radius) * .6); }
.pj-fig[data-full] { cursor: zoom-in; }
/* Stories : une ligne de 5 max, chacune en entier au format 9:16, à taille « téléphone » */
.pj-row--stories {
  /* toujours 5 colonnes sur toute la largeur : chaque story est grande, même s'il y en a moins */
  grid-template-columns: repeat(var(--n, 5), calc((100% - 4 * var(--pj-gap)) / 5)); justify-content: center;
}
.pj-fig--story { border-radius: clamp(10px, 1.1vw, 18px); background: #222; }
.pj-fig--story .pj-fig__media { aspect-ratio: 9 / 16; }
.pj-soon { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 10px; text-align: center; border: 1px dashed rgba(255, 255, 255, .2); border-radius: inherit; }
.pj-soon span { font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pj-muted); }
.pj-soon strong { font-family: var(--font-cond); font-weight: 900; font-size: clamp(28px, 4vw, 64px); text-transform: uppercase; }

/* ---- projet suivant ---- */
.pj-next { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: clamp(420px, 72vh, 760px); margin: clamp(56px, 10vh, 120px) var(--pj-gap) var(--pj-gap); padding: 0 var(--pad) clamp(28px, 6vh, 64px); border-radius: var(--pj-radius); overflow: hidden; isolation: isolate; }
.pj-next__media { position: absolute; inset: 0; z-index: -1; background: #151515; }
.pj-next__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.pj-next__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); transition: background .6s; }
.pj-next:hover .pj-next__media img { transform: scale(1.1); }
.pj-next:hover .pj-next__media::after { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.75)); }
.pj-next__k { font-weight: 700; font-size: clamp(12px, 1vw, 15px); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.pj-next__name { font-family: var(--font-cond); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 10vw, 190px); line-height: .85; }

/* ---- page Projets : grille de grandes images ---- */
.pgrid { background: var(--ink); padding: clamp(40px, 7vh, 90px) var(--pad) clamp(60px, 10vh, 120px); }
.pgrid__list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px) clamp(14px, 1.6vw, 26px); }
.pcard { display: block; }
.pcard__media { aspect-ratio: 4 / 3; border-radius: clamp(10px, 1.1vw, 18px); overflow: hidden; background: #151515; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__info { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.pcard__num { align-self: flex-start; padding-top: .35em; font-weight: 700; font-size: 13px; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.pcard__text { flex: 1; min-width: 0; }
.pcard__name { font-family: var(--font-cond); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 3.4vw, 60px); line-height: .9; }
.pcard__meta { display: block; margin-top: 6px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .6); }
.pcard__arrow { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); font-size: 18px; transition: background .3s, color .3s, transform .5s var(--ease-out); }
.pcard:hover .pcard__arrow { background: var(--white); color: var(--black); transform: rotate(45deg); }

@media (max-width: 900px) {
  .pj-info { grid-template-columns: 1fr; }
  .pgrid__list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pj-hero { height: 88svh; }
  .pj-row--pair { grid-template-columns: 1fr; }
  /* sur téléphone : les stories défilent sur le côté, une story ≈ un écran de téléphone */
  .pj-row--stories {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start;
    padding: 20px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .pj-row--stories::-webkit-scrollbar { display: none; }
  .pj-row--stories .pj-fig--story { flex: 0 0 68vw; scroll-snap-align: center; }
  .pj-fig--tall .pj-fig__media { height: auto; aspect-ratio: var(--ar); padding: 0; }
  .pj-fig--tall .pj-fig__media img, .pj-fig--tall .pj-fig__media video { width: 100%; height: 100%; border-radius: 0; }
  .pj-next { height: 60svh; }
}

/* =========================================================
   ACCUEIL « ciel d'étoiles filantes » (animation dans main.js)
   ========================================================= */
.sky { position: relative; background: var(--black); }
.sky__pin {
  position: relative; height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 115%, rgba(98, 14, 251, .35), rgba(134, 4, 239, .08) 45%, transparent 70%), #000;
}
.sky__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky__foot {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 56px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; row-gap: 8px;
}
.sky__tag { grid-column: 1; justify-self: start; transform: rotate(-4deg); font-size: clamp(13px, 1.1vw, 17px); margin-bottom: 10px; }
.sky__name {
  margin: 0; overflow: hidden; grid-column: 1;
  font-family: var(--font-cond); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 120px); line-height: .86; padding-top: .06em;
}
.sky__name > span { display: block; }
.sky__sub { margin: 0; grid-column: 1; color: rgba(255, 255, 255, .6); font-weight: 600; font-size: clamp(13px, 1vw, 15px); }
.sky__cta {
  grid-column: 2; grid-row: 1 / span 3; align-self: end;
  font-weight: 800; font-size: clamp(12px, .95vw, 14px); letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 2px solid var(--violet-2); transition: color .3s;
}
.sky__cta:hover { color: var(--violet-2); }
/* le logo 3D (sky3d.js) ; image de secours si pas de WebGL */
.sky__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
/* avec WebGL : la scène 3D dessine le fond (faisceaux + glow) ; les étoiles filantes passent par-dessus en « screen » */
.has-gl .sky__canvas { z-index: 2; mix-blend-mode: screen; pointer-events: none; }
.has-gl .sky__glow { display: none; }
.sky__glow {
  position: absolute; left: 0; top: 0; z-index: 1; width: min(70vh, 80vw); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(144, 0, 255, .42) 0%, rgba(98, 14, 251, .18) 32%, rgba(42, 22, 196, .06) 55%, transparent 70%);
  pointer-events: none; will-change: transform, opacity;
}
.sky__fallback {
  position: absolute; z-index: 2; left: 66%; top: 44%; width: min(52vh, 60vw); transform: translate(-50%, -50%) rotate(-6deg);
  pointer-events: none;
}
.has-gl .sky__fallback { display: none; }
/* la 3D a été coupée par le navigateur : l'étoile en image le temps qu'elle revienne */
.gl-lost .sky__fallback { display: block; }
.gl-lost .sky__gl { visibility: hidden; }
.js:not(.ready) .sky__foot > *, .js:not(.ready) .sky__gl, .js:not(.ready) .sky__fallback { opacity: 0; }
/* les métiers, à droite pendant que l'étoile passe à gauche */
.sky__ch {
  position: absolute; z-index: 3; right: var(--pad); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; pointer-events: none;
  font-family: var(--font-cond); font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(44px, 8vw, 150px);
}
.sky__w { display: block; overflow: hidden; padding-top: .04em; }
.sky__w > span { display: block; }
.sky__w:nth-child(2) > span { color: var(--violet-2); }
@media (max-width: 767px) and (orientation: portrait) {
  .sky__fallback { left: 56%; top: 36%; }
  .sky__ch { top: auto; bottom: 9vh; transform: none; left: var(--pad); align-items: flex-start; font-size: 17vw; }
  .sky__foot { grid-template-columns: 1fr; }
  .sky__cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Accueil : « Projets à la une » (façon Aluna, aux couleurs de la DA)
   deux rangées de visuels qui défilent en continu, logo du projet qui suit la souris
   ========================================================= */
.feat { position: relative; background: var(--black); color: var(--white); padding: clamp(110px, 11vw, 170px) 0 clamp(100px, 10vw, 160px); overflow: hidden; }
.feat__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 1.4vw, 22px); padding: 0 var(--pad); margin-bottom: clamp(48px, 5vw, 80px); }
.feat__title { font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 8vw, 140px); line-height: .88; margin: 0; }
.feat__all { margin-top: 6px; font-size: clamp(13px, 1vw, 15px); }
.feat__rows { display: grid; gap: 16px; }
.feat__row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.fcard {
  --h: clamp(220px, 27vw, 420px);
  position: relative; display: block; flex: 0 0 auto; height: var(--h); width: calc(var(--h) * var(--ar));
  border-radius: 16px; overflow: hidden; background: #120a1c; isolation: isolate;
}
.fcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s var(--ease); }
.fcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 48%); transition: opacity .5s var(--ease); pointer-events: none; }
.fcard:hover img { transform: scale(1.05); opacity: .28; }
.fcard__name { position: absolute; z-index: 1; left: 18px; bottom: 16px; right: 72px; font-weight: 800; text-transform: uppercase; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.15; color: var(--white); }
.fcard__dash, .fcard__sub { font-weight: 600; text-transform: none; color: rgba(255, 255, 255, .75); }
.fcard__arrow {
  position: absolute; z-index: 1; right: 16px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--violet); color: var(--white); display: grid; place-items: center;
  transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease);
}
.fcard:hover .fcard__arrow { transform: scale(1) rotate(0); }
/* carte « Prochainement » : place réservée à un futur projet, sans image */
.fcard--soon {
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px 20px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(134, 4, 239, .28), rgba(134, 4, 239, 0) 60%), #0b0712;
  border: 1px solid rgba(255, 255, 255, .09); cursor: default;
}
.fcard--soon::after { display: none; }
.fcard--soon .fcard__soonstar { inset: auto; right: -8%; top: 50%; width: 46%; height: auto; transform: translateY(-50%) rotate(-12deg); opacity: .07; object-fit: contain; }
.fcard__soonnum { position: relative; font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.fcard__soontxt { position: relative; font-family: var(--font-cond); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3vw, 50px); line-height: .9; color: rgba(255, 255, 255, .9); }
.fcard__soontxt::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 14px; background: linear-gradient(90deg, #8f02ec, #620efb); }
/* le logo du projet qui suit la souris */
.pcursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: grid; place-items: center; }
.pcursor img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.pcursor span {
  font-weight: 800; text-transform: uppercase; font-size: 15px; white-space: nowrap;
  padding: .9em 1.4em; background: var(--violet); color: var(--white);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
@media (hover: none) {
  .fcard__arrow { transform: scale(1); }
  .pcursor { display: none; }
}
@media (max-width: 760px) {
  .fcard { --h: 280px; }
  .fcard__name { right: 16px; font-size: 14px; }
  .fcard__arrow { top: 14px; bottom: auto; right: 14px; width: 36px; height: 36px; }
}

/* =========================================================
   MOBILE : une seule échelle d'espacements, cohérente sur tout le site
   (avant : de 56 à 140 px selon les sections, en-têtes plein écran à moitié vides)
   - écart standard entre sections : 72 px ; sous la barre de nav : 120 px
   ========================================================= */
@media (max-width: 767px) {
  :root { --m-sec: 72px; --m-top: 120px; }

  /* en-têtes de page : plus de plein écran vide, le titre arrive plus vite */
  .phead { height: 64svh; min-height: 440px; padding-bottom: 40px; }
  .phead__star { width: 92vw; right: -30vw; margin-top: -60vw; }
  .phead__title { font-size: clamp(64px, 21vw, 110px); }

  /* à propos */
  .about { min-height: 0; padding: var(--m-sec) var(--pad); gap: 28px; }
  .about__block { margin-top: 28px; }
  .about__block .tag { font-size: 22px; }
  .about__block p { font-size: 18px; }
  .approach { padding: var(--m-sec) var(--pad); }
  .approach__tag { margin-bottom: 32px; }

  /* « page suivante » : un bloc compact, pas un écran vide */
  .next { min-height: 0; padding: 64px var(--pad); }
  .next .next__title { font-size: clamp(48px, 15vw, 72px); }
  .next .next__star { width: 72px; }

  /* « Créons ensemble » (accueil + contact) : à la hauteur du contenu, l'étoile reste sur la ligne */
  .contact { min-height: 0; padding: 88px var(--pad) var(--m-sec); }
  .contact--page { min-height: 0; padding-top: var(--m-top); }
  .contact__kicker { font-size: 17px; }
  .contact__title { font-size: clamp(46px, 14vw, 64px); line-height: .9; margin-bottom: 28px; }
  .contact__title > span { white-space: nowrap; }
  .contact__bolt { width: 150vw; left: -70vw; top: -20%; opacity: .9; }
  .tag--cta { font-size: 26px; }

  /* formulaire + réseaux */
  .cform { padding: var(--m-sec) var(--pad); row-gap: 36px; }
  .cform__form { gap: 26px; }
  .cform__label { margin-bottom: 14px; }
  .links { padding: 56px var(--pad) var(--m-sec); }
  .links__name { font-size: clamp(32px, 10vw, 44px); }

  /* projets à la une (accueil) */
  .feat { padding: var(--m-sec) 0 80px; }
  .feat__head { margin-bottom: 36px; gap: 12px; }
  .feat__title { font-size: clamp(40px, 12.5vw, 60px); text-wrap: balance; }
  .feat__rows, .feat__row { gap: 12px; }
  .fcard { --h: 260px; border-radius: 12px; }

  /* pages projet */
  .pj-info { padding-top: 64px; padding-bottom: 64px; }
  .pj-next { margin-top: 40px; height: 52svh; }
}
/* tablettes en portrait : pas d'écrans plein-hauteur à moitié vides */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .contact { min-height: 0; padding-top: 120px; padding-bottom: 110px; }
  .contact--page { min-height: 0; padding-top: 160px; }
  .phead { height: 62svh; min-height: 520px; }
  .about { min-height: 0; }
  .next { min-height: 46svh; }
  .fcard__name { right: 16px; font-size: 14px; }
}

/* =========================================================
   Accueil (05/12/2026) : bloc contact violet, présentation, services
   rythme des fonds : noir (projets) → blanc (présentation) → violet (logiciels) → noir (services) → blanc (contact) → noir (footer)
   ========================================================= */
/* « Créons ensemble » sur l'accueil : fond blanc, texte noir, étoile et bouton violets
   (se détache des services noirs au-dessus et du footer noir en dessous) */
.contact--light { background: var(--white); color: var(--black); }
.contact--light .contact__kicker { color: var(--violet); }
.contact--light .contact__bolt { opacity: .95; }

/* Présentation courte */
.hintro {
  position: relative; background: var(--white); color: var(--black);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(36px, 6vw, 110px);
  padding: clamp(100px, 11vw, 180px) var(--pad);
  overflow: hidden;
}
.hintro__visual { position: relative; }
.hintro__photo {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; background: #eee;
  clip-path: polygon(0 3%, 96% 0, 100% 94%, 4% 100%);
}
.hintro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hintro__star { position: absolute; z-index: 2; width: 38%; right: -12%; bottom: -8%; pointer-events: none; }
.hintro__tag { font-size: clamp(20px, 2vw, 32px); margin-bottom: clamp(22px, 2.6vw, 40px); }
.hintro__text { font-weight: 800; font-size: clamp(30px, 3.6vw, 62px); line-height: 1.04; letter-spacing: -.01em; }
.hintro__text em { font-style: normal; color: var(--violet); }
.hintro__text .w { display: inline-block; opacity: .18; will-change: opacity; }
.hintro__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 36px); margin-top: clamp(40px, 5vw, 80px); }
.hintro__facts li { border-top: 3px solid var(--black); padding-top: 14px; }
.hintro__label { display: block; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.hintro__value { display: block; font-weight: 800; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.2; }
.hintro__cta {
  display: inline-flex; gap: .5em; align-items: center; margin-top: clamp(36px, 4vw, 60px);
  font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.3vw, 20px);
  padding-bottom: 6px; border-bottom: 3px solid var(--violet); transition: color .4s, gap .4s var(--ease-out);
}
.hintro__cta:hover { color: var(--violet); gap: .9em; }

/* Ce que je fais */
.svc { position: relative; background: var(--black); color: var(--white); padding: clamp(100px, 11vw, 180px) var(--pad); }
.svc__title { font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 8vw, 140px); line-height: .88; margin-bottom: clamp(40px, 5vw, 80px); }
.svc__list { counter-reset: none; }
.svc__row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: clamp(50px, 6vw, 110px) minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center;
  gap: clamp(14px, 2vw, 36px);
  padding: clamp(22px, 2.6vw, 42px) clamp(0px, 1vw, 16px);
  border-bottom: 2px solid rgba(255, 255, 255, .16);
}
.svc__row:first-child { border-top: 2px solid rgba(255, 255, 255, .16); }
.svc__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc__row:hover::before { transform: scaleY(1); }
.svc__num { font-family: var(--font-cond); font-weight: 900; font-size: clamp(22px, 2vw, 34px); color: var(--violet-2); transition: color .4s; }
.svc__row:hover .svc__num { color: var(--black); }
.svc__name { font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.2vw, 72px); line-height: .92; transition: transform .6s var(--ease); }
.svc__row:hover .svc__name { transform: translateX(clamp(8px, 1.4vw, 24px)); }
.svc__text { font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.4; color: rgba(255, 255, 255, .7); max-width: 40ch; transition: color .4s; }
.svc__row:hover .svc__text { color: var(--white); }
.svc__star { width: clamp(28px, 2.6vw, 44px); height: auto; opacity: .25; transition: transform .7s var(--ease-out), opacity .4s; }
.svc__row:hover .svc__star { opacity: 1; transform: rotate(-20deg) scale(1.15); }

@media (max-width: 1000px) {
  .hintro { grid-template-columns: 1fr; }
  .hintro__visual { width: min(78%, 420px); }
  .svc__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .svc__text { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  .hintro { padding: var(--m-sec) var(--pad); gap: 40px; }
  .hintro__text { font-size: clamp(26px, 7.4vw, 34px); }
  .hintro__facts { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .svc { padding: var(--m-sec) var(--pad); }
  .svc__title { font-size: clamp(40px, 12.5vw, 60px); margin-bottom: 32px; }
  .svc__row { padding: 22px 0; gap: 8px 14px; }
  .svc__name { font-size: clamp(24px, 7vw, 34px); }
  .svc__text { font-size: 15px; }
  .svc__star { display: none; }
}

/* Logiciels : une seule grosse bande violette penchée, à cheval entre « Qui suis-je » (blanc) et les services (noir),
   deux lignes de logos qui défilent en sens opposés */
.tools { position: relative; z-index: 5; margin: -2.4vw 0; }
.tools__band {
  background: var(--grad); color: var(--white); overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
  padding: clamp(14px, 1.6vw, 24px) 0;
  display: grid; gap: clamp(10px, 1.2vw, 18px);
}
.tools__line { overflow: hidden; }
.tools__track { display: flex; width: max-content; will-change: transform; }
.tools__half { display: flex; align-items: center; }
.tools__item { display: inline-flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); padding-right: clamp(18px, 2vw, 34px); white-space: nowrap; }
.tools__logo { height: clamp(38px, 4vw, 64px); width: auto; flex: none; }
.tools__name { font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 4vw, 64px); line-height: 1; }
.tools__star { height: clamp(22px, 2.4vw, 38px); width: auto; margin-left: clamp(6px, 1vw, 16px); }
@media (max-width: 767px) {
  .tools { margin: -4vw 0; }
  .tools__band { transform: rotate(-3deg) scale(1.08); padding: 14px 0; gap: 10px; }
  .tools__logo { height: 34px; }
  .tools__name { font-size: 26px; }
  .tools__star { height: 18px; }
}

/* Lien « Aller au contenu » : invisible, apparaît au premier Tab (clavier, lecteurs d'écran) */
.skip { position: fixed; left: 16px; top: 12px; z-index: 2000; padding: 12px 18px; background: var(--white); color: var(--black); font-weight: 800; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip:focus { transform: none; }
