:root{
  --bg: #0b1220;
  --surface: #0f1a31;
  --surface-2: #14224a;
  --text: #f4f6ff;
  --muted: rgba(244,246,255,.72);

  --primary: #f2c200;
  --primary-2: #d8a700;
  --danger: #ff4d4d;

  --outline: rgba(255,255,255,.10);
  --shadow: 0 14px 35px rgba(0,0,0,.35);

  --radius: 18px;
  --radius-sm: 12px;

  --maxw: 420px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -100px, rgba(242,194,0,.15), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(76,115,255,.18), transparent 55%),
    var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container-app{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-shell{
  width: 100%;
  max-width: var(--maxw);
  padding: 14px 14px 28px;
}

.app-header{
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px 0 14px;
  background: linear-gradient(to bottom, rgba(11,18,32,.95) 0%, rgba(11,18,32,.70) 70%, rgba(11,18,32,0) 100%);
  backdrop-filter: blur(8px);
}

.header-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo{
  /* ✅ LOGO PLUS GROS */
  width: 74px;
  height: 74px;

  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
}

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

.brand-title{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-title .name{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 24px;
}

.brand-title .sub{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-row{
  display: flex;
  gap: 10px;
  align-items: center;

  /* ✅ BOUTONS CENTRÉS */
  justify-content: center;

  flex-wrap: wrap;
  margin-top: 10px;
}

.nav-row-2{
  /* ✅ deuxième ligne, centrée */
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  margin-top: 10px;
}

.nav-pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.page-title{
  margin: 10px 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%), var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-inner{
  padding: 14px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.field label{
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.input, textarea, select{
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

.input:focus, textarea:focus, select:focus{
  border-color: rgba(242,194,0,.7);
  box-shadow: 0 0 0 4px rgba(242,194,0,.15);
}

textarea{ min-height: 90px; resize: vertical; }

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 380px){
  .row{ grid-template-columns: 1fr; }
}

.btn{
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .2px;
  width: 100%;
  transition: transform .04s ease, filter .15s ease, background .2s ease;
}

.btn:active{ transform: scale(.99); }

.btn-primary{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #0b1220;
  box-shadow: 0 12px 25px rgba(242,194,0,.18);
}

.btn-secondary{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
}

.btn-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.small-muted{
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.pill-checkbox{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  margin: 8px 0 12px;
}

.pill-checkbox input{
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-item{
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.muted{ color: var(--muted); }

.app-footer{
  margin-top: 18px;
  padding-top: 20px;
  text-align: center;
  color: rgba(244,246,255,.45);
  font-size: 12px;
}

.app-footer .divider{
  width: 75%;
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 0 auto 12px;
}

#map{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.mode-btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}

.mode-btn.active-departure{
  border-color: rgba(30,144,255,.5);
  box-shadow: 0 0 0 4px rgba(30,144,255,.15);
}

.mode-btn.active-arrival{
  border-color: rgba(46,204,113,.45);
  box-shadow: 0 0 0 4px rgba(46,204,113,.15);
}