:root {
  --main-color: #a12222;
  --second-red: #791717;
  --dark-bg: #252428;
  --text-light: #ffffff;
  --text-dark: #333333;
  --transition-speed: 0.4s;
}

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

body {
  font-family: Arimo, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Navbar animée */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 0;
  height: fit-content;
}

.nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-item {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.navbar-item::after {
  content: '';
  position: absolute;
  /* bottom: -5px; */
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition: all var(--transition-speed) ease;
}

.navbar-item:hover::after {
  width: 100%;
  left: 0;
}

.navbar-item a {
  color: var(--text-light);
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem;
}

.navbar-item span {
  font-size: 0.9rem;
  margin-top: 0.5rem;

  opacity: 0;
  /* custom et */
  /* height: 0px; */

  transition: all var(--transition-speed) ease;
}

.navbar.scrolled .navbar-item span {
  opacity: 1;
  height: fit-content;
  /* visibility: visible; */
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}


/* Header avec vidéo et animations */
.header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  animation: gradientAnimation 10s ease-in-out infinite;
}

@keyframes gradientAnimation {
  0% {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  }
  
  50% {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
  }
  
  100% {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  }
}

.header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1);
  animation: zoomVideo 20s infinite alternate;
}

@keyframes zoomVideo {
  from {
    transform: scale(1.05);
  }
  
  to {
    transform: scale(1.1);
  }
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.header-title {
  font-size: 4rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1s ease-out;
}

.text-box {
  background: rgba(0, 0, 0, 0.7); /* Fond semi-transparent sombre */
  border-left: 6px solid var(--main-color);  /* Bordure colorée sur la gauche */
  border-radius: 10px; /* Coins arrondis */
  padding: 1.5rem;
  color: rgb(10, 10, 10);
  font-weight: 500;
  text-align: left;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);  /* Ombre pour un effet de relief */
  transition: transform 0.3s ease-in-out;
}

.highlight-text {
  color: var(--main-color);
  font-weight: bold;
}

/* Sections */
.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 3rem;
}

.section.reverse .media-container {
  order: 2;
  animation-delay: 0.2s;
}

.section.reverse .text-content {
  order: 1;
  animation-delay: 0s;
}

/* Conteneur média adapté aux images Full HD */
.media-container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-10deg) translateZ(0);
  transition: transform 1s ease, opacity 1s ease;
  margin: 0 auto;
}

.media-container img,
.media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-container:hover {
  transform: perspective(1000px) rotateY(0deg) translateZ(30px);
}

.text-content {
  flex: 1 1 45%;
  padding: 3rem;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.2s;
}

.section.visible .media-container,
.section.visible .text-content {
  opacity: 1;
  transform: translateY(0);
}

/* Bouton Télécharger */
.download-section {
  text-align: center;
  padding: 4rem 2rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 3rem;
  background: var(--main-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.4rem;
  transition: all var(--transition-speed) ease;
}

.download-button:hover {
  background: var(--second-red);
  transform: scale(1.10);
}

.windows-icon {
  width: 1.2em;
  margin-right: 0.8rem;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
}

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

.company {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .nav-content {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .navbar-item a {
    font-size: 1.5rem;
  }

  .navbar-item span {
    font-size: 0.7rem;
  }

  .header-title {
    font-size: 2.5rem;
  }

  .section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .media-container,
  .text-content {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .text-content {
    text-align: center;
    padding: 1rem;
  }

  .download-button {
    width: 90%;
    justify-content: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
