body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-family: 'General Sans', sans-serif;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
@font-face {
  font-family: 'Le-Murmure';
  src: url('./fonts/le-murmure.ttf') format('truetype');
}
@font-face {
    font-family: 'General Sans';
    src: url('./fonts/GeneralSans-Variable.ttf') format('truetype');
}
h1 {
    font-size: 34pt;
    font-family: 'Le-Murmure', monospace;
    color: #003878;
    font-weight: bold;
}
h2 {
    font-size: 28pt;
    font-family: 'Le-Murmure', monospace;
    color: #003878;
    font-weight: bold;
}
h1 a {
    color: inherit;
    text-decoration: none;
}
.pageContent {
    max-width: 600px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    margin: 0 auto;
}
.tutorialOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.tutorialBox {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 320px;
    text-align: center;
}
.endOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.endBox {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 320px;
    text-align: center;
}
#endText, #endPoints {
    display: block;
}
.mapContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;   /* ancre pour le bouton */
}
.mapCircle {
    width: min(300px, 90vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}
#mapCornerBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
.optionsContainer {
    margin-top: 20px;
    width: 250px;
    max-height: 30vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.option {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}
.option-btn {
    background-color: #B8D9FF;
    color: #002147;
    border-radius: 8px;
    padding: 5px 8px;
}
.option-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    
}
.attemptsContainer {
    margin-top: 20px;
    width: 220px;
    max-height: 30vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.archivesContainer {
    margin-top: 20px;
    width: 220px;
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.correct {
    color: green;
}
.incorrect {
    color: red;
}
form {
    margin-top: 20px;
}
.autocomplete {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}
input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
    font-family: inherit;
    border-radius: 8px;
}
input[type="text"] {
    background-color: #f1f1f1;
    width: 100%;
}
#guessButton {
    background-color: #2E8FFF;
    color: #fff;
    font-family: inherit;
    border-radius: 8px;
    white-space: nowrap;
    padding: 10px 16px;
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}
.autocomplete-active {
    background-color: rgba(106, 188, 238, 1) !important;
    color: #ffffff;
}
#map {
    width: 100%;
    height: 100%;
    touch-action: none;
}
.badges {
    display: flex;
    gap: 2px;
}
.badge {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 550;
    font-family: 'General Sans', sans-serif;
    flex: 0 0 auto;
        box-sizing: border-box;
}
.station-label {
    font-family: 'General Sans', sans-serif;
    font-weight: 420;
}
#difficultyDot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
#gameInfo {
    width: 250px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
    padding-top: 20px;
    font-weight: 500;
}
#streakText:empty {
    display: none;
}