.nav-emoji {
  display: none;
  font-size: 1.1em;
  margin-top: 1px;
}
 :root {
  --primary: #007aff;
  --bg: #f2f2f7;
  --card-bg: rgba(206, 206, 206, 0.85);
  --text: #1c1c1e;
  --gray: #8e8e93;
  --radius: 18px;
  --nav-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  background-attachment: fixed;
  background-size: cover;
}



.navbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 92vw;
  max-width: 480px;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 32px;
  box-shadow: var(--nav-shadow);
  z-index: 1000;
  padding: 0 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(128,128,128,0.08);
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 64px;
}
.navbar ul li {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}
.navbar ul li a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  padding: 0 0 6px 0;
  width: 100%;
  transition: color 0.2s;
  gap: 2px;
}
.navbar ul li a .nav-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
}
.navbar ul li a .nav-label {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.navbar ul li a.createcar {
  background: var(--primary);
  color: #fff !important;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  max-width: 58px;
  max-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-top: -22px;
  box-shadow: 0 6px 18px rgba(0,122,255,0.18);
  border: 4px solid var(--bg);
  z-index: 2;
  aspect-ratio: 1/1;
  padding: 0;
}
.navbar ul li a.createcar .nav-ico {
  width: 32px;
  height: 32px;
  margin: 0;
}

@media (max-width: 556px) {
  .navbar {
    width: 99vw;
    max-width: 99vw;
    border-radius: 18px;
    margin-bottom: 6px;
    padding: 0 2px;
  }
  .navbar ul {
    height: 54px;
  }
  .navbar ul li a .nav-ico {
    width: 22px;
    height: 22px;
  }
  .navbar ul li a.createcar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    max-width: 46px;
    max-height: 46px;
    font-size: 1.2rem;
    margin-top: -14px;
  }
  .navbar ul li a.createcar .nav-ico {
    width: 26px;
    height: 26px;
  }
  .navbar ul li a .nav-label {
    display: none;
  }
  .navbar ul li a .nav-emoji {
    display: block;
    font-size: 1.25em;
    margin-top: 1px;
  }
}

@media (max-width: 600px) {
  .navbar {
    width: 98vw;
    max-width: 98vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 32px;
    padding: 0 2px;
  }
  .navbar ul {
    gap: 18px;
  }
  .navbar ul li a {
    font-size: 0.98rem;
    padding: 10px 0 4px 0;
  }
  .navbar ul li a.createcar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    font-size: 1rem;
    margin-top: -18px;
  }
}

/* doublons supprimés, voir plus haut */

@media (max-width: 600px) {
  .navbar {
    height: 64px;
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .navbar ul li a {
    font-size: 1.05rem;
    padding: 10px 0 4px 0;
  }
  .navbar ul li a.createcar {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    margin-top: -22px;
  }
}

