body {
  margin: 0;
  width: 100%;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  font-family: 'Inconsolata', monospace;
}

svg {

     display: block;
  margin: 40px auto;
  width: min(90vmin, 100%);
  height: auto;
  max-width: 90vmin;

}

.border {
  fill: #f4f4f4;       /* 👈 même couleur que le fond */
  stroke: #858484;
  stroke-width: 0.2;
}

.tick {
  stroke: #333;
  stroke-width: 0.1;
}

.sunrise-tick {
  stroke: #ff0000; /* orange */
  stroke-width: 2;
}

.sunset-tick {
  stroke: #ff0000; /* rouge orangé */
  stroke-width: 2;
}

.sunrise-label {
  fill: #000000; /* pour le lever du soleil */
  font-weight: bold;
}

.sunset-label {
  fill: #000000; /*  pour le coucher du soleil */
  font-weight: bold;
}

#numbers .label {
  font-size: 4px;
  font-family: 'Amiri', serif;
}

.segment-label {
  font-family: 'Amiri', serif;
  font-size: 4px;
  fill: #111;
  text-anchor: middle;
  dominant-baseline: middle;
}

.time-label {
  font-size: 3px;
  font-family: 'Amiri', serif;
  /* plus de fill ici — on laisse sunrise/sunset le gérer */
}

#timezone-info {
  color: #aaa;          /* couleur du texte du fuseau */
  font-style: italic;   /* optionnel : style différencié */
  font-size: 0.9rem;
}

#date-label {
  color: #111111; /* ou une autre couleur claire sur fond noir */
}

.segment-day {
  fill: #ffffff;
  fill-opacity: 0.6;
  stroke: #000;
  stroke-width: 0.1;
}

.segment-night {
  fill: #ddd;
  fill-opacity: 0.4;
  stroke: #000;
  stroke-width: 0.1;
}

.digital {
  font-size: 4px;
  fill: #313131;
  opacity: 0.7;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: 'Inconsolata', monospace;
}


/* 🎯 Mode « actif » (Arrêter) : style foncé */
button.active,
#accept-location {
  background-color: #111;
  color: #fff;
}

/*  Utiliser ma position */
.location-hint {
  display: block;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 8px;
  padding-left: 5px;   /* aligné avec le input */
  background: transparent !important;  /* force suppression du fond */
  border: none;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
}
.location-hint:hover {
  opacity: 0.9;
  text-decoration: underline dotted;
}

.date-display {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-family: 'Inconsolata', monospace;
  text-align: center;
  line-height: 1.2;
}

.date-bottom-40 {
  bottom: 40px;
}

.timezone-info {
  bottom: 20px;
  transform: translateX(-50%);
}

.manual-location {
  position: absolute;
  top: 60px;
  left: 10px;
  display: flex;
  align-items: center; /* ✅ aligne verticalement */
  gap: 8px;
  font-family: 'Inconsolata', monospace;
}


.custom-autocomplete {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 330px; /* ou auto si tu préfères */
}

#city-input {
  width: 100%; /* ou une largeur explicite comme 240px */
  padding: 10px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

#suggestions-list {
  margin: 4px 0 0 0;
  padding: 0;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #ddd;
}

.suggestions li:not(:last-child) {
  border-bottom: 1px solid #000000;
}

.custom-autocomplete input {
  border-radius: 6px;
  background: #fff;         /* 🔧 fond clair */
  color: #111;               /* texte clair */
  border: 1px solid #ccc;       /* bordure visible sur noir */
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 1rem;
  font-family: 'Inconsolata', monospace;
  box-sizing: border-box;
}

.custom-autocomplete input::placeholder {
  color: #668; /* gris clair lisible sur fond sombre */
}

.custom-autocomplete input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(79, 79, 79, 0.2);
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-top: none;
  background: #fff;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.suggestions li {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.suggestions li:hover {
  background: #f0f0f0;
}

.hidden {
  display: none;
}

.suggestion-item {
  padding: 6px 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.tech-credit {
  position: fixed; /* ✅ fixe à l’écran */
  bottom: 20px;
  left: 20px;
  font-size: 0.8rem;
  color: #666;
  font-family: 'Inconsolata', monospace;
  z-index: 999; /* au-dessus du fond */
}

.tech-credit a {
  color: #919191;
  text-decoration: underline dotted;
}

.tech-credit a:hover {
  text-decoration: underline;
}

/* ================== MOBILE ================= */

@media (max-width: 600px) {

    .tech-credit {
    font-size: 0.8rem;
    position: fixed; /* ✅ fixe à l’écran */
    text-align: lef;
    margin-top: 30px;

     }  
  .date-display,
  .timezone-info {

    font-size: 0.7rem;
    left: 10px;
    transform: none;
    text-align: center;
    position: static;
    margin-top: 20px;
  }

  svg {
    display: block;
    margin: 120px auto 20px auto;
    width: 90vw;
    max-width: 90vh;  /* pour ne pas dépasser verticalement */
    height: auto;
  }

  .controls,
  .manual-location,
  .custom-autocomplete {
    flex-direction: column;
    align-items: flex-start;
     top: 20px;
    width: 90vw; /* ou auto si tu préfères */
    gap: 6px;
  }

  .custom-autocomplete input {
    font-size: 0.85rem;
  }

  .suggestions li {
    font-size: 0.85rem;
  }

  body {
    display: block;
    padding: 20px 0;
    height: auto;
  }
}

