/* ==========================================
   1. Fonts
========================================== */
@font-face {
  font-family: 'PPMori';
  src: url('PPMori-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'PPMori';
  src: url('PPMori-ExtralightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: 'PPMori';
  src: url('PPMori-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'PPMori';
  src: url('PPMori-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'PPMori';
  src: url('PPMori-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'PPMori';
  src: url('PPMori-SemiboldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
}

/* ==========================================
   2. Variables & Reset
========================================== */
:root {
  --yellow: #f6ff90;
  --cream: #f4f2d7;
  --black: #000000;
  --white: #ffffff;
  --font: 'PPMori', sans-serif;
  --pad: 4vw;
  --header-h: calc(28px + 5.5vw + 32px);
}

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

html {
  font-family: var(--font);
  background: var(--black);
  overflow: hidden;
}

body {
  overflow: hidden;
  height: 100vh;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   3. Custom Cursor
========================================== */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#cursor-dot {
  width: 7px;
  height: 7px;
  background: white;
  mix-blend-mode: difference;
  transition: transform 0.15s ease;
}

body:has(a:hover) #cursor-dot,
body:has(.proj-item:hover) #cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

/* ==========================================
   4. Loader
========================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  padding: 28px var(--pad);
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Conteneur flex-colonne des bandes */
#loader-bands {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

#loader-band-top,
#loader-band-mid,
#loader-band-bot {
  flex-basis: 0;
  flex-shrink: 0;
  width: 100%;
  transition: background-color 0.55s ease,
              flex-grow     0.5s  cubic-bezier(0.16, 1, 0.3, 1);
}

#loader-band-top { flex-grow: 38; background: var(--yellow); }
#loader-band-mid { flex-grow: 24; background: var(--yellow); }
#loader-band-bot { flex-grow: 38; background: var(--yellow); }

#loader-percent {
  position: relative;
  z-index: 1;
  font-size: clamp(72px, 15vw, 220px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.82;
  color: white;
  mix-blend-mode: difference;
  will-change: transform;
}

#loader.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================
   5. Transitions — Fade classique
========================================== */

.page-exiting {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.35s ease, transform 0.35s ease !important;
  pointer-events: none;
}

/* ==========================================
   6. Site Container
========================================== */
#site {
  position: fixed;
  inset: 0;
  transition: opacity 0.6s ease;
}

#site.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================
   7. Header
========================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px var(--pad);
  mix-blend-mode: difference;
  color: white;
  pointer-events: none;
}

#header a {
  pointer-events: auto;
  color: white;
}

/* Header sur pages projet — fond blanc, texte lisible */
#header.is-proj {
  mix-blend-mode: normal;
  color: var(--black);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px var(--pad);
  transition: background 0.3s ease;
}

#header.is-proj a { color: var(--black); }

/* Header sur Say Hello — bandeau jaune */
#header.is-hello {
  mix-blend-mode: normal;
  color: var(--black);
  background: var(--yellow);
  padding: 18px var(--pad);
}

#header.is-hello a { color: var(--black); }

.logo {
  font-size: clamp(30px, 5.35vw, 77px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.6;
}

#main-nav {
  text-align: right;
}

#main-nav a {
  display: block;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.05;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

#main-nav a.is-active,
#main-nav a:hover {
  opacity: 1;
}

/* ==========================================
   8. Pages (common)
========================================== */
.page {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.01s;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-bottom: 320px;
}

.page::-webkit-scrollbar { width: 0; }

.page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page--yellow {
  background: var(--yellow);
}

/* ==========================================
   9. Footer global
========================================== */
.gf {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: var(--black);
  color: var(--white);
  padding: 5vw var(--pad) 2vw;
}

.gf-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.gf.is-visible .gf-inner {
  opacity: 1;
  transform: translateY(0);
}

.gf-inner {
  display: flex;
  flex-direction: column;
  gap: 1.8vw;
}

.gf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2vw;
}

.gf-brand {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.gf-cols {
  display: flex;
  gap: clamp(16px, 2.5vw, 40px);
  flex: 1;
}

.gf-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gf-col-head {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 3px;
}

.gf-link {
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.35;
  display: block;
  transition: color 0.25s ease;
}

.gf-link:hover { color: var(--white); }

.gf-socials {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  align-items: center;
}

.gf-ig {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.25s ease;
}

.gf-ig:hover { color: var(--white); }

.gf-ig svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gf-ig span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gf-bottom {
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.2vw;
}

/* ==========================================
   10. Home
========================================== */
.hero {
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 1.5vw var(--pad);
  padding-top: var(--header-h);
}

.hero-img-wrap {
  position: relative;
  width: 84%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-img-wrap:hover .hero-img {
  transform: scale(1.03);
}

.hero-float {
  position: absolute;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(11px, 0.83vw, 13px);
  font-weight: 400;
  line-height: 1.1;
  z-index: 2;
  pointer-events: none;
}

.hero-float--tl {
  top: 6%;
  left: 5%;
}

.hero-float--br {
  bottom: 6%;
  right: 5%;
  text-align: right;
}

/* ==========================================
   11. Work & Photo (Gallery)
========================================== */
.gallery {
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 1.5vw var(--pad);
  padding-top: var(--header-h);
}

.gallery-img-wrap {
  width: 84%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.gallery-img.is-fading {
  opacity: 0;
  transform: scale(0.97);
}

.gallery-img-wrap:hover .gallery-img:not(.is-fading) {
  transform: scale(1.025);
}

.proj-list {
  position: absolute;
  left: var(--pad);
  bottom: 52px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proj-item {
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.18);
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.35s ease, font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.proj-item.is-active {
  font-size: clamp(28px, 2.5vw, 36px);
  color: var(--black);
}

.proj-item:hover:not(.is-active) {
  color: rgba(0, 0, 0, 0.45);
}

/* ==========================================
   11b. Work Roulette
========================================== */
.proj-roulette {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) - 50px);
  height: 220px;
  width: calc(16% - var(--pad));
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 28%,
    black 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 28%,
    black 72%,
    transparent 100%
  );
}

.proj-roulette-track {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.proj-roulette-item {
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.15);
  line-height: 1.05;
  padding: 2px 0;
  cursor: pointer;
  user-select: none;
  transition: font-size 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease,
              color 0.5s ease;
}

.proj-roulette-item.is-active {
  font-size: clamp(22px, 1.9vw, 28px);
  color: var(--black);
  opacity: 1;
}

/* ==========================================
   11c. Photo — liste typographique éditoriale
========================================== */
.photo-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2vw) var(--pad) 5vw;
}

.photo-list-item {
  cursor: pointer;
  padding: 0.08em 0;
  text-align: center;
}

.photo-list-name {
  display: block;
  font-size: clamp(52px, 9.5vw, 142px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--black);
  transition: opacity 0.4s ease;
  user-select: none;
}

.photo-list-item.is-hovered .photo-list-name {
  opacity: 0.1;
}

/* Image flottante au hover */
.photo-hover-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 23vw, 360px);
  aspect-ratio: 2 / 3;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  scale: 0.94;
  transition: opacity 0.35s ease,
              scale 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.photo-hover-wrap.is-visible {
  opacity: 1;
  scale: 1;
}

#photo-hover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* anim-ready */
.anim-ready .photo-list-item:nth-child(1) { animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.04s; }
.anim-ready .photo-list-item:nth-child(2) { animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.11s; }
.anim-ready .photo-list-item:nth-child(3) { animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both 0.18s; }

/* ==========================================
   12. Say Hello
========================================== */
.hello-top {
  min-height: 100vh;
  flex-shrink: 0;
  padding: var(--pad);
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  background: var(--yellow);
}

.hello-title {
  font-size: clamp(28px, 3.35vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
}

.hello-contacts {
  display: flex;
  gap: clamp(40px, 8vw, 120px);
  padding-bottom: 80px;
  padding-top: 60px;
}

.hello-col-label {
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
}

.hello-col a {
  display: block;
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 200;
  color: var(--black);
  line-height: 2.1;
  transition: opacity 0.3s ease;
}

.hello-col a:hover {
  opacity: 0.45;
}

.hello-img-wrap {
  width: 100%;
  height: 55vh;
  flex-shrink: 0;
  overflow: hidden;
}

.hello-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform: translateY(0);
}

/* ==========================================
   14. Scroll indicator (Home)
========================================== */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================
   15. Reveal animations (JS via .anim-ready)
========================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-ready .hero-img-wrap,
.anim-ready .gallery-img-wrap,
.anim-ready .proj-hero {
  animation: fadeIn 0.6s ease both;
}

.anim-ready .proj-roulette,
.anim-ready .proj-list {
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s;
}

.anim-ready .hello-title {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both 0.05s;
}

.anim-ready .hello-contacts {
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both 0.18s;
}

.anim-ready .proj-title-block {
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both 0.14s;
}

.anim-ready .proj-back {
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both 0.04s;
}

/* ==========================================
   16. Ringer Projet page
========================================== */
.proj-page {
  flex: 1;
  padding-top: var(--header-h);
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  color: var(--black);
  cursor: pointer;
  padding: var(--pad);
  padding-top: 28px;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.proj-back:hover {
  opacity: 1;
}

.proj-hero {
  width: 100%;
  padding: 0 var(--pad);
  overflow: hidden;
}

.proj-hero-img {
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-hero:hover .proj-hero-img {
  transform: scale(1.02);
}

.proj-title-block {
  padding: 60px var(--pad) 48px;
}

.proj-title {
  font-size: clamp(40px, 5.35vw, 77px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.proj-meta {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.proj-wide {
  width: 100%;
  padding: 0 var(--pad);
  overflow: hidden;
  margin-bottom: 4vw;
}

.proj-wide-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-wide:hover .proj-wide-img {
  transform: scale(1.02);
}

.proj-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad);
  padding: 0 var(--pad);
  margin-bottom: 6vw;
}

.proj-duo-img-wrap {
  overflow: hidden;
}

.proj-duo-img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.proj-duo-img-wrap:hover .proj-duo-img {
  transform: scale(1.03);
}

/* ==========================================
   17. Matière Créative — page éditoriale
========================================== */

/* Lang toggle */
.mc-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mc-lang-sep {
  font-size: 11px;
  opacity: 0.25;
}

.mc-lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--black);
  opacity: 0.28;
  padding: 0;
  transition: opacity 0.25s ease;
}

.mc-lang-btn.is-active { opacity: 1; }
.mc-lang-btn:hover     { opacity: 0.65; }

/* Versions FR / EN */
.mc-v[data-version] { display: none; }
.mc-v.is-shown      { display: block; }
blockquote.mc-v.is-shown { display: block; }
div.mc-v.is-shown   { display: block; }

/* ── Layout principal ────────────────────── */
.mc-proj-layout {
  display: flex;
  align-items: flex-start;
  padding-top: var(--header-h);
}

.mc-proj-left {
  width: 30%;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  padding: 2vw var(--pad) 3vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mc-proj-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mc-proj-img {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.mc-proj-img img,
.mc-proj-img video {
  width: 100%;
  height: 90vh;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-proj-img:hover img,
.mc-proj-img:hover video {
  transform: scale(1.02);
}

/* ── Panneau gauche ──────────────────────── */
.mc-split-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-split-top .proj-back {
  padding: 0;
}

.mc-split-mid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mc-split-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.mc-split-tagline p {
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.5);
}

/* Barre de progression */
.mc-progress {
  position: relative;
  width: 3px;
  height: 220px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 1.5px;
  overflow: hidden;
  align-self: flex-start;
}

.mc-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #a2c4fa;
  transition: height 0.12s ease;
}

/* ── Description (après les images) ─────── */
.mc-desc {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 4vw;
  padding: 7vw var(--pad) 6vw;
  align-items: start;
}

.mc-desc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  line-height: 1.9;
}

/* Citation */
.mc-quote {
  display: grid;
  grid-template-columns: 30% 1fr;
  column-gap: 4vw;
  padding: 5vw var(--pad) 4vw;
}

.mc-quote blockquote {
  grid-column: 2;
}

.mc-quote p {
  font-size: clamp(19px, 1.9vw, 28px);
  font-weight: 200;
  font-style: italic;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
}

.mc-quote cite {
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

/* Prose */
.mc-prose p {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5em;
}

/* Fiche projet */
.mc-fiche {
  margin: 0 var(--pad);
  padding: 4vw 0 6vw;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mc-fiche-row {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}

.mc-fiche-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-fiche-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.32);
}

.mc-fiche-value {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.4;
}

/* anim-ready */
.anim-ready .mc-proj-right {
  animation: fadeIn 0.7s ease both 0.1s;
}

.anim-ready .mc-proj-left {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both 0.05s;
}

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   18. Selection
========================================== */
::selection {
  background: var(--yellow);
  color: var(--black);
}

/* ==========================================
   19. Responsive — mobile ≤ 768px
========================================== */
@media (max-width: 768px) {

  /* ── Variables ───────────────────────────── */
  :root {
    --pad: 5vw;
    --header-h: calc(32px + 7vw); /* 16px×2 padding + logo height */
  }

  body  { cursor: auto; }
  #cursor-dot { display: none; }
  html, body { overflow: hidden; }

  /* ── Header — nav horizontale sur une ligne ── */
  #header {
    padding: 16px var(--pad);
    align-items: center;
  }
  #header.is-proj,
  #header.is-hello { padding: 14px var(--pad); }

  .logo { font-size: clamp(18px, 7vw, 32px); }

  #main-nav {
    display: flex;
    flex-direction: row;
    gap: 4vw;
    align-items: center;
    text-align: right;
  }
  #main-nav a {
    display: inline-block;
    font-size: clamp(11px, 3.5vw, 13px);
    line-height: 1;
  }

  /* ── Home ───────────────────────────────── */
  .hero {
    padding: 2vw var(--pad);
    padding-top: var(--header-h);
  }
  .hero-img-wrap { width: 100%; }

  /* Floats : texte blanc + lisibilité renforcée */
  .hero-float {
    font-size: clamp(9px, 2.8vw, 11px);
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  }

  /* ── Work / Photo gallery ────────────────── */
  .gallery {
    padding: 0;
    padding-top: var(--header-h);
    height: 100vh;
    position: relative;
  }
  .gallery-img-wrap { width: 100%; }

  /* Gradient sombre au bas de la gallery pour la roulette */
  .gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* Roulette repositionnée et lisible en blanc sur l'image */
  .proj-roulette {
    width: calc(72% - var(--pad));
    height: 160px;
    bottom: var(--pad);
    z-index: 2;
    /* Masque haut/bas pour fondu */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  }

  /* Texte roulette blanc sur image assombrie */
  .proj-roulette-item {
    color: rgba(255, 255, 255, 0.38);
    font-size: clamp(10px, 3.2vw, 13px);
  }
  .proj-roulette-item.is-active {
    color: #ffffff;
    font-size: clamp(20px, 5.8vw, 26px);
  }

  /* ── Photo — liste typographique ─────────── */
  .photo-list {
    padding: calc(var(--header-h) + 10vw) var(--pad) 8vw;
    justify-content: flex-start;
    gap: 0;
  }
  .photo-list-item { padding: 0.1em 0; }
  .photo-list-name {
    font-size: clamp(38px, 14vw, 70px);
    text-align: left;
    line-height: 0.95;
  }
  .photo-hover-wrap { width: 58vw; }

  /* ── Matière Créative ─────────────────────── */
  .mc-proj-layout {
    flex-direction: column;
    padding-top: var(--header-h);
    min-height: auto;
  }
  .mc-proj-left {
    position: static;
    width: 100%;
    height: auto;
    padding: 5vw var(--pad) 4vw;
    justify-content: flex-start;
    gap: 5vw;
  }
  .mc-split-top .proj-back { padding: 0; }
  .mc-progress { display: none; }

  .mc-split-title {
    font-size: clamp(32px, 10vw, 54px);
    line-height: 0.9;
  }
  .mc-split-tagline p {
    font-size: clamp(13px, 4vw, 17px);
    line-height: 1.5;
  }

  .mc-proj-right { width: 100%; gap: 3px; }
  .mc-proj-img img,
  .mc-proj-img video {
    height: 75vw;
  }

  /* Description sous les images — 1 colonne */
  .mc-desc {
    grid-template-columns: 1fr;
    gap: 4vw;
    padding: 8vw var(--pad) 5vw;
  }
  .mc-desc-label { font-size: 10px; margin-bottom: 2vw; }

  /* Citation — colonne unique */
  .mc-quote {
    grid-template-columns: 1fr;
    padding: 6vw var(--pad) 4vw;
  }
  .mc-quote blockquote { grid-column: 1; }
  .mc-quote p {
    font-size: clamp(17px, 5vw, 26px);
    line-height: 1.35;
  }

  /* Fiche projet verticale */
  .mc-fiche-row {
    flex-direction: column;
    gap: 20px;
  }

  /* Grille photos MC */
  .mc-grid-2 {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 0 0 2vw;
  }
  .mc-grid-img img { height: 60vw; }
  .mc-grid-img--offset { margin-top: 0; }
  .mc-full-img { height: 55vw; }
  .mc-video { height: 55vw; }

  /* ── Pages projet génériques ───────────────── */
  .proj-page { padding-top: var(--header-h); }
  .proj-back { padding: var(--pad); padding-top: 18px; }
  .proj-hero { padding: 0 var(--pad); }
  .proj-hero-img { max-height: 44vw; }

  .proj-title-block { padding: 32px var(--pad) 24px; }
  .proj-title {
    font-size: clamp(28px, 9.5vw, 50px);
    letter-spacing: -0.03em;
  }
  .proj-meta { font-size: 12px; }

  .proj-duo {
    grid-template-columns: 1fr;
    gap: 3vw;
  }
  .proj-duo-img { max-height: 44vw; }

  /* ── Say Hello ──────────────────────────────── */
  .hello-top { padding-top: var(--header-h); }

  .hello-title {
    font-size: clamp(22px, 6.5vw, 36px);
    line-height: 1.25;
    padding-top: 32px;
  }
  .hello-contacts {
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 44px;
  }
  .hello-col-label { font-size: clamp(14px, 4.5vw, 18px); }
  .hello-col a {
    font-size: clamp(13px, 4vw, 16px);
    line-height: 1.9;
  }
  .hello-img-wrap { height: 52vw; }

  /* ── Footer ─────────────────────────────────── */
  .page { padding-bottom: 520px; }

  .gf { padding: 9vw var(--pad) 5vw; }
  .gf-inner { gap: 6vw; }

  .gf-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6vw;
  }
  .gf-brand { font-size: clamp(18px, 5.5vw, 28px); }

  .gf-cols {
    flex-wrap: wrap;
    gap: 5vw 10vw;
    width: 100%;
  }
  .gf-col { gap: 5px; }
  .gf-col-head { font-size: 9px; margin-bottom: 4px; }
  .gf-link { font-size: 12px; line-height: 1.6; }

  .gf-socials { flex-direction: row; gap: 24px; }
  .gf-ig svg { width: 20px; height: 20px; }
  .gf-ig span { font-size: 10px; }

  .gf-bottom {
    padding-top: 5vw;
    font-size: clamp(9px, 2.5vw, 11px);
  }

  /* ── Loader ─────────────────────────────────── */
  #loader-percent { font-size: clamp(56px, 19vw, 120px); }
  #loader { padding: 18px var(--pad); }
}

/* ── Très petits écrans ≤ 390px ──────────────── */
@media (max-width: 390px) {
  .logo            { font-size: clamp(16px, 6.5vw, 26px); }
  #main-nav a      { font-size: clamp(10px, 3.2vw, 12px); gap: 3vw; }
  .proj-title      { font-size: clamp(24px, 9vw, 44px); }
  .photo-list-name { font-size: clamp(34px, 13.5vw, 56px); }
  .mc-split-title  { font-size: clamp(28px, 10.5vw, 46px); }
  .proj-roulette   { width: calc(80% - var(--pad)); }
}
