/* ===================================================
   EA Motors — Tableau de bord
   Palette : orange #F97316 / bleu nuit #0F172A / gris #F3F4F6
   =================================================== */

:root {
  --ea-orange: #F97316;
  --ea-orange-dark: #EA6A0C;
  --ea-navy: #0F172A;
  --ea-gray: #F3F4F6;
  --ea-text: #0F172A;
  --ea-radius: 14px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8F9FB;
  color: var(--ea-text);
}

.font-title {
  font-family: 'Poppins', sans-serif;
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ea-navy);
  background-image: radial-gradient(circle at 20% 20%, rgba(249,115,22,0.15), transparent 40%),
                     radial-gradient(circle at 80% 80%, rgba(249,115,22,0.10), transparent 40%);
}

.login-card {
  background: #fff;
  border-radius: var(--ea-radius);
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
}

/* ---------- Layout admin ---------- */
.ea-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--ea-navy);
  color: rgba(255,255,255,.75);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.ea-sidebar .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ea-sidebar .nav-link {
  color: rgba(255,255,255,.65);
  padding: .7rem 1.5rem;
  font-size: .92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.ea-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.ea-sidebar .nav-link.active {
  color: #fff;
  background: rgba(249,115,22,.12);
  border-left-color: var(--ea-orange);
  font-weight: 600;
}

.ea-sidebar .nav-section-title {
  padding: 1.25rem 1.5rem .35rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}

.ea-main {
  margin-left: 260px;
  min-height: 100vh;
}

.ea-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ea-gray);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.ea-content {
  padding: 2rem;
}

@media (max-width: 991.98px) {
  .ea-sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 40;
  }
  .ea-sidebar.show {
    transform: translateX(0);
  }
  .ea-main {
    margin-left: 0;
  }
}

/* ---------- Composants ---------- */
.ea-card {
  background: #fff;
  border: 1px solid var(--ea-gray);
  border-radius: var(--ea-radius);
  padding: 1.5rem;
}

.ea-stat-card {
  background: #fff;
  border: 1px solid var(--ea-gray);
  border-radius: var(--ea-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ea-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ea-navy);
  color: var(--ea-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ea-stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
}

.ea-stat-label {
  color: rgba(15,23,42,.55);
  font-size: .85rem;
}

.btn-ea {
  background: var(--ea-orange);
  border-color: var(--ea-orange);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
}

.btn-ea:hover {
  background: var(--ea-orange-dark);
  border-color: var(--ea-orange-dark);
  color: #fff;
}

.btn-ea-outline {
  background: transparent;
  border: 1px solid var(--ea-navy);
  color: var(--ea-navy);
  font-weight: 600;
  border-radius: 10px;
}

.btn-ea-outline:hover {
  background: var(--ea-navy);
  color: #fff;
}

.table-ea thead {
  background: var(--ea-gray);
}

.table-ea th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(15,23,42,.55);
  font-weight: 600;
  border-bottom: none;
}

.table-ea td {
  vertical-align: middle;
  font-size: .9rem;
}

.badge-ea {
  border-radius: 999px;
  padding: .35rem .75rem;
  font-weight: 600;
  font-size: .72rem;
}

.badge-publie { background: rgba(34,197,94,.12); color: #15803d; }
.badge-brouillon { background: rgba(148,163,184,.2); color: #475569; }
.badge-attente { background: rgba(249,115,22,.12); color: var(--ea-orange-dark); }
.badge-confirme { background: rgba(34,197,94,.12); color: #15803d; }
.badge-refuse { background: rgba(239,68,68,.12); color: #b91c1c; }

.veh-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-upload-slot {
  aspect-ratio: 4/3;
  border: 2px dashed var(--ea-gray);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.photo-upload-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-slot .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15,23,42,.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .7rem;
  line-height: 1;
}

/* Pages publiques (mentions légales / à propos) */
.public-page header {
  background: #fff;
  border-bottom: 1px solid var(--ea-gray);
}

.public-page .hero-mini {
  background: var(--ea-navy);
  color: #fff;
}
