    #map {
        height: 100%;
        min-height: 500px;
        border-radius: 10px;
    }

    .custom-marker {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        /* cercle parfait */
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        /* optionnel pour contour */
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    }

    .custom-marker i {
        font-size: 20px;
        color: white;
    }

    .marker-cluster-small,
    .marker-cluster-medium,
    .marker-cluster-large {
        background-color: #6cc803 !important;
    }

    .marker-cluster div {
        background-color: #6cc803 !important;
        color: #fff;
        border-radius: 50%;
        font-weight: bold;
        border: 2px solid white;
    }

    .marker-cluster span {
        line-height: 27px !important;
        font-size: 16px;
    }


    .device-item {
        margin: 5px 0;
    }

    .device-item input[type="checkbox"] {
        display: none;
    }

    .device-label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 20px;
        cursor: pointer;
        background: #eee;
        color: #333;
        transition: all 0.2s ease;
        font-size: 14px;
    }

    .device-icon {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    /* quand coché */
    .device-item input[type="checkbox"]:checked+.device-label {
        background: #1c1e2f;
        color: white;
    }

    #toggleAll {
        border: none;
        cursor: pointer;
        color: #fff;
        background-color: #6cc803 !important;
    }


    /* icône quand actif */
    #toggleAll.active .device-icon {
        background-color: #e74c3c !important;
    }

    /* icône normale */
    #toggleAll .device-icon {
        background-color: #000000;
        color: #fff;
    }

    /* hover */
    #toggleAll:hover {
        opacity: 0.9;
    }

    /* hover */
    .device-label:hover {
        opacity: 0.85;
    }

    .device-scroll {
        max-height: 550px;
        /* ajuste selon ton besoin */
        overflow-y: auto;
        padding-left: 5px;
        padding-right: 5px;
        background-color: #d1d2d7;
        border-radius: 15px;
    }

    /* optionnel : scrollbar plus jolie */
    .device-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .device-scroll::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    @media (max-width:768px) {
        #map {
            height: 300px;
            min-height: 500px;
        }
    }