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

:root {
  --font-display: 'NeueHaasDisplay';
  --font-body: 'TimesNow';

  --color-white: #f5f0e8;
  --color-black: #1A1A1A;
  --color-panel-bg: #F5F0E8;
  
  --panel-width: 100vw;
  --header-height: 56px;
  --footer-height: auto;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --z-video: 0;
  --z-panel: 30;
  --z-header: 1;
  --z-footer: 20;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--color-white);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
  cursor: default;
}

/* =========================================
   SCENE — holds video + panels together
========================================= */
#scene {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: hidden;
  z-index: var(--z-video);
}

/* =========================================
   VIDEO
========================================= */
#video-wrapper {
  position: relative;
  flex: 1 0 100%;
  /* will be pushed by GSAP */
  will-change: flex, transform;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

 */
/* =========================================
   PANELS
========================================= */
aside.panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100dvh - 44px); /* laisse le header visible */
  top: auto;
  background: var(--color-panel-bg);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(100%);
  will-change: transform;
  z-index: 15; /* sous le header (z-index: 20) */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  pointer-events: all;
}

.panel::-webkit-scrollbar { width: 3px; }
.panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.panel-inner {
  padding: 0 2.5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 60vw;
  text-align: justify;
}

.panel-close {
  position: absolute;
  top: 1.25rem !important;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
.panel-close:hover { opacity: 1; }

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--color-black);
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0;
  visibility: hidden;
  height: 0;
}

.panel-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-black);
  font-weight: 300;
}

.panel-text--small {
  font-size: 0.7rem;
  font-style: italic;
  opacity: 0.5;
  margin-top: auto;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

.panel-list li {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 240, 232, 0.5);
}

.panel-list li::before {
  content: '— ';
  opacity: 0.4;
}

.panel-address {
  font-style: normal;
  font-size: 1.85rem;
  line-height: 2;
  color: var(--color-black);
}

.panel-address a {
  color: var(--color-black);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s ease;
}
.panel-address a:hover { border-color: var(--color-black); }

/* =========================================
   HEADER
========================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  z-index: var(--z-header);
}

/* LOGO */
#logo a {
  text-decoration: none;
  display: block;
  pointer-events: all;
  margin-top: 15px;
}

#logo img {
  height: 60px;
  width: auto;
  display: block;
  filter: invert(1);
}

/* NAV */
#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(30rem, 8vw, 200rem);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  opacity: 1;
  transition: opacity 0.2s ease;
  /* text-shadow: 0 1px 4px rgba(255,255,255,0.6); */
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-white);
  transition: width 0.3s var(--ease-expo);
}

.nav-btn:hover { opacity: 1; }
.nav-btn:hover::after { width: 100%; }

.nav-btn[aria-expanded="true"] {
  opacity: 1;
}
.nav-btn[aria-expanded="true"]::after {
  width: 100%;
}

/* =========================================
   FOOTER
========================================= */
#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-footer);
  pointer-events: none;
}

/* CTA links */
#cta-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1.5rem 0.6rem;
  gap: 0.15rem;
  pointer-events: all;
}

.cta-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  position: relative;
  transition: opacity 0.2s ease;
}

.cta-link::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width 0.4s var(--ease-expo);
}

.cta-link:hover { opacity: 1; }
.cta-link:hover::before { width: 100%; }

.arrow {
  width: 18px;
  display: inline-block;
  transition: transform 0.3s var(--ease-back);
}
.arrow img {
	width: 100%;
}

.cta-link:hover .arrow {
  transform: translate(3px, -3px);
}

/* Color bar */
#color-bar {
  width: 50%;
  height: 8px;
  overflow: hidden;
  display: block;
  pointer-events: none;
}

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

/* =========================================
   MOBILE OVERLAY (panel full width on small)
========================================= */
@media (max-width: 640px) {
  :root {
    --panel-width: 100vw;
  }

  /* aside.panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    transform: translateX(100%);
    z-index: 50;
  } */

  #main-nav {
    gap: 2rem;
  }
  
  #logo img {
	  height: 34px;
	  width: auto;
	  display: block;
	  filter: invert(1);
	}

  .panel-inner {
    padding: 3.5rem 1.5rem 2.5rem;
  }
  #color-bar {
    width: 100%;
  }
}

/* =========================================
   CURSOR
========================================= */
@media (hover: hover) {
  body { cursor: none; }

  #custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 8px;
    height: 8px;
    background: var(--color-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
  }

  #custom-cursor.hovered {
    width: 40px;
    height: 40px;
  }
}

/* =========================================
   SCROLL LOCK when panel open
========================================= */
body.panel-open {
  overflow: hidden;
}
