html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
}

/* --- Bandeau supérieur --- */
#main-header {
    height: 60px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2000;
}

.header-title {
    font-weight: bold;
    font-size: 18px;
    white-space: nowrap;
}

#controls {
    display: flex;
    align-items: center;
}

/* --- Contenu du menu (PC) --- */
#menu-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

#menu-content select {
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    color: #000000;
    background-color: #ffffff;
    height: 30px;
}

#menu-content option {
    color: #000000;
    background-color: #ffffff;
}

#menu-content label {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: white;
}

/* --- Carte --- */
#map_rennes {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.bus-etiquette {
    width: auto !important;
    height: auto !important;
}

/* --- Version Bureau --- */
#menu-toggle {
    display: none;
}

/* --- Version Mobile (<= 768px) --- */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
        margin: 0;
    }

    #menu-content {
        display: none; /* Géré par jQuery slideToggle */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        z-index: 2999;
    }

    /* Corrections couleur texte pour fond blanc mobile */
    #menu-content label {
        color: #2c3e50 !important;
        width: 100%;
    }

    #menu-content select {
        border: 1px solid #ccc;
        width: 100%;
    }
}


/* --- Style du footer --- */
#main-footer {
    height: 40px;
    background-color: #2c3e50;
    color: #7f8c8d; /* Couleur des séparateurs */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    border-top: 1px solid #34495e;
    z-index: 2000; /* S'assure de rester visible par-dessus la carte */
}

#main-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

#main-footer a:hover {
    color: #3498db; /* Changement de couleur au survol */
    text-decoration: underline;
}

/* Ajustement pour le mobile si nécessaire */
@media (max-width: 768px) {
    #main-footer {
        font-size: 12px;
        gap: 10px;
    }
}