/* ================================================
   DERNIER ÉTAGE — Main Stylesheet
   Card animation: transform scale (matching curatr.paris)
   ================================================ */

/* --- Custom Font --- */
@font-face {
  font-family: 'Minister';
  src: url('../assets/fonts/Minister-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: 'Minister', 'Cormorant Garamond', Georgia, serif;
  color: #1a1a1a;
  background: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.6;
  cursor: auto;
}

.cursor {
  display: none;
}

/* ================================================
   SPLASH SCREEN
   ================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash-logo {
  max-width: 340px;
  width: 50%;
  transform: scale(2);
  opacity: 0;
}

.splash.is-done {
  display: none;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- CSS Custom Properties --- */
:root {
  --card-bg: #f3f3f3;
  --color-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-white: #ffffff;
  --color-grey: #888;
  --font-serif: 'Minister', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}


/* ================================================
   SIDEBAR NAVIGATION
   ================================================ */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 60px;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

.sidebar-logo {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1.4;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sidebar-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 4px 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  opacity: 1;
}

.sidebar-nav .nav-link.active::before {
  content: '( ';
}
.sidebar-nav .nav-link.active::after {
  content: ' )';
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-email {
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1.4;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sidebar-email:hover {
  opacity: 1;
}

.sidebar-lang {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  position: relative;
  z-index: 200;
  pointer-events: auto;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-white);
  cursor: pointer;
  padding: 4px 2px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  position: relative;
  z-index: 201;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  font-weight: 700;
  opacity: 1;
}


/* ================================================
   INTRO SECTION (matching curatr.paris structure)
   ================================================ */
.intro {
  position: relative;
  background: #1a1a1a;
}

/* Container that gets pinned during scroll animation */
.intro-container {
  position: relative;
  height: 100vh;
}

/* THE WHITE CARD — uses scale transform like curatr.paris */
.intro-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  position: relative;
  width: 42.7%;
  max-width: 700px;
  min-width: 69vh;
  height: 100vh;
  margin: 0 auto;
  padding: 40px 40px 30px;
  background: var(--card-bg);
  color: #000;
  text-align: center;
  z-index: 1;
  transform: scale(0.667);
  transform-origin: center;
  will-change: transform;
}

/* Card Header (contact info) */
.card-header {
  text-align: center;
  width: 100%;
}

.card-phone {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* Card Logo */
.card-logo {
  text-align: center;
}

.card-logo h1 {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.card-logo img {
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

/* Card Tagline + Scroll indicator */
.card-bottom {
  text-align: center;
}

.card-tagline p {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
}

.card-scroll {
  margin-top: 2em;
  transition: opacity 0.3s ease-in-out;
}

.is-scrolled .card-scroll {
  opacity: 0;
}

.card-scroll span {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-text);
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: var(--color-text);
  margin: 10px auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}


/* ================================================
   CARD CONTENT — same visual column as the card
   Same width + bg = continuous "carte postale"
   ================================================ */
.card-content {
  width: 42.7%;
  max-width: 700px;
  min-width: 69vh;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  transform-origin: center bottom;
}

/* Body text — sober paragraph style */
.body-text {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2.5em;
}

.body-text:last-child {
  margin-bottom: 0;
}

/* Small logo separator */
.small-logo {
  margin: 3em auto 2em;
  text-align: center;
}

.small-logo img {
  max-width: 100px;
  height: auto;
  margin: 0 auto;
}

/* Billetweb embed */
.billetweb-embed {
  margin-top: 3em;
  width: 100%;
}

/* ================================================
   INSTAGRAM — Horizontal Marquee Gallery
   ================================================ */
.insta-section {
  position: relative;
  z-index: 3;
  background: var(--color-dark);
  padding: 80px 0 50px;
  text-align: center;
  overflow: hidden;
}


.insta-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.insta-marquee::-webkit-scrollbar {
  display: none;
}

.insta-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.insta-card {
  flex-shrink: 0;
  width: 280px;
  background: none;
  padding: 0;
  box-shadow: none;
  transition: transform 0.4s ease;
  display: block;
}

.insta-card:hover:nth-child(odd) {
  transform: rotate(-2deg) translateY(-4px);
}

.insta-card:hover:nth-child(even) {
  transform: rotate(1.5deg) translateY(-4px);
}

.insta-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}


@media (max-width: 768px) {
  .insta-card {
    width: 200px;
  }

  .insta-track {
    gap: 16px;
    animation-duration: 30s;
  }
}


/* ================================================
   CONTACT SECTION (dark — matching curatr.paris)
   ================================================ */
.contact-section {
  position: relative;
  z-index: 3;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 8% 30px;
  text-align: center;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Last element in contact: no bottom margin so page ends flush */
.contact-section .contact-info {
  margin-bottom: 0 !important;
}

/* Logo blanc */
.contact-logo {
  margin-bottom: 30px;
}

.contact-logo-img {
  max-width: 110px;
  height: auto;
  margin: 0 auto;
  filter: invert(1);
}

.contact-info {
  margin-bottom: 0;
}

.contact-info p {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 2;
}

.contact-info a {
  transition: opacity 0.3s ease;
}

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



/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */
/* .anim-reveal is animated by GSAP via inline styles only —
   no CSS transitions to avoid conflicts */


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .section {
    padding: 80px 8%;
  }

  .contact-section {
    padding: 80px 8% 60px;
  }
}

@media (max-width: 768px) {
  /* Mobile: uniform scale (no content distortion), label shorter than
     container to match the exact dimensions shown in reference. A
     GSAP-driven negative margin on card-content keeps continuity with
     the label's bottom edge throughout the scale animation. */

  .intro-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .intro-label {
    width: 100%;
    min-width: auto;
    max-width: none;
    height: 77vh;
    padding: 24px 20px;
    margin: 0 auto;
    transform: scale(0.56);
    /* Uniform scale 0.56 on a full-width (100%) × 77vh label.
       Visual at scroll 0:
         width  = 100% * 0.56 = 56vw   (matches reference screenshot)
         height = 77vh * 0.56 ≈ 43vh   (matches reference screenshot)
       At scale 1 the label fills the entire viewport width, so the
       manifesto text below blends into one continuous full-white area
       with no dark bands on the sides. */
  }

  .card-content {
    width: 100%;
    min-width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 60px 24px 80px;
    /* Full-width on mobile — no dark sides behind the manifesto.
       Continuity with the label is handled by GSAP animating the
       .intro section background from dark → white during the pin,
       so by the time card-content slides up, everything is white. */
  }

  .card-logo img {
    max-width: 200px;
  }

  .card-tagline p {
    font-size: 18px;
  }

  .contact-section {
    padding: 50px 6% 40px;
  }

  .small-logo img {
    max-width: 70px;
  }
}

@media (max-width: 480px) {
  .card-tagline p {
    font-size: 18px;
  }

  .body-text {
    font-size: 15px;
  }
}
