@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

:root {
  --bg-color: #1a0f24;
  --text-color: #e5d7a3;
  --accent-color: #ffffff;
  --link-color: #ffdd57;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  font-family: 'Playfair Display', serif;
  color: var(--text-color);
  line-height: 1.8;
  font-size: 18px;
  font-weight: 300;
}


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;
}

header .dealer {
  margin-right: 60px;
}

.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);
  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: 1px 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: 2px 8px;
  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, opacity 0.2s ease;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
  will-change: transform, opacity;
}

.custom-cursor.click {
  transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Masquer le curseur système sur desktop uniquement */
@media (min-width: 769px) {
  * {
    cursor: none !important;
  }
  
  /* Exception pour les champs de saisie */
  input, textarea, select {
    cursor: text !important;
  }
  
  /* Exception pour les éléments avec curseur spécifique */
  [style*="cursor"] {
    cursor: none !important;
  }
}

  body.is-touch * {
  cursor: auto !important;
}

body.is-touch .custom-cursor {
  display: none !important;
}
  
.container {
  margin-top: 120px;
  margin-left: 50px;

}
h1, h2, h3 {

  color: var(--accent-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 300;
}

p, li {
  margin-bottom: 18px;
}

ul {
  padding-left: 2rem;
}

a {
  color: var(--link-color);
  text-decoration: underline;
}

button, .btn {
  background-color: var(--accent-color);
  color: #1a0f24;
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 10px 10px 10px 0;
  box-shadow: 0 4px 15px rgba(245, 201, 31, 0.4);
}

button:hover, .btn:hover {
  background-color: #ffe65c;
}

.section {
  margin-top: 60px;
}


.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 0;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%; /* retire la limite de 1200px */
  padding: 0 60px;
  margin: 0;
  border-top: 1px solid #333;
  padding-top: 20px;
  box-sizing: border-box;
}


.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;
}


.cookie-banner {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #2b153a; /* violet foncé */
  padding: 30px;
  border: 1px solid #a98aff;
}

.cookie-btn {
  padding: 15px 40px;
  border-radius: 50px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s ease;
}

.cookie-btn.outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-btn.outline:hover {
  background-color: white;
  color: #2b153a;
}

.cookie-btn.filled {
  background-color: #ffffff;
  color: #2b153a;
  border: none;
}

.cookie-btn.filled:hover {
  background-color: #757486;
}


/* 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) {
  #hamburger-menu {
  width: 100%;
  }
}

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


.dealer-label span[data-i18n="languages"] {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu {
    order: 1;
    font-size: 28px;
    padding-left: 25px;
  }

  .logo {
    order: 2;
    

    /* Centrer le logo ou laisser normal */
  }

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

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

  .menu span {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Ajustement du header pour mobile */
  header {
    padding: 0 20px;
  }
  
  header .dealer {
    margin-right: 20px;
  }
  
  /* Menu hamburger adapté pour mobile */
  #hamburger-menu {
    width: 50%;
  }
  
  /* Container principal poussé à gauche */
  .container {
    margin-top: 80px;
    margin-left: 20px;
    margin-right: 40px;
    padding-right: 0;
  }
  
  /* Tous les éléments de contenu alignés à gauche */
  h1, h2, h3 {
    text-align: left;
    margin-left: 0;
  }
  
  p, li {
    text-align: left;
    margin-left: 0;
  }
  
  ul {
    padding-left: 1rem;
  }
  
  /* Boutons alignés à gauche */
  button, .btn {
    margin: 10px 0 10px 0;
    display: inline-block;
  }
  
  .section {
    margin-top: 40px;
    text-align: left;
  }
  
  /* Cookie banner adapté */
  .cookie-banner {
    flex-direction: column;
    padding: 20px;
    text-align: left;
  }
  
  .cookie-btn {
    padding: 12px 30px;
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  /* Footer reste centré */
  .footer-container {
    padding: 0 20px;
    flex-direction: column;
  }
  
  .footer-column {
    margin: 10px 0;
  }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
  .container {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  header {
    padding: 0 15px;
  }
  
  header .dealer {
    margin-right: 10px;
  }
  
  #hamburger-menu {
    width: 100%;
  }
  
  body {
    font-size: 16px;
  }
}