/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: black;
}

/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}
#intro.fade-out {
  opacity: 0;
  pointer-events: none;
}
#intro video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-text {
  color: white;
  font-size: 3rem;
  z-index: 10;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.1); /* Transparente + foncé pour lisibilité */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}
.nav-logo {
  font-weight: 600;
  color: white;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a,
.dropbtn {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}
.dropdown-content {
  position: absolute;
  top: 30px;
  left: 0;
  background: white;
  color: black;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.open .dropdown-content {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-content a {
  padding: 12px 16px;
  display: block;
  color: black;
  text-decoration: none;
  font-size: 1rem;
}
.dropdown-content a:hover {
  background: #f0f0f0;
}

/* MENU BURGER */
.hamburger {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* MOBILE MENU (ANIMÉ) */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  z-index: 999;

  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
#mobile-menu.show {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
  display: flex;
}
#mobile-menu a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

/* MOBILE SOUS-MENU ANIMÉ */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-dropdown button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 10px;
}
.mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateY(-10px);
}
.mobile-submenu a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  text-align: center;
}
.mobile-submenu.show {
  opacity: 1;
  max-height: 800px;
  transform: translateY(0);
}
.hidden {
  display: none;
}

/* ACCUEIL */
#home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#home .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}


.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 10px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    max-height: 1000px;
  }
  .hamburger {
    display: block;
  }
  .nav-logo {
  color: white;
  text-decoration: none;
}
}

/* FADE ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#partners {
  padding: 60px 20px;
  background: black;
  text-align: center;
  color: white;
}

#partners h2 {
  font-size: 2rem;
  margin-bottom: 80px;
}

.carousel {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 0;
}

.carousel-track {
  display: flex;
  gap: 130px; /* espace entre les logos */
  animation: scroll 40s linear infinite;
  /* Largeur calculée automatiquement par flex */
}

.carousel-track img {
  height: 80px;       /* taille uniforme */
  width: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none; /* désactive clic */
  cursor: default;
}

/* Animation scroll fluide */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-track img {
    height: 50px;
    gap: 10px;
  }
}

/* Social icons desktop */
.nav-socials {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}
.nav-socials a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-socials a:hover {
  color: #ff0050; /* accent TikTok style */
}

/* Social icons mobile */
.mobile-socials {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}
.mobile-socials a {
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-socials a:hover {
  color: #ff0050;
}

#category-grid {
  width: 100%;
  background: black;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}


.grid-item {
  position: relative;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
  z-index: 1;
}

.grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: inherit;
  transform: scale(1);
  transition: transform 0.6s ease;
  z-index: 0;
}

.grid-item span {
  z-index: 2;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Hover effect */
.grid-item:hover::before {
  transform: scale(1.1);
}


/* Responsive */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .grid-item {
    height: 40vh;
    font-size: 1.5rem;
  }
}

.site-footer {
  background: #111;
  color: #eee;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  margin-top: 80px;
  z-index: 0;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 0.95rem;
  margin: 4px 0;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: white;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #ff0050;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-left, .footer-right {
    width: 100%;
  }

  .footer-right {
    justify-content: flex-start;
  }
}
.cta-banner {
  display: block;
  width: 100%;
  height: 40vh;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
  text-decoration: none;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/bg2.jpg');
  background-size: cover;
  background-position: center 45%;
  transition: transform 0.5s ease;
  z-index: 0;
}

.cta-banner:hover::before {
  transform: scale(1.1);
}

.cta-overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-overlay h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.cta-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.cta-overlay p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-banner {
    height: 50vh;
  }

  .cta-overlay h2 {
    font-size: 1.2rem;
  }

  .cta-overlay h1 {
    font-size: 1.8rem;
  }

  .cta-overlay p {
    font-size: 1rem;
  }
}
.projects-title {
  padding-top: 100px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.projects-title h1 {
  font-size: 3rem;
  font-weight: 600;
}

/* GRILLE 2 COLONNES FIXE */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

.project-grid .grid-item {
  position: relative;
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
}

/* Superposition d’un filtre sombre */
.project-grid .grid-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.4s ease;
}

/* Effet de zoom de l’image sans déformer la grille */
.project-grid .grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.4s ease;
}

.project-grid .grid-item:hover::after {
  transform: scale(1.08);
}
.project-grid .grid-item:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.project-grid .grid-item span {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 10px;
  transition: transform 0.4s ease;
}

/* Pas de breakpoint pour passer à 1 colonne */
@media (max-width: 768px) {
  .project-grid .grid-item {
    font-size: 1.1rem;
    height: 35vh;
  }
}

/* Bannière projet */
.project-banner {
  background-size: cover;
  background-position: center 40%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}
.project-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.project-banner h1 {
  position: relative;
  z-index: 1;
}

/* Description */
.project-description .container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  color: white;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Vidéo */
.project-video .video-container {
  position: relative;
  padding-bottom: 35%;
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 700px;
}

.project-video .video-container2 {
  position: relative;
  padding-bottom: 35%;
  height: 0px;
  overflow: hidden;
  margin: 40px auto;
  max-width: 300px;
}

.project-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Galerie */
.project-gallery .gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}
.project-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-gallery img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .project-banner {
    height: 35vh;
    font-size: 1.8rem;
  }
  .project-description .container {
    font-size: 1rem;
  }
}

.project-banner-ouidad {
  background-size: cover;
  background-position: center 15%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}
.project-banner-ouidad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.project-banner-ouidad h1 {
  position: relative;
  z-index: 1;
}

.project-banner-formule1 {
  background-size: cover;
  background-position: center 70%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}
.project-banner-formule1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.project-banner-formule1 h1 {
  position: relative;
  z-index: 1;
}

.project-banner-ubb {
  background-size: cover;
  background-position: center 50%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}
.project-banner-ubb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.project-banner-ubb h1 {
  position: relative;
  z-index: 1;
}

.project-banner-running {
  background-size: cover;
  background-position: center 50%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
}
.project-banner-running::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.project-banner-running h1 {
  position: relative;
  z-index: 1;
}