:root{
  --bg:#070b14;

  /* Bouton ACCÉDER : couleurs d’origine */
  --primary:#6ea8ff;
  --primary2:#8a5cff;

  /* Palette dark glass */
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.12);
  --text:#eef3ff;
  --muted: rgba(238,243,255,.70);
  --shadow: 0 18px 65px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1000px 500px at 30% 0%, rgba(110,168,255,.22), transparent 60%),
    radial-gradient(900px 450px at 90% 15%, rgba(138,92,255,.18), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* CONTENEUR GLOBAL */
.page{
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.header-logo-block{
  text-align:center;
  margin-top:25px;
  margin-bottom:25px;
}

.header-logo{
  max-width:260px;
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  margin:0 auto;
}

.header-slogan{
  margin-top:12px;
  font-size:16px;
  font-weight:500;
  color:var(--muted);
  text-align:center;
}

@media (min-width: 900px) {
  .header-logo { max-width: 420px; }
  .header-slogan { font-size: 18px; }
}

/* APP */
.app{
  width:100%;
  padding-bottom: 120px;
}

/* TOP BAR — DARK GLASS */
.top{
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

/* FOND DU S EN BLANC */
.logo{
  background: #ffffff !important;
  color: #000; /* noir pour contraste */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:20px;
}

/* TITRE EN BLANC */
.top h1{
  font-size: 18px;
  margin:0;
  color: #ffffff !important;
}

.sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* SEARCH — DARK GLASS */
.search{
  margin-top: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 10px;
  display:flex;
  gap: 10px;
  align-items:center;
  backdrop-filter: blur(10px);
}

.search input{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 10px 4px;
}

.search input::placeholder{
  color: rgba(255,255,255,.45);
}

/* CHIPS — RESTENT EN BLANC */
.chips{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #ffffff !important;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.chip:hover{
  background: rgba(255,255,255,0.12);
}

/* LISTE DES PAYS — DARK GLASS */
.list{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}

.country{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  cursor: pointer;
  color: var(--text);
}

.country:active{ transform: scale(.995); }

.left{
  display:flex; gap: 12px; align-items:center; min-width: 0;
}

.flag{
  width: 38px; height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
  font-size: 18px;
}

/* NOM DES PAYS EN BLANC */
.name{
  font-weight: 750;
  font-size: 15px;
  color: #ffffff !important;
}

.host{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.chev{
  opacity:.75;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,0.06);
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
}

/* BOTTOM SHEET */
.sheet{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.12);
  z-index: 10;
}

.sheet-inner{
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.sheet-row{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
}

.dest .t1{
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.dest .t2{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* BUTTONS — BOUTON BLEU D’ORIGINE */
.btn{
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 780;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  box-shadow: 0 12px 25px rgba(110,168,255,.20);
}

.btn:disabled{ opacity:.45; cursor:not-allowed; }

.btn.ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(238,243,255,.85);
}

/* FOOTER */
.footer {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 0;
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(7,11,20,.40), rgba(7,11,20,.85));
}

.footer-small {
  margin-top: 4px;
  font-size: 12px;
  opacity: .75;
}
