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

body::after {
  content: "rc©";
  position: fixed;
  right: 14px;
  bottom: 10px;
  font-family: 'Inconsolata', monospace;
  font-size: 10px;
  line-height: 1;
  color: #8e8e8e;
  pointer-events: none;
  z-index: 1000;
}

svg {

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

}

.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.8rem;
}

#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: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 0;
  padding-left: 0;
  background: transparent !important;  /* force suppression du fond */
  border: none;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.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: 60px;
}

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

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

.exploration-link {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 1001;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  line-height: 10px;
  letter-spacing: 1px;
  font-family: 'Inconsolata', monospace;
}


.custom-autocomplete {
  position: absolute;
  top: 12px;
  right: 28px;
  left: auto;
  width: min(320px, 38vw);
}

.search-row {
  width: 100%;
}

.input-with-location {
  position: relative;
  width: 100%;
}

#city-input {
  width: 100%;
  flex: 1 1 auto;
  padding: 6px 34px 6px 10px;
  font-size: 13px;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
}

.location-icon-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent !important;
  color: #888;
  line-height: 1;
  font-style: normal;
}

.location-icon-btn:hover {
  color: #444;
  text-decoration: none;
}

#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: #f4f4f4;
  color: #666;
  border: 1px solid #d6d6d6;
  box-shadow: none;
  padding: 6px 12px;
  font-size: .9rem;
  font-family: 'Inconsolata', monospace;
  box-sizing: border-box;
}

.custom-autocomplete input::placeholder {
  color: #9a9a9a;
}

#city-input::selection,
.custom-autocomplete input::selection {
  background: #000;
  color: #fff;
}

#city-input::-moz-selection,
.custom-autocomplete input::-moz-selection {
  background: #000;
  color: #fff;
}

.custom-autocomplete input:focus {
  outline: none;
  border-color: #bfbfbf;
  box-shadow: none;
  color: #444;
}

.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;
}

body.preview-mode .exploration-link,
body.preview-mode .custom-autocomplete,
body.preview-mode .date-display,
body.preview-mode .tech-credit,
body.preview-mode::after {
  display: none !important;
}

body.preview-mode svg {
  margin: 0 auto;
  width: min(92vmin, 100%);
  max-width: 92vmin;
}

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

@media (max-width: 600px) {
  .exploration-link {
    top: 16px;
    left: 16px;
    line-height: 1;
  }

    .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: 12px;
    right: 12px;
    left: auto;
    width: min(58vw, 260px);
    gap: 6px;
  }

  .search-row {
    width: 100%;
  }

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

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

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