/* ---- Écran Login ---- */
#ecran-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-titre {
  text-align: center;
  display: flex;
  justify-content: center;
}
.login-titre .geovio-wordmark {
  font-size: 1.7rem;
}
.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.login-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-login:hover { opacity: .88; }
.btn-register {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.btn-register:hover { background: rgba(249,115,22,.08); }
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.login-remember input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}
.btn-mdp-oublie {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s;
}
.btn-mdp-oublie:hover { color: var(--orange); }
#login-mdp-oublie-wrap { text-align: right; margin-top: -6px; }
#login-normal-wrap, #login-reset-wrap { display: flex; flex-direction: column; gap: 16px; }
.login-error {
  background: rgba(248,113,113,.1);
  color: var(--red);
  border: 1px solid rgba(248,113,113,.25);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.modal-titre {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.modal-confirm-msg {
  font-size: 1rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
.modal-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
#header-user-nom {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.btn-deconnexion-header {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #fff;
}
.btn-deconnexion-header:hover { background: rgba(255,255,255,0.1); }

.header-gear-wrap {
  position: relative;
}
.btn-gear {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.btn-gear:hover { background: rgba(255,255,255,0.1); }
.menu-compte {
  position: fixed;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  min-width: 210px;
  z-index: 9999;
  overflow: hidden;
}
.menu-compte button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-dim);
}
.menu-compte button:hover { background: rgba(255,255,255,.04); }
.menu-compte hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.login-success {
  background: rgba(74,222,128,.1);
  color: var(--green);
  border: 1px solid rgba(74,222,128,.25);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.modal-avertissement {
  font-size: 0.9rem;
  color: var(--red);
  background: rgba(248,113,113,.1);
  padding: 10px 14px;
  border-radius: 8px;
}
.btn-supprimer-compte {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-supprimer-compte:hover { opacity: .88; }
.mdp-force {
  font-size: 0.85rem;
  color: var(--orange);
}
