:root {
  --left-div-facet: 1vw;
  --left-div-map: 17vw;
  --top-div-facet: 10vh;
  --height-div-map: 50vh;
  --border-style : 0px solid black;
  --font-family: "Courier New", Courier, monospace;
   --font-family: 'Space Grotesk', sans-serif;
  /*
    --font-family: "Courier New", Courier, monospace;
   --font-family: 'Space Grotesk', sans-serif;
  --font-family: 'Inter', sans-serif;
  --font-family: var(--bs-body-font-family);
  */
  --font-size: 15px;
}

* {
  font-family: var(--font-family);
  font-size: var(--font-size);
}


div{
  border: var(--border-style)
}

.bloc-facet {
	position: absolute;   /* ou fixed */
    top: var(--top-div-facet); /* top du coin haut gauche du div facette */
    left: var(--left-div-facet); /* left du coin haut gauche du div facette */
	width: calc(var(--left-div-map) - 3vw); /* attention mettre des espaces autour du - */
	height: 83vh;
	overflow: auto;
	white-space: nowrap;
}

.bloc-map{
	position: absolute;   /* ou fixed */
    top: var(--top-div-facet);  /* top du coin haut gauche du div map */
    left: var(--left-div-map); /* left du coin haut gauche du div map */
	height: var(--height-div-map);
	width:  calc(98% - var(--left-div-map));
}

.bloc-datatable{
	position: absolute;   /* ou fixed */
    top: calc( var(--height-div-map) + var(--top-div-facet) + 5vh); /* top du coin haut gauche du div table */
    left: var(--left-div-map); /* left du coin haut gauche du div table */
	overflow-y: scroll; /* scroll si depassement */
	height: calc(100vh - var(--height-div-map) -  var(--top-div-facet) - 10vh); 
	width:  calc(97% - var(--left-div-map));
}

table.dataTable tbody tr td {
	padding-top: 1px;
	padding-bottom: 1px;
	border-collapse: collapse;
	white-space: nowrap;
	padding: 1px 8px; 
}

table.dataTable {
    width: 100% !important;
}
/* Cacher les boutons d’export au démarrage */
.dt-buttons {
    display: none;
}

.clear_filters {
    background-color: transparent;
    border: 0px solid #ccc;
    color: #666;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease-in-out;
}

/* label des checkbox des facets */
label {
    display: block;
    margin-bottom: 5px; /* optionnel, pour espacer le champ */
}

#div_download_files {
    display: none; /* masqué par défaut */
    position: fixed; /* reste au centre même en scrollant */
    top: calc( var(--height-div-map) + var(--top-div-facet) );
    left: var(--left-div-map);
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999; /* reste au-dessus du reste */
}

/* Centrer la div middle */
div.middle {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    font-size: 12px;
}

/* Footer sticky */
div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_paginate {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 5px 0;
    z-index: 1;
}

/* Style global des boutons */
.dt-button {
    background-color: #e0e0e0;      /* gris clair discret */
    color: #333;                     /* texte sombre */
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    margin: 0 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Hover */
.dt-button:hover {
    background-color: #d5d5d5;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Couleurs spécifiques légèrement différentes pour chaque type */
.dt-button.buttons-csv { background-color: #f0f4c3; color: #5a5a00; }
.dt-button.buttons-excel { background-color: #c8e6c9; color: #2e7d32; }
.dt-button.buttons-print { background-color: #ffe0b2; color: #e65100; }

/* Hover léger */
.dt-button.buttons-csv:hover { background-color: #e6ee9c; }
.dt-button.buttons-excel:hover { background-color: #a5d6a7; }
.dt-button.buttons-print:hover { background-color: #ffcc80; }

/* Icônes avant texte */
.dt-button:before {
    margin-right: 5px;
}

/* Emoji ou icône */
.dt-button.buttons-csv:before { content: "📄"; }
.dt-button.buttons-excel:before { content: "📊"; }
.dt-button.buttons-print:before { content: "🖨"; }

.tableTab tr.odd {
  background-color: #f9f9f9; /* lignes impaires */
}

.tableTab tr.even {
  background-color: #ffffff; /* lignes paires */
}