/* ==========================================================================
   Revo Studio — Portfolio
   Palette tirée du logo : violet Revo, ruban bordeaux → prune, crème.
   ========================================================================== */

:root {
  --ink: #0c0913;          /* fond principal, noir violacé */
  --night: #150d24;        /* surfaces sombres */
  --night-2: #1d1232;
  --violet: #4a1d9e;       /* violet Revo (fond des visuels de marque) */
  --violet-2: #6a2fd0;
  --plum: #8a35a3;         /* fin du ruban */
  --wine: #6b1e3a;         /* début du ruban */
  --orchid: #c46be0;       /* accent lumineux */
  --cream: #f4f0ea;        /* texte clair */
  --paper: #ece7f2;        /* fond clair des sections */
  --mute: #9a90ad;
  --line: rgba(244, 240, 234, .14);
  --line-dark: rgba(12, 9, 19, .14);

  --ribbon: linear-gradient(100deg, var(--wine) 0%, #7a2a6b 45%, var(--plum) 100%);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--violet-2); color: var(--cream); }

.container { padding-inline: var(--gutter); }
.serif { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 0; }
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Grain ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .06;
  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");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); }
  40% { transform: translate(3%,-6%); } 60% { transform: translate(-7%,2%); } 80% { transform: translate(4%,6%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--night);
  display: grid; place-items: center; color: var(--cream);
}
.preloader__word {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); display: flex; align-items: center; gap: 14px;
}
.preloader__word::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--orchid);
}
.preloader svg { position: absolute; left: 0; top: 100%; width: 100%; height: 22vh; fill: var(--night); }

/* ---------- Page transition ---------- */
.transition {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: var(--night); transform: translateY(100%);
  display: grid; place-items: center;
}
.transition__label { font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); display: flex; gap: 14px; align-items: center; }
.transition__label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--orchid); }

/* ---------- Header ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter);
}
.header--dark { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand img { width: 34px; height: 34px; }
/* les deux textes sont empilés dans la même case : la zone prend la largeur du plus long, rien n'est coupé */
.brand__text { display: inline-grid; overflow: hidden; white-space: nowrap; }
.brand__text span { grid-area: 1 / 1; display: inline-block; transition: transform .6s var(--ease-out); }
.brand__text .brand__swap { transform: translateY(110%); }
.brand:hover .brand__text span:first-child { transform: translateY(-110%); }
.brand:hover .brand__text .brand__swap { transform: translateY(0); }

.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: translateX(-50%) scale(1); }

/* Bouton menu flottant (apparaît au scroll) */
.menu-btn {
  position: fixed; top: 24px; right: var(--gutter); z-index: 60;
  width: 76px; height: 76px; border-radius: 50%; background: var(--violet);
  display: grid; place-items: center; transform: scale(0);
  box-shadow: 0 10px 40px rgba(74, 29, 158, .45);
}
.menu-btn__lines { width: 26px; height: 10px; position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--cream);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 100%; }
.menu-open .menu-btn__lines::before { top: 50%; transform: rotate(45deg); }
.menu-open .menu-btn__lines::after { top: 50%; transform: rotate(-45deg); }
.menu-open .menu-btn { background: var(--plum); }

/* Panneau menu */
.menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; width: min(520px, 100vw);
  background: var(--night); color: var(--cream); transform: translateX(calc(100% + 120px)); visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(100px, 14vh, 150px) clamp(32px, 6vw, 90px) 48px;
}
.menu__curve { position: absolute; top: 0; right: 100%; height: 100%; width: 100px; fill: var(--night); }
.menu__label { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 30px; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(42px, 6vw, 62px); line-height: 1.15;
  display: flex; align-items: center; gap: 22px;
}
.menu__links a::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg) scale(0);
  background: var(--orchid); transition: transform .4s var(--ease-out);
}
.menu__links a:hover::before, .menu__links a.is-active::before { transform: rotate(45deg) scale(1); }
.menu__socials { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.menu-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(12,9,19,.4); opacity: 0; pointer-events: none; transition: opacity .6s; }
.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }

/* ---------- Boutons ---------- */
.btn-round {
  position: relative; display: grid; place-items: center; border-radius: 50%;
  width: clamp(150px, 14vw, 190px); aspect-ratio: 1; background: var(--violet); color: var(--cream);
  overflow: hidden; font-size: 15px; isolation: isolate;
}
.btn-round--light { background: var(--cream); color: var(--ink); }
.btn-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 38px; border-radius: 999px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  font-size: 15px;
}
.btn-pill--dark { border-color: var(--line-dark); }
.btn-fill {
  position: absolute; left: -10%; width: 120%; height: 160%; top: 100%; border-radius: 50%;
  background: var(--violet-2); z-index: -1; transition: top .6s var(--ease);
}
.btn-round:hover .btn-fill, .btn-pill:hover .btn-fill, .btn-pill.is-active .btn-fill { top: -30%; }
.btn-pill:hover, .btn-pill.is-active { color: var(--cream); border-color: transparent; }
.btn-pill sup { font-size: 10px; opacity: .6; margin-left: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 38%, #8b5a98 0%, transparent 70%),
    radial-gradient(70% 60% at 85% 95%, rgba(107,30,58,.75) 0%, transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgba(74,29,158,.8) 0%, transparent 70%),
    #6e4380;
}
.hero__portrait {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  /* Visuel détouré (cercle violet + portrait) : seul le bas est fondu, sous le texte défilant */
  height: 90%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}
.hero__badge {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 28px; padding: 22px 22px 22px 34px;
  background: var(--ink); border-radius: 0 999px 999px 0; font-size: 15px; line-height: 1.3;
}
.hero__globe {
  width: 62px; height: 62px; border-radius: 50%; background: var(--violet); display: grid; place-items: center;
}
.hero__globe svg { width: 30px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__role {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25;
}
.hero__role svg { width: 18px; margin-bottom: 40px; transform: rotate(45deg); }
.hero__marquee {
  position: absolute; left: 0; bottom: 3vh; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 600; font-variation-settings: "SOFT" 100;
  font-size: clamp(110px, 17vw, 260px); line-height: 1; color: var(--cream);
}
.hero__marquee-track { display: flex; will-change: transform; }
.hero__marquee-track span { padding-right: .35em; display: flex; align-items: center; gap: .35em; }
.hero__marquee-track span::after {
  content: ""; width: .18em; height: .18em; border-radius: .04em; transform: rotate(45deg); background: currentColor;
}

/* ---------- Intro ---------- */
.intro {
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(100px, 16vh, 200px) var(--gutter) clamp(120px, 18vh, 220px);
}
.intro__grid { display: grid; grid-template-columns: 1fr 1fr 260px; gap: clamp(24px, 4vw, 70px); max-width: 1400px; margin: 0 auto; }
.intro__statement { grid-column: 1 / 3; font-size: clamp(26px, 3vw, 44px); line-height: 1.25; letter-spacing: -.01em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.intro__statement em { font-family: var(--serif); font-style: italic; color: var(--violet); }
.intro__side { font-size: 16px; color: #3e3650; }
.intro__btn { position: absolute; right: calc(var(--gutter) + 12%); bottom: -80px; z-index: 5; }

/* ---------- Liste projets (style Dennis) ---------- */
.work { background: var(--paper); color: var(--ink); padding: clamp(80px, 12vh, 140px) 0 clamp(80px, 12vh, 160px); }
.work__head { display: flex; justify-content: space-between; align-items: end; max-width: 1400px; margin: 0 auto 40px; }
.work__list { max-width: 1400px; margin: 0 auto; border-bottom: 1px solid var(--line-dark); }
.work__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  padding: clamp(36px, 6vh, 64px) clamp(0px, 5vw, 80px); border-top: 1px solid var(--line-dark);
  transition: opacity .4s, padding .5s var(--ease-out);
}
.work__row h3 {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 92px); line-height: 1;
  letter-spacing: -.02em; transition: transform .5s var(--ease-out);
}
.work__row p { margin: 0; font-size: 15px; text-align: right; }
.work__row small { display: block; color: #6b6280; font-size: 13px; }
.work__list:hover .work__row { opacity: .35; }
.work__list:hover .work__row:hover { opacity: 1; }
.work__row:hover h3 { transform: translateX(-14px); }
.work__more { display: flex; justify-content: center; margin-top: 70px; }

/* Aperçu flottant qui suit le curseur */
.preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 400px; height: 340px; pointer-events: none;
  transform: translate(-50%, -50%) scale(0); overflow: hidden; border-radius: 4px;
}
.preview__slider { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: transform .6s var(--ease); }
.preview__slide { height: 100%; display: grid; place-items: center; padding: 36px; }
.preview__slide img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.preview__cursor, .preview__label {
  position: fixed; left: 0; top: 0; z-index: 31; pointer-events: none; transform: translate(-50%, -50%) scale(0);
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
}
.preview__cursor { background: var(--violet-2); }
.preview__label { background: transparent; color: var(--cream); }

/* ---------- Bandes d'images qui glissent ---------- */
.strips { background: var(--paper); padding: 40px 0 0; overflow: hidden; position: relative; }
.strip { display: flex; gap: 2vw; width: 124vw; margin-left: -12vw; margin-bottom: 2vw; will-change: transform; }
.strip__item {
  flex: 1; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; display: grid; place-items: center;
}
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
.strip__item--contain img { object-fit: contain; padding: 8%; }
.strips__curve { position: relative; height: 16vh; background: var(--paper); }
.strips__curve > div {
  position: absolute; left: -10%; width: 120%; height: 100%; background: var(--paper);
  border-radius: 0 0 50% 50%; box-shadow: 0 60px 50px rgba(0,0,0,.18);
}

/* ---------- Univers (3 catégories) ---------- */
.universes { padding: clamp(110px, 18vh, 220px) var(--gutter) clamp(80px, 12vh, 160px); position: relative; }
.universes__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 40% at 20% 30%, rgba(74,29,158,.35), transparent 70%),
              radial-gradient(35% 35% at 85% 70%, rgba(138,53,163,.25), transparent 70%);
}
.universes__head { max-width: 1400px; margin: 0 auto 60px; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; position: relative; }
.universes__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.02em; }
.universes__head p { max-width: 380px; color: var(--mute); margin: 0; }
.universes__grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); position: relative; }
.universe {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--night-2); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  isolation: isolate; border: 1px solid var(--line);
}
.universe__img { position: absolute; inset: 0; z-index: -2; }
.universe__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.universe::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,9,19,.92) 8%, rgba(12,9,19,.1) 60%); }
.universe:hover .universe__img img { transform: scale(1); }
.universe__count { position: absolute; top: 24px; left: 28px; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(12,9,19,.6); backdrop-filter: blur(8px); }
.universe h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.universe p { margin: 0; color: #cfc6dc; font-size: 15px; }
.universe__arrow {
  position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--ink);
  display: grid; place-items: center; transform: rotate(-45deg) scale(.8); opacity: 0; transition: .5s var(--ease-out);
}
.universe:hover .universe__arrow { opacity: 1; transform: rotate(0) scale(1); }

/* ---------- Services ---------- */
.services { padding: clamp(60px, 10vh, 120px) var(--gutter); }
.services__inner { max-width: 1400px; margin: 0 auto; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: 40px; }
.service { border-top: 1px solid var(--line); padding-top: 26px; }
.service span { color: var(--mute); font-size: 13px; }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 18px 0 10px; }
.service p { color: #c9c0d6; margin: 0; }
.service--link { display: block; padding-bottom: 26px; transition: border-color .5s; }
.service--link h3 { transition: color .4s, transform .5s var(--ease-out); }
.service--link:hover { border-color: var(--orchid); }
.service--link:hover h3 { color: var(--orchid); transform: translateX(8px); }

/* Pastilles compactes (filtres par type, tags projet) */
.btn-pill--sm { padding: 11px 20px; font-size: 13.5px; }
.filters--types { margin-top: 26px; align-items: center; justify-content: flex-start; gap: 18px; }
.filters--types .eyebrow { flex-basis: 100%; }
.filters__empty { max-width: 1400px; margin: 60px auto 0; padding: 0 var(--gutter); color: var(--mute); }
.project-types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; background: var(--night); overflow: hidden;
  padding: clamp(110px, 18vh, 200px) var(--gutter) 28px;
}
.footer__glow {
  position: absolute; inset: auto -10% -40% -10%; height: 90%; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 100%, rgba(107,30,58,.7), transparent 70%),
              radial-gradient(45% 60% at 75% 100%, rgba(106,47,208,.55), transparent 70%);
}
.footer__inner { max-width: 1300px; margin: 0 auto; position: relative; }
.footer__title {
  display: flex; align-items: center; gap: 24px; margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(52px, 8vw, 128px); line-height: 1; letter-spacing: -.02em;
}
.footer__title img { width: clamp(64px, 7vw, 110px); height: clamp(64px, 7vw, 110px); border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--violet); }
.footer__rule { position: relative; border-top: 1px solid var(--line); margin: clamp(60px, 10vh, 110px) 0 50px; }
.footer__rule .btn-round { position: absolute; right: 10%; top: 0; transform: translateY(-50%); }
.footer__pills { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 30px;
  margin-top: clamp(80px, 14vh, 160px); font-size: 14px; position: relative;
}
.footer__bottom .eyebrow { display: block; margin-bottom: 10px; font-size: 11px; }
.footer__meta { display: flex; gap: 40px; }
.footer__socials { display: flex; gap: 26px; }
.footer__socials a { position: relative; }
.footer__socials a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.footer__socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Page header (pages internes) ---------- */
.page-head { padding: clamp(160px, 26vh, 260px) var(--gutter) clamp(50px, 8vh, 90px); max-width: 1400px; margin: 0 auto; position: relative; }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 9vw, 140px); line-height: .98; letter-spacing: -.03em; }
.page-head h1 em { color: var(--orchid); }
.page-glow { position: absolute; inset: 0 0 auto 0; height: 80vh; pointer-events: none; background: radial-gradient(50% 60% at 80% 0%, rgba(106,47,208,.35), transparent 70%), radial-gradient(40% 50% at 10% 10%, rgba(107,30,58,.35), transparent 70%); }

/* ---------- Work page ---------- */
.filters { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.filters__group { display: flex; gap: 12px; flex-wrap: wrap; }
.filters .btn-pill { padding: 16px 28px; }
.view-toggle .btn-pill { width: 58px; height: 58px; padding: 0; }
.view-toggle svg { width: 18px; }

.grid { max-width: 1400px; margin: 60px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 5vw, 80px) clamp(20px, 3vw, 50px); }
.card { display: block; }
.card__media { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.card__media--contain img { object-fit: contain; padding: 9%; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.card__body h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
.card__body span { color: var(--mute); font-size: 14px; text-align: right; }
.card__tag { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--mute); }
.grid.is-list { grid-template-columns: 1fr; gap: 0; }
.grid.is-list .card { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding: 22px 0; }
.grid.is-list .card__media { aspect-ratio: 4 / 3; }
.grid.is-list .card__body { border: 0; padding: 0; }
.card.is-hidden { display: none !important; }

/* ---------- Page projet ---------- */
.project-hero { padding: clamp(150px, 24vh, 240px) var(--gutter) 0; max-width: 1400px; margin: 0 auto; position: relative; }
.project-hero__tag { display: inline-flex; gap: 10px; align-items: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.project-hero__tag i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--orchid); }
.project-hero h1 { margin: 28px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 10vw, 156px); line-height: .95; letter-spacing: -.03em; }
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: clamp(50px, 8vh, 90px); }
.project-meta div { border-top: 1px solid var(--line); padding-top: 18px; }
.project-meta dt { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
.project-meta dd { margin: 0; font-size: 16px; }
.project-cover { margin: clamp(50px, 8vh, 90px) auto 0; max-width: 1400px; padding: 0 var(--gutter); }
.project-cover__frame { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.project-cover__frame img { width: 100%; height: 100%; object-fit: cover; }
.project-cover__frame.is-contain img { object-fit: contain; padding: 4%; }
.project-text { max-width: 1400px; margin: clamp(70px, 12vh, 140px) auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.project-text h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; }
.project-text p { margin: 0 0 1em; font-size: clamp(17px, 1.4vw, 20px); color: #d4cce0; }
.gallery { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; }
.gallery figure.is-wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; }
.gallery video { width: 100%; height: auto; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.next-project { margin-top: clamp(100px, 16vh, 200px); border-top: 1px solid var(--line); padding: clamp(70px, 12vh, 140px) var(--gutter); text-align: center; position: relative; overflow: hidden; display: block; }
.next-project .eyebrow { display: block; margin-bottom: 20px; }
.next-project strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 10vw, 150px); line-height: 1; letter-spacing: -.03em; transition: color .5s; }
.next-project:hover strong { color: var(--orchid); }

/* ---------- About ---------- */
.about-intro { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.about-intro__photo { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: #6e4380; }
.about-intro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-intro__text p { font-size: clamp(18px, 1.5vw, 22px); color: #d4cce0; }
.about-intro__text p:first-child { font-size: clamp(24px, 2.3vw, 34px); color: var(--cream); line-height: 1.3; }
.about-ribbon { max-width: 1400px; margin: clamp(80px, 14vh, 160px) auto 0; padding: 0 var(--gutter); }
.about-ribbon img { width: 100%; border-radius: 10px; }
.process { max-width: 1400px; margin: clamp(80px, 14vh, 160px) auto 0; padding: 0 var(--gutter); }
.process h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 72px); margin: 0 0 40px; }

/* ---------- Contact ---------- */
.contact { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter) 60px; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 8vw, 120px); }
.form__row { display: grid; grid-template-columns: 40px 1fr; gap: 20px; border-top: 1px solid var(--line); padding: 40px 0 34px; }
.form__row span { color: var(--mute); font-size: 13px; padding-top: 4px; }
.form__row label { display: block; font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 14px; }
.form__row input, .form__row textarea {
  width: 100%; background: transparent; border: 0; outline: 0; color: var(--cream); font: inherit; font-size: 18px; resize: vertical;
}
.form__row input::placeholder, .form__row textarea::placeholder { color: #5f5672; }
.form__submit { position: relative; border-top: 1px solid var(--line); height: 1px; margin-top: 40px; }
.form__submit .btn-round { position: absolute; right: 10%; top: 0; transform: translateY(-50%); }
.contact__side dl { margin: 0; }
.contact__side dt { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; }
.contact__side dd { margin: 0 0 40px; font-size: 17px; }
.contact__side img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--violet); margin-bottom: 40px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__statement { grid-column: auto; }
  .intro__btn { right: var(--gutter); }
  .universes__grid { grid-template-columns: 1fr 1fr; }
  .universes__grid .universe:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .services__grid { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-text { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .preview, .preview__cursor, .preview__label { display: none; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  /* Tablette : le titre de rôle passe au-dessus du visuel pour ne pas couvrir le visage */
  .hero__role { top: 110px; transform: none; }
  .hero__role svg { display: none; }
  .hero__portrait { height: 84%; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { transform: scale(1); width: 60px; height: 60px; top: 18px; }
  .header { padding-top: 22px; }
  .hero__badge { top: auto; bottom: 26vh; transform: none; padding: 14px 14px 14px 20px; gap: 16px; font-size: 13px; }
  .hero__globe { width: 46px; height: 46px; }
  .hero__role { top: 92px; left: var(--gutter); right: auto; transform: none; font-size: 17px; }
  .hero__role svg { display: none; }
  .hero__portrait { height: 74%; transform: translateX(-64%); } /* recentre le visage (à droite dans l'image) */
  .intro__btn { position: relative; right: auto; bottom: auto; margin-top: 50px; }
  .work__row { grid-template-columns: 1fr; padding-inline: 0; }
  .work__row p { text-align: left; }
  .strip { width: 160vw; margin-left: -30vw; }
  .universes__grid { grid-template-columns: 1fr; }
  .universes__grid .universe:last-child { aspect-ratio: 3 / 4; }
  .universe { aspect-ratio: 4 / 5; }
  .grid { grid-template-columns: 1fr; }
  .grid.is-list .card { grid-template-columns: 96px 1fr; gap: 16px; }
  .gallery, .gallery--3 { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr; gap: 0; }
  .project-meta div { padding-bottom: 18px; }
  .about-intro { grid-template-columns: 1fr; }
  .footer__title { flex-direction: column; align-items: flex-start; }
  .footer__rule .btn-round, .form__submit .btn-round { right: 0; }
  .footer__meta { gap: 24px; }
  .btn-pill { padding: 18px 26px; }
  .card__body { flex-direction: column; gap: 6px; }
  .card__body span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Bannière : variante photo plein écran ---------- */
.hero__portrait.hero__portrait--cover {
  /* cadrage casquette -> taille : le logo intégré à la photo passe sous le bord de l'écran */
  left: 0; top: -3%; bottom: auto; transform: none;
  width: 100%; height: 176%; max-width: none;
  object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: none; mask-image: none;
}
.hero:has(.hero__portrait--cover) { background: #2a1036; }

/* ---------- Accueil : filtres de la liste « Travaux effectués » ---------- */
.work__head { flex-wrap: wrap; gap: 22px; align-items: center; }
.work__filters { display: flex; flex-wrap: wrap; gap: 10px; }
.work__filters .btn-pill { color: var(--ink); }
.work__filters .btn-pill.is-active { color: var(--cream); }

/* ---------- Bandeau clients (défilement continu) ---------- */
.clients { padding: clamp(70px, 11vh, 120px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.clients__title { text-align: center; margin: 0 0 44px; }
.clients__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.clients__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; animation: clients 60s linear infinite; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
@keyframes clients { to { transform: translateX(calc(-50% - clamp(48px, 6vw, 96px) / 2)); } }
.clients__item { flex: none; display: flex; align-items: center; height: 56px; opacity: .72; transition: opacity .3s; }
.clients__item:hover { opacity: 1; }
.clients__item img { height: 100%; width: auto; filter: brightness(0) invert(1); }
.clients__item--name { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); color: var(--cream); white-space: nowrap; }

/* ---------- Avis clients ---------- */
.reviews { padding: clamp(80px, 12vh, 140px) var(--gutter); }
.reviews__inner { max-width: 1400px; margin: 0 auto; }
.reviews__title { margin: 0 0 50px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.reviews__title em { color: var(--orchid); }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.review { margin: 0; padding: 32px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.review blockquote { margin: 0; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: #e4dcef; }
.review figcaption { display: grid; gap: 4px; font-size: 14px; }
.review figcaption strong { font-size: 16px; color: var(--cream); }
.review figcaption span { color: var(--mute); }
.review figcaption a { color: var(--orchid); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { .clients__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* ---------- Bannière : motion design simulé (buste) ---------- */
.hero:has(.hero__motion) { background: #3b0752; }
.hero__portrait.hero__motion {
  left: 0; top: -5%; bottom: auto; transform: none;
  width: 100%; height: 112%; max-width: none; overflow: hidden;
  -webkit-mask-image: none; mask-image: none;
}
.hero__motion img, .hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__motion img { object-fit: cover; object-position: 62% 30%; will-change: opacity, transform; }
/* Cycle de 12 s : face (0-5 s) -> bascule -> dos (6,5-11 s) -> bascule -> retour à la face, sans coupure */
.hero__motion-a { animation: bustA 12s ease-in-out infinite; }
.hero__motion-b { animation: bustB 12s ease-in-out infinite; opacity: 0; }
@keyframes bustA {
  0%   { opacity: 1; transform: translateX(1.5%) scale(1.04); }
  42%  { opacity: 1; transform: translateX(-1%) scale(1.07); }
  54%  { opacity: 0; transform: translateX(-4%) scale(1.08); }
  92%  { opacity: 0; transform: translateX(4%) scale(1.03); }
  100% { opacity: 1; transform: translateX(1.5%) scale(1.04); }
}
@keyframes bustB {
  0%, 42% { opacity: 0; transform: translateX(4%) scale(1.03); }
  54%  { opacity: 1; transform: translateX(1.5%) scale(1.04); }
  92%  { opacity: 1; transform: translateX(-1%) scale(1.07); }
  100% { opacity: 0; transform: translateX(-4%) scale(1.08); }
}
/* voile bas : lisibilité du texte défilant sur la pierre claire */
.hero__motion::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(to top, rgba(30, 4, 46, .78) 8%, rgba(30, 4, 46, 0));
}
@media (prefers-reduced-motion: reduce) {
  .hero__motion-a { animation: none; opacity: 1; }
  .hero__motion-b, .hero__dust { display: none; }
}
@media (min-width: 1101px) {
  /* grands écrans : buste décalé à gauche pour laisser respirer « Graphiste & Designer » à droite */
  .hero__portrait.hero__motion { left: -8%; width: 108%; }
}
@media (max-width: 720px) {
  /* mobile : buste posé sur les 2/3 bas, fondu vers le violet en haut (titre et logo lisibles) */
  .hero__portrait.hero__motion {
    top: auto; bottom: 0; height: 66%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  }
  .hero__motion img { object-position: 58% 35%; }
}

/* ---------- Bannière : vidéo 360° du buste ---------- */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 720px) { .hero__video { object-position: 52% 35%; } }
/* vidéo : pas de décalage, cadrage moins serré ; le sujet passe un peu à gauche pour dégager « Graphiste & Designer » */
.hero__portrait.hero__motion:has(.hero__video) { left: 0; width: 100%; top: -3%; height: 106%; }
@media (min-width: 721px) { .hero__video { object-position: 85% 30%; } }
@media (max-width: 720px) {
  .hero__portrait.hero__motion:has(.hero__video) { top: auto; bottom: 0; height: 66%; }
}
/* rotation pilotée par le scroll : canvas par-dessus l'image d'attente */
.hero__spin { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__spin-poster { transition: opacity .6s ease; }

/* ---------- Bannière : faire tourner le buste au glisser ---------- */
.hero:has(.hero__spinvid) { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero.is-dragging { cursor: grabbing; }


/* ---------- « Travaillons ensemble » : logo rond ---------- */
.footer__title img.footer__logo {
  width: clamp(110px, 12vw, 190px); height: clamp(110px, 12vw, 190px);
  object-fit: contain; object-position: center; background: none; border-radius: 50%;
  box-shadow: 0 18px 50px rgba(74, 29, 158, .45);
}

/* ---------- Réseaux : icône + nom ---------- */
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-icon { width: 18px; height: 18px; flex: none; }
.menu__socials .social-icon { width: 20px; height: 20px; }

/* ---------- Page Studio : photo de l'espace de travail ---------- */
.about-intro__photo img.about-intro__studio { object-position: 45% 55%; }
/* photo Studio : cadre aux proportions exactes de l'image (1100 x 1847) -> fauteuil entier, rien n'est rogné */
.about-intro__photo:has(.about-intro__studio) { aspect-ratio: 1100 / 1847; }
.about-intro__photo img.about-intro__studio { object-position: center; }

/* ---------- Trois univers : cartes 3:4 sur tous les écrans (images 1200 x 1600 affichées entières) ---------- */
.universe__img img { transform: none; }
.universe:hover .universe__img img { transform: scale(1.04); }
@media (max-width: 1024px) {
  .universes__grid { grid-template-columns: repeat(3, 1fr); }
  .universes__grid .universe:last-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .universe { padding: 20px; border-radius: 18px; }
  .universe h3 { font-size: clamp(20px, 2.8vw, 30px); }
  .universe p { font-size: 13px; }
  .universe__count { top: 16px; left: 18px; }
}
@media (max-width: 720px) {
  .universes__grid { grid-template-columns: 1fr; }
  .universe, .universes__grid .universe:last-child { aspect-ratio: 3 / 4; }
  .universe { padding: 26px; }
  .universe h3 { font-size: 32px; }
  .universe p { font-size: 15px; }
}

/* ---------- Page projet : liens externes (prototype Figma, site en ligne) ---------- */
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gallery figure.is-tall { max-height: 1400px; overflow: hidden; position: relative; }
.gallery figure.is-tall::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to top, var(--ink), transparent); }

/* Icônes des types de création */
.ti { width: 1.15em; height: 1.15em; flex: none; }
.btn-pill .ti { margin-left: -4px; }
.service h3 { display: flex; align-items: center; gap: 14px; }
.service h3 .ti { width: 30px; height: 30px; color: var(--orchid); stroke-width: 1.3; }
/* Bouton « voir le site / prototype » mis en évidence */
.project-links { margin-top: 22px; }
.btn-pill--cta { padding: 18px 30px; font-weight: 600; }
.btn-pill--cta b { font-weight: 600; transition: transform .4s var(--ease-out); }
.btn-pill--cta:hover b { transform: translate(3px, -3px); }

/* Flipbook Heyzine intégré dans la page projet */
.flipbook { max-width: 1400px; margin: 0 auto 80px; padding: 0 var(--gutter); }
.flipbook__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.flipbook__head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 40px); }
.flipbook__head h2 .ti { width: 34px; height: 34px; color: var(--orchid); stroke-width: 1.3; }
.flipbook__frame { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #1a1424; border: 1px solid var(--line); }
.flipbook__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .flipbook__frame { aspect-ratio: 3 / 4; } }
.flipbook__head h2 small { display: block; font-family: var(--sans, inherit); font-size: 14px; color: var(--mute); margin-top: 4px; }
.clients__item--tall { height: 84px; }
/* Vidéos (fichier ou YouTube) dans la page projet */
.media-frame { aspect-ratio: 16 / 9; background: #000; }
.media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.media-frame--vertical { aspect-ratio: 9 / 16; max-height: 86vh; margin: 0 auto; }
@media (max-width: 700px) { .media-frame { aspect-ratio: 16 / 9; } .media-frame--vertical { aspect-ratio: 9 / 16; } }
.media-frame.is-loading::after { content: "Chargement de la vidéo…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); background: rgba(12, 9, 19, .55); font-size: 15px; pointer-events: none; }
