/* Reset + Structure de base pour coller le footer en bas */
html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;

  display: flex;             /* active flexbox */
  flex-direction: column;    /* disposition verticale */
}

.main-content {
  flex: 1;                   /* prend tout l’espace disponible */
  display: block;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Home container */
.home-container {
  padding: 100px 20px 40px;
  max-width: 1200px;
  margin: auto;
}

.intro h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.intro p {
  font-size: 1.2em;
  color: #555;
}

/* Vehicle cards */
.vehicle-card {
  background-color: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
}

/* Hero section */
.hero h2 {
  text-align: center;
}

.divider {
  height: 4px;
  width: 80px;
  background-color: #94d2bd;
  margin: 20px auto;
  border-radius: 2px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.feature-card {
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
  color: black;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-logo {
  width: 80px;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-logo {
  transform: scale(1.1) rotate(5deg);
}

/* Popular brands */
.popular {
  background: linear-gradient(to bottom, #fff, #005f73, #fff);
  padding: 80px 100px;
  border-radius: 12px;
}

.popular h2 {
  text-align: center;
  margin-top: 60px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.brand-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: black;
}

.brand-card:hover {
  transform: scale(1.05);
}

.brand-card img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

/* CTA banner */
.cta-banner {
  background-color: #005f73;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-radius: 12px;
}

.cta-buttons {
  margin-top: 20px;
}

.cta-buttons button {
  background-color: #94d2bd;
  border: none;
  padding: 12px 20px;
  margin: 10px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-buttons button:hover {
  background-color: #ee9b00;
}

/* Footer */
.footer-users {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.footer-users a {
  color: #aaa;
  text-decoration: none;
  margin: 0 5px;
}

.footer-users a:hover {
  color: #fff;
}

/* Dark mode */
.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
