html.dark {
    --bg-opacity: 1;
    background-color: #1a1a1a !important;
    background-color: rgba(35, 42, 59, var(--bg-opacity));
}

html.dark body {
    --text-opacity: 1;
    color: #e2e8f0;
    color: rgba(226, 232, 240, var(--text-opacity));
}

html.dark body *,
html.dark body ::before,
html.dark body ::after {
    --border-opacity: 1;
    border-color: #6b4c11 !important;
    border-color: rgba(49, 58, 85, var(--border-opacity));
}

html body {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-family: Roboto;
    font-size: 0.875rem;
    --text-opacity: 1;
    color: #2d3748;
    color: rgba(45, 55, 72, var(--text-opacity));
}

.dark .content {
    --bg-opacity: 1;
    background-color: #2d2c2c !important;
}

.dark .top-nav>ul li .top-menu.top-menu--active {
    --bg-opacity: 1;
    background-color: rgb(45 44 44) !important;
}

.dark .top-nav>ul li .top-menu .top-menu__title {
    --text-opacity: 1;
    color: rgb(237 175 55) !important;
}

.dark .login {
    --bg-opacity: 1;
    /* background-color: #1a1a1a !important; */
    /* background-color: rgba(41, 49, 69, var(--bg-opacity)); */
}

.dark .box {
    --bg-opacity: 1;
    /* background-color: #313a55; */
    background-color: rgb(33 31 31) !important;
}

.dark .report-box:before {
    background: #1a1a1a !important;
}

.hover\:bg-gray-200:hover {
    --bg-opacity: 1;
    /* background-color: #edf2f7; */
    background-color: #2d2c2c;
}

.dark .dark\:bg-dark-1 {
    --bg-opacity: 1;
    /* background-color: #293145; */
    background-color: rgb(45 44 44) !important;
}

.vc_row.vc_row-flex {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
}

.cz_content_box_full_before>div>div,
.cz_content_box_full_after>div>div,
.cz_content_box_full_stretch>div>div {
    position: relative;
    z-index: 1;
}

.vc_row {
    margin-left: -15px;
    margin-right: -15px;
}

.vc_row.vc_row-o-equal-height>.vc_column_container {
    align-items: stretch;
}

.vc_row.vc_row-o-equal-height>.vc_column_container {
    align-items: stretch;
}

.vc_row.vc_row-flex>.vc_column_container {
    display: flex;
}

.vc_column_container {
    padding-left: 0;
    padding-right: 0;
}

.vc_row.vc_row-o-content-middle>.vc_column_container>.vc_column-inner {
    justify-content: center;
}

.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner {
    z-index: auto !important;
}

.vc_column_container>.vc_column-inner {
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.cz_title {
    position: relative;
    z-index: 1;
}

.cz_title_content {
    display: table;
    position: relative;
    word-break: break-word;
    transition: all .2s ease-in-out;
}

.cz_title_content>div {
    position: relative;
    z-index: 2;
    vertical-align: middle;
    word-break: normal;
}

h1:lang(ar),
h2:lang(ar),
h3:lang(ar),
h4:lang(ar),
h5:lang(ar),
h6:lang(ar),
h7:lang(ar),
p:lang(ar),
text:lang(ar),
label:lang(ar),
.cz_wpe_content,
.cz_btn,
li a:lang(ar),
ul:lang(ar) {
    font-family: 'Tajawal' !important;
}

.cz_title_content * {
    margin: 0;
}

.cz_title_content>* {
    display: table-cell;
}

.vc_row.vc_row-o-equal-height>.vc_column_container {
    align-items: stretch;
}

.vc_row.vc_row-o-equal-height>.vc_column_container {
    align-items: stretch;
}

.vc_row.vc_row-flex>.vc_column_container {
    display: flex;
}

.vc_column_container {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1200px) {
    .vc_col-lg-2 {
        width: 16.66666667%;
    }
}

.vc_row.vc_row-o-content-middle>.vc_column_container>.vc_column-inner {
    justify-content: center;
}

.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.vc_row.vc_row-flex>.vc_column_container>.vc_column-inner {
    z-index: auto !important;
}

.vc_column_container>.vc_column-inner {
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.tac {
    text-align: center !important;
}

.cz_counter,
.cz_counter>div>span,
.cz_counter>div>span i {
    transition: all .2s ease-in-out;
}

#cz_14746 .cz_counter_num_wrap {
    font-size: 70px;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-top: 10px;
}

.cz_counter.cz_2rows.tac>div>span {
    margin: 0 auto;
}

.cz_counter.cz_2rows>div>span {
    display: block;
    clear: both;
    line-height: initial;
}

.cz_counter .cz_counter_num_wrap {
    display: inline-block;
    line-height: initial;
    font-size: 48px;
    font-weight: 700;
}

.cz_counter>div>span {
    font-size: 30px;
}

.cz_counter,
.cz_counter>div>span,
.cz_counter>div>span i {
    transition: all .2s ease-in-out;
}

.cz_counter .cz_counter_num_wrap:before {
    content: '';
    position: static;
    display: inline-block;
}

#cz_14746 .cz_counter_num_wrap {
    font-size: 70px;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-top: 10px;
}

#cz_14746 .cz_counter_after {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.cz_counter.cz_2rows.tac>div>span {
    margin: 0 auto;
}

.cz_counter.cz_2rows>div>span {
    display: block;
    clear: both;
    line-height: initial;
}

.dark .top-nav>ul li ul {
    background: #141414 !important;
}

.dark .top-nav>ul li:hover .top-menu:not(.top-menu--active) .top-menu__icon:before {
    --bg-opacity: 1;
    /* background-color: #1e2533; */
    background-color: rgb(16 16 16) !important;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    75% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.ping-icon::before {
    content: '' !important;
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    background-color: #ffaa00 !important;
    opacity: 0.6 !important;
    animation: ping 1.5s infinite !important;
    top: 4px !important;
    left: 4px !important;
    z-index: 0 !important;
}

.ping-icon {
    position: relative !important;
    z-index: 1 !important;
}

.dark .table-report:not(.table-report--bordered) td {
    --bg-opacity: 1;
    /* background-color: #313a55; */
    background-color: rgb(33 31 31) !important;
}

.tablLis {
    font-size: 17px;
    font-family: cursive;
    color: darkgoldenrod;
}


/* Panneau de formulaire : au départ caché en dehors du conteneur */

#form-slide {
    transform: translateX(100%);
    /* caché au départ complètement */
    transition: transform 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

#form-slide.active {
    transform: translateX(0);
    /* slide-in */
    max-height: 1000px;
    /* assez grand pour tout afficher */
    opacity: 1;
    pointer-events: auto;
}


/* par défaut : rien n’est appliqué */

#form-edit-slide {
    transition: transform 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}


/* affichage actif */

#form-edit-slide.active {
    transform: translateX(0);
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}


/* uniquement pour l’entrée "glissante" */

#form-edit-slide.slide-in {
    transform: translateX(100%);
}

.dark .input {
    --bg-opacity: 1;
    /* background-color: #232a3b; */
    background-color: rgb(45 44 44) !important;
    --border-opacity: 1;
    border-color: #1e2533;
    border-color: rgba(30, 37, 51, var(--border-opacity));
}


/* Empêche toute animation/transition avant chargement complet */

body.preload #form-edit-slide {
    transition: none !important;
    transform: none !important;
    /* Évite le translateX(100%) le temps que le JS corrige */
}

.input:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgb(243 218 129 / 64%) !important;
}

.btn-10 {
    position: relative;
    overflow: hidden;
    background-color: #bb950d;
    /* remplace bg-theme-12 */
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s ease-in-out;
}

.btn-10 span {
    position: relative;
    z-index: 2;
}

.btn-10::before,
.btn-10::after,
.btn-10 span::before,
.btn-10 span::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
    transition: width 0.4s ease-in-out;
}

.btn-10::before {
    left: 0;
}

.btn-10::after {
    right: 0;
}

.btn-10 span::before {
    left: 0;
    bottom: 0;
    top: auto;
}

.btn-10 span::after {
    right: 0;
    bottom: 0;
    top: auto;
}

.btn-10:hover::before,
.btn-10:hover::after,
.btn-10:hover span::before,
.btn-10:hover span::after {
    width: 100%;
}

.dark .table-report:not(.table-report--bordered) td.table-report__action:before {
    --bg-opacity: 1;
    /* background-color: #3f4865; */
    background-color: rgb(107 76 17) !important;
}

html.dark .dataTables_wrapper .dataTables_filter input,
html.dark .dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgb(26 26 26) !important;
}

.bg-theme-1 {
    --bg-opacity: 1;
    background-color: #1C3FAA;
    background-color: rgb(207 172 15 / 73%) !important;
}

.file .file__icon.file__icon--image .file__icon--image__preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 82% !important;
    height: 100%;
}

.dark .breadcrumb.breadcrumb--light .breadcrumb--active {
    --text-opacity: 1;
    color: #3160D8;
    color: rgb(227 168 29 / 95%) !important;
}

.breadcrumb .breadcrumb__icon {
    width: 20px;
    height: 20px;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    color: #e05919 !important;
}

.hover\:bg-gray-100:hover {
    --bg-opacity: 1;
    background-color: #f7fafc;
    background-color: rgb(157 142 48) !important;
}

body {
    overflow-x: hidden;
}


/* css Maps*/

#map {
    height: 60vh;
}

#layer-buttons {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#layer-buttons button {
    background: #333;
    /* color: #ffa500; */
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#layer-buttons button:hover {
    background: #555;
}

#layer-buttons button.active {
    background: #ffa500;
    color: #111;
}

.leaflet-popup-content-wrapper {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0) !important;
}

.leaflet-popup-tip {
    background-color: #2c2c2c !important;
}

.geojson-label {
    background-color: rgba(255, 255, 255, 0) !important;
    color: #989898ff !important;
    font-size: 11px !important;
    /* font-weight: 500 !important; */
    letter-spacing: 4px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    border: 0px solid #666 !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.0) !important;
}

.wilaya-label {
    color: #d1d0d0ff;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #222 !important;
}

.dark .login:before {
  background-image: url(../images/bg-login-page-dark-colored.svg) !important;
}

@media (min-width: 640px) {
    .sm\:px-10 {
        padding-left:0rem !important;
        padding-right: 0rem !important;
    }
}
@media (max-width: 1279px) {
    .login {
        background: linear-gradient(to bottom, #2d2c2c, #060606) !important;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}
#duacTable tbody tr:hover {
    background-color: #edaf37; /* gris clair */
    cursor: pointer;
}
.wilaya-highlight {
    color: #b8860b;        
    text-decoration: underline;
    text-decoration-thickness: 2px; /* plus visible */
    text-underline-offset: 3px;     /* espace avec le texte */
}

.image-fit > img {
    position: absolute;
    -o-object-fit: cover;
    object-fit: fill !important;
    width: 100%;
    height: 100%;
}

.hover-scale {
    transition: transform 0.3s ease; /* Animation fluide */
    cursor: pointer; /* Optionnel : montre que c’est interactif */
}

.hover-scale:hover {
    transform: scale(1.5); /* Agrandissement de 50% */
    z-index: 10; /* Pour que l'image reste au-dessus des autres éléments */
}
/* Harmoniser le champ Select2 avec ton design existant */
.select2-container--default .select2-selection--multiple {
    background-color: #111 !important;  /* même couleur que tes inputs */
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    color: #fff !important;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* Les tags sélectionnés */
.select2-container--default .select2-selection__choice {
    background-color: #222 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    border-radius: 4px;
}

/* Le texte et la zone de recherche */
.select2-container--default .select2-search__field {
    color: #fff !important;
    background: transparent !important;
}

/* Placeholder */
.select2-container--default .select2-selection__placeholder {
    color: #bbb !important;
}

/* Survol */
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default .select2-selection--multiple:hover {
    border-color: #555 !important;
}

/* Liste déroulante */
.select2-container--default .select2-results__option {
    background-color: #111 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #333 !important;
}

.hover\:bg-gray-100:hover {
    --bg-opacity: 1;
    background-color: #f7fafc;
    background-color: rgb(71 71 71) !important;
}

#form-slide-reserve.active {
    display: block;       /* Supprime hidden */
    transform: translateX(0); /* Ramène sur l’écran */
}

/* 🔔 Scroll notifications (max 3 visibles) */
.notif-scroll {
    max-height: 270px;      /* ≈ 3 notifications */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar discrète (optionnel mais pro) */
.notif-scroll::-webkit-scrollbar {
    width: 6px;
}

.notif-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.25);
    border-radius: 4px;
}

.notif-scroll::-webkit-scrollbar-track {
    background: transparent;
}

@keyframes blinkGlow {
    0% {
        box-shadow: 0 0 0 rgba(207,154,51, 0.0);
        background-color: #bd2017;
    }
    50% {
        box-shadow: 0 0 15px rgba(207, 51, 51, 0.9);
        background-color: #b1625e;
    }
    100% {
        box-shadow: 0 0 0 rgba(207,154,51, 0.0);
        background-color: #bd2017;
    }
}

.blink-prevision {
    animation: blinkGlow 1.5s infinite;
}


/*Bannière */

#featurePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);

    display: flex;                 /* 🔥 IMPORTANT */
    justify-content: center;       /* 🔥 centre horizontal */
    align-items: center;           /* 🔥 centre vertical */

    z-index: 999999;
}

.feature-card {
    position: relative;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: 18px;
    max-width: 500px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.badge {
    display: inline-block;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.feature-card p {
    opacity: 0.85;
    margin-bottom: 20px;
}

.discover-btn {
    background: #00c6ff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.discover-btn:hover {
    background: #0072ff;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}
/* 🔥 FIX DROPDOWN TOMSELECT SOUS TABLEAU */
.ts-wrapper {
  position: relative !important;
}

.ts-dropdown {
  position: absolute !important;
  z-index: 999999999 !important;
}

/* 🔥 IMPORTANT: DataTables ne doit jamais couper le dropdown */
.dataTables_wrapper,
.dataTables_scroll,
.dataTables_scrollBody,
.table-responsive {
  overflow: visible !important;
}
.ts-control, .ts-wrapper.single.input-active .ts-control {
    background: #d9d7cd !IMPORTANT;
    cursor: text;
}
#mois-filter-ts-control::placeholder {
  color: #000 !important;
  opacity: 1 !important;
}

/* wrapper global */
.ts-wrapper {
  border-radius: 8px !important;
}

/* champ visible */
.ts-control {
  border-radius: 5px !important;
  overflow: hidden !important;
}
.ts-wrapper {
  position: relative;
}

.ts-control {
  background-color: #d9d7cd !important;
  color: black !important;
  border-left: 4px solid var(--theme-1);
  padding-right: 30px; /* espace pour la flèche */
}

/* flèche identique aux selects natifs */
.ts-wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid black;
  pointer-events: none;
}
