* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #05070f;
}

/* fond animé */
.bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 20%, #2b6cff33, transparent 40%),
              radial-gradient(circle at 80% 70%, #ff2bd633, transparent 40%);
  animation: move 10s infinite alternate ease-in-out;
}

@keyframes move {
  from { transform: translate(-10%, -10%); }
  to { transform: translate(10%, 10%); }
}

/* app */
.app {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass {
  width: 320px;
  padding: 25px;
  border-radius: 30px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* compass */
.compass-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.compass {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.15s ease-out;
}

.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}

/* directions */
.dir {
  position: absolute;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.n { top: 10px; left: 50%; transform: translateX(-50%); }
.s { bottom: 10px; left: 50%; transform: translateX(-50%); }
.e { right: 10px; top: 50%; transform: translateY(-50%); }
.w { left: 10px; top: 50%; transform: translateY(-50%); }

/* needle */
.needle {
  position: absolute;
  width: 3px;
  height: 110px;
  background: linear-gradient(to bottom, #ff3b3b, #ffffff);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  border-radius: 10px;
  box-shadow: 0 0 15px #ff3b3b;
}

/* info */
.info {
  text-align: center;
  margin-top: 20px;
}

.title {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.6;
}

.deg {
  font-size: 34px;
  font-weight: bold;
  margin: 10px 0;
}

button {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #2b6cff, #6a5cff);
  color: white;
  font-weight: bold;
}

/* HEURE */
.time {
  margin-top: 10px;
  font-size: 18px;
  opacity: 0.7;
  letter-spacing: 1px;
  color: brown;
  
}