/* ─── OBLIQUE — Maison de Mode ──────────────────
 * Palette : #030303 / #F5F5F5 / #E30613
 * Fonts   : Bebas Neue (display) + Space Grotesk
 * ─────────────────────────────────────────────── */

:root {
  --black:   #030303;
  --white:   #F5F5F5;
  --red:     #E30613;
  --gray:    #888888;
  --gray-2:  #444444;
  --border:  rgba(245,245,245,0.08);
  --nav-h:   4rem;

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp: cubic-bezier(0.77, 0, 0.175, 1);
  --dur:        0.4s;
}

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

html {
  font-size: clamp(15px, 1.05vw, 16px);
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

*, a, button, [role="button"] { cursor: none !important; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
em { font-style: italic; }

/* ─── Skip nav ─── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.skip-to-content:focus { top: 0; }

:focus-visible { outline: 1.5px solid var(--red); outline-offset: 4px; }

/* ─── Custom Cursor (mix-blend-mode: difference) ─── */
.cursor {
  position: fixed;
  width: 50px;
  height: 50px;
  background: #ffffff;   /* DOIT être blanc pour le blend-mode */
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
  will-change: transform;
}

/* Le curseur s'agrandit sur les éléments interactifs */
body.cursor-hover .cursor {
  width: 80px;
  height: 80px;
}

/* Sur les panneaux campaign, le curseur se réduit */
body.cursor-panel .cursor {
  width: 20px;
  height: 20px;
}

@media (hover: none) { .cursor { display: none; } }

/* ─── Scroll Progress ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  z-index: 8999;
  transform-origin: left;
  pointer-events: none;
}

/* ─── Loader (fond rouge) ─── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0% 0);
  overflow: hidden;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 14rem);
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
  display: block;
}

.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: rgba(255,255,255,0.5);
  transition: width 0.8s linear;
}

/* ─── Nav Overlay (rouge, plein écran) ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 9000;
  clip-path: circle(0% at calc(100% - 1.5rem) 2rem);
  transition: clip-path 0.75s var(--ease-sharp);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay.is-open {
  clip-path: circle(150% at calc(100% - 1.5rem) 2rem);
  pointer-events: all;
}

.overlay-nav {
  width: 100%;
  max-width: 900px;
  padding: 2rem var(--space-lg, 4rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.overlay-link {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.03em;
  display: block;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
  position: relative;
  width: fit-content;
}

.nav-overlay.is-open .overlay-link { opacity: 1; transform: translateX(0); }
.nav-overlay.is-open .overlay-link:nth-child(1) { transition-delay: 0.15s; }
.nav-overlay.is-open .overlay-link:nth-child(2) { transition-delay: 0.22s; }
.nav-overlay.is-open .overlay-link:nth-child(3) { transition-delay: 0.29s; }
.nav-overlay.is-open .overlay-link:nth-child(4) { transition-delay: 0.36s; }

.overlay-link::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.35s var(--ease);
}
.overlay-link:hover::after { width: 100%; }
.overlay-link:hover { color: rgba(255,255,255,0.8); }

.overlay-info {
  display: flex;
  gap: 2rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.4s 0.5s;
}
.nav-overlay.is-open .overlay-info { opacity: 1; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  mix-blend-mode: difference; /* La nav aussi s'inverse ! */
  pointer-events: none; /* Les enfants en ont */
}

/* Correction: pointer-events sur les enfants uniquement */
.nav > * { pointer-events: all; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-sub {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.5;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  padding: 4px 0;
  position: relative;
  z-index: 9200; /* au-dessus de l'overlay */
}

.bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transform-origin: center;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open .bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle.is-open .bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero {
  height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 2rem 2rem;
}

/* Fines lignes décoratives horizontales */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: rgba(245,245,245,0.08);
}
.hero::before { top: calc(var(--nav-h) + 1.5rem); }
.hero::after  { bottom: 4rem; }

.hero-eyebrow {
  position: absolute;
  top: calc(var(--nav-h) + 2.5rem);
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.4);
  opacity: 0;
}

.hero-eyebrow-rule {
  flex: 1;
  height: 1px;
  background: rgba(245,245,245,0.15);
}

/* Le titre géant — Bebas Neue ~22vw */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 18rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  z-index: 1;
  user-select: none;
}

/* SplitType wrappera les .char */
.hero-title .char {
  display: inline-block;
  transform: translateY(120%) rotate(8deg);
  opacity: 0;
}

.hero-foot {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
}

.hero-tagline {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.45);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: gap 0.3s var(--ease);
}
.hero-cta:hover { gap: 1.2rem; }

.hero-cta-line {
  width: 2rem;
  height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.hero-cta:hover .hero-cta-line { width: 3rem; }

.hero-badge {
  position: absolute;
  top: calc(var(--nav-h) + 2.5rem);
  right: 2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--red);
  opacity: 0;
}

/* ─── Campaign Section ─── */
.section--campaign {
  height: 100vh;        /* GSAP ajoutera l'espace scroll via spacer */
  position: relative;
  overflow: hidden;
}

/* Les panneaux sont empilés (absolute) */
.campaign-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Couleurs distinctes par panneau */
.cp-1 { background: #0A0A0A; color: var(--white); }
.cp-2 { background: #F5F5F5; color: var(--black); }
.cp-3 { background: #1A0008; color: #F5E8E0;      }
.cp-4 { background: #1C1C1E; color: var(--white); }

/* Numéro romain décoratif — watermark */
.cp-roman {
  position: absolute;
  right: -0.1em;
  bottom: -0.1em;
  font-family: var(--font-display);
  font-size: clamp(12rem, 35vw, 30rem);
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}
.cp-1 .cp-roman { color: rgba(245,245,245,0.04); }
.cp-2 .cp-roman { color: rgba(3,3,3,0.06); }
.cp-3 .cp-roman { color: rgba(227,6,19,0.1); }
.cp-4 .cp-roman { color: rgba(245,245,245,0.04); }

/* Contenu du panneau */
.cp-body {
  padding: calc(var(--nav-h) + 4rem) 3rem 4rem;
  z-index: 1;
  max-width: 600px;
}

.cp-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cp-season {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.cp-1 .cp-season { color: var(--red); }
.cp-2 .cp-season { color: var(--black); }
.cp-3 .cp-season { color: rgba(245,232,224,0.6); }
.cp-4 .cp-season { color: var(--red); }

.cp-rule {
  flex: 1;
  height: 1px;
  max-width: 5rem;
}
.cp-1 .cp-rule { background: rgba(245,245,245,0.2); }
.cp-2 .cp-rule { background: rgba(3,3,3,0.2); }
.cp-3 .cp-rule { background: rgba(245,232,224,0.2); }
.cp-4 .cp-rule { background: rgba(245,245,245,0.2); }

/* Nom de collection — Bebas Neue géant */
.cp-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.cp-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 32ch;
}

/* Indicateurs de position */
.cp-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.cp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,245,245,0.3);
  border: none;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.cp-dot.is-active {
  background: var(--red);
  transform: scale(1.4);
}

/* ─── Manifeste ─── */
.section--manifeste {
  background: var(--black);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.manifeste-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}

.manifeste-left {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-tag {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
}

.section-tag--dark {
  color: rgba(3,3,3,0.4);
}

.manifeste-heading {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--red);
  line-height: 1;
}

/* SVG ligne rouge qui se dessine */
.manifeste-svg {
  width: 2px;
  height: 200px;
  overflow: visible;
}

.svg-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

/* Quote word-by-word */
.manifeste-quote {
  margin-bottom: 4rem;
}

.mq-text {
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* Les .word sont injectés par SplitType */
.mq-text .word {
  display: inline-block;
  opacity: 0.1;
  transition: opacity 0.1s;
}

.mq-cite {
  display: block;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.4);
}

/* Stats manifeste */
.manifeste-stats {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.m-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}

.m-stat-num::after {
  content: '+';
  font-size: 0.55em;
  color: rgba(227,6,19,0.6);
}

.m-stat-label {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--gray);
  display: block;
  margin-top: 0.25rem;
}

/* ─── Ateliers ─── */
.section--ateliers {
  background: var(--white);
  color: var(--black);
  padding: 7rem 2rem;
}

.ateliers-header {
  max-width: 1300px;
  margin: 0 auto 4rem;
}

.ateliers-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.ateliers-heading em {
  font-style: normal;
  color: var(--red);
}

.ateliers-list {
  max-width: 1300px;
  margin: 0 auto;
}

/* ─── Atelier Item — hover red sweep ─── */
.atelier-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(3,3,3,0.1);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.atelier-item:last-child { border-bottom: 1px solid rgba(3,3,3,0.1); }

/* Fond rouge qui balaie (scaleX: 0 → 1) */
.atelier-bg {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-sharp);
  z-index: 0;
}

.atelier-item:hover .atelier-bg { transform: scaleX(1); }

/* Textes en blanc au hover */
.atelier-num,
.atelier-name,
.atelier-desc,
.atelier-arrow {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.atelier-num {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(3,3,3,0.35);
  font-family: var(--font-body);
}

.atelier-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.03em;
  color: var(--black);
  display: block;
  margin-bottom: 0.4rem;
}

.atelier-content { display: flex; flex-direction: column; }

.atelier-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(3,3,3,0.55);
  max-width: 50ch;
}

.atelier-arrow {
  font-size: 1.3rem;
  color: rgba(3,3,3,0.3);
  transition: transform 0.3s var(--ease), color 0.3s;
  justify-self: end;
}

.atelier-item:hover .atelier-num  { color: rgba(245,245,245,0.5); }
.atelier-item:hover .atelier-name { color: var(--white); }
.atelier-item:hover .atelier-desc { color: rgba(245,245,245,0.7); }
.atelier-item:hover .atelier-arrow { color: var(--white); transform: translateX(6px); }

/* ─── Contact ─── */
.section--contact {
  background: var(--black);
  padding: 7rem 2rem 5rem;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* Titre géant Bebas Neue */
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 3rem;
}

.contact-rule {
  width: 4rem;
  height: 2px;
  background: var(--red);
  margin-bottom: 4rem;
}

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

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-val {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245,245,245,0.75);
  transition: color 0.25s;
}

a.contact-val:hover { color: var(--white); }

/* ─── Footer ─── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: rgba(245,245,245,0.4);
}

.footer-copy,
.footer-note {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(245,245,245,0.2);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .manifeste-inner { grid-template-columns: 1fr; gap: 3rem; }
  .manifeste-left { position: static; }
  .manifeste-svg { display: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-sub { display: none; }

  .hero-title { font-size: clamp(4rem, 18vw, 12rem); }

  .cp-body { padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem; }
  .cp-name { font-size: clamp(3rem, 10vw, 7rem); }

  .manifeste-stats { flex-direction: column; gap: 1.5rem; }

  .atelier-item {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.5rem;
  }
  .atelier-arrow { display: none; }
  .atelier-desc { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-heading { font-size: clamp(4rem, 16vw, 9rem); }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .overlay-nav { padding: 2rem 1.5rem; }
  .overlay-link { font-size: clamp(2.5rem, 10vw, 5rem); }
}

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