/* ============================================================
   VNESYS — Custom Styles
   Extracted from inline <style> blocks for caching performance
   ============================================================ */


   
/* --- Video intro container --- */
.intro {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 80vh !important;
  margin-bottom: 2em !important;
  padding: 0 !important;
}

.project__title {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 80vh;
  margin: 0;
  padding: 0;
}

.intro-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  font-size: 1.5em;
}

/* --- Navbar toggle (hidden on desktop) --- */
.navbar-toggle {
  display: none;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.logo-li {
  margin-right: 1.5em;
  display: flex;
  align-items: center;
}

/* --- Top Navbar --- */
.top-navbar {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 0;
  overflow: hidden;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5em;
}

.navbar-logo {
  color: #2189ff;
  font-weight: 700;
  font-size: 1.35em;
  letter-spacing: 0.02em;
  margin-right: 2em;
  transition: color 0.2s;
}

.navbar-logo:hover {
  color: #00bfae;
}

.navbar-menu {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  transition: max-height 0.3s;
  justify-content: flex-start;
}

.navbar-menu li {
  display: inline;
  position: relative;
}

.navbar-menu a {
  color: #111 !important;
  font-weight: 500;
  border-radius: 12px;
  padding: 0.5em 1.3em;
  transition:
    background 0.25s cubic-bezier(.4,2,.6,1),
    color 0.2s,
    box-shadow 0.22s cubic-bezier(.4,2,.6,1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.navbar-menu a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(90deg, #e53935 0%, #111 100%);
  opacity: 0.13;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width 0.28s cubic-bezier(.4,2,.6,1), height 0.28s cubic-bezier(.4,2,.6,1);
}

.navbar-menu a:hover,
.navbar-menu a:focus {
  color: #fff !important;
  background: #e53935;
  box-shadow: 0 4px 16px #e5393555;
}

.navbar-menu a:hover::before,
.navbar-menu a:focus::before {
  width: 120%;
  height: 220%;
}

.navbar-menu a:active {
  color: #fff !important;
  background: linear-gradient(90deg, #111 0%, #e53935 100%);
  box-shadow: 0 2px 12px #e5393555;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  margin-left: 10px;
}

.navbar-toggle span {
  display: block;
  height: 4px;
  width: 28px;
  background: #2189ff;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Titre menu --- */
.titre-menu {
  color: #111 !important;
  font-weight: 300;
  border-radius: 8px;
  padding: 0.4em 1em;
  transition: background 0.2s, color 0.2s;
}

/* --- Cookie banner --- */
#cookie-banner {
   position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background-color: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(12px);
  border-top: 1px solid #333;
  padding: 16px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#cookie-banner button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* --- Couleurs de marque --- */
.tren-red {
  color: #e53935 !important;
  display: inline;
  padding: 0;
  margin: 0;
  letter-spacing: normal;
  white-space: normal;
}

.tren-red2 {
  color: #000000 !important;
  display: inline;
  padding: 0;
  margin: 0;
  letter-spacing: normal;
  white-space: normal;
}

/* --- Hero caption --- */
#hero-caption h4 {
  font-size: 60px;
}

/* --- Footer --- */
.footer-privacy {
  width: 100%;
  background: #f7fafd;
  border-top: 1px solid #e5e7eb;
  padding: 1.2em 0;
  margin-top: 2em;
  text-align: center;
}

.footer-privacy__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2em;
  font-size: 1em;
  color: #2189ff;
}

.footer-privacy__content a {
  color: #2189ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-privacy__content a:hover {
  color: #e53935;
  text-decoration: underline;
}

/* --- Galerie logo2 animation --- */
.gallery__item--logo2.is-expanded,
.gallery__item--logo2.is-active,
.gallery__item--logo2.is-animating {
  z-index: 20 !important;
  transition: z-index 0s;
}

/* --- Projets container (deux colonnes) --- */
.projects-container {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.project {
  flex: 1;
  min-width: 300px;
}

.project--download {
  max-width: 320px;
  margin-top: 10px !important;
  margin-left: 0 !important;
  margin-bottom: 1.5em;
  font-size: 0.97em;
  padding: 1em 0.5em;
  text-align: left !important;
}

/* --- Canvas / App --- */
body, html, #app {
  margin: 0;
  width: 100%;
  height: 100%;
  
}

body {
  touch-action: none;
}

#app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  font-family: "Montserrat", serif;
}

#app a {
  text-decoration: none;
  color: #fff;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- Hero --- */
.hero {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Pour que le contenu reste au-dessus du canvas */
body > *:not(#app) {
  position: relative;
  z-index: 2;
}

h1, h2, p {
  margin: 0;
  padding: 0;
  color: white;
  text-shadow: 0 0 20px rgba(0,0,0,1);
  line-height: 100%;
  user-select: none;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: 60px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero {
  transition: opacity 0.3s ease;
}

/* --- Vidéos dans gallery items --- */
.gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.gallery__item {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
   Note : la redirection JS vers home_mobile.html gère le mobile
   Ces règles sont un fallback de sécurité
   ============================================================ */
@media (max-width: 768px) {
  .intro-bg-video {
    display: none !important;
  }

  .project__label--mission {
    display: block;
    margin-bottom: 1.5em;
  }

  .project--intro {
    margin-bottom: 1em !important;
  }

  .project--details {
    margin-bottom: 0.5em !important;
  }

  .gallery-wrap--dense {
    margin-top: 0.5em !important;
  }

  .top-navbar ul {
    gap: 0.7em;
    padding: 0 0.5em;
    font-size: 0.97em;
  }

  .top-navbar {
    padding: 0.3em 0;
  }

  main {
    margin-top: 44px;
  }

  .logo-li {
    justify-content: center;
    margin: 0 0 0.5em 0;
  }

  .logo img {
    height: 35px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-container {
    padding: 0 0.5em;
  }

  .navbar-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(33,137,255,0.07);
    display: none;
  }

  .navbar-menu.open {
    display: flex;
    max-height: 400px;
    padding: 0.5em 0;
  }

  .navbar-menu li {
    display: block;
    text-align: left;
    padding: 0.7em 1.2em;
  }

  .footer-privacy__content {
    flex-direction: column;
    gap: 0.7em;
    font-size: 0.97em;
  }
}