/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  background: #0f0f1a;
  color: #e8e0d4;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(180deg,rgba(15,15,26,.95),transparent);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 3px;
  color: #c9a96e; text-decoration: none; text-transform: uppercase;
}
.nav-link {
  color: #e8e0d4; text-decoration: none; font-size: 0.9rem;
  border: 1px solid #c9a96e44; padding: 8px 20px; border-radius: 20px;
  transition: all .25s;
}
.nav-link:hover { background: #c9a96e; color: #0f0f1a; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 55vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1400&auto=format&fit=crop') center/cover no-repeat;
  filter: brightness(.25);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-sub { font-size: .8rem; letter-spacing: 3px; color: #c9a96e; text-transform: uppercase; margin-bottom: 12px; }
.hero-title { font-size: clamp(2rem,6vw,3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: #c9a96e; }
.hero-desc { color: #bbb; font-size: 1rem; line-height: 1.6; }

/* ===== STEPS BAR ===== */
.steps-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 0 16px;
  background: #1a1220; border-bottom: 1px solid #c9a96e22;
  overflow-x: auto;
}
.step {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 16px; font-size: .8rem; color: #666;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
  transition: color .3s;
}
.step span {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  background: #2a2030; color: #555; transition: all .3s;
}
.step.active { color: #c9a96e; }
.step.active span { background: #c9a96e; color: #0f0f1a; }
.step.done span { background: #10b981; color: #fff; }
.step-sep { width: 24px; height: 1px; background: #c9a96e22; flex-shrink: 0; }

/* ===== SECTIONS ===== */
.form-section { padding: 48px 16px; }
.form-section.hidden { display: none; }
.container { max-width: 860px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.4rem,4vw,2rem); font-weight: 700;
  margin-bottom: 32px; color: #e8e0d4;
  border-left: 3px solid #c9a96e; padding-left: 16px;
}

/* ===== DATES ===== */
.dates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media(max-width:480px) { .dates-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: .8rem; color: #c9a96e; text-transform: uppercase; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  background: #1a1220; border: 1px solid #c9a96e33; border-radius: 10px;
  color: #e8e0d4; padding: 14px 16px; font-size: 16px; outline: none;
  transition: border-color .25s;
}
.field input:focus, .field select:focus { border-color: #c9a96e; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.6); }

.duration-badge {
  background: #c9a96e22; border: 1px solid #c9a96e44;
  border-radius: 10px; padding: 12px 20px; margin-bottom: 24px;
  color: #c9a96e; font-size: .9rem; text-align: center;
}

/* ===== BOUTONS ===== */
.btn-primary {
  width: 100%; padding: 16px 24px; border-radius: 12px;
  background: #c9a96e; color: #0f0f1a; font-weight: 700;
  font-size: 1rem; border: none; cursor: pointer;
  transition: all .25s; letter-spacing: .5px;
}
.btn-primary:hover { background: #b8904a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,169,110,.3); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-back {
  background: none; border: 1px solid #c9a96e44; color: #c9a96e;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: .85rem;
  margin-bottom: 24px; transition: all .2s;
}
.btn-back:hover { background: #c9a96e22; }

/* ===== TYPE FILTERS ===== */
.type-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-type {
  padding: 10px 20px; border-radius: 20px;
  border: 1px solid #c9a96e44; background: transparent;
  color: #c9a96e; cursor: pointer; font-size: .85rem; transition: all .2s;
}
.btn-type.active, .btn-type:hover { background: #c9a96e; color: #0f0f1a; }

/* ===== CARS GRID ===== */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.car-card {
  background: #1a1220; border: 1px solid #c9a96e22; border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: all .25s;
}
.car-card:hover { border-color: #c9a96e; transform: translateY(-4px); box-shadow: 0 12px 32px rgba(201,169,110,.15); }
.car-card.selected { border-color: #c9a96e; box-shadow: 0 0 0 2px #c9a96e; }
.car-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.car-body { padding: 16px; }
.car-type { font-size: .7rem; color: #c9a96e; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.car-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.car-desc { font-size: .8rem; color: #888; line-height: 1.5; margin-bottom: 12px; }
.car-price { font-size: 1.3rem; font-weight: 800; color: #c9a96e; }
.car-price small { font-size: .7rem; color: #888; font-weight: 400; }
.car-dispo { font-size: .75rem; margin-top: 6px; }
.car-dispo.ok { color: #10b981; }
.car-dispo.ko { color: #ef4444; }
.btn-select {
  width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px;
  background: #c9a96e22; color: #c9a96e; border: 1px solid #c9a96e44;
  font-weight: 600; cursor: pointer; font-size: .85rem; transition: all .2s;
}
.btn-select:hover, .btn-select.sel { background: #c9a96e; color: #0f0f1a; }
.loading { text-align: center; padding: 40px; color: #666; }

/* ===== RECAP CAR ===== */
.recap-car {
  background: #1a1220; border: 1px solid #c9a96e33; border-radius: 14px;
  padding: 20px; margin-bottom: 28px; display: flex; gap: 16px; align-items: center;
}
.recap-car img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; }
.recap-car-info h3 { color: #c9a96e; margin-bottom: 4px; }
.recap-car-info p { font-size: .85rem; color: #888; }

/* ===== FORM ROW ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:480px) { .form-row { grid-template-columns: 1fr; } }

/* ===== TOTAL ===== */
.total-box {
  background: #c9a96e11; border: 1px solid #c9a96e44; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px; text-align: center;
  font-size: 1.2rem; color: #c9a96e; font-weight: 700;
}

/* ===== SUCCESS ===== */
.success-box { text-align: center; padding: 48px 24px; max-width: 540px; margin: 0 auto; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: #10b98122; border: 2px solid #10b981;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #10b981; margin: 0 auto 24px;
}
.success-box h2 { font-size: 1.8rem; margin-bottom: 16px; }
.success-box p { color: #888; line-height: 1.7; margin-bottom: 20px; }
.success-recap {
  background: #1a1220; border-radius: 12px; padding: 16px 20px;
  text-align: left; font-size: .9rem; line-height: 1.8; color: #bbb;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center; padding: 24px; font-size: .8rem; color: #555;
  border-top: 1px solid #c9a96e11;
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #c9a96e; color: #0f0f1a; padding: 14px 24px;
  border-radius: 12px; font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(20px); transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #ef4444; color: #fff; }
