/* Styles pour l'application de navigation MoovoApp */

/* Styles généraux */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Indicateur de chargement */
.loading {
    display: none;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
    font-size: 14px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Formulaire et contrôles */
.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.select-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
}

.select-input:focus {
    outline: none;
    border-color: #3498db;
}

.select-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Autocomplétion */
.autocomplete {
    position: relative;
    width: 100%;
}

.autocomplete input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.autocomplete input:focus {
    outline: none;
    border-color: #3498db;
}

.autocomplete-items {
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #e9f7fe;
}

/* Boutons */
button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.location-btn {
    background-color: #27ae60;
}

.location-btn:hover {
    background-color: #219653;
}

/* Carte */
#map {
    height: 500px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Informations sur l'itinéraire */
.route-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.route-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.route-info p {
    margin-bottom: 10px;
}

.cost {
    font-weight: bold;
    color: #27ae60;
}

/* Navigation vocale */
.voice-control {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.voice-control h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.voice-btn {
    display: inline-block;
    width: 49%;
    margin-right: 2%;
    padding: 10px;
}

.voice-btn:last-child {
    margin-right: 0;
}

#start-voice {
    background-color: #3498db;
}

#stop-voice {
    background-color: #e74c3c;
}

.voice-btn.active {
    opacity: 0.7;
    cursor: not-allowed;
}

.voice-instruction {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    min-height: 60px;
}

/* Marqueurs de la carte */
.station-marker {
    width: 12px;
    height: 12px;
    background-color: #3498db;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Clusters */
.custom-cluster-icon {
    background-color: transparent;
}

.cluster-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

.cluster-small {
    background-color: #3498db;
}

.cluster-medium {
    background-color: #f39c12;
}

.cluster-large {
    background-color: #e74c3c;
}

/* Popup des stations */
.station-popup {
    text-align: center;
}

.station-popup h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.go-there-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}

.go-there-btn:hover {
    background-color: #2980b9;
}

/* Adaptations mobiles */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    #map {
        height: 400px;
    }
    
    .voice-btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}