/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020817;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 20;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent);
  backdrop-filter: blur(6px);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #1d4ed8;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020817;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Nav droite */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 253, 0.18);
  color: #e5e7eb;
  transition: all 0.22s ease;
}

.nav-link:hover {
  background: linear-gradient(90deg, #1d4ed8, #facc15);
  color: #020817;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.7);
  transform: translateY(-1px);
}

.nav-link.active {
  border-color: #facc15;
  color: #facc15;
}

/* Bouton Admin */
.btn-admin {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(148, 163, 253, 0.45);
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin:hover {
  color: #facc15;
  border-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.32);
}

/* PAGE WRAPPER */
.page {
  flex: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 110px 24px 40px;
}

/* Admin banner */
.admin-banner {
  padding: 8px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-banner::before {
  content: "✔";
  font-size: 0.8rem;
}

.hidden {
  display: none !important;
}

/* DEPOT HEADER */
.depot-header {
  margin-top: 4px;
  margin-bottom: 18px;
}

.depot-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.depot-label::before,
.depot-label::after {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(to right, transparent, #1d4ed8);
}

.depot-header h1 {
  margin-top: 4px;
  font-size: 2.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #facc15;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.depot-header p {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #9ca3af;
  max-width: 640px;
}

/* FORMULAIRE DEPOT */
.depot-form-section {
  margin-top: 10px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.04), transparent),
    rgba(9, 9, 11, 0.96);
  border: 1px solid rgba(148, 163, 253, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.depot-form-section h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #60a5fa;
}

/* Form layout */
.depot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field input,
.field select {
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(156, 163, 175, 0.5);
  background: #020817;
  color: #e5e7eb;
  font-size: 0.8rem;
  outline: none;
  transition: all 0.18s ease;
}

.field input::placeholder {
  color: #6b7280;
}

.field input:focus,
.field select:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

/* Options / Modifications */
.options-block {
  margin-top: 4px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent);
}

.options-block h3 {
  font-size: 0.78rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #facc15;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* Submit button */
.btn-primary {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #1d4ed8, #facc15);
  color: #020817;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
  transition: all 0.22s ease;
}

.btn-primary::after {
  content: "→";
  font-size: 0.8rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.98);
  filter: saturate(1.2);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

/* Form note */
.form-note {
  margin-top: 4px;
  font-size: 0.72rem;
  color: #6b7280;
}

/* Message de succès */
.depot-success {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #bbf7d0;
  font-size: 0.78rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

/* ADMIN DEPOTS */
.admin-depots {
  margin-top: 24px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.14), transparent),
    rgba(9, 9, 11, 0.98);
  border: 1px solid rgba(148, 163, 253, 0.28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 1);
}

.admin-depots h2 {
  font-size: 0.98rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #60a5fa;
}

.admin-depots .hint {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.depot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Carte dépôt */
.depot-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(9, 9, 11, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  transition: all 0.18s ease;
}

.depot-item:hover {
  border-color: #1d4ed8;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.depot-main h3 {
  font-size: 0.9rem;
  color: #facc15;
  margin-bottom: 2px;
}

.depot-main p {
  font-size: 0.72rem;
  color: #9ca3af;
}

.depot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Boutons admin */
.depot-actions button {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-validate {
  border-color: rgba(22, 163, 74, 0.7);
  color: #4ade80;
}

.btn-validate:hover {
  background: rgba(22, 163, 74, 0.18);
  box-shadow: 0 0 16px rgba(22, 163, 74, 0.5);
}

.btn-refuse {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fca5a5;
}

.btn-refuse:hover {
  background: rgba(127, 29, 29, 0.6);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.5);
}

.btn-contact {
  border-color: rgba(59, 130, 246, 0.8);
  color: #60a5fa;
}

.btn-contact:hover {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

.btn-archive {
  border-color: rgba(107, 114, 128, 0.9);
  color: #9ca3af;
}

.btn-archive:hover {
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 0 14px rgba(75, 85, 99, 0.5);
}

/* FOOTER */
footer {
  width: 100%;
  padding: 14px 24px 18px;
  font-size: 0.7rem;
  color: #4b5563;
  display: flex;
  justify-content: center;
  gap: 10px;
}

footer .highlight {
  color: #1d4ed8;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  header {
    padding: 10px 16px;
    gap: 10px;
  }

  .page {
    padding: 90px 16px 30px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-link {
    padding: 5px 9px;
    font-size: 0.65rem;
  }

  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .form-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }

  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
