/* ----------------------------------------------------------------------------
   0) FONT
   ---------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap");

/* ====================== 🌿 LE PAYSAN 06/83 - Login ====================== */
:root {
  --bg: #0d1a12;
  --panel: #12291e;
  --card: #15271f;
  --accent: #3a89a8;
  --accent-light: #719fd4;
  --accent-dark: #2e6280;
  --blue-telegram: #0088cc;
  --text: #e6f2eb;
  --muted: #9ab5a5;
  --radius: 14px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  font-family: "Urbanist", Inter, system-ui, Arial, sans-serif;
  background: linear-gradient(180deg, #0e0e0e, #0a0a0a 40%, #080808);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  text-align: center;
}

.header-login img.logo {
  width: 200px;
  object-fit: cover;
}
.header-login h1 {
  margin: 0.8rem 0 0.3rem;
  color: var(--accent-light);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.header-login h1 span {
  color: var(--accent);
}
.subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

/* === Carte === */
.login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.2rem;
  margin-top: 1rem;
  text-align: left;
}

.login-card form {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

/* === Onglets === */
.login-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.login-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.5rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.login-tabs button.active {
  color: var(--accent-light);
  border-color: var(--accent);
}

/* === Inputs === */
.input-group {
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.input-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--accent-light);
}
.input-group input {
  width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #ffffff;
  color: #000000;
  font-size: 0.95rem;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(58, 168, 107, 0.25);
}

/* === Boutons === */
.buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}
.btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn.primary {
  border: none;
  background: #0095ff;
  color: #ffffff;
}
.btn.primary:hover {
  background: var(--accent-light);
}
.btn.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-telegram);
  color: #ffffff;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
  border: none;
}

/* === Icône Telegram stylisée === */
.btn.secondary i.fa-telegram {
  color: #ffffff;
  font-size: 1.1rem;
  margin-right: 4px;
  vertical-align: middle;
}

.btn.secondary:hover {
  background: rgba(43, 184, 255, 0.8);
}

/* État actif (onglet sélectionné) */
.btn-warning {
  color: var(--accent-light) !important;
  border-bottom: 2px solid var(--accent);
}

/* État inactif (onglet non sélectionné) */
.btn-outline-light {
  color: var(--muted) !important;
  border-bottom: 2px solid transparent;
}

.info-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* === Responsive === */
@media (max-width: 480px) {
  .login-card {
    padding: 1.2rem;
  }
  .header-login h1 {
    font-size: 1.3rem;
  }
  .buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Pop-up majorité */
.age-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
}
.age-modal.hidden {
  display: none;
}
.age-card {
  background: #0e0e0ed1;
  backdrop-filter: blur(12px);
  color: var(--text, #fff);
  border: 1px solid #0095ff;
  border-radius: 18px;
  width: min(90vw, 420px);
  margin: 1rem;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.age-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #ffcc66;
}
.age-card p {
  margin: 0.8rem 0 1.2rem 0;
  line-height: 1.4;
}
.age-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.btn.grey {
  background: var(--glass, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--line, #444);
  color: var(--text, #fff);
}

.btn.grey,
.btn.primary {
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn.primary:hover {
  opacity: 0.9;
}

/* =======================================================================
   TOAST NOTIFICATIONS — VERSION COLORÉE & PREMIUM
   ======================================================================= */

#toast-container {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
}

/* Base du toast */
.toast-notif {
  min-width: 230px;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Apparition */
.toast-notif.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Texte */
.toast-notif p {
  margin: 0;
  line-height: 1.4;
}

/* ===== Couleurs premium ===== */

/* 🟥 Erreur */
.toast-error {
  background: linear-gradient(135deg, #ff4e4e, #d63232);
}

/* 🟩 Succès */
.toast-success {
  background: linear-gradient(135deg, #2ecc71, #1fa355);
}

/* 🟦 Info */
.toast-info {
  background: linear-gradient(135deg, #3498db, #237fc2);
}

/* 🟨 Warning */
.toast-warning {
  background: linear-gradient(135deg, #f1c40f, #d9ac07);
}

/* Mobile responsive */
@media (max-width: 480px) {
  #toast-container {
    right: 0.8rem;
    bottom: 0.8rem;
  }
  .toast-notif {
    min-width: 200px;
    max-width: 90vw;
  }
}
