:root{
  --bg:#05070c;
  --card:#0a0f1d;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --neon:#3aa6ff;
  --neon2:#2d6bff;
  --shadow:0 10px 40px rgba(0,0,0,.55);
}
.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.vehicle-box {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #2a2f45;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vehicle-info {
  font-weight: bold;
  color: #fff;
}
.btn.pill {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* bouton style AP Evotech (noir/tech) */
.btn.pill.ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

.btn.pill.ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* bouton danger logout */
.btn.pill.danger {
  background: linear-gradient(135deg, #ff3b3b, #b10000);
  color: #fff;
  border: none;
}

.btn.pill.danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Overlay full screen */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Cache le modal */
.modal.hidden {
  display: none;
}

/* Boîte popup */
.modal-content {
  background: #111;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 0 25px rgba(247,147,30,0.25);
  animation: pop .2s ease-out;
}

/* Animation */
@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Inputs propres */
.modal-content input {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: white;
}
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.auth-tabs button {
  flex: 1;
  padding: 8px;
  border: none;
  cursor: pointer;
  background: #222;
  color: white;
}

.auth-tabs button.active {
  background: #f7931e;
  color: black;
}

/* Bouton */
.modal-content button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #f7931e;
  color: black;
  font-weight: bold;
  cursor: pointer;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 700px at 70% 20%, rgba(58,166,255,.12), transparent 55%),
              radial-gradient(900px 550px at 20% 65%, rgba(45,107,255,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  overflow-x:hidden;
}
.bg-glow{
  position:fixed; inset:-20%;
  background:
    radial-gradient(400px 260px at 60% 38%, rgba(58,166,255,.14), transparent 70%),
    radial-gradient(480px 280px at 35% 75%, rgba(45,107,255,.10), transparent 70%);
  filter: blur(18px);
  pointer-events:none;
  z-index:-1;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 22px;
  /* pas de ligne sous le titre */
  border-bottom:none;
  backdrop-filter: blur(10px);
  position:sticky; top:0;
  background: rgba(5,7,12,.55);
}
.brand{display:flex; gap:12px; align-items:center}
.logo-dot{
  width:14px;height:14px;border-radius:50%;
  background:var(--neon);
  box-shadow: 0 0 20px rgba(58,166,255,.9);
}
.brand-name{font-weight:800; letter-spacing:.3px; font-size:18px}
.brand-sub{font-size:12px; color:var(--muted)}
.wrap{max-width:980px; margin:0 auto; padding:26px 18px 40px}
.hero{padding:18px 6px 22px}
.hero p{margin:0; color:var(--muted); max-width:64ch}
.neon{
  color:var(--neon);
  text-shadow:
    0 0 18px rgba(58,166,255,.65),
    0 0 34px rgba(45,107,255,.35);
}
.chips{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.chip{
  padding:8px 10px;
  border:1px solid rgba(58,166,255,.22);
  border-radius:999px;
  background: rgba(10,15,29,.55);
  color:rgba(255,255,255,.85);
  box-shadow: 0 0 20px rgba(58,166,255,.06);
  font-size:13px;
}
.card{
  background: linear-gradient(180deg, rgba(10,15,29,.95), rgba(7,10,18,.92));
  border:1px solid rgba(58,166,255,.16);
  border-radius:16px;
  padding:18px;
  box-shadow: var(--shadow);
}
.card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.card-title h2{margin:0; font-size:18px}
.stepper{display:flex; gap:8px}
.step{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.65);
  font-weight:700;
}
.step.is-active{
  border-color: rgba(58,166,255,.45);
  color:var(--text);
  box-shadow: 0 0 18px rgba(58,166,255,.22);
}
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
}
.grid.grid-2{grid-template-columns: repeat(2, minmax(0,1fr)); margin-top:12px}
@media (max-width:820px){
  .grid{grid-template-columns:1fr}
  .grid.grid-2{grid-template-columns:1fr}
}
.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
select, input{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  background: rgba(5,7,12,.55);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  outline:none;
}
select:disabled{opacity:.55}
.options{margin-top:14px}
.options h3{margin:0 0 10px; font-size:14px; color:rgba(255,255,255,.86)}
.opt-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
@media (max-width:820px){ .opt-grid{grid-template-columns:1fr} }
.check{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(58,166,255,.12);
  background: rgba(10,15,29,.35);
}
.check input{width:18px;height:18px}
.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px;
  flex-wrap:wrap;
}
.btn{
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,15,29,.35);
  color:var(--text);
  cursor:pointer;
}
.btn.primary{
  border-color: rgba(58,166,255,.45);
  background: rgba(58,166,255,.12);
  box-shadow: 0 0 22px rgba(58,166,255,.12);
}
.btn.ghost{opacity:.9}
.btn:disabled{opacity:.5; cursor:not-allowed}
.pill{
  text-decoration:none;
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(58,166,255,.22);
  background: rgba(10,15,29,.35);
}
.hidden{display:none}
.summary{
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(5,7,12,.45);
  margin-bottom:12px;
  color:rgba(255,255,255,.85);
}
.toast{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(58,166,255,.22);
  background: rgba(10,15,29,.55);
  color:rgba(255,255,255,.9);
}
.notice{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(58,166,255,.28);
  background: rgba(58,166,255,.06);
  color: rgba(255,255,255,.82);
  font-size:13px;
}
.footer{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  align-items:center;
}
.muted{color:var(--muted)}
.link{color:rgba(58,166,255,.95);text-decoration:none}
.link:hover{text-decoration:underline}

.brand-link{
  text-decoration:none;
  color:inherit;
}
.brand-link:visited,
.brand-link:hover,
.brand-link:active{
  text-decoration:none;
  color:inherit;
}
.brand-link:hover .brand-name{opacity:.92}


/* === RDV calendar === */
.rdv{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.22);
  border-radius:16px;
  padding:12px;
}
.rdv-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.btn.mini{
  padding:6px 10px;
  font-size:12px;
  border-radius:12px;
}
.rdv-month{
  font-weight:700;
  letter-spacing:.2px;
}
.rdv-week{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
  margin-bottom:6px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.rdv-cal{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}
.rdv-day{
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:12px;
  padding:10px 0;
  text-align:center;
  cursor:pointer;
  user-select:none;
}
.rdv-day:hover{ filter:brightness(1.08); }
.rdv-day.disabled{
  opacity:.45;
  cursor:not-allowed;
}
.rdv-day.is-selected{
  outline:2px solid rgba(58,166,255,.65);
}
.rdv-day .n{
  font-size:13px;
  font-weight:700;
}
.rdv-day.avail{ border-color:rgba(0,255,140,.22); background:rgba(0,255,140,.10); }
.rdv-day.full{ border-color:rgba(255,70,70,.24); background:rgba(255,70,70,.12); }

.rdv-slots{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rdv-slot{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  font-size:12px;
}
.rdv-slot.avail{ border-color:rgba(0,255,140,.25); background:rgba(0,255,140,.10); }
.rdv-slot.taken{ border-color:rgba(255,70,70,.24); background:rgba(255,70,70,.12); cursor:not-allowed; opacity:.6; }
.rdv-slot.is-selected{ outline:2px solid rgba(58,166,255,.65); }

