/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #0f172a; /* bleu nuit */
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
.modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 15px;
  background: #1e1b4b; /* violet foncé */
  border-bottom: 1px solid #312e81;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24; /* jaune/orange accent */
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #f59e0b;
}

/* --- NAVIGATION --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a,
.dropbtn {
  background: transparent;
  border: none;
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
}

.nav-links a:hover,
.dropbtn:hover {
  background: #f59e0b;
  color: white;
}

/* --- DROPDOWN --- */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 110%;
  left: 0;
  background: #1e293b;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  min-width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.4s ease;
  padding: 8px 0;
  z-index: 1001;
}

.dropdown-content a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 18px;
  margin: 3px 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #f1f5f9;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background: #f59e0b;
  color: #fff;
}

.dropdown:show .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- HERO --- */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fbbf24;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
}

/* --- CARDS / CONFIG --- */
.cards, .cards-grid, .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: #1e293b;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.card h3 {
  color: #fbbf24;
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 15px;
  color: #ddd;
}

/* --- BUTTONS --- */
.buy-btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f8c93e, #f39c12);
  color: #111;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.buy-btn:hover {
  background: linear-gradient(135deg, #ffd65b, #f1a40b);
  transform: scale(1.05);
}

/* Contact button */
.btn-contact {
  padding: 8px 16px;
  background: #f59e0b;
  color: #fff !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: #d97706;
}

/* --- FOOTER --- */
footer {
  margin-top: auto;
  text-align: center;
  padding: 20px;
  background: #1e1b4b;
  color: #9ca3af;
  font-size: 14px;
}

/* --- CONFIG PAGE --- */
.config-page h2 {
  text-align: center;
  color: #c280ed;
  margin: 20px 0;
}

.config-img {
  display: block;
  margin: 40px auto 20px;
  max-width: 350px;
  width: 100%;
  border-radius: 12px;
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .modern-header {
    flex-direction: column;
    text-align: center;
    padding: 8px 15px; /* 🔽 réduit le padding */
  }

  .logo a {
    font-size: 1.2rem; /* 🔽 réduit la taille du logo */
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  /* Dropdown corrigé : fermé par défaut */
  .dropdown-content {
    position: static;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    box-shadow: none;
    background: #1e293b;
    padding: 5px 0;
    width: 100%;
    border-radius: 8px;
  }

  .dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-content a {
    background: transparent;
    margin: 4px 0;
    width: 100%;
    text-align: center;
  }

  /* Grilles simplifiées */
  .cards, .cards-grid, .grid-container {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .config-img {
    max-width: 85%;
  }
}
