
@font-face {
  font-family: ddoi;
  src: url("./assets/typos/ddoi3.woff2") format("woff2");
}

@font-face {
  font-family: Hnow-r;
  src: url("./assets/typos/HelveticaNowDisplay-Regular.ttf") format("woff2");
}

@font-face {
  font-family: Hnow-l;
  src: url("./assets/typos/HelveticaNowDisplay-Light.ttf") format("woff2");
}

@font-face {
  font-family: Hnow-li;
  src: url("./assets/typos/HelveticaNowDisplay-LightIta.ttf") format("woff2");
}

.brand {
  font-size: 6rem !important; /* Taille du titre */
  font-family: ddoi;
}

.btn-custom {
  border-radius: 50%; /* Bords arrondis */
  color: black !important; /* Texte en noir */
  background-color: white !important; /* Fond blanc */
  border: 1.2px solid black !important; /* Bordure visible et noire */
  font-family: Hnow-r !important;
  min-width: 130px !important;
  min-width: 150px !important;
}

.btn-custom-2 {
  border-radius: 50%; /* Bords arrondis */
  color: black !important; /* Texte en noir */
  background-color: rgb(0, 0, 0) !important; /* Fond blanc */
  border: 1.2px solid rgb(255, 255, 255) !important; /* Bordure visible et noire */
  min-width: 130px !important;
  min-width: 150px !important;
  font-family: Hnow-r !important;
  margin-left: 100px;
}

.btn-custom:hover {
  background-color: #000000 !important; /* Léger changement de couleur au survol */
  color: #ffffff !important;
  }
  
.btn-custom-2:hover {
background-color: #868686 !important; /* Léger changement de couleur au survol */
}

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

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 20px;
  overflow-x: hidden;  /* Empêche le défilement horizontal */
}

header {
  text-align: center;
  margin-bottom: 20px;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: scroll 80s linear infinite;
  width: max-content; /* Taille en fonction du contenu pour éviter la coupure */
}

.carousel img {
  height: 450px;
  margin: 0 300px;
  object-fit: cover;
}

.separator {
  width: 100%;
  height: 2px;
  background-color: black;
  border-radius: 1px;  /* Coins légèrement arrondis */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);  /* Légère ombre pour donner du relief */
  margin: 20px 0;
}

p{
  font-family: Hnow-r;
}

/* Animation continue */
@keyframes scroll {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}

.marquee {
  width: 100%;
  overflow: hidden;  /* Cache ce qui sort du cadre visible */
  box-sizing: border-box;
  white-space: nowrap;  /* Empêche le texte de se couper sur plusieurs lignes */
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 90s linear infinite;  /* Défilement continu */
  font-size: 20vh;
  font-family: ddoi;
}

.bandeau {
  font-family: ddoi;
}

@keyframes marquee {
  from {
      transform: translateX(15%);  /* Commence hors de l'écran à droite */
  }
  to {
      transform: translateX(-100%);  /* Termine hors de l'écran à gauche */
  }
}

.car-title {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.car-image {
  max-width: 610px;
  min-height: 520px;
  width: auto;
  height: auto;
}

.car-content {
  display: flex;
  flex-direction: column;
}

.car-subtitle {
  margin-bottom: 20px;
  font-family: Hnow-r;
}

.separator1 {
  border-bottom: 2px solid #000;
  width: 50%;
}

.separator2 {
  border-bottom: 2px solid #000;
  width: 40%;
}

.quote {
  margin-bottom: 20px;
  font-family: Hnow-l;
}

.car-details {
  margin-bottom: 20px;
  font-family: Hnow-li;
}

@media (max-width: 768px) {
  .car-content {
      margin-left: 0;
      margin-top: 20px;
  }
}

.hidden-text {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.visible-text {
  opacity: 1;
  transform: translateY(0);
}

.hidden-image {
  opacity: 1;
  transform: rotate(-45deg);
  transition: transform 1s ease-out;
}

.visible-image {
  opacity: 1;
  transform: rotate(0deg);
}

.follow-us-container {
  perspective: 1000px;
  display: inline-block;
  width: 200px;
  height: 40px;
  position: relative;
  overflow: hidden;
  margin-left: 3px;
}

/* Conteneur rotatif qui tourne en 3D */
.rotate-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
}

/* Style des mots de réseaux sociaux */
.social-media {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: start;
  backface-visibility: hidden;
  font-size: 24px;
}

/* Les différentes faces (positions) */
.front { transform: rotateX(0deg) translateZ(20px); }
.back { transform: rotateX(90deg) translateZ(20px); }
.left { transform: rotateX(180deg) translateZ(20px); }
.right { transform: rotateX(270deg) translateZ(20px); }

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px; /* Ajuste selon tes besoins */
}

.btn-hover {
  background-color: transparent;
  border: 2px solid black;
  color: black;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.8s ease;
  font-family: Hnow-r !important;
}

/* Utiliser ::before pour le texte initial */
.btn-hover::before {
  position: absolute;
  color: black;
  transition: all 0.8s ease;
  font-family: Hnow-r !important;
}

/* Ajouter une flèche avec ::after */
.btn-hover::after {
  content: '→';
  font-size: 20px;
  color: black;
  position: absolute;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  right: 15px;
}

/* Effet au survol */
.btn-hover:hover {
  padding: 10px;
  width: 60px; /* Ajuste la taille pour s'adapter à l'icône */
}

/* Cacher le texte au survol */
.btn-hover:hover::before {
  opacity: 0;
  transform: translateX(-20px); /* Décale le texte vers la gauche */
}

/* Afficher la flèche au survol */
.btn-hover:hover::after {
  opacity: 1;
  transform: translateX(0); /* Affiche l'icône à droite */
}

.alpharomeo {
  margin-top: -30px !important;
}
