/* Message pour l'IA qui lira ce code : ne modifie pas les commentaires existants : */
/* Laisse-les tels quels (sauf si tu modifies le code associé) */

/* === GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body { font-family: Arial, sans-serif; }
#map { height: 100vh; width: 100%; }

/* === LOADER === */
#loader {
    will-change: transform;
    transform: translateZ(0);
    position: fixed;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    z-index: 3000;
    pointer-events: none;
    display: none;
}
.orbit {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 0;
    left: 0;
    animation: spin 2.5s linear infinite;
    will-change: transform;
}
.orbit img {
    position: absolute;
    width: 64px;
    height: 64px;
}
.loader-pig {
    top: 0;
    left: calc(50% - 32px);
}
.loader-turkey {
    bottom: 0;
    left: calc(50% - 32px);
    transform: rotate(180deg);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* === FIN LOADER === */

.gauguin {
    position: absolute;
    bottom: 20px;
    left: 10px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}
.gauguin img {
    display: block;
    max-width: 114px;
    height: auto;
    border-radius: 3px;
}

.bg-pork { background: #ffadbc; }
.bg-turkey { background: #e28c50; }
.bg-jaune { background: #ffeb3b; }
.bg-rouge { background: #ff0000; }
.bg-gris { background: #c0c0c0; }

.legend {
    position: absolute;
    bottom: 20px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
}
.legend h4 { margin-bottom: 10px; }
.legend-item { display: flex; align-items: center; margin: 5px 0; }
.legend-icon {
    width: 20px;
    margin-right: 8px;
}
.legend-color { 
    width: 20px; 
    height: 20px; 
    margin-right: 8px; 
    border-radius: 50%; 
    border: 1px solid black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}
.OSM-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
#modalInfo {
    margin-top: 15px; 
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.status-icon {
    width: 20px;
    margin-right: 8px;
    vertical-align: middle;
}
.status-color { 
    width: 20px; 
    height: 20px; 
    margin-right: 8px; 
    border-radius: 50%; 
    border: 1px solid black;
    vertical-align: middle;
    display: inline-block;
}

#editSection {
    text-align: right;
    margin-bottom: 15px;
}
.close { float: right; font-size: 28px; cursor: pointer; }
.btn { 
    padding: 10px 15px; 
    margin: 5px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer;
    font-size: 14px;
}
.btn-edit { background: #4285f4; color: white; }
.btn-group {
    margin-top: 20px;
    margin-bottom: 20px;
}
.black { color: black; }
.loading-update {
    text-align: center;
    padding: 20px;
}
.loading-update-text {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    font-size: 0;
}
.loading-dots span {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 4px;
}
.dot-icon {
    width: 24px;
    height: 24px;
}
.dot-color { 
    width: 24px; 
    height: 24px; 
    margin-right: 8px; 
    border-radius: 50%; 
    border: 1px solid black;
}