/* === RESET + TYPO === */
:root {
  --vh: 1vh; /* valeur de secours si JS ne s’exécute pas */
}

@font-face {
  font-family: 'SuisseIntl';
  src: url('../fonts/SuisseIntl-Regular.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SuisseIntlMono';
  src: url('../fonts/SuisseIntlMono-Regular.woff2') format('woff2'),
       url('../fonts/SuisseIntlMono-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SuisseIntlMonoBold';
  src: url('../fonts/SuisseIntlMono-Bold.woff2') format('woff2'),
       url('../fonts/SuisseIntlMono-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

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

body {
  font-family: 'SuisseIntl', sans-serif;
  background: #E1E1E1;
  height: 100vh;
  overflow: auto;
  display: flex;
  line-height: 1.6;
}

/* === NAVIGATION FIXE (GRANDS ÉCRANS) === */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 100vh;
  background: #f5f5f5;
  background-image: url("../img/recipe_clean_version.svg");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 10;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: none;
}

#nav .nav-content {
  max-width: 240px;
  width: 100%;
  margin-top: 40px;
}

#nav.sticky {
  top: calc(-100vh + 200px);
}

#nav.open {
  top: 0;
}

#nav-handle {
  display: none;
}

main {
  margin-left: 380px;
  height: 100vh;
  overflow-y: auto;
  padding: 40px;
  background: #f5f5f5;
  box-sizing: border-box;
}

a{
	color: rgba(0,0,0,1.00);
}

/* === TYPOGRAPHY === */
.ticket {
  font-family: 'SuisseIntlMono', monospace;
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 110px;
  line-height: 1.6;
}

.ticket_bold {
  font-family: 'SuisseIntlMonoBold', monospace;
  margin-top: 170px;
  opacity: 0.65;
  line-height: 1.6;
}

.ticket_bold2 {
  font-family: 'SuisseIntlMonoBold', monospace;
  margin-top: 10px;
  opacity: 0.65;
  line-height: 1.6;
}

nav h2 {
  font-size: 18px;
  margin-top: 0;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  margin: 3px 0;
}

nav a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

nav a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 80px;
  margin-top: 30px;
}

h1, h2 {
  margin-top: 10px;
  font-family: 'SuisseIntl', sans-serif;
  line-height: 1.4;
}

p, li, a {
  font-family: 'SuisseIntl', sans-serif;
  line-height: 1.6;
}

.invert-on-hover:hover {
  filter: invert(1);
  transition: filter 0.3s ease;
  mix-blend-mode: multiply;
}

    .video-wrapper {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    .video-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
      mix-blend-mode: multiply;
      opacity: 1;
    }

/* === MEDIA QUERIES === */
/* ✅ Cible iPhone mini (max 375px) */
@media screen and (max-device-width: 380px) and (hover: none) and (pointer: coarse) {
  #nav .nav-content {
    padding: 0px 35px 0px 35px;
    margin-top: -50px !important;
  }
}

/* ✅ Cible iPhone standard (jusqu’à 415px) */
@media screen and (min-device-width: 381px) and (max-device-width: 415px) and (hover: none) and (pointer: coarse) {
  #nav .nav-content {
    padding: 0px 35px 0px 35px;
    margin-top: -50px !important;
  }
}

/* ✅ Cible iPhone Pro Max (jusqu’à 430px) */
@media screen and (min-device-width: 416px) and (max-device-width: 430px) and (hover: none) and (pointer: coarse) {
  #nav .nav-content {
    padding: 0px 35px 0px 35px;
    margin-top: -50px !important;
  }
}


@media screen and (max-width: 600px) {
  #nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 999;
	margin-top: -20px;

    background-image: url("../img/recipe_celan_version-SMALL.svg");
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: transparent;

    transform: translateY(calc(-1 * (var(--vh, 1vh) * 100 - 220px)));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 0;
  }

  #nav.open {
    transform: translateY(0);
    background-color: rgba(245, 245, 245, 0.95);
	margin-top: 0px;
  }

  #nav .nav-content {
    max-width: 90%;
    width: 100%;
    margin-top: 40px;
  }

  #nav-handle {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    height: 220px;
    width: 100%;
    background: transparent;
    z-index: 1000;
    cursor: pointer;
  }

  main {
    margin-left: 0;
    padding: 200px 20px 40px;
    height: auto;
    overflow: auto;
  }

 .video-wrapper {
   position: relative;
   width: 100%;
   overflow: hidden;
 }

 .video-spacer {
   padding-top: 100%;
   width: 100%;
   display: block;
 }

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: translateZ(0); /* 💥 force le rendu GPU */
  will-change: transform;
  background: black;
  z-index: 1;
}

}



@media screen and (max-width: 1024px) and (min-width: 601px) {
  #nav {
    width: 280px;
    padding: 0 40px;
    top: 0;
  }

  #nav-handle {
    display: none;
  }

  #nav .nav-content {
    max-width: 220px;
    width: 100%;
    margin-top: 40px;
  }

  main {
    margin-left: 280px;
  }
}

@media screen and (max-width: 1200px) and (min-width: 1025px) {
  #nav {
    width: 400px;
  }

  main {
    margin-left: 400px;
  }
}
