:root{
  --bg:#0b1020;
  --card:#121a33;
  --card2:#0f1730;
  --text:#eaf0ff;
  --muted:#9fb0d0;
  --accent:#7c5cff;
  --accent2:#1dd6a6;
  --danger:#ff4d6d;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r:18px;
}
*{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: var(--bg); /* seulement la couleur */
  color:var(--text);
  position: relative;
  overflow-x: hidden;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(124,92,255,.25), transparent 55%),
    radial-gradient(1200px 700px at 80% 0%, rgba(29,214,166,.18), transparent 55%),
    var(--bg);
}

.container{
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 90px;
}
.header{
  display:flex;align-items:center;justify-content:space-between;
  margin: 10px 0 14px;
}
.brand{
  display:flex; gap:10px; align-items:center;
}
.logo{
  width:40px;height:40px;border-radius:14px;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow: var(--shadow);
}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:13px; margin-top:2px}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow);
}
.row{display:flex; gap:12px; align-items:center}
.btn{
  width:100%;
  border:none;
  border-radius: 16px;
  padding: 14px 14px;
  color:var(--text);
  font-weight:800;
  background: linear-gradient(135deg,var(--accent), #4b7bff);
  box-shadow: var(--shadow);
  cursor:pointer;
}
.btn:active{transform: translateY(1px)}
.btn.secondary{
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
}
.input, select{
  width:100%;
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,16,32,.55);
  color: var(--text);
  outline: none;
}
.small{font-size:12px;color:var(--muted)}
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.attraction{
  display:flex;
  gap:12px;
  align-items:center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
}
.attraction img{
  width:76px; height:76px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}
.attraction h3{margin:0; font-size:16px}
.meta{color:var(--muted); font-size:12px; margin-top:4px}
.pill{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124,92,255,.16);
  border:1px solid rgba(124,92,255,.25);
  color: var(--text);
  font-weight:800;
  font-size:12px;
}
.counter{
  display:flex; gap:10px; align-items:center; justify-content:flex-end;
  margin-left:auto;
}
.iconbtn{
  width:44px;height:44px;border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}
.iconbtn.plus{
  background: linear-gradient(135deg, rgba(29,214,166,.22), rgba(124,92,255,.16));
  border:1px solid rgba(29,214,166,.35);
}
.bottomnav{
  position:fixed;
  left:0; right:0; bottom:0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8,12,22,.65);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.10);
}
.navwrap{
  max-width: 520px;
  margin: 0 auto;
  display:flex; gap:10px;
}
.navlink{
  flex:1;
  text-align:center;
  padding: 12px 10px;
  border-radius: 16px;
  text-decoration:none;
  color: var(--text);
  font-weight: 900;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.navlink.active{
  background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(29,214,166,.14));
  border-color: rgba(124,92,255,.35);
}
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 92px;
  background: rgba(15,23,48,.92);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 92vw;
  opacity: 0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-4px);
}
.hero{
  padding: 14px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(29,214,166,.12));
  border:1px solid rgba(255,255,255,.10);
}
.spark{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.0));
  overflow:hidden;
  position: relative;
}
.spark::after{
  content:"";
  position:absolute;
  top:0; left:-30%;
  width:30%; height:100%;
  background: rgba(255,255,255,.45);
  filter: blur(4px);
  animation: sweep 1.8s infinite;
}
@keyframes sweep{
  0%{left:-30%}
  100%{left:120%}
}
.rank{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.badge{
  width:34px;height:34px;border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 1000;
  background: rgba(124,92,255,.18);
  border:1px solid rgba(124,92,255,.30);
}
