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

:root {
  --max-height-logo-in-navbar: 40px;
  --min-height-logo-in-navbar: 35px;
  --based-color: rgba(254,0,0,255);
  --yellow-color: rgba(252,185,6,255);
}
html, body {
  overflow-x: hidden;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--based-color);
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-top: 0;
}

header {
    text-align: center;
    padding: 40px 0 10px 0;
    background: rgba(0,0,0,0.10);
    letter-spacing: 1px;
}

/* ----- GESTION DE nav ----- */

.entete-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--based-color);
  padding: 5px 5px;
  border-bottom: 3px solid black;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1100; /* au-dessus du menu */
  cursor: pointer;
}

.menu-fleur:hover {
  transform: rotate(10deg) scale(1.1);
  transition: transform 0.4s ease-in-out;
}

.logo img {
  height: 50px;
  max-height: var(--max-height-logo-in-navbar);
  min-height: var(--min-height-logo-in-navbar);
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.nav-links ul {
  display: flex;
  gap: 5vw;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
  font-size: clamp(1rem, 2.0vw, 30px);
  transition: color 0.3s ease-in-out;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--based-color), var(--yellow-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-in-out;
}

.nav-links a:hover {
  color: var(--yellow-color);
  transform: translateY(-3px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.social-media-links ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

.social-media-links img {
  height: 50px;
  min-height: var(--min-height-logo-in-navbar);
  max-height: var(--max-height-logo-in-navbar);
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.social-media-links a:hover img {
  transform: scale(1.2);
}

.nav-links a.active {
  color: var(--yellow-color);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 111, 97, 0.7);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a.active:hover {
  text-shadow: 0 0 12px rgba(255, 60, 60, 0.9);
}

.menu-title {
  color: white;
  font-weight: bold;
  font-size: 30px;
  display: none;
  transition: color 0.3s ease;
}

/* ----- GESTION DE L'APPARENCE RESPONSIVE ----- */

@media screen and (max-width: 900px) {

  .menu-title {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100vw; /* caché hors écran */
    width: 100vw;
    height: 100vh;
    background-color: rgba(81, 80, 80, 0.85);
    backdrop-filter: blur(7px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.4s ease;
    z-index: 1050;
  }

  /* Quand le menu mobile est activé */
  .nav-links.mobile-menu {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-links ul li a {
    font-size: clamp(1rem, 5vh, 30px);
  }

  .nav-links a::after {
    background: var(--yellow-color);
  }

  .nav-links a:hover {
    color: var(--yellow-color);
    transform: translateY(-3px);
  }

  .nav-links a:hover::after {
    transform: scaleX(1);
  }


}


