/* Réinitialisation de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: black;
  height: 100%;
  font-family: 'Playfair Display', serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed; /* 🔁 Était absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
}


.background-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.344);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: -1;
}


.background-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Menu et Langues */
.menu,
.dealer {
  color: rgb(255, 255, 255);
  position: relative;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

.menu.scrolled,
.dealer.scrolled {
  color: white;
}

/* Logo */
.logo {
  width: 33%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-height: 50px;
}

.btn:hover {
  background: #ddd;
}

/* MENU HAMBURGER – VERSION GAUCHE PLEIN ÉCRAN */
#hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 35%;
  background-color: rgba(0, 0, 0, 0.144);
  backdrop-filter: blur(8px);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 9999;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


#hamburger-menu.visible {
  transform: translateX(0);
}

#hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

#hamburger-menu ul li {
  text-align: center;
  margin-bottom: 20px;
}

#hamburger-menu ul li a {
  display: block;
  color: white;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  padding: 15px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover par défaut dans hamburger menu → bleu */
#hamburger-menu ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #d4af37;
}

#hamburger-menu.visible ul li {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInLinks 0.4s ease forwards;
}

#hamburger-menu.visible ul li:nth-child(1) { animation-delay: 0.1s; }
#hamburger-menu.visible ul li:nth-child(2) { animation-delay: 0.2s; }
#hamburger-menu.visible ul li:nth-child(3) { animation-delay: 0.3s; }
#hamburger-menu.visible ul li:nth-child(4) { animation-delay: 0.4s; }

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


.close-icon {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 10001;
}


/* Langues */
.dealer {
  position: relative;
}

/* Style du bouton "Languages" */
.languages {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}


.languages:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Style du menu déroulant */
/* Bouton Languages avec plus de transparence */
.languages {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1); /* Plus transparent */
}

.languages:hover {
  background-color: rgba(0, 0, 0, 0.2); /* Léger assombrissement au survol */
}

/* Menu déroulant avec plus de transparence */
.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 160px;
  display: none;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Éléments du menu */
.language-dropdown li {
  padding: 8px 20px;
  list-style: none;
}

.language-dropdown li a {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Survol : couleur jaune doré et petit décalage */
.language-dropdown li a:hover {
  color: #ffd700;
  transform: translateX(5px);
}

/* Au survol, les langues doivent aussi avoir la bonne couleur */
.dealer .language-dropdown li a {
  color: inherit; /* hérite de .dealer */
}


/* Garder "Langues" en blanc */
.dealer-label {
  color: white;
}

/* Par défaut (section 1), liens en bleu */
.dealer .language-dropdown li a {
  color: #fff;
}

/* En section 2, liens deviennent or */
.dealer.gold .language-dropdown li a {
  color: #fff;
}

/* Hover par défaut (section 1 → bleu) */
.dealer .language-dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #d4af37;
}
*:not(input):not(textarea):not(select) {
  cursor: none !important;
}


/* CURSEUR PERSONNALISÉ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border 0.15s ease;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

/* Animation click / hover */
.custom-cursor.click,
.custom-cursor.hover,
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Masquer uniquement le curseur personnalisé sur mobile ou écran étroit */
@media (max-width: 768px) {
  .custom-cursor {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body, html {
    cursor: auto !important;
  }
}



/* Effet de fondu pour les sections */
html {
  scroll-behavior: smooth;
}

section {
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: auto;
}


/* Quand on veut masquer progressivement */
section.fade-out {
  opacity: 0;
  pointer-events: none; /* pour éviter interaction pendant la transition */
}


/* Le bas de site */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    margin: 10px 20px;
    min-width: 200px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column p {
    margin: 0 0 10px;
    color: #aaa;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.main3 {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
}



.background-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  object-fit: cover;
}

.main3 > *:not(.background-video) {
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 120px; /* adapte la valeur à la hauteur de ton header + marge souhaitée */
  text-align: center;
  color: white;
}

.services-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #ffffff;
}

.services-header p {
  font-size: 1.1rem;
  color: #cccccc;
  font-weight: 300;
  letter-spacing: 1px;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.service-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  opacity: 0.8;
}

.service-content {
  padding: 30px;
  position: relative;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
}

.service-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
  font-weight: 300;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
}

.service-features li {
  padding: 5px 0;
  color: #aaaaaa;
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d4af37;
  font-weight: bold;
}

.service-link {
  display: inline-block;
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.service-link:hover {
  border-bottom-color: #d4af37;
  transform: translateX(5px);
}

/* Badge premium pour certains services */
.premium-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #d4af37, #f4e7b1);
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-header h2 {
    font-size: 2rem;
  }
  
  .service-content {
    padding: 20px;
  }
}

.main4 {
  background: #000;

}

#main2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#main2 h2 {
  font-family: 'Playfair Display', serif;
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #d4af37;
  font-size: 58px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

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


/* Transitions douces pour les éléments */
.menu,
.dealer,
.logo {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Appliqué lors du scroll */
.menu,
.dealer,
.logo {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.menu.scrolled,
.dealer.scrolled,
.logo.scrolled {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 5px 10px;
}


/* Scrollbar pour WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0e0e0e; /* fond sombre */
}

::-webkit-scrollbar-thumb {
  background-color: #d4af37; /* or */
  border-radius: 10px;
  border: 2px solid #0e0e0e;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #4b4b49 #0e0e0e;
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .menu {
    order: 1;
    font-size: 24px;
  }

  .logo {
    order: 2;
    /* Centrer le logo ou laisser normal */
  }

  .dealer {
    order: 3;
    font-size: 18px;
  }

  /* Cacher le mot Languages, garder l’icône 🌐 seulement */
  .dealer-label span[data-i18n="languages"] {
    display: none;
  }
}

@media (max-width: 768px) {
  #background-video, 
  .background-video {
    max-height: 800px; /* plus petit sur petit écran */
  }
}

@media (max-width: 768px) {
  .menu {
    font-size: 30px; /* Plus petit que 24px précédemment */
    padding: 1px 1px;
  }
  
  /* Pour que le "MENU" soit caché (tu veux juste l’icône ?) */
  .menu span {
    display: none;
  }
}

@media (max-width: 768px) {
  #main2 h2 {
    white-space: nowrap;
    font-size: 28px; /* Taille plus petite sur mobile */
  }
}

@media (max-width: 768px) {
  #hamburger-menu {
  width: 100%;
  }
}

@media (max-width: 768px) {
  .language-dropdown {
    left: auto;
    right: 0;
   
  }
  
  .language-dropdown {
    min-width: 140px;
    width: auto;
  }
}