* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #e0e6ed;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #00d4ff;
    font-size: 1.1rem;
    opacity: 0.9;
}

.content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.map-container {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#map {
    width: 100%;
    height: 700px;
    z-index: 1;
}

.map-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 14, 39, 0.95);
    color: #00d4ff;
    padding: 30px 50px;
    border-radius: 15px;
    border: 2px solid #00d4ff;
    font-size: 1.2rem;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.map-message.hidden {
    display: none;
}

.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section h2 {
    color: #00d4ff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-text {
    color: #b8c5d6;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #00d4ff;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group .icon {
    margin-right: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #e0e6ed;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.input-group input::placeholder {
    color: #5a6a8a;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00aadd 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(123, 47, 247, 0.8);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

.btn-secondary:hover {
    background: rgba(123, 47, 247, 1);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.5);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.result-section {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.distance-display {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.distance-label {
    display: block;
    color: #b8c5d6;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.distance-value {
    display: block;
    color: #00d4ff;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.position-info {
    color: #b8c5d6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.position-info strong {
    color: #00d4ff;
}

#current-coords {
    margin-top: 5px;
    color: #e0e6ed;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Styles pour les popups Leaflet */
.leaflet-popup-content-wrapper {
    background: rgba(10, 14, 39, 0.95);
    color: #e0e6ed;
    border: 1px solid #00d4ff;
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 0.95rem;
}

.leaflet-popup-tip {
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid #00d4ff;
}

/* Responsive */
@media (max-width: 1200px) {
    .content {
        grid-template-columns: 1fr;
    }

    .controls-panel {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    #map {
        height: 500px;
    }

    .section {
        padding: 20px;
    }
}
