:root {
  --font-size: clamp(36px, 8vw, 120px);
  --nav-font: clamp(18px, 1.2vw, 25px);
  --bg: #141414d5;
  --turquoise: #42e2b2; 
  --hotpink: #2b2b2b;
  --white: #ffffff;
  --frame-thickness: clamp(6px, 0.3vw, 12px);
  --frame-gap: clamp(10px, 0.5vw, 20px);
  --radius: clamp(12px, 0.6vw, 30px);
  --button-height: clamp(35px, 2vw, 50px);
  --button-padding: clamp(10px, 1vw, 16px);
}

.bg {
  position: fixed;
  inset: 0;
  z-index:-3;
  background-position: 55% 10%;
  background-repeat: no-repeat;
  background: linear-gradient(to bottom, #363636 15%, #42e2b2);
  opacity: 1;
}

nav {
  top: 0;
  left: 0;
  width: 96%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 2vw, 40px);
  background: transparent;
}

.logo_serv {
  margin-right: auto;
  height: clamp(80px, 6vw, 120px);
  width: clamp(80px, 6vw, 120px);
  position: relative;
  top: clamp(10px, 1vw, 15px);
  right: clamp(8px, 0.5vw, 12px);
}

nav a {
  text-decoration: none;
  color: white;
  font-family: Poppins, sans-serif;
  white-space: nowrap;
}

.text-surligner {
  position: relative;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-block;

}

.text-surligner.active::after {
  transform: scaleX(0.8);
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 5px;
  background-color: #42e2b2;
  border-radius: 4px;
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 0;
}

.navbar a:hover::after {
  transform: scaleX(0.8);
}

.text-surligner:hover {
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-block;
}

.navbar {
  display: flex;
  gap: clamp(30px, 4vw, 50px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
  font-size: var(--nav-font);
  font-weight: 600;
  flex-grow: 1;
  justify-content: center;
  
}

.navbar a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.navbar a:hover {
opacity: 1;
}

.logo_navbar {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;  
}

.logo_navbar img {
  padding: 8px;
  display: inline-block;
  height: 30px;
  cursor: pointer;
  opacity: 0.7;
}

.logo_navbar img:hover {
  opacity: 1;
}

.logo-social {
  opacity: 0.7;
}

.logo-social:hover {
  opacity: 1;
}

.logo_navbar a.vote_bouton {
  display: flex;
  background: linear-gradient(to right, #420168 , #ff5f02 );
  color: white;
  padding: 0 var(--button-padding);
  height: var(--button-height);
  border-radius: var(--radius);
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 600;
  font-family: Poppins;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.logo_navbar a.vote_bouton:hover {
  background: linear-gradient(to bottom, #420168 , #ff5f02 );
  color:#42e2b2 ;
}

.menu_factions {
  display: none;
  position: absolute;
  border-radius: 10px;
  border: solid 5px #42e2b2;
  margin-top: 2px;
  text-decoration: none;
  left: -15px;
  padding: 10px;
  min-width: 175px;
  overflow-y: auto;
}

.menu_factions a {
    display: block;
    flex-direction: column;
    text-transform: uppercase;
    color: white;
    font-family: Poppins;
    position: relative;
    font-size: clamp(14px, 1.2vw, 20px);
    font-weight: 600;
    padding: 1px 10px;
    margin: 2px 10px;
    align-items: center;
    
}

.menu_factions a:hover {
    background: rgba(66, 226, 178, 0.8);
    border-radius: 10px;
}

.menu_deroulant1:hover .menu_factions {
    display: flex;
    flex-direction: column;

}

.menu_deroulant1:hover .menu_factions a {
    font-family: Poppins;
    text-align: center;
}
.menu_deroulant1 {
    position: relative;
}

.menu_factions a::after {
    content: none;
}

.menu_utile {
    display: none;
    position: absolute;
    border-radius: 10px;
    border: solid 5px #42e2b2;
    margin-top: 2px;
    text-decoration: none;
    left: -39px;
    padding: 10px;
    overflow-y: auto;
}

.menu_utile a {
    display: block;
    flex-direction: column;
    text-transform: uppercase;
    color: white;
    font-family: Poppins;
    position: relative;
    font-size: clamp(10px, 1.2vw, 20px);
    font-weight: 600;
    padding: 2px 5px;
    margin: 5px 5px;
    align-items: center;
    
}

.menu_utile a:hover {
  background: rgba(66, 226, 178, 0.8);
  border-radius: 10px;
}

.menu_deroulant2:hover .menu_utile {
  display: flex;
  flex-direction: column;

}

.menu_deroulant2:hover .menu_utile a {
  font-family: Poppins;
  text-align: center;
}

.menu_deroulant2 {
  position: relative;
}

.menu_utile a::after {
  content: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: -2;
}


*::before,
*::after {
  box-sizing: border-box;
}

.shop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 20px 50px;
  margin-bottom: 50px;
  margin-top: 125px;
}

.vehicle-card {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  align-items: center;
  justify-content: center;
  height: 260px;
  box-shadow: 0 4px 15px rgba(66,226,178,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(66,226,178,0.7);
}


.vehicle-card img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.vehicle-card:hover img {
  transform: scale(1.08);
}

.vehicle-card .overlay-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #42e2b2;
    padding: 10px;
    font-weight: bold;
    left: 0;
    bottom: 0;
    right: 0;
    cursor: default;
}

.vehicle-card:hover .overlay-text {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.7), transparent);
    left: 0;
    bottom: 0;
    right: 0;
}

.ticket {
  color: #42e2b2;
  font-size: 30px;
  justify-content: flex-start;
  font-family: poppins, sans-serif;
  opacity: 0.8;
}

.legal-popup {
  position: fixed;
  bottom: 15px;
  right: 10px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: Poppins, sans-serif;
}

.legal-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.legal-button {
  background: #141414d5;
  color: #aaa;
  border: 1px solid #42e2b2;
  border-radius: 8px;
  padding: clamp(1px, 0.5vw, 5px) clamp(1px, 1vw, 15px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(12px, 1vw, 18px);
}

.legal-button:hover {
  background: #222;
  color: #42e2b2;
}

.legal-content {
  display: none;
  position: absolute;
  bottom: clamp(35px, 3vw, 60px);
  right: 0;
  width: clamp(250px, 20vw, 400px);
  background: #141414d5;
  border: 1px solid #42e2b2;
  border-radius: 10px;
  padding: clamp(8px, 1vw, 15px);
  color: #fffefe;
  font-size: clamp(12px, 0.9vw, 16px);
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.legal-popup:hover .legal-content {
  display: block;
}