/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --text: #111111;
  --text-light: #777777;
  --line: #e8e8e8;
  --gray-1: #f4f4f4;
  --gray-2: #d8d8d8;
  --gray-3: #9a9a9a;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== BLOCS IMAGES (placeholders en gris) ========== */
.img-block {
  width: 100%;
  height: 100%;
  background: var(--gray-1);
  position: relative;
  overflow: hidden;
}

.img-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(0,0,0,0.04) 70%);
}

/* Variations subtiles de gris pour différencier les 20 images */
.img-1  { background: #e8e8e8; }
.img-2  { background: #dcdcdc; }
.img-3  { background: #efefef; }
.img-4  { background: #cfcfcf; }
.img-5  { background: #e3e3e3; }
.img-6  { background: #d4d4d4; }
.img-7  { background: #ebebeb; }
.img-8  { background: #d8d8d8; }
.img-9  { background: #e0e0e0; }
.img-10 { background: #cccccc; }
.img-11 { background: #ededed; }
.img-12 { background: #d2d2d2; }
.img-13 { background: #e6e6e6; }
.img-14 { background: #dadada; }
.img-15 { background: #c8c8c8; }
.img-16 { background: #f0f0f0; }
.img-17 { background: #d6d6d6; }
.img-18 { background: #e2e2e2; }
.img-19 { background: #cecece; }
.img-20 { background: #1a1a1a; }

/* ========== CURSEUR ========== */
.cursor, .cursor-follower {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 6px; height: 6px;
  background: var(--text);
  transition: transform 0.15s var(--ease);
}

.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid var(--text);
  transition: transform 0.4s var(--ease), width 0.3s, height 0.3s;
  mix-blend-mode: difference;
  background: transparent;
}

.cursor.hover { transform: translate(-50%, -50%) scale(0); }
.cursor-follower.hover { width: 70px; height: 70px; background: #fff; }

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* ========== LOADER ========== */
.loader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease);
}
.loader.done { transform: translateY(-100%); }

.loader-inner { text-align: center; color: #fff; }

.loader-text {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  font-style: italic;
  display: block;
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px; height: 1px;
  background: rgba(255,255,255,0.2);
  overflow: hidden; margin: 0 auto;
}
.loader-bar span {
  display: block; height: 100%; width: 0;
  background: #fff;
  animation: load 1.6s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.6rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.logo span { font-size: 0.7rem; vertical-align: super; margin-left: 2px; }

.nav { display: flex; gap: 2.5rem; }

.nav a {
  font-size: 0.85rem;
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
}

.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none; border: none;
  color: inherit;
  width: 30px; height: 22px;
  flex-direction: column; justify-content: space-between;
  cursor: none; padding: 0;
}
.menu-toggle span {
  display: block; height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-toggle.active span:first-child { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active span:last-child { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header { padding: 1.2rem 1.5rem; }
}

/* ========== MENU PLEIN ÉCRAN ========== */
.fullscreen-menu {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  color: #fff;
  z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
}
.fullscreen-menu.open { transform: translateY(0); }

.fullscreen-menu ul { list-style: none; text-align: center; }

.fullscreen-menu li a {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 300;
  display: block;
  padding: 0.5rem 0;
  font-style: italic;
}

.menu-footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: 8rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  position: relative;
}

.hero-content { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.eyebrow.light { color: rgba(255,255,255,0.5); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 1.6s; }
.hero-title .line:nth-child(2) span { animation-delay: 1.75s; }
.hero-title .line:nth-child(3) span { animation-delay: 1.9s; }

@keyframes rise { to { transform: translateY(0); } }

.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.scroll-down {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.scroll-down svg { transition: transform 0.4s var(--ease); }
.scroll-down:hover svg { transform: translateY(4px); }

.hero-image {
  height: 80vh;
  max-height: 700px;
  overflow: hidden;
}

.hero-marquee {
  grid-column: 1 / -1;
  margin-top: 2rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  padding: 0 1rem;
}

@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 50vh; order: 2; }
  .hero-content { order: 1; padding-top: 2rem; }
}

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex; align-items: baseline; gap: 3rem;
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.section-num {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ========== PROJETS ========== */
.projects {
  padding: 8rem 2.5rem;
  position: relative;
}

.project-list { list-style: none; }

.project {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 40px;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  cursor: none;
  position: relative;
  transition: padding 0.6s var(--ease);
}

.project:hover { padding-left: 1.5rem; }

.project-image {
  width: 60px; height: 60px;
  overflow: hidden;
  border-radius: 2px;
}

.project-image .img-block {
  transition: transform 0.7s var(--ease);
}
.project:hover .project-image .img-block { transform: scale(1.1); }

.project-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: right;
}

.project-arrow {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-align: right;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.project:hover .project-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 700px) {
  .project { grid-template-columns: 50px 1fr 30px; gap: 1rem; }
  .project-image { width: 45px; height: 45px; }
  .project-info p { display: none; }
}

/* Image qui suit la souris */
.hover-image {
  position: fixed;
  width: 280px; height: 360px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}
.hover-image.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) { .hover-image { display: none; } }

/* ========== TRAVAUX (mosaïque) ========== */
.works {
  padding: 8rem 2.5rem;
  background: #fafafa;
}

.works-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 1.2rem;
}

.work-tile {
  position: relative;
  overflow: hidden;
  cursor: none;
  border-radius: 2px;
}

.work-tile .img-block {
  transition: transform 1s var(--ease);
}
.work-tile:hover .img-block { transform: scale(1.05); }

.work-tile.tile-tall { grid-row: span 2; }
.work-tile.tile-wide { grid-column: span 2; }

.work-label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 0.4rem 0.7rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.work-tile:hover .work-label { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .works-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .work-tile.tile-wide { grid-column: span 2; }
  .work-tile.tile-tall { grid-row: span 1; }
}
@media (max-width: 500px) {
  .works-mosaic { grid-template-columns: 1fr; }
  .work-tile.tile-wide { grid-column: span 1; }
}

/* ========== À PROPOS ========== */
.about {
  padding: 8rem 2.5rem;
  background: var(--bg);
}

.about-content { max-width: 1200px; }

.about-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 4rem;
}

.about-text em { font-style: italic; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.about-img {
  height: 380px;
  overflow: hidden;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  display: block;
  letter-spacing: -0.03em;
}

.about-stat p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-images { grid-template-columns: 1fr; }
  .about-img { height: 280px; }
}

/* ========== CONTACT ========== */
.contact {
  background: var(--bg-dark);
  color: #fff;
  padding: 8rem 2.5rem 2rem;
}

.contact-inner { max-width: 1400px; }

.contact-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 2rem 0 4rem;
}

.contact-mail {
  font-style: italic;
  position: relative;
  display: inline-block;
}

.contact-mail::after {
  content: '';
  position: absolute; left: 0; bottom: 0.1em;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(1); }

.contact-image {
  height: 380px;
  overflow: hidden;
  margin-bottom: 4rem;
  border-radius: 2px;
}

.contact-image .img-block {
  background: linear-gradient(135deg, #1f1f1f, #0a0a0a);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 3rem;
  margin-bottom: 6rem;
}

.contact-grid h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.contact-grid p, .contact-grid a {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-grid a:hover { opacity: 0.6; }

.footer {
  display: flex; justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; gap: 0.5rem; }
}

/* ========== ANIMATIONS APPARITION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Placement précis des images dans la rubrique Projets */
@media (min-width: 901px) {
  .work-tile.work-model-agency {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .work-tile.work-luxury-brand {
    grid-column: 2;
    grid-row: 1;
  }

  .work-tile.work-watchmaking {
    grid-column: 3;
    grid-row: 1;
  }

  .work-tile.work-watchmaking-extra {
    grid-column: 4;
    grid-row: 1;
  }

  .work-tile.work-casting {
    grid-column: 2 / span 2;
    grid-row: 2;
  }

  .work-tile.work-music {
    grid-column: 4;
    grid-row: 2 / span 2;
  }

  .work-tile.work-runway {
    grid-column: 1;
    grid-row: 3 / span 2;
  }

  .work-tile.work-event {
    grid-column: 2;
    grid-row: 3;
  }

  .work-tile.work-corporate {
    grid-column: 3;
    grid-row: 3;
  }

  .work-tile.work-extra-wide {
    grid-column: 2 / span 2;
    grid-row: 4;
  }
}
.work-tile.work-extra-wide {
  grid-column: 2 / span 2;
  grid-row: 4;
}

.work-tile.work-extra-normal {
  grid-column: 4;
  grid-row: 4;
}