@media only screen and (min-device-width: 820px) and (max-device-width: 950px) and (orientation: portrait) {
  .navbar {
    margin-bottom: 38px !important;
  }
}
.nav-emoji {
  display: none;
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 0;
  height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
 :root {
  --primary: #007aff;
  --bg: #f2f2f7;
  --card-bg: rgba(206, 206, 206, 0.391);
  --text: #1c1c1e;
  --gray: #8e8e93;
  --radius: 18px;
  --nav-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  background-size: cover;
}



.navbar {
  position: fixed;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  bottom: 0;
  width: 96vw;
  max-width: 480px;
  background: var(--card-bg);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border-radius: 32px;
  box-shadow: var(--nav-shadow);
  margin-bottom: 14px;
  border: 1px solid rgba(128,128,128,0.08);
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 14px);
  padding-left: 0;
  padding-right: 0;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 64px;
  margin-bottom: 13px;
}
.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;
  margin-top: 5px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.199);
  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: 600px) {
  .navbar {
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 32px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    width: 96vw;
    max-width: 480px;
    margin: 10px auto;
    box-shadow: none;
  }
  .navbar ul {
    gap: 10px;
  }
  .navbar ul li a {
    font-size: 1.1rem;
    padding: 10px 0 4px 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }
  .navbar ul li a .nav-label {
    display: none;
  }
  .navbar ul li a .nav-ico {
    font-size: 1.35em;
    color: var(--gray);
  }
  .navbar ul li a.active .nav-ico,
  .navbar ul li a:active .nav-ico {
    color: var(--primary);
  }
  .navbar ul li a:active,
  .navbar ul li a.active {
    background: rgba(0,122,255,0.08);
    border-radius: 12px;
  }
  .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;
  }
}

/* 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;
  }
}

