/* ===== 1. VARIABLES ===== */
:root {
  --bg-color: #161922;
  --text-primary: #e0e0e0;
  --accent-color: #6d28d9;
  --line-color: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
}

/* ===== 2. RÉINITIALISATION ET CORPS ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(rgba(22, 25, 34, 0.8), rgba(22, 25, 34, 0.9)), url("images/fond3.jpg") center center / cover no-repeat fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== 3. NAVIGATION (Menu unifié) ===== */
/* ===== NAVIGATION FIXE & CENTRÉE ===== */
.main-nav {
    display: flex;
    justify-content: center; /* Centre le contenu horizontalement */
    align-items: center;
    padding: 15px 20px;
    background: rgba(24, 20, 28, 0.95); /* Fond un peu plus opaque pour la lisibilité */
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #ffffff; /* Forcé en blanc */
    position: absolute;
    left: 20px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    justify-content: center; /* Centre les liens */
    align-items: center;
}

/* Force les liens à être visibles et blancs */
.nav-menu a {
    color: #ffffff !important; 
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color) !important;
}

/* ===== MOBILE (Hamburger) ===== */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #161922;
        flex-direction: column;
        padding: 20px;
    }
    .nav-menu.active { display: flex; }
}

/* ===== 4. SECTION HERO & CONTENU ===== */
.hero-banner { 
  width: 100%; 
  height: 200px; /* Limite la hauteur pour voir le menu */
  object-fit: cover; 
  display: block; 
}

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
main a { color: #818cf8 !important; text-decoration: underline; }

.card { 
  background: rgba(24, 20, 28, 0.6); 
  padding: 25px; 
  border-radius: 15px; 
  border: 1px solid var(--line-color); 
  margin-bottom: 20px; 
}

/* ===== 5. FOOTER ===== */
.footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--line-color); margin-top: 50px; }
.footer a, .footer a:visited { color: var(--text-primary) !important; margin: 0 10px; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--white); }
.social-links { font-size: 1.8rem; margin: 20px 0; display: flex; justify-content: center; gap: 20px; }
.social-links a { color: var(--white) !important; }

/* ===== 6. BOUTON RETOUR HAUT ===== */
#back-to-top {
  display: none; /* C'est cette ligne qui le cache au chargement */
  position: fixed; 
  bottom: 30px; 
  right: 30px;
  width: 50px; 
  height: 50px; 
  border-radius: 50%;
  background: var(--white); 
  color: var(--bg-color); 
  border: none; 
  cursor: pointer;
  /* Garde tes propriétés de centrage */
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 24px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
}


.btn {
  display: inline-block;
  background-color: var(--accent-color); 
  color: var(--white) !important;       
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none !important;     
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  background-color: #5b21b6; 
}


@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-menu { 
    display: none; position: absolute; top: 60px; left: 0; width: 100%;
    flex-direction: column; background: var(--bg-color); padding: 20px; text-align: center;
    border-bottom: 2px solid var(--accent-color);
  }
  .nav-menu.active { display: flex; }
}

.affiliate-links {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;       
    justify-content: center; 
    margin-top: 20px;
}

.affiliate-links .btn {
    min-width: 200px; 
    text-align: center;
}

/* ===== 9. BOUTON GOLD MAGNET ===== */
.cta-gold-magnet {
    display: block;
    width: fit-content;
    margin: 40px auto; /* Espace vertical pour le détacher du reste */
    padding: 15px 30px;
    background-color: var(--accent-color); /* Utilise votre violet */
    color: var(--white) !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
    border: 1px solid var(--white); /* Petite bordure élégante */
}

.cta-gold-magnet:hover {
    background-color: #5b21b6; /* Même violet foncé que vos autres boutons au survol */
}