/* Password eye toggle styles */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
}

.toggle-password:hover {
  opacity: 1;
}
/* app/static/css/base.css */
/* Styles communs BASE : layout + header/footer + nav mobile/desktop
   Objectif : ne pas toucher aux styles métiers/pages (cards, tables, boutons custom, etc.) */

html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #fff;

  /* Fond global */
  background:
    radial-gradient(circle at 12% 88%, rgba(255, 0, 128, 0.42) 0%, rgba(255, 0, 128, 0) 22%),
    radial-gradient(circle at 82% 14%, rgba(79, 70, 229, 0.55) 0%, rgba(79, 70, 229, 0) 24%),
    radial-gradient(circle at 50% 0%, rgba(24, 119, 242, 0.18) 0%, rgba(24, 119, 242, 0) 30%),
    linear-gradient(120deg, #2a084f 0%, #12033a 24%, #020b63 58%, #050a4a 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* Header / Navbar */
header {
  background: rgba(10, 10, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  position: sticky;
  top: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  gap: 12px;
}

.navbar-left,
.navbar-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.navbar-left {
  gap: 12px;
  min-width: 0;
}

.navbar-right {
  justify-content: flex-end;
  gap: 10px;
}

.app-wordmark {
  color: #fff;
  text-decoration: none;
  font-family: 'Karumbi Regular', 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  line-height: 1;
}

.app-wordmark:hover {
  color: #fff;
  opacity: 0.95;
}

/* ✅ Force une taille cohérente des boutons du header (évite que admin.css change la navbar) */
header .btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 8px;
}

header .btn.btn-gold {
  box-shadow: 0 0 10px #FFD70055;
}

header .btn.btn-gold:hover {
  transform: translateY(-2px);
}

header .lang-dropdown .btn {
  padding: 6px 12px; /* un poil plus compact pour le bouton drapeau */
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.burger div {
  background: #fff;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger.open div:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.burger.open div:nth-child(2) { opacity: 0; }
.burger.open div:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 68px;
  right: 12px;
  left: auto;
  min-width: 240px;
  width: min(260px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);

  background: rgba(15, 15, 45, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);

  display: flex;
  flex-direction: column;
  align-items: stretch;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1100;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  color: #fff;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
  background: rgba(255,215,0,0.1);
  color: #FFD700;
}

/* Desktop links container (les styles de boutons restent dans tes css pages) */
.nav-links {
  display: none;
  align-items: center;
  gap: 10px;
}

.fi {
  display: inline-block;
  line-height: 1;
}

/* Mobile menu language section */
.mobile-menu-sep {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.08);
}
.mobile-menu-section {
  width: 100%;
  padding: 8px 0;
  text-align: left;
}
.mobile-menu-title {
  font-size: 0.8rem;
  opacity: 0.75;
  margin: 0;
  padding: 6px 16px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-menu-lang {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  width: 100%;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu-lang:hover {
  background: rgba(255,215,0,0.1);
  color: #FFD700;
}

/* Layout contenu */
main {
  flex: 1 0 auto;
  padding: 0;
}

footer.site-footer {
  flex-shrink: 0;
  background: rgba(10,10,42,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  width: 100%;
}

.site-footer__lang {
  position: relative;
}

.site-footer__lang-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-footer__lang-btn::after {
  display: none !important;
}

.site-footer__lang-btn:focus,
.site-footer__lang-btn:focus-visible,
.site-footer__lang-btn:active {
  outline: none;
  box-shadow: none;
  border: 0;
}

.site-footer__lang-menu {
  min-width: 180px;
  background: rgba(20, 12, 45, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.4rem;
}

.site-footer__lang-menu .dropdown-item {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.site-footer__lang-menu .dropdown-item:hover,
.site-footer__lang-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #FFD700;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
}

.site-footer__links a,
.site-footer__links span {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__links a:hover {
  color: #FFD700;
}

/* Desktop */
@media (min-width: 769px) {
  .burger { display: none; }
  .mobile-menu { display: none !important; }

  .nav-links { display: flex; }
}

/* Mobile: keep only the burger menu */
@media (max-width: 768px) {
  .nav-hello,
  .user-dropdown {
    display: none !important;
  }

    .navbar {
    padding: 0.85rem 1rem;
  }

  .app-wordmark {
    font-size: 1.55rem;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .site-footer__lang-btn {
    font-size: 1rem;
    transform: translateY(1px);
  }

  .site-footer__links {
    gap: 10px;
    font-size: 0.78rem;
    line-height: 1.2;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .site-footer__links a,
  .site-footer__links span {
    white-space: normal;
  }

  .site-footer__lang {
    align-self: flex-start;
  }

  .site-footer__lang-menu {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  .mobile-menu {
    top: 64px;
    right: 10px;
    left: auto;
    min-width: 220px;
    width: min(250px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .burger {
    width: 26px;
    height: 18px;
    flex-basis: 26px;
  }

  .burger div {
    height: 2.5px;
  }
}

/* Desktop: hide the mobile menu container by default (if not already) */
@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}