/* ==============================================================================
   PROJET MIRA — THÈME SOMBRE LUXE & ELEGANCE (MOBILE-FIRST)
   ============================================================================== */

:root {
  /* Palette de Couleurs MIRA */
  --bg-main: #0A0A0C;             /* Noir Profond */
  --bg-card: #16161A;             /* Anthracite */
  --bg-card-hover: #212127;       /* Anthracite clair */
  --bg-input: #0F0F12;            /* Fond des champs de saisie */
  
  --text-primary: #F5F5F7;        /* Blanc Cassé */
  --text-muted: #9A9A9E;          /* Gris Neutre */
  --text-dark: #111115;           /* Texte foncé pour boutons clairs */
  
  --emerald-accent: #00C853;      /* Vert Émeraude principal */
  --emerald-hover: #00E676;       /* Vert Émeraude survol */
  --emerald-alpha: rgba(0, 200, 83, 0.15);
  
  --gold-accent: #D4AF37;         /* Doré Premium */
  --gold-hover: #F1C40F;
  --gold-alpha: rgba(212, 175, 55, 0.15);
  
  --danger-color: #FF5252;        /* Rouge Alerte/Erreur */
  --danger-alpha: rgba(255, 82, 82, 0.15);
  
  --border-color: #2A2A30;        /* Bordure subtile */
  --border-focus: #00C853;
  
  /* Typographie & Rayons */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------------------
   1. REINITIALISATION & BASE
   ------------------------------------------------------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Espace réservé pour la barre de navigation mobile */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ------------------------------------------------------------------------------
   2. EN-TÊTE & NAVIGATION DESKTOP
   ------------------------------------------------------------------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}

.brand-logo span {
  color: var(--emerald-accent);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--emerald-accent);
  background: var(--emerald-alpha);
}

.nav-links a.premium-link {
  color: var(--gold-accent);
}

.nav-links a.premium-link:hover {
  background: var(--gold-alpha);
}

/* ------------------------------------------------------------------------------
   3. BARRE DE NAVIGATION MOBILE (MOBILE-FIRST)
   ------------------------------------------------------------------------------ */
.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 0;
  z-index: 99;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  gap: 0.2rem;
}

.mobile-nav-item.active {
  color: var(--emerald-accent);
}

/* ------------------------------------------------------------------------------
   4. AVERTISSEMENT OBLIGATOIRE 18+ (MODAL AGE-GATE)
   ------------------------------------------------------------------------------ */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 12, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.age-gate-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-main);
}

.age-gate-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.age-gate-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------------------------
   5. BOUTONS & FORMULAIRES
   ------------------------------------------------------------------------------ */
.btn-emerald {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: var(--emerald-accent);
  color: var(--text-dark);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-emerald:hover {
  background-color: var(--emerald-hover);
}

.btn-emerald:active {
  transform: scale(0.99);
}

.btn-outline {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Champs de formulaires */
.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9A9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Messages d'Alerte */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.alert-danger {
  background-color: var(--danger-alpha);
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
}

.alert-success {
  background-color: var(--emerald-alpha);
  color: var(--emerald-accent);
  border: 1px solid var(--emerald-accent);
}

/* ------------------------------------------------------------------------------
   6. ADAPTABILITE MEDIA QUERIES (RESPONSIVE)
   ------------------------------------------------------------------------------ */
@media (min-width: 769px) {
  body {
    padding-bottom: 0; /* Pas de padding bas sur écran ordinateur */
  }
  
  .mobile-nav {
    display: none;    /* Masquer la navigation mobile sur ordinateur */
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;    /* Masquer les liens d'en-tête sur mobile */
  }
}