<!-- Range list css ---->

    .acim-rangee-page {
        padding-bottom: 40px;
    }

    .acim-rangee-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 24px;
    }

    .acim-rangee-eyebrow {
        margin-bottom: 7px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .acim-rangee-eyebrow i {
        margin-right: 6px;
        color: #00a3e7;
    }

    .acim-rangee-title {
        margin: 0;
        color: #1e293b;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.25;
    }

    .acim-rangee-description {
        margin: 7px 0 0;
        color: #64748b;
        font-size: 14px;
        line-height: 1.5;
    }

    .acim-btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        padding: 0 17px;
        border: 0;
        border-radius: 8px;
        background: #00a3e7;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 163, 231, .18);
        transition:
            background .2s ease,
            transform .2s ease,
            box-shadow .2s ease;
    }

    .acim-btn-primary:hover {
        background: #008fc9;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0, 163, 231, .24);
    }

   

    .acim-rangee-stat {
        position: relative;
        height: 100%;
        min-height: 128px;
        padding: 19px 20px;
        overflow: hidden;
        border: 1px solid #e8edf3;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
        transition:
            transform .2s ease,
            box-shadow .2s ease;
    }

    .acim-rangee-stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    }

    .acim-rangee-stat::after {
        content: "";
        position: absolute;
        right: -25px;
        bottom: -35px;
        width: 95px;
        height: 95px;
        border-radius: 50%;
        background: rgba(0, 163, 231, .035);
    }

    .acim-rangee-stat-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .acim-rangee-stat-label {
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .045em;
        text-transform: uppercase;
    }

    .acim-rangee-stat-icon {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 39px;
        height: 39px;
        border-radius: 10px;
        background: #eef8fc;
        color: #00a3e7;
        font-size: 18px;
    }

    .acim-rangee-stat-value {
        margin-top: 12px;
        color: #1e293b;
        font-size: 26px;
        font-weight: 700;
        line-height: 1;
    }

    .acim-rangee-stat-meta {
        margin-top: 9px;
        color: #94a3b8;
        font-size: 11px;
    }

    .acim-stat-occupied .acim-rangee-stat-icon {
        background: #fef2f2;
        color: #dc2626;
    }

    .acim-stat-free .acim-rangee-stat-icon {
        background: #ecfdf5;
        color: #059669;
    }

    .acim-stat-reserved .acim-rangee-stat-icon {
        background: #fff7ed;
        color: #ea580c;
    }



    .acim-rangee-card {
        margin-top: 24px;
        overflow: hidden;
        border: 1px solid #e8edf3;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(15, 23, 42, .035);

         /*Mon Ajout pour l'espace entre le body et le footer */
         margin-bottom: 3rem;
    }

    .acim-rangee-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 18px 20px;
        border-bottom: 1px solid #edf1f5;

         
    }

    .acim-rangee-card-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .acim-rangee-card-title-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #eef8fc;
        color: #00a3e7;
        font-size: 16px;
    }

    .acim-rangee-card-title h5 {
        margin: 0;
        color: #1e293b;
        font-size: 15px;
        font-weight: 700;
    }

    .acim-rangee-card-title span {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
        font-size: 11px;
    }

    .acim-rangee-table-wrapper {
        padding: 0 20px 20px;
    }

    .acim-rangee-table {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .acim-rangee-table thead th {
        padding: 14px 12px !important;
        border-bottom: 1px solid #e7edf3 !important;
        background: #fbfcfd;
        color: #64748b;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .055em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .acim-rangee-table tbody td {
        padding: 14px 12px !important;
        border-bottom: 1px solid #f0f3f6;
        color: #475569;
        font-size: 13px;
        vertical-align: middle;
    }

    .acim-rangee-table tbody tr {
        transition: background .15s ease;
    }

    .acim-rangee-table tbody tr:hover {
        background: #f8fbfd;
    }

    .acim-rangee-table tbody tr:last-child td {
        border-bottom: 0;
    }

  

    .acim-rangee-section {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 180px;
    }

    .acim-rangee-section-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: #eef8fc;
        color: #00a3e7;
        font-size: 16px;
    }

    .acim-rangee-section-name {
        color: #1e293b;
        font-size: 13px;
        font-weight: 700;
    }

    .acim-rangee-section-ref {
        margin-top: 3px;
        color: #94a3b8;
        font-size: 10px;
    }



    .acim-rangee-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        height: 30px;
        padding: 0 10px;
        border: 1px solid #dceff7;
        border-radius: 7px;
        background: #f3fbfe;
        color: #008fc9;
        font-size: 12px;
        font-weight: 700;
    }

    .acim-rangee-name {
        color: #334155;
        font-size: 13px;
        font-weight: 600;
    }

    .acim-rangee-description {
        margin-top: 3px;
        color: #94a3b8;
        font-size: 10px;
    }



    .acim-rangee-capacity {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 110px;
    }

    .acim-rangee-capacity-value {
        color: #334155;
        font-size: 12px;
        font-weight: 700;
    }

    .acim-rangee-capacity-bar {
        width: 100%;
        max-width: 90px;
        height: 5px;
        overflow: hidden;
        border-radius: 10px;
        background: #eaf0f4;
    }

    .acim-rangee-capacity-bar span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #00a3e7;
    }

  

    .acim-rangee-occupancy {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
    }

    .acim-rangee-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        height: 27px;
        padding: 0 8px;
        border-radius: 7px;
        font-size: 11px;
        font-weight: 700;
    }

    .acim-rangee-count-occupied {
        background: #fef2f2;
        color: #dc2626;
    }

    .acim-rangee-count-free {
        background: #ecfdf5;
        color: #059669;
    }

    .acim-rangee-count-reserved {
        background: #fff7ed;
        color: #ea580c;
    }


    .acim-rangee-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        white-space: nowrap;
    }

    .acim-rangee-actions form {
        margin: 0;
    }

    .acim-rangee-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid #e5eaf0;
        border-radius: 7px;
        background: #fff;
        color: #64748b;
        text-decoration: none;
        cursor: pointer;
        transition:
            background .18s ease,
            border-color .18s ease,
            color .18s ease;
    }

    .acim-rangee-action i {
        font-size: 14px;
        line-height: 1;
    }

    .acim-rangee-action:hover {
        border-color: #cbd5e1;
        background: #f8fafc;
        color: #1e293b;
    }

    .acim-rangee-action-view:hover {
        border-color: #bce9f8;
        background: #eefaff;
        color: #0095d0;
    }

    .acim-rangee-action-edit:hover {
        border-color: #fde3b8;
        background: #fff9ed;
        color: #d97706;
    }

    .acim-rangee-action-danger:hover {
        border-color: #fecaca;
        background: #fff5f5;
        color: #dc2626;
    }


    .acim-rangee-alert {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
        padding: 13px 15px;
        border-radius: 9px;
        font-size: 13px;
    }

    .acim-rangee-alert i {
        margin-top: 2px;
        font-size: 16px;
    }


    .acim-rangee-card .dt-buttons {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
    }

    .acim-rangee-card .dt-button {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        min-height: 34px;
        padding: 6px 11px !important;
        border: 1px solid #dce3ea !important;
        border-radius: 7px !important;
        background: #fff !important;
        background-image: none !important;
        color: #475569 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        box-shadow: none !important;
        transition:
            background .18s ease,
            border-color .18s ease,
            color .18s ease;
    }

    .acim-rangee-card .dt-button:hover {
        border-color: #bce9f8 !important;
        background: #eefaff !important;
        color: #008fc9 !important;
    }

    .acim-rangee-card .dt-button:active {
        box-shadow: none !important;
    }

    .acim-rangee-card .dt-button i {
        font-size: 13px;
    }

    .acim-rangee-card .buttons-copy:hover {
        color: #475569 !important;
    }

    .acim-rangee-card .buttons-csv:hover,
    .acim-rangee-card .buttons-excel:hover {
        color: #15803d !important;
    }

    .acim-rangee-card .buttons-pdf:hover {
        color: #dc2626 !important;
    }

    .acim-rangee-card .buttons-print:hover {
        color: #7c3aed !important;
    }

    .acim-rangee-card .dataTables_filter {
        margin-bottom: 14px;
    }

    .acim-rangee-card .dataTables_filter label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #64748b;
        font-size: 12px;
        font-weight: 500;
    }

    .acim-rangee-card .dataTables_filter input {
        width: 250px;
        height: 37px;
        margin-left: 0 !important;
        padding: 7px 12px;
        border: 1px solid #dce3ea;
        border-radius: 7px;
        outline: none;
        color: #334155;
        font-size: 12px;
        transition:
            border-color .2s ease,
            box-shadow .2s ease;
    }

    .acim-rangee-card .dataTables_filter input:focus {
        border-color: #8bd8f2;
        box-shadow:
            0 0 0 3px rgba(0, 163, 231, .08);
    }

    .acim-rangee-card .dataTables_length {
        color: #64748b;
        font-size: 12px;
    }

    .acim-rangee-card .dataTables_length select {
        margin: 0 5px;
        height: 35px;
        border: 1px solid #dce3ea;
        border-radius: 7px;
        color: #475569;
        font-size: 12px;
    }

    .acim-rangee-card .dataTables_info {
        padding-top: 18px !important;
        color: #94a3b8;
        font-size: 11px;
    }

    .acim-rangee-card .dataTables_paginate {
        padding-top: 13px !important;
    }

    .acim-rangee-card .dataTables_paginate .paginate_button {
        margin-left: 3px !important;
        padding: 5px 9px !important;
        border: 1px solid transparent !important;
        border-radius: 6px !important;
        color: #64748b !important;
        font-size: 11px;
    }

    .acim-rangee-card .dataTables_paginate .paginate_button:hover {
        border-color: #dceff7 !important;
        background: #eef8fc !important;
        color: #008fc9 !important;
    }

    .acim-rangee-card .dataTables_paginate .paginate_button.current {
        border-color: #00a3e7 !important;
        background: #00a3e7 !important;
        color: #fff !important;
    }

    .acim-rangee-empty {
        padding: 55px 20px;
        text-align: center;
    }

    .acim-rangee-empty-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        margin: 0 auto 15px;
        border-radius: 50%;
        background: #eef8fc;
        color: #00a3e7;
        font-size: 25px;
    }

    .acim-rangee-empty h5 {
        margin-bottom: 6px;
        color: #334155;
        font-size: 15px;
        font-weight: 700;
    }

    .acim-rangee-empty p {
        margin: 0;
        color: #94a3b8;
        font-size: 12px;
    }

    @media (max-width: 991.98px) {

        .acim-rangee-header {
            align-items: flex-start;
            flex-direction: column;
        }

        .acim-rangee-header-actions {
            width: 100%;
        }

        .acim-btn-primary {
            width: 100%;
        }

        .acim-rangee-card-header {
            align-items: flex-start;
            flex-direction: column;
        }
    }

    @media (max-width: 767.98px) {

        .acim-rangee-title {
            font-size: 22px;
        }

        .acim-rangee-description {
            font-size: 13px;
        }

        .acim-rangee-table-wrapper {
            padding-left: 10px;
            padding-right: 10px;
        }

        .acim-rangee-card .dt-buttons {
            width: 100%;
        }

        .acim-rangee-card .dt-button {
            flex: 1 1 auto;
            justify-content: center;
        }

        .acim-rangee-card .dataTables_filter {
            width: 100%;
        }

        .acim-rangee-card .dataTables_filter label {
            display: block;
        }

        .acim-rangee-card .dataTables_filter input {
            display: block;
            width: 100%;
            margin-top: 7px !important;
        }
    }

<!-- Range views css ---->

   
        .acim-rangee-view {

            padding-bottom: 30px;

        }


        .acim-rangee-header-main {

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 20px;

            margin-bottom: 22px;

        }


        .acim-rangee-title {

            margin: 0;

            color: #1e293b;

            font-size: 24px;

            font-weight: 700;

        }


        .acim-rangee-subtitle {

            margin: 5px 0 0;

            color: #94a3b8;

            font-size: 12px;

        }


        .acim-btn {

            display: inline-flex;

            align-items: center;

            justify-content: center;

            gap: 7px;

            padding: 9px 14px;

            border: 1px solid #e5eaf0;

            border-radius: 7px;

            background: #fff;

            color: #475569;

            font-size: 12px;

            font-weight: 600;

            text-decoration: none;

        }


        .acim-btn:hover {

            border-color: #00a3e7;

            color: #008fc9;

        }


        .acim-card {

            margin-bottom: 20px;

            border: 1px solid #edf1f5;

            border-radius: 10px;

            background: #fff;

            box-shadow:
                0 2px 8px rgba(15, 23, 42, .03);

        }


        .acim-card-header {

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 15px;

            padding: 17px 20px;

            border-bottom:
                1px solid #edf1f5;

        }


        .acim-card-title {

            margin: 0;

            color: #1e293b;

            font-size: 14px;

            font-weight: 700;

        }


        .acim-card-body {

            padding: 20px;

        }


        .acim-info-grid {

            display: grid;

            grid-template-columns:
                repeat(4, 1fr);

            gap: 15px;

        }


        .acim-info-item {

            padding: 15px;

            border:
                1px solid #edf1f5;

            border-radius: 8px;

            background: #fbfcfd;

        }


        .acim-info-label {

            color: #94a3b8;

            font-size: 10px;

            font-weight: 700;

            text-transform: uppercase;

        }


        .acim-info-value {

            margin-top: 5px;

            color: #1e293b;

            font-size: 13px;

            font-weight: 700;

        }


        .acim-info-value a {

            color: #00a3e7;

            text-decoration: none;

        }


        .acim-info-value a:hover {

            text-decoration: underline;

        }


        .acim-stat-grid {

            display: grid;

            grid-template-columns:
                repeat(4, 1fr);

            gap: 12px;

        }


        .acim-stat {

            display: flex;

            align-items: center;

            gap: 12px;

            padding: 13px;

            border:
                1px solid #edf1f5;

            border-radius: 8px;

        }


        .acim-stat-icon {

            width: 34px;

            height: 34px;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 8px;

        }


        .acim-stat-number {

            color: #1e293b;

            font-size: 18px;

            font-weight: 700;

        }


        .acim-stat-label {

            color: #94a3b8;

            font-size: 10px;

        }


        .stat-libre .acim-stat-icon {

            background: #ecfdf5;

            color: #10b981;

        }


        .stat-occupe .acim-stat-icon {

            background: #fef2f2;

            color: #dc3545;

        }


        .stat-reserve .acim-stat-icon {

            background: #fff7ed;

            color: #f59e0b;

        }


        .stat-indisponible .acim-stat-icon {

            background: #f1f5f9;

            color: #64748b;

        }


        #rangee-map {

            width: 100%;

            height: 430px;

            border-radius: 8px;

            overflow: hidden;

        }


        .acim-legend {

            display: flex;

            align-items: center;

            gap: 18px;

            flex-wrap: wrap;

        }


        .acim-legend-item {

            display: flex;

            align-items: center;

            gap: 6px;

            color: #64748b;

            font-size: 10px;

            font-weight: 600;

        }


        .acim-legend-dot {

            width: 9px;

            height: 9px;

            border-radius: 50%;

        }


        .legend-libre {

            background: #10b981;

        }


        .legend-occupe {

            background: #dc3545;

        }


        .legend-reserve {

            background: #f59e0b;

        }


        .legend-indisponible {

            background: #64748b;

        }


        .acim-emplacements {

            display: grid;

            grid-template-columns:
                repeat(auto-fill, minmax(90px, 1fr));

            gap: 8px;

        }


        .acim-emplacement {

            position: relative;

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            min-height: 72px;

            padding: 8px;

            border:
                1px solid #e5eaf0;

            border-radius: 8px;

            background: #fff;

            text-decoration: none;

            transition:
                transform .15s ease,
                box-shadow .15s ease;

        }


        .acim-emplacement:hover {

            transform: translateY(-2px);

            box-shadow:
                0 4px 12px rgba(15, 23, 42, .08);

        }


        .acim-emplacement-number {

            color: #1e293b;

            font-size: 12px;

            font-weight: 700;

        }


        .acim-emplacement-status {

            display: inline-flex;

            align-items: center;

            gap: 5px;

            margin-top: 6px;

            font-size: 9px;

            font-weight: 700;

        }


        .acim-emplacement-status::before {

            content: "";

            width: 6px;

            height: 6px;

            border-radius: 50%;

        }


        .status-libre {

            border-color: #bbf7d0;

            background: #f0fdf4;

        }


        .status-libre .acim-emplacement-status {

            color: #15803d;

        }


        .status-libre .acim-emplacement-status::before {

            background: #10b981;

        }


        .status-occupe {

            border-color: #fecaca;

            background: #fef2f2;

        }


        .status-occupe .acim-emplacement-status {

            color: #dc2626;

        }


        .status-occupe .acim-emplacement-status::before {

            background: #dc3545;

        }


        .status-reserve {

            border-color: #fed7aa;

            background: #fff7ed;

        }


        .status-reserve .acim-emplacement-status {

            color: #c2410c;

        }


        .status-reserve .acim-emplacement-status::before {

            background: #f59e0b;

        }


        .status-indisponible {

            border-color: #cbd5e1;

            background: #f8fafc;

        }


        .status-indisponible .acim-emplacement-status {

            color: #64748b;

        }


        .status-indisponible .acim-emplacement-status::before {

            background: #64748b;

        }


        .acim-empty {

            padding: 30px;

            text-align: center;

            color: #94a3b8;

            font-size: 12px;

        }


        @media (max-width: 991px) {

            .acim-info-grid,
            .acim-stat-grid {

                grid-template-columns:
                    repeat(2, 1fr);

            }

        }


        @media (max-width: 767px) {

            .acim-rangee-header-main {

                align-items: flex-start;

                flex-direction: column;

            }


            .acim-info-grid,
            .acim-stat-grid {

                grid-template-columns:
                    1fr;

            }


            .acim-emplacements {

                grid-template-columns:
                    repeat(auto-fill,
                        minmax(75px, 1fr));

            }

        }



  <!-- Range add css ---->
        .section-info-card {

            background: #f8f9fa;

            border: 1px solid #dee2e6;

            border-radius: 6px;

            padding: 15px;

            margin-top: 10px;

        }


        .section-info-title {

            font-size: 14px;

            font-weight: 600;

            margin-bottom: 10px;

        }


        .section-info-item {

            margin-bottom: 5px;

            font-size: 13px;

        }


        .form-help {

            background: #f8f9fa;

            border: 1px solid #dee2e6;

            border-radius: 6px;

            padding: 12px 15px;

            font-size: 13px;

            margin-bottom: 20px;

        }


        .form-help i {

            margin-right: 5px;

        }



        .capacity-info {

            font-size: 12px;

            color: #6c757d;

            margin-top: 5px;

        }

 <!-- Range edit css ---->

        .section-info-card {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 15px;
            margin-top: 10px;
        }

        .section-info-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .section-info-item {
            margin-bottom: 5px;
            font-size: 13px;
        }

        .form-help {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 12px 15px;
            font-size: 13px;
            margin-bottom: 20px;
        }

        .form-help i {
            margin-right: 5px;
        }

        .capacity-info {
            font-size: 12px;
            color: #6c757d;
            margin-top: 5px;
        }

<!-- sections add css ---->
    

        #sectionMap {
            width: 100%;
            height: 600px;
            border-radius: 8px;
            border: 1px solid #dee2e6;
            z-index: 1;
        }

     

        .map-wrapper {
            position: relative;
        }

      

        .map-legend {
            background: #ffffff;
            padding: 12px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            max-height: 250px;
            overflow-y: auto;
            min-width: 180px;
        }

        .map-legend-title {
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 7px;
            margin-bottom: 5px;
            font-size: 12px;
        }

        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 3px;
            border: 1px solid rgba(0, 0, 0, .25);
            flex-shrink: 0;
        }

       

        #polygonInfo {
            margin-top: 10px;
        }


        .map-help {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 10px 12px;
            margin-bottom: 12px;
            font-size: 13px;
        }

        .map-help i {
            margin-right: 5px;
        }

     

        .current-section-label {
            font-weight: 600;
        }

        <!-- sections views css ---->

        .acim-section-view {
            padding-bottom: 30px;
        }


        .acim-section-header {

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 20px;

            margin-bottom: 22px;
        }

        .acim-section-title {

            margin: 0;

            color: #1e293b;

            font-size: 24px;
            font-weight: 700;
        }

        .acim-section-subtitle {

            margin: 5px 0 0;

            color: #94a3b8;

            font-size: 12px;
        }



        .acim-btn {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            gap: 7px;

            padding: 9px 14px;

            border: 1px solid #e5eaf0;

            border-radius: 7px;

            background: #fff;

            color: #475569;

            font-size: 12px;
            font-weight: 600;

            text-decoration: none;
        }

        .acim-btn:hover {

            border-color: #00a3e7;

            color: #008fc9;
        }



        .acim-card {

            margin-bottom: 20px;

            border: 1px solid #edf1f5;

            border-radius: 10px;

            background: #fff;

            box-shadow:
                0 2px 8px rgba(15, 23, 42, .03);
        }

        .acim-card-header {

            display: flex;

            align-items: center;
            justify-content: space-between;

            gap: 15px;

            padding: 17px 20px;

            border-bottom:
                1px solid #edf1f5;
        }

        .acim-card-title {

            margin: 0;

            color: #1e293b;

            font-size: 14px;
            font-weight: 700;
        }

        .acim-card-body {

            padding: 20px;
        }




        .acim-info-grid {

            display: grid;

            grid-template-columns:
                repeat(4, 1fr);

            gap: 15px;
        }

        .acim-info-item {

            padding: 15px;

            border:
                1px solid #edf1f5;

            border-radius: 8px;

            background: #fbfcfd;
        }

        .acim-info-label {

            color: #94a3b8;

            font-size: 10px;
            font-weight: 700;

            text-transform: uppercase;
        }

        .acim-info-value {

            margin-top: 5px;

            color: #1e293b;

            font-size: 13px;
            font-weight: 700;
        }




        .acim-stat-grid {

            display: grid;

            grid-template-columns:
                repeat(4, 1fr);

            gap: 12px;
        }

        .acim-stat {

            display: flex;

            align-items: center;

            gap: 12px;

            padding: 13px;

            border:
                1px solid #edf1f5;

            border-radius: 8px;
        }

        .acim-stat-icon {

            width: 34px;
            height: 34px;

            display: flex;

            align-items: center;
            justify-content: center;

            border-radius: 8px;
        }

        .acim-stat-number {

            color: #1e293b;

            font-size: 18px;
            font-weight: 700;
        }

        .acim-stat-label {

            color: #94a3b8;

            font-size: 10px;
        }


        .stat-libre .acim-stat-icon {

            background: #ecfdf5;
            color: #10b981;
        }

        .stat-occupe .acim-stat-icon {

            background: #fef2f2;
            color: #dc3545;
        }

        .stat-reserve .acim-stat-icon {

            background: #fff7ed;
            color: #f59e0b;
        }

        .stat-indisponible .acim-stat-icon {

            background: #f1f5f9;
            color: #64748b;
        }



        #section-map {

            width: 100%;

            height: 430px;

            border-radius: 8px;

            overflow: hidden;
        }


        .acim-rangee {

            margin-bottom: 20px;

            border:
                1px solid #edf1f5;

            border-radius: 9px;

            overflow: hidden;
        }

        .acim-rangee:last-child {

            margin-bottom: 0;
        }

        .acim-rangee-header {

            display: flex;

            align-items: center;
            justify-content: space-between;

            padding: 13px 16px;

            background: #fbfcfd;

            border-bottom:
                1px solid #edf1f5;
        }

        .acim-rangee-name {

            color: #1e293b;

            font-size: 13px;
            font-weight: 700;
        }

        .acim-rangee-count {

            color: #94a3b8;

            font-size: 10px;
        }


        .acim-emplacements {

            display: grid;

            grid-template-columns:
                repeat(auto-fill, minmax(90px, 1fr));

            gap: 8px;

            padding: 15px;
        }

        .acim-emplacement {

            position: relative;

            display: flex;

            flex-direction: column;

            align-items: center;
            justify-content: center;

            min-height: 72px;

            padding: 8px;

            border:
                1px solid #e5eaf0;

            border-radius: 8px;

            background: #fff;

            text-decoration: none;

            transition:
                transform .15s ease,
                box-shadow .15s ease;
        }

        .acim-emplacement:hover {

            transform: translateY(-2px);

            box-shadow:
                0 4px 12px rgba(15, 23, 42, .08);
        }

        .acim-emplacement-number {

            color: #1e293b;

            font-size: 12px;
            font-weight: 700;
        }

        .acim-emplacement-status {

            display: inline-flex;

            align-items: center;

            gap: 5px;

            margin-top: 6px;

            font-size: 9px;
            font-weight: 700;
        }

        .acim-emplacement-status::before {

            content: "";

            width: 6px;
            height: 6px;

            border-radius: 50%;
        }


        .status-libre {

            border-color: #bbf7d0;

            background: #f0fdf4;
        }

        .status-libre .acim-emplacement-status {

            color: #15803d;
        }

        .status-libre .acim-emplacement-status::before {

            background: #10b981;
        }


        .status-occupe {

            border-color: #fecaca;

            background: #fef2f2;
        }

        .status-occupe .acim-emplacement-status {

            color: #dc2626;
        }

        .status-occupe .acim-emplacement-status::before {

            background: #dc3545;
        }


        .status-reserve {

            border-color: #fed7aa;

            background: #fff7ed;
        }

        .status-reserve .acim-emplacement-status {

            color: #c2410c;
        }

        .status-reserve .acim-emplacement-status::before {

            background: #f59e0b;
        }


        .status-indisponible {

            border-color: #cbd5e1;

            background: #f8fafc;
        }

        .status-indisponible .acim-emplacement-status {

            color: #64748b;
        }

        .status-indisponible .acim-emplacement-status::before {

            background: #64748b;
        }


        .acim-legend {

            display: flex;

            align-items: center;

            gap: 18px;

            flex-wrap: wrap;
        }

        .acim-legend-item {

            display: flex;

            align-items: center;

            gap: 6px;

            color: #64748b;

            font-size: 10px;
            font-weight: 600;
        }

        .acim-legend-dot {

            width: 9px;
            height: 9px;

            border-radius: 50%;
        }

        .legend-libre {
            background: #10b981;
        }

        .legend-occupe {
            background: #dc3545;
        }

        .legend-reserve {
            background: #f59e0b;
        }

        .legend-indisponible {
            background: #64748b;
        }

        .acim-empty {

            padding: 30px;

            text-align: center;

            color: #94a3b8;

            font-size: 12px;
        }


        @media (max-width: 991px) {

            .acim-info-grid,
            .acim-stat-grid {

                grid-template-columns:
                    repeat(2, 1fr);
            }
        }


        @media (max-width: 767px) {

            .acim-section-header {

                align-items: flex-start;

                flex-direction: column;
            }

            .acim-info-grid,
            .acim-stat-grid {

                grid-template-columns:
                    1fr;
            }

            .acim-emplacements {

                grid-template-columns:
                    repeat(auto-fill, minmax(75px, 1fr));
            }
        }
   
<!-- sections list css ---->
       

        .acim-section-page {
            padding-bottom: 40px;
        }


        /* ==========================================================
           HEADER
        ========================================================== */

        .acim-section-header {

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 24px;

            margin-bottom: 24px;
        }

        .acim-section-eyebrow {

            margin-bottom: 7px;

            color: #64748b;

            font-size: 11px;
            font-weight: 700;

            letter-spacing: .08em;

            text-transform: uppercase;
        }

        .acim-section-eyebrow i {

            margin-right: 6px;

            color: #00a3e7;
        }

        .acim-section-title {

            margin: 0;

            color: #1e293b;

            font-size: 26px;
            font-weight: 700;

            line-height: 1.25;
        }

        .acim-section-description {

            margin: 7px 0 0;

            color: #64748b;

            font-size: 14px;

            line-height: 1.5;
        }


        /* ==========================================================
           PRIMARY BUTTON
        ========================================================== */

        .acim-btn-primary {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            gap: 8px;

            min-height: 42px;

            padding: 0 17px;

            border: 0;

            border-radius: 8px;

            background: #00a3e7;

            color: #fff;

            font-size: 13px;
            font-weight: 600;

            text-decoration: none;

            box-shadow:
                0 4px 12px rgba(0, 163, 231, .18);

            transition:
                background .2s ease,
                transform .2s ease,
                box-shadow .2s ease;
        }

        .acim-btn-primary:hover {

            background: #008fc9;

            color: #fff;

            transform: translateY(-1px);

            box-shadow:
                0 6px 16px rgba(0, 163, 231, .24);
        }


        /* ==========================================================
           STAT CARDS
        ========================================================== */

        .acim-section-stat {

            position: relative;

            height: 100%;

            min-height: 128px;

            padding: 19px 20px;

            overflow: hidden;

            border: 1px solid #e8edf3;

            border-radius: 12px;

            background: #fff;

            box-shadow:
                0 3px 12px rgba(15, 23, 42, .035);

            transition:
                transform .2s ease,
                box-shadow .2s ease;
        }

        .acim-section-stat:hover {

            transform: translateY(-2px);

            box-shadow:
                0 8px 22px rgba(15, 23, 42, .07);
        }

        .acim-section-stat::after {

            content: "";

            position: absolute;

            right: -25px;
            bottom: -35px;

            width: 95px;
            height: 95px;

            border-radius: 50%;

            background:
                rgba(0, 163, 231, .035);
        }

        .acim-section-stat-top {

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 12px;
        }

        .acim-section-stat-label {

            color: #64748b;

            font-size: 11px;
            font-weight: 700;

            letter-spacing: .045em;

            text-transform: uppercase;
        }

        .acim-section-stat-icon {

            position: relative;

            z-index: 1;

            display: flex;

            align-items: center;
            justify-content: center;

            width: 39px;
            height: 39px;

            border-radius: 10px;

            background: #eef8fc;

            color: #00a3e7;

            font-size: 18px;
        }

        .acim-section-stat-value {

            margin-top: 12px;

            color: #1e293b;

            font-size: 26px;
            font-weight: 700;

            line-height: 1;
        }

        .acim-section-stat-meta {

            margin-top: 9px;

            color: #94a3b8;

            font-size: 11px;
        }

        .acim-stat-active .acim-section-stat-icon {

            background: #ecfdf5;

            color: #059669;
        }

        .acim-stat-inactive .acim-section-stat-icon {

            background: #f1f5f9;

            color: #64748b;
        }

        .acim-stat-capacity .acim-section-stat-icon {

            background: #fff7ed;

            color: #ea580c;
        }


        /* ==========================================================
           CARD
        ========================================================== */

        .acim-section-card {

            margin-top: 24px;

            overflow: hidden;

            border: 1px solid #e8edf3;

            border-radius: 12px;

            background: #fff;

            box-shadow:
                0 3px 12px rgba(15, 23, 42, .035);

         /*Mon Ajout pour l'espace entre le body et le footer */
         margin-bottom: 3rem;
        }

        .acim-section-card-header {

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 20px;

            padding: 18px 20px;

            border-bottom: 1px solid #edf1f5;
        }

        .acim-section-card-title {

            display: flex;

            align-items: center;

            gap: 10px;
        }

        .acim-section-card-title-icon {

            display: flex;

            align-items: center;
            justify-content: center;

            width: 34px;
            height: 34px;

            border-radius: 8px;

            background: #eef8fc;

            color: #00a3e7;

            font-size: 16px;
        }

        .acim-section-card-title h5 {

            margin: 0;

            color: #1e293b;

            font-size: 15px;
            font-weight: 700;
        }

        .acim-section-card-title span {

            display: block;

            margin-top: 3px;

            color: #94a3b8;

            font-size: 11px;
        }

        .acim-section-table-wrapper {

            padding: 0 20px 20px;
        }

     .acim-section-table {

            width: 100% !important;

            margin-top: 0 !important;
        }

        .acim-section-table thead th {

            padding: 14px 12px !important;

            border-bottom: 1px solid #e7edf3 !important;

            background: #fbfcfd;

            color: #64748b;

            font-size: 10px;
            font-weight: 700;

            letter-spacing: .055em;

            text-transform: uppercase;

            white-space: nowrap;
        }

        .acim-section-table tbody td {

            padding: 14px 12px !important;

            border-bottom: 1px solid #f0f3f6;

            color: #475569;

            font-size: 13px;

            vertical-align: middle;
        }

        .acim-section-table tbody tr {

            transition: background .15s ease;
        }

        .acim-section-table tbody tr:hover {

            background: #f8fbfd;
        }

        .acim-section-table tbody tr:last-child td {

            border-bottom: 0;
        }


        /* ==========================================================
           SECTION PERSON
        ========================================================== */

        .acim-section-person {

            display: flex;

            align-items: center;

            gap: 11px;

            min-width: 230px;
        }

        .acim-section-avatar {

            display: flex;

            align-items: center;
            justify-content: center;

            flex: 0 0 38px;

            width: 38px;
            height: 38px;

            border: 1px solid #dceff7;

            border-radius: 50%;

            background: #eef8fc;

            color: #008fc9;

            font-size: 11px;
            font-weight: 700;
        }

        .acim-section-person-name {

            color: #1e293b;

            font-size: 13px;
            font-weight: 700;

            line-height: 1.3;
        }

        .acim-section-person-ref {

            margin-top: 3px;

            color: #94a3b8;

            font-size: 10px;
        }


        /* ==========================================================
           BADGES
        ========================================================== */

        .acim-section-number {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            min-width: 45px;

            height: 28px;

            padding: 0 9px;

            border: 1px solid #dceff7;

            border-radius: 7px;

            background: #f3fbfe;

            color: #008fc9;

            font-size: 12px;
            font-weight: 700;
        }

        .acim-section-type {

            color: #475569;

            font-size: 12px;
            font-weight: 600;
        }

        .acim-section-capacity {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            min-width: 42px;

            height: 28px;

            padding: 0 8px;

            border-radius: 7px;

            background: #fff7ed;

            color: #c2410c;

            font-size: 12px;
            font-weight: 700;
        }


        /* ==========================================================
           RESPONSABLE
        ========================================================== */

        .acim-section-responsable {

            display: flex;

            align-items: center;

            gap: 7px;

            white-space: nowrap;
        }

        .acim-section-responsable i {

            color: #94a3b8;

            font-size: 14px;
        }

        .acim-section-responsable-empty {

            color: #cbd5e1;
        }


        /* ==========================================================
           STATUS
        ========================================================== */

        .acim-section-status {

            display: inline-flex;

            align-items: center;

            gap: 6px;

            padding: 5px 9px;

            border-radius: 20px;

            font-size: 10px;
            font-weight: 700;

            white-space: nowrap;
        }

        .acim-section-status::before {

            content: "";

            width: 6px;
            height: 6px;

            border-radius: 50%;
        }

        .acim-section-status-active {

            background: #ecfdf5;

            color: #047857;
        }

        .acim-section-status-active::before {

            background: #10b981;
        }

        .acim-section-status-inactive {

            background: #f1f5f9;

            color: #64748b;
        }

        .acim-section-status-inactive::before {

            background: #94a3b8;
        }


         .acim-section-actions {

            display: flex;

            align-items: center;

            justify-content: flex-end;

            gap: 5px;

            white-space: nowrap;
        }

        .acim-section-actions form {

            margin: 0;
        }

        .acim-section-action {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            width: 32px;
            height: 32px;

            padding: 0;

            border: 1px solid #e5eaf0;

            border-radius: 7px;

            background: #fff;

            color: #64748b;

            text-decoration: none;

            cursor: pointer;

            transition:
                background .18s ease,
                border-color .18s ease,
                color .18s ease;
        }

        .acim-section-action i {

            font-size: 14px;

            line-height: 1;
        }

        .acim-section-action:hover {

            border-color: #cbd5e1;

            background: #f8fafc;

            color: #1e293b;
        }

        .acim-section-action-view:hover {

            border-color: #bce9f8;

            background: #eefaff;

            color: #0095d0;
        }

        .acim-section-action-edit:hover {

            border-color: #fde3b8;

            background: #fff9ed;

            color: #d97706;
        }

        .acim-section-action-danger:hover {

            border-color: #fecaca;

            background: #fff5f5;

            color: #dc2626;
        }

        .acim-section-action-success:hover {

            border-color: #bbf7d0;

            background: #f0fdf4;

            color: #16a34a;
        }


        /* ==========================================================
           ALERT
        ========================================================== */

        .acim-section-alert {

            display: flex;

            align-items: flex-start;

            gap: 10px;

            margin-bottom: 20px;

            padding: 13px 15px;

            border-radius: 9px;

            font-size: 13px;
        }

        .acim-section-alert i {

            margin-top: 2px;

            font-size: 16px;
        }


        /* ==========================================================
           DATATABLE BUTTONS
        ========================================================== */

        .acim-section-card .dt-buttons {

            display: flex;

            align-items: center;

            flex-wrap: wrap;

            gap: 5px;

            margin-bottom: 15px;
        }

        .acim-section-card .dt-button {

            display: inline-flex !important;

            align-items: center;

            gap: 6px;

            min-height: 34px;

            padding: 6px 11px !important;

            border: 1px solid #dce3ea !important;

            border-radius: 7px !important;

            background: #fff !important;

            background-image: none !important;

            color: #475569 !important;

            font-size: 11px !important;

            font-weight: 600 !important;

            box-shadow: none !important;

            transition:
                background .18s ease,
                border-color .18s ease,
                color .18s ease;
        }

        .acim-section-card .dt-button:hover {

            border-color: #bce9f8 !important;

            background: #eefaff !important;

            color: #008fc9 !important;
        }

        .acim-section-card .dt-button:active {

            box-shadow: none !important;
        }

        .acim-section-card .dt-button i {

            font-size: 13px;
        }

        .acim-section-card .buttons-copy:hover {

            color: #475569 !important;
        }

        .acim-section-card .buttons-csv:hover {

            color: #15803d !important;
        }

        .acim-section-card .buttons-excel:hover {

            color: #15803d !important;
        }

        .acim-section-card .buttons-pdf:hover {

            color: #dc2626 !important;
        }

        .acim-section-card .buttons-print:hover {

            color: #7c3aed !important;
        }


        /* ==========================================================
           DATATABLE SEARCH
        ========================================================== */

        .acim-section-card .dataTables_filter {

            margin-bottom: 14px;
        }

        .acim-section-card .dataTables_filter label {

            display: flex;

            align-items: center;

            gap: 8px;

            color: #64748b;

            font-size: 12px;

            font-weight: 500;
        }

        .acim-section-card .dataTables_filter input {

            width: 250px;

            height: 37px;

            margin-left: 0 !important;

            padding: 7px 12px;

            border: 1px solid #dce3ea;

            border-radius: 7px;

            outline: none;

            color: #334155;

            font-size: 12px;

            transition:
                border-color .2s ease,
                box-shadow .2s ease;
        }

        .acim-section-card .dataTables_filter input:focus {

            border-color: #8bd8f2;

            box-shadow:
                0 0 0 3px rgba(0, 163, 231, .08);
        }

        .acim-section-card .dataTables_length {

            color: #64748b;

            font-size: 12px;
        }

        .acim-section-card .dataTables_length select {

            margin: 0 5px;

            height: 35px;

            border: 1px solid #dce3ea;

            border-radius: 7px;

            color: #475569;

            font-size: 12px;
        }

        .acim-section-card .dataTables_info {

            padding-top: 18px !important;

            color: #94a3b8;

            font-size: 11px;
        }

        .acim-section-card .dataTables_paginate {

            padding-top: 13px !important;
        }

        .acim-section-card .dataTables_paginate .paginate_button {

            margin-left: 3px !important;

            padding: 5px 9px !important;

            border: 1px solid transparent !important;

            border-radius: 6px !important;

            color: #64748b !important;

            font-size: 11px;
        }

        .acim-section-card .dataTables_paginate .paginate_button:hover {

            border-color: #dceff7 !important;

            background: #eef8fc !important;

            color: #008fc9 !important;
        }

        .acim-section-card .dataTables_paginate .paginate_button.current {

            border-color: #00a3e7 !important;

            background: #00a3e7 !important;

            color: #fff !important;
        }


        /* ==========================================================
           EMPTY STATE
        ========================================================== */

        .acim-section-empty {

            padding: 55px 20px;

            text-align: center;
        }

        .acim-section-empty-icon {

            display: flex;

            align-items: center;
            justify-content: center;

            width: 58px;
            height: 58px;

            margin: 0 auto 15px;

            border-radius: 50%;

            background: #eef8fc;

            color: #00a3e7;

            font-size: 25px;
        }

        .acim-section-empty h5 {

            margin-bottom: 6px;

            color: #334155;

            font-size: 15px;

            font-weight: 700;
        }

        .acim-section-empty p {

            margin: 0;

            color: #94a3b8;

            font-size: 12px;
        }


        /* ==========================================================
           RESPONSIVE
        ========================================================== */

        @media (max-width: 991.98px) {

            .acim-section-header {

                align-items: flex-start;

                flex-direction: column;
            }

            .acim-section-header-actions {

                width: 100%;
            }

            .acim-btn-primary {

                width: 100%;
            }

            .acim-section-card-header {

                align-items: flex-start;

                flex-direction: column;
            }
        }

        @media (max-width: 767.98px) {

            .acim-section-title {

                font-size: 22px;
            }

            .acim-section-description {

                font-size: 13px;
            }

            .acim-section-table-wrapper {

                padding-left: 10px;

                padding-right: 10px;
            }

            .acim-section-card .dt-buttons {

                width: 100%;
            }

            .acim-section-card .dt-button {

                flex: 1 1 auto;

                justify-content: center;
            }

            .acim-section-card .dataTables_filter {

                width: 100%;
            }

            .acim-section-card .dataTables_filter label {

                display: block;
            }

            .acim-section-card .dataTables_filter input {

                display: block;

                width: 100%;

                margin-top: 7px !important;
            }
        }
    <!-- sections edit css ---->

     #section-map {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.map-legend {
    background: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.25);
    font-size: 13px;
    line-height: 22px;
}

.map-legend strong {
    display: block;
    margin-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 18px;
    height: 12px;
    display: inline-block;
    border: 2px solid;
}

.legend-color.current {
    background: rgba(255,255,255,0.3);
    border-color: #000;
}

.legend-color.existing {
    background: rgba(52,152,219,0.25);
    border-color: #3498db;
}

/* ==========================================================
   NAVBAR ADMIN (layout horizontal) — RESPONSIVITÉ
   ==========================================================
   Ajouts ciblés, sans modifier le design existant.
   Constat : la barre horizontale contient 10 rubriques
   (≈ 1 290 px nécessaires) et ne gérait pas le débordement
   entre 992 px et ~1 300 px ; sous 992 px, le panneau
   plafonnait à 360 px (illisible avec 10 menus).
   ========================================================== */

/* ----------------------------------------------------------
   1) < 1300 px : la barre horizontale devient un menu
   vertical dépliable (comportement déjà prévu par le thème
   pour le mobile), ce qui supprime tout débordement.
   ---------------------------------------------------------- */
@media (max-width: 1299.98px) {

    /* Le panneau n'est visible que lorsqu'il est déplié.
       (!important requis : Bootstrap impose display:flex!important
       sur .navbar-expand-lg .navbar-collapse au-delà de 992px.) */
    body[data-layout="horizontal"] .topnav .navbar-collapse {
        display: none !important;
    }

    body[data-layout="horizontal"] .topnav .navbar-collapse.show,
    body[data-layout="horizontal"] .topnav .navbar-collapse.collapsing {
        display: block !important;
    }

    /* Le bouton menu (prévu par le thème sous 992 px) doit
       rester disponible sur toute la plage repliée, et rester
       accessible pendant le défilement du panneau. */
    body[data-layout="horizontal"] .topnav .navbar-toggler {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 5;
    }

    /* Panneau assez haut pour parcourir les 10 rubriques */
    body[data-layout="horizontal"] .topnav {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }

    /* Rubriques empilées */
    body[data-layout="horizontal"] .topnav .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-layout="horizontal"] .topnav .navbar-nav .nav-link {
        padding: .75rem 1.1rem;
    }

    /* Sous-menus « accordéon » : plus de positionnement flottant,
       ce qui évite les menus coupés par le défilement du panneau. */
    body[data-layout="horizontal"] .topnav .dropdown .dropdown-menu {
        position: static !important;
        float: none;
        transform: none !important;
        width: 100%;
        margin: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 24px;
    }

    body[data-layout="horizontal"] .topnav .dropdown .dropdown-item {
        position: relative;
        background-color: transparent;
    }

    body[data-layout="horizontal"] .topnav .arrow-down::after {
        right: 15px;
        position: absolute;
    }
}

/* ----------------------------------------------------------
   2) 1300 px → 1439 px : barre horizontale conservée, mais
   légèrement resserrée pour tenir sur une seule ligne.
   ---------------------------------------------------------- */
@media (min-width: 1300px) and (max-width: 1439.98px) {

    body[data-layout="horizontal"] .topnav .container-fluid {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    body[data-layout="horizontal"] .topnav .navbar-nav .nav-link {
        padding: 1rem 1.05rem;
    }
}

/* ==========================================================
   Z-INDEX : la navbar reste TOUJOURS au-dessus
   ==========================================================
   Leaflet monte jusqu'à 1000 (.leaflet-top/.leaflet-bottom)
   et 800 (contrôles), alors que le thème avait :
     #page-topbar { z-index: 1002 }   .topnav { z-index: 100 }
   → la carte passait au-dessus de la barre de menu.
   On remonte l'ensemble, en restant SOUS :
     - modules Bootstrap (modal 1050, offcanvas 1045)
     - panneau Paramètres du thème (9999) et notifications (99999)
   ========================================================== */

#page-topbar {
    z-index: 1040 !important;
}

.topnav {
    z-index: 1030 !important;
}

/* Les menus déroulants de la navbar sont rendus dans le contexte
   d'empilement de #page-topbar (1040) : ils passent donc au-dessus
   de la carte, tout en restant sous les modales (1050). */

/* ----------------------------------------------------------
   3) Très petits écrans (< 400 px) : on resserre l'en-tête
   (logo + icônes) pour éviter tout débordement.
   ---------------------------------------------------------- */
@media (max-width: 399.98px) {

    body[data-layout="horizontal"] .navbar-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    body[data-layout="horizontal"] .navbar-brand-box {
        padding-left: 0;
        margin-right: 6px;
    }

    body[data-layout="horizontal"] #page-topbar .header-item {
        padding-left: .45rem;
        padding-right: .45rem;
    }
}