/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    padding-top: 0;
}

#main-content{
    padding-top: 120px;
}
/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.header nav a:hover {
    background: rgba(255,255,255,0.1);
}

.header-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Navigation toggle button (burger menu) */
.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.nav-toggle-icon {
    display: block;
}

.nav-lang-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.nav-lang-select option {
    background: #2c3e50;
    color: white;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .header nav.nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .header nav.nav-menu.active {
        display: flex;
    }
    
    .header nav.nav-menu a {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: left;
        padding: 0.75rem 1rem;
    }
    
    .header nav.nav-menu .nav-lang-select {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 120px;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 0;
}

/* Add padding to body on desktop to account for fixed header */
@media (min-width: 769px) {
    body {
        padding-top: 120px;
    }
}

.container--narrow {
    max-width: 1000px;
}

.container--medium {
    max-width: 1200px;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Info box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

/* Cards */
.form-card, .table-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-card h2, .table-card h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-download {
    background: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #229954;
}

.btn-add {
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #2980b9;
}

.btn-add-place {
    display: inline-block;
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.btn-add-place:hover {
    background: #2980b9 !important;
}

.btn-josm {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-josm:hover {
    background: #229954;
}

.btn-josm-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Map */
.map-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

#map {
    height: 600px;
    width: 100%;
}

.map-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.map-card h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.osm-map {
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.map-mini {
    width: 200px;
    height: 150px;
    border-radius: 4px;
}

.map-preview {
    height: 300px;
    width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px solid #ddd;
    position: relative;
}

.map-preview .maplibregl-map {
    border-radius: 4px;
}

.map-legend {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.map-legend h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #2c3e50;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Villes list */
.villes-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.villes-list h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.villes-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.villes-search {
    flex: 1;
    min-width: 220px;
}

.villes-search input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.villes-columns {
    display: grid;
    grid-template-columns: 1fr 120px 200px 120px 120px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.villes-columns .column-btn {
    background: none;
    border: none;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.villes-columns .column-btn.active {
    color: #3498db;
}

.villes-columns .column-btn .arrow {
    font-size: 0.85rem;
}

.ville-item {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ville-item:last-child {
    border-bottom: none;
}

.ville-name {
    font-weight: 600;
    color: #2c3e50;
}

.ville-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.ville-name a:hover {
    color: #3498db;
    text-decoration: underline;
}

.ville-sources {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.ville-sources a:hover {
    text-decoration: underline;
}

.ville-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Progress bar */
.progress-bar {
    width: 200px;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s;
}

.progress-fill--no-objective {
    background: #3498db;
}

.progress-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    min-width: 100px;
    text-align: right;
}

.info-objectif {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.35rem;
    line-height: 1;
}

.info-objectif:hover {
    opacity: 0.8;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 520px;
    width: calc(100% - 2rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.btn-modal-close {
    background: #3498db;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Charts */
.chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Other types */
.other-types-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.other-types-list h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.other-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.other-type-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

.other-type-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.other-type-count {
    font-size: 1.5rem;
}

/* Sort buttons */
.sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: #d5dbdb;
}

.sort-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.sort-btn .arrow {
    margin-left: 0.25rem;
    font-size: 0.8rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-added, .badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-not-added, .badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Search */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: #2c3e50;
}

.search-result-address {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

/* Filters */
.filters {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.filters a.active {
    background: #3498db;
    color: white;
}

.filters a:not(.active) {
    background: #ecf0f1;
    color: #2c3e50;
}

.filters a:not(.active):hover {
    background: #bdc3c7;
}

/* Geocoder */
.geocodeur-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    color: #34495e;
    transition: transform 0.2s;
}

.geocodeur-toggle:hover {
    transform: rotate(90deg);
}

.geocodeur-selector {
    display: none;
    margin-bottom: 1rem;
}

.geocodeur-selector.visible {
    display: block;
}

/* Honeypot */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* OSM */
.osm-count {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.osm-sources {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.osm-sources a {
    color: #3498db;
    text-decoration: none;
}

.osm-sources a:hover {
    text-decoration: underline;
}

.osm-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.osm-link {
    color: #3498db;
    text-decoration: none;
}

.osm-link:hover {
    text-decoration: underline;
}

.date-added {
    color: #27ae60;
    font-weight: 600;
}

/* Suggestion */
.suggestion {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

/* Captcha */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.captcha-input {
    width: 100px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-muted {
    color: #7f8c8d;
}

.text-small {
    font-size: 0.85rem;
}

.evolution-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.evolution-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.evolution-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.evolution-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.evolution-item h3 {
    color: #34495e;
    margin-bottom: 0.5rem;
}

.evolution-item p {
    color: #555;
    line-height: 1.6;
}

.summary-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item h3 {
    color: #34495e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.summary-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.josm-actions-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.refresh-section {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.refresh-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.refresh-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.refresh-date {
    color: #2c3e50;
    font-weight: 500;
}

.btn-refresh {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh:hover:not(:disabled) {
    background: #2980b9;
}

.btn-refresh:disabled,
.btn-refresh-disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-refresh-loading {
    position: relative;
    pointer-events: none;
}

.btn-refresh-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.refresh-message {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.refresh-message:not(:empty) {
    display: block;
}

.refresh-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.refresh-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.podium-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.podium-section h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.podium-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.podium-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.podium-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s, box-shadow 0.2s;
}

.podium-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.podium-rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #fff8dc 100%);
    border-left-color: #ffd700;
}

.podium-rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #f5f5f5 100%);
    border-left-color: #c0c0c0;
}

.podium-rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #faf0e6 100%);
    border-left-color: #cd7f32;
}

.podium-rank {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 60px;
    color: #2c3e50;
}

.podium-user {
    flex: 1;
}

.podium-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.podium-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.podium-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.podium-separator {
    color: #bdc3c7;
}

.deleted-objects-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border-left: 4px solid #e74c3c;
}

.deleted-objects-section h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.deleted-objects-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.deleted-objects-stats {
    margin-top: 1rem;
}

.deleted-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.deleted-none {
    color: #27ae60;
    font-weight: 500;
}

.deleted-recent h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.deleted-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deleted-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deleted-type {
    font-weight: 500;
    color: #2c3e50;
}

.deleted-id {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-family: monospace;
}

.deleted-date {
    color: #e74c3c;
    font-size: 0.85rem;
}

.contributors-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.contributors-section h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contributors-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ecf0f1;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.contributor-item:hover {
    background: #d5dbdb;
}

.contributor-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contributor-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contributor-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.josm-actions-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.josm-actions-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Support RTL (Right-to-Left) pour l'arabe */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header nav a {
    margin-right: 0;
    margin-left: 1.5rem;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-toggle {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .header nav.nav-menu a {
    text-align: right;
}

[dir="rtl"] .villes-list h2 {
    flex-direction: row-reverse;
}

[dir="rtl"] .villes-controls {
    flex-direction: row-reverse;
}

[dir="rtl"] .villes-columns {
    direction: rtl;
}

[dir="rtl"] .villes-columns .column-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .sort-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .ville-stats {
    flex-direction: row-reverse;
}

[dir="rtl"] .progress-text {
    text-align: left;
}

[dir="rtl"] .info-objectif {
    margin-left: 0;
    margin-right: 0.35rem;
}

[dir="rtl"] .modal-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .filters {
    flex-direction: row-reverse;
}

[dir="rtl"] .josm-actions-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .contributors-section h2 {
    text-align: right;
}

[dir="rtl"] .contributors-description {
    text-align: right;
}

[dir="rtl"] .contributors-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .podium-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .podium-section h2,
[dir="rtl"] .deleted-objects-section h2 {
    text-align: right;
}

[dir="rtl"] .refresh-section {
    flex-direction: row-reverse;
}

[dir="rtl"] .refresh-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .other-types-grid {
    direction: rtl;
}

[dir="rtl"] .other-type-item {
    border-left: none;
    border-right: 4px solid #e74c3c;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select {
    text-align: right;
}

[dir="rtl"] .search-results {
    right: auto;
    left: 0;
}

[dir="rtl"] .search-result-item {
    text-align: right;
}

[dir="rtl"] .info-box {
    border-left: none;
    border-right: 4px solid #2196f3;
}

[dir="rtl"] .chart-container h2,
[dir="rtl"] .other-types-list h2,
[dir="rtl"] .table-card h2,
[dir="rtl"] .form-card h2 {
    text-align: right;
}

[dir="rtl"] .evolution-section h2,
[dir="rtl"] .josm-actions-section h2 {
    text-align: right;
}

[dir="rtl"] .evolution-item h3 {
    text-align: right;
}

[dir="rtl"] .evolution-item p {
    text-align: right;
}

[dir="rtl"] .map-legend h3 {
    text-align: right;
}

[dir="rtl"] .legend-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .captcha-group {
    flex-direction: row-reverse;
}

[dir="rtl"] .geocodeur-toggle {
    text-align: right;
}

[dir="rtl"] .osm-sources {
    text-align: right;
}

[dir="rtl"] .osm-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-download,
[dir="rtl"] .btn-add,
[dir="rtl"] .btn-add-place {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-josm {
    direction: rtl;
}

[dir="rtl"] .sort-btn .arrow {
    margin-left: 0;
    margin-right: 0.25rem;
}

[dir="rtl"] .villes-columns .column-btn .arrow {
    margin-left: 0;
    margin-right: 0.35rem;
}

[dir="rtl"] table {
    direction: rtl;
}

[dir="rtl"] th,
[dir="rtl"] td {
    text-align: right;
}

[dir="rtl"] .text-center {
    text-align: center;
}

[dir="rtl"] .text-muted {
    text-align: right;
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Amélioration du focus pour l'accessibilité */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Messages d'erreur accessibles */
.message[role="alert"] {
    position: relative;
}

/* Labels cachés visuellement mais accessibles */
label.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

