/* ==================================================================
   Dynasty 8 — Alta FA · Espace staff
   ================================================================== */

.staff-shell { padding-bottom: 4rem; }

/* ---------------- Connexion ---------------- */

.login-card {
  margin: 6rem auto;
  max-width: 46rem;
  padding: 3.4rem 3rem;
  text-align: center;
}
.login-card .lock { font-size: 3.2rem; }
.login-card h1 { font-size: 2.4rem; font-weight: 800; margin: 1.4rem 0 .8rem; }
.login-card p { color: var(--white-50); font-size: 1.35rem; }

.login-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2.8rem; text-align: left; }
.login-form label { color: var(--white-50); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.login-form .btn { margin-top: .6rem; }

.login-error {
  border: 1px solid rgba(230, 90, 90, .35);
  border-radius: .9rem;
  background: rgba(60, 16, 22, .5);
  color: #ffb4b4;
  display: none;
  font-size: 1.3rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.4rem;
}
.login-error.show { display: block; }

/* ---------------- En-tête du panel ---------------- */

.pn-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: space-between;
  padding: 4rem 0 2.4rem;
}
.pn-head h1 { font-size: 3rem; font-weight: 800; }
.pn-head p { color: var(--white-50); font-size: 1.35rem; }
.pn-head p strong { color: var(--green-soft); }
.pn-head-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------- Statistiques ---------------- */

.stats { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.stat { padding: 1.8rem 2rem; }
.stat .k { color: var(--white-30); font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }
.stat .v { font-size: 2.8rem; font-weight: 800; margin-top: .6rem; }
.stat .v.accent { color: var(--green-soft); }

/* ---------------- Onglets ---------------- */

/* ---------------- Upload de photos ---------------- */

.uploader { display: flex; flex-direction: column; gap: 1.4rem; }

.up-drop {
  align-items: center;
  border: 1px dashed hsla(0, 0%, 100%, .2);
  border-radius: 1rem;
  background: rgba(3, 10, 7, .4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color .25s, background .25s, transform .2s;
}
.up-drop:hover, .up-drop:focus-visible {
  border-color: rgba(34, 197, 94, .55);
  background: rgba(34, 197, 94, .07);
  outline: none;
}
.up-drop.over { border-color: var(--green-soft); background: rgba(34, 197, 94, .14); transform: scale(1.005); }
.up-drop svg { color: var(--green-soft); height: 3rem; width: 3rem; }
.up-title { font-size: 1.5rem; font-weight: 600; }
.up-hint { color: var(--white-30); font-size: 1.2rem; }

/* Pendant la compression, la zone reste visible mais inerte. */
.up-drop.busy { opacity: .55; pointer-events: none; }
.up-drop.busy .up-title::after { content: ' — traitement…'; color: var(--green-soft); }

.up-list { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.up-item {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: .9rem;
  overflow: hidden;
  position: relative;
}
.up-item.is-cover { border-color: rgba(34, 197, 94, .55); }
.up-item img { height: 100%; object-fit: cover; width: 100%; }

.up-flag {
  background: rgba(34, 197, 94, .9);
  border-radius: 999px;
  color: #04150b;
  font-size: 1.05rem;
  font-weight: 700;
  left: .7rem;
  padding: .3rem .9rem;
  position: absolute;
  top: .7rem;
}
.up-item-actions { display: flex; gap: .4rem; position: absolute; right: .7rem; top: .7rem; }
.up-item-actions button {
  align-items: center;
  background: rgba(3, 10, 7, .8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 2.6rem;
  justify-content: center;
  transition: background .2s;
  width: 2.6rem;
}
.up-item-actions button:hover { background: rgba(34, 197, 94, .8); }
.up-item-actions button[data-del]:hover { background: rgba(224, 90, 90, .85); }

.form-note { color: var(--white-30); font-size: 1.2rem; }
.form-note.ok { color: var(--green-soft); }
.form-note.warn { color: #ffb4b4; }

/* ---------------- Formulaire de bien ---------------- */

.pn-section { margin-top: 3.2rem; padding: 2.6rem; }
.pn-section h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: .6rem; }
.pn-section .hint { color: var(--white-30); font-size: 1.3rem; margin-bottom: 2.4rem; }

.form-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.form-row { display: flex; flex-direction: column; gap: .7rem; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { color: var(--white-50); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.form-row textarea.field { min-height: 11rem; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* ---------------- Tableau des biens ---------------- */

.table-wrap { margin-top: 2rem; overflow-x: auto; }
table.pn-table { border-collapse: collapse; min-width: 68rem; width: 100%; }
table.pn-table th {
  border-bottom: 1px solid var(--line);
  color: var(--white-30);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 1.2rem 1.4rem;
  text-align: left;
  text-transform: uppercase;
}
table.pn-table td {
  border-bottom: 1px solid hsla(0, 0%, 100%, .06);
  font-size: 1.35rem;
  padding: 1.4rem;
  vertical-align: middle;
}
table.pn-table tr:hover td { background: hsla(0, 0%, 100%, .03); }
table.pn-table .name { font-weight: 600; }
table.pn-table .price { color: var(--green-soft); font-weight: 600; }
table.pn-table .row-actions { display: flex; gap: .6rem; justify-content: flex-end; }
table.pn-table .row-actions .btn { font-size: 1.2rem; padding: .7rem 1.2rem; }

.pn-empty { color: var(--white-30); font-size: 1.4rem; padding: 5rem 2rem; text-align: center; }

/* Vignette de la ligne : rappel visuel du bien dans la liste. */
.row-thumb {
  border: 1px solid var(--line);
  border-radius: .6rem;
  display: block;
  height: 4rem;
  overflow: hidden;
  position: relative;
  width: 6rem;
}
.row-thumb img { height: 100%; object-fit: cover; width: 100%; }
.row-thumb em {
  background: rgba(3, 10, 7, .82);
  border-radius: .4rem;
  bottom: .2rem;
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  padding: .1rem .4rem;
  position: absolute;
  right: .2rem;
}
.row-thumb.empty { align-items: center; color: var(--white-30); display: flex; justify-content: center; }

/* ---------------- Éditeur de zones ---------------- */

/* ---------------- Notification ---------------- */

.toast {
  background: rgba(9, 26, 17, .96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: 1rem;
  bottom: 2.4rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9);
  color: #fff;
  font-size: 1.35rem;
  opacity: 0;
  padding: 1.3rem 1.8rem;
  pointer-events: none;
  position: fixed;
  right: 2.4rem;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 1200;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { border-color: rgba(230, 90, 90, .45); }

@media screen and (max-width: 862px) {
  .pn-head { padding-top: 2.4rem; }
  table.pn-table .row-actions { justify-content: flex-start; }
}
