/* =============================================================================
   style.css — Layout général + filtres génériques.
   Convention CSS du projet (voir CLAUDE.md, section "## CSS") :
     - vars.css      : tokens (couleurs, tailles, URLs SVG) — variables :root
     - core.css      : header / navbar / footer
     - style.css     : layout général + filtres génériques (CE fichier)
     - mod_*.css     : styles spécifiques à un module
     - mod_carto.css : tout ce qui est spécifique à la cartographie
                       (.carto-filtre, .map-container, dropdowns carto)
   Règle : un sélecteur n'a qu'UN seul foyer. Éviter d'ajouter des !important.
   Pas de @import ici : vars.css et core.css sont chargés par bundle_resources().
   ============================================================================= */

#footer {
    display: none
}

[content-active="content-tabActive-tab_carto_main"] {
    overflow: hidden;
}

/* [content-active="content-tabActive-tab_accueil"] #footer {
    display: block;
} */

.navbar-brand,
#logoMarianne {
    background: none !important;
}

#logoMarianne .fr-header__brand-baseline,
.navbar-brand .fr-header__brand-baseline .bold {
    color: var(--color1-text);
}

.navbar-brand .fr-header__brand-baseline {}

.navbar-brand .fr-header__brand-baseline .bold {
    font-size: 17px;
    font-weight: 600;
}

.navbar-brand .fr-header__brand-baseline span {
    line-height: 16px;
}


#footer .logos-right {
    display: none
}

#home-content #footer {
    text-align: center;
}

#home-content #footer .logos-right {
    float: none;
    display: inline-block;
    background: #FFF;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

#home-content #footer .logos-right a img {
    opacity: 1;
    margin: 0 3px;
    max-height: 40px;
}


/**ACCUEIL**/
#home-content {

    min-height: calc(100vh - var(--headerHeight));
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    /* Référence de positionnement pour le badge de version (.version-badge). */
    position: relative;
}

#homeContent {

    background-size: cover;
    background-repeat: no-repeat;
}

#home-content .left,
#home-content .right {
    display: inline-block;
    min-height: calc(100vh - var(--headerHeight));
    vertical-align: top;
}

#home-content .left {
    width: 30%;
    max-width: 800px;
    position: relative;

    background-size: cover;


}

#home-content .left #illu {
    background: url(../img/bg_home.jpg) top center;
    background-repeat: no-repeat;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    min-height: calc(100vh - var(--headerHeight));
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#home-content .right {
    width: 69%;
    padding: 10px 20px;
}

#home-content h1,
#home-content h2 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    clear: both;
    color: var(--color1);
}

#home-content p {
    text-align: justify;
}

#home-content .other-links {
    text-align: center;
    padding-top: 15px
}

#home-content .accueil_bloc {
    text-align: center;
}

#home-content .other-links a {
    display: inline-block;
    text-decoration: underline;
    color: var(--color2);
    font-weight: 700;
    padding: 15px;
    padding: 15px 4px;
    padding-top: 0
}

#home-content .item {
    background: var(--color1);
    display: inline-block;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
    border-radius: 5px;
    text-align: center;
}

#home-content .item .picto_appli {
    position: absolute;
    top: 120px;
    height: 80px;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: #FFF;

}

#home-content .item .picto_appli .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

#home-content .item .picto_appli .icon:after {
    content: "\f015";
    font: normal normal normal 14px / 1 FontAwesome;
    color: #FFF;
    line-height: 40px;
}

/* Pictos des boîtes : identiques aux icônes des onglets de la navbar (app_ui.R). */
#home-content .col-md-4:nth-child(1) .picto_appli .icon:after {
    content: "\f279";
    /* map — onglet Cartographie & Statistiques */
}

#home-content .col-md-4:nth-child(2) .picto_appli .icon:after {
    content: "\f276";
    /* map-pin — onglet Fiches masses d'eau */
}

#home-content .col-md-4:nth-child(3) .picto_appli .icon:after {
    content: "\f02d";
    /* book — onglet Documentation & Liens utiles */
}

#home-content .item .btn {
    display: inline-block;
    margin: 8px auto;
    text-align: center;
    background: var(--color5);
    color: var(--color5-text);
    width: auto;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

#home-content .item-img {
    height: 200px;
    text-align: center;
}

#home-content img {
    width: 110%;
    opacity: 0.35;
}

#home-content .item-title {
    padding: 10px;
    /* Fond bleu clair pour différencier les boîtes (token partagé avec .actu-bloc) */
    background: var(--color-bg-light);
    color: #454545;
    bottom: 0;
    left: 0;
    width: calc(100%);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    position: relative;
    text-decoration: none !important;
}

.picto_appli {
    background: rgba(255, 255, 255, 0.3);
    width: 100px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.picto_appli .icon {
    display: block;
    position: relative;
    width: 0;
    height: 0;
}

.picto_appli .icon:before {
    content: " ";
    width: 20px;
    height: 20px;
    display: block;
    background: var(--color5);
    border-radius: 5px;
    position: absolute;
    top: 0px;
    left: -5px;

}

.picto_appli .icon:after {
    content: " ";
    width: 40px;
    height: 40px;
    display: block;
    background: var(--color1);
    border-radius: 5px;
    position: absolute;
    bottom: -10px;
    left: -35px;

}

.navbar-inverse {
    /* Voile teinté (brand) au-dessus de la carte de fond : garantit la lisibilité du texte blanc */
    /* background: linear-gradient(rgba(18, 86, 110, 0.9), rgba(18, 86, 110, 0.9)), */
    background: url('../img/bg_header_dce.png') top center;
    background-size: cover;
    max-height: var(--headerHeight);
}

.navbar-inverse .navbar-collapse {
    float: right;
    padding-top: 11px;
}

#navBar.navbar-nav>li>a {
    color: #FFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.navbar-nav>li>a i {
    display: block;
    margin: 0 auto 2px;
    /* Pictos toujours affichés ; simplement atténués hors onglet actif/survolé */
    opacity: 0.9;
    font-size: 23px;
}

#navBar.navbar-nav>li>a:hover i,
#navBar.navbar-nav>li.active>a i {
    opacity: 1;
}

#navBar.navbar-nav>li>a:hover,
#navBar.navbar-nav>li.active>a {
    background: var(--color1-text) !important;
    color: var(--color1) !important;
    text-shadow: none;
}

@media (max-width: 1080px) {
    #home-content {
        text-align: center;
    }

    #home-content .right {
        max-width: 100% !important;
        width: calc(100% - 30px) !important;
        padding: 15px
    }

    #home-content .left {
        display: none
    }

}

@media (max-width: 1660px) {

    .navbar-inverse .navbar-collapse {
        width: calc(100% - 548px);
    }

    #navBar .fa-fw {
        width: 0.92em
    }

    #navBar.navbar-nav>li {
        margin: 0 0;
    }

    .navbar-brand .fr-header__brand-top,
    .fr-header__brand-baseline {
        padding-right: 0
    }

    .navbar-brand .fr-header__brand-top {
        height: 60px;
    }

    #home-content .right {
        max-width: calc(100% - 512px);
        width: 70%;
    }

    #home-content .left {
        max-width: 500px
    }

    #home-content .left #illu {
        max-width: 500px;
        background-position: bottom;
    }

}

.menu-opened .navbar-inverse .navbar-toggle,
.menu-opened .navbar-inverse .navbar-toggle:focus,
.navbar-inverse .navbar-toggle:hover {
    background: #f4f4f4;
}

.menu-opened .navbar-inverse .navbar-toggle .icon-bar,
.menu-opened .navbar-inverse .navbar-toggle:focus .icon-bar,
.menu-opened .navbar-inverse .navbar-toggle:hover .icon-bar {
    background: var(--color1)
}

@media (max-width: 1549px) {

    .navbar-inverse .navbar-toggle,
    .navbar-inverse .navbar-toggle:focus {
        border: none;
        border-radius: 0;
        background: var(--color3)
    }

    #navBar,
    .navbar-header {
        width: 100%
    }

    #navBar {
        width: 400px;
        position: absolute;
        right: 15px;
        top: 0;
        background: #f4f4f4;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    /* Menu déroulant (mode replié) : fond clair → texte et pictos foncés, alignés à gauche.
       On neutralise ici le style "barre sur image" (texte blanc + ombre) hérité du mode large. */
    #navBar.navbar-nav>li {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    #navBar.navbar-nav>li>a {
        color: var(--text-color);
        text-shadow: none;
        text-align: left;
        padding: 12px 18px;
    }

    #navBar.navbar-nav>li>a i {
        display: inline-block;
        vertical-align: middle;
        margin: 0 12px 0 0;
        opacity: 1;
        font-size: 20px;
        width: 24px;
        text-align: center;
    }

    .navbar-default .navbar-collapse.collapse ul {
        display: none;
        width: 100%
    }

    .navbar-default .navbar-collapse.collapse.in ul {
        display: block;
        float: right;
    }

    #navBar.navbar-nav>li {
        display: block
    }

    .navbar-toggle {
        display: block !important;
        z-index: 10;
        margin-top: 18px
    }

    .fr-header__brand-baseline {
        position: relative;
    }

    #logoMarianne a:nth-child(2) .logo {
        height: 30%;
        vertical-align: top;
        margin-top: 12px;
        margin-left: 10px
    }
}

@media (max-width: 768px) {
    #navBar {
        width: 100%;
        position: relative;
        right: 0;
        top: 0;
        background: #f4f4f4;
        float: none;
        margin: 0 auto;
    }
}

.open-details .overlay-graph-details {
    display: none !important
}

/**Modal**/
#shiny-modal-wrapper .modal-header,
.modal-title {
    background: #FFF;
    color: var(--color1)
}

.modal-title .btn-close {
    color: var(--color1)
}

#modal-mea {
    margin-top: -15px
}

#modal-mea .mea-item .mea-value:before,
#modal-mea .mea-item .mea-value:after {
    content: "\e900";
    font-family: 'bdetm';
    color: var(--color3-text);
    position: absolute;
    font-size: 14px
}

#modal-mea .mea-item .mea-value:before {
    top: 5px;
    left: 5px
}

#modal-mea .mea-item .mea-value:after {
    bottom: 5px;
    right: 5px
}

.tab-content .js-plotly-plot {
    height: auto !important;
}

.nav-tabs {
    border-top: 1px solid var(--color1);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
    border-radius: 0
}

.nav-tabs li a {
    border-top: none !important
}

#carto_main_1-carto_attributs_1-ui_table_stats_element div.dataTables_scrollBody>table>tbody>tr td:nth-child(1) {
    color: var(--color1);
    font-weight: 700;
    text-align: right;
}

#carto_main_1-carto_attributs_1-ui_table_stats_element div.dataTables_scrollBody>table>tbody>tr {
    height: 40.5px
}

#shiny-modal-wrapper .pretty.p-switch.p-fill input:checked~.state.p-primary:before {
    background: var(--color3) !important;
    color: var(--color3-text) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

#shiny-modal-wrapper .pretty.p-switch .state:before {
    border-color: rgba(0, 0, 0, 0.2);
    background: #FFF
}

#shiny-modal-wrapper .pretty.p-switch .state label:after {
    background: rgba(0, 0, 0, 0.2);
}

/****CHECKBOX / RADIO BUTTON***/
.mCustomScrollBox,
.mCSB_container {
    overflow: visible !important;

}

.carto-filtre {
    color: #454545 !important;
    padding-top: 15px;
}

.item-filtre {
    border-bottom: 1px solid #CCC;
    padding-top: 10px
}

.carto-filtre-group {
    margin-bottom: 20px
}

.carto-filtre-header {
    color: var(--color1);
    font-weight: 600;
    /* font-size: 17px; */
    font-size: 15px;
    border-bottom: 1px solid var(--color1);
    vertical-align: middle;
    line-height: 22px;
}

.carto-filtre-header::before {
    font: normal normal normal 14px / 1 FontAwesome;
    content: "\f0b0";
    background: var(--color1);
    display: inline-block;
    color: var(--color1-text);
    height: 22px;
    width: 22px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-right: 3px;
    margin-bottom: 2px;
    font-size: 9px;
}

.carto-filtre-header .btn-close {
    float: right;
    padding: 0 5px;
    display: inline-block;
    background: var(--color1);
    color: var(--color1-text);
    border: none;
    margin-right: 5px;
}

.carto-filtre-header .btn-close::before {
    font: normal normal normal 12px / 1 FontAwesome;
    content: "\f021";
    color: white;
    margin-right: 3px
}

.carto-filtre .dropdown-toggle {
    max-width: 450px;
}

.graph-details,
.glossaire-details,
.remerciement-details {
    top: 0 !important;
}

.carto-filtre .bootstrap-select>.dropdown-toggle {
    border-radius: 5px !important
}

.btn-group .radiobtn {
    padding: 0;
    margin: 0;
    padding-right: 7px;
    border: none;
    background: none !important;
    text-align: center;
    /* Autoriser le retour à la ligne : sans cela Bootstrap impose white-space:nowrap,
       et le libellé (picto + texte) déborde de sa cellule justifiée en panneau étroit
       (laptop) et se fait couper par le bord du panneau. */
    white-space: normal;
}

.btn-group>.btn-group:first-child .radiobtn {
    text-align: left !important;
}

.btn-group>.btn-group:last-child .radiobtn {
    text-align: right !important;
}

.check-btn-icon {
    background: #FFF;
    border: 1px solid #CCC;
    border-radius: 5px;
    display: inline-block;
    color: #CCC
}

.check-btn-icon .icon-svg-antea {
    background-color: #CCC;
    height: 40px;
    width: 40px;
}

.check-btn-icon .icon-svg-antea,
.btn-group .radiobtn .label {
    display: inline-block;
    vertical-align: middle;
}

.btn-group .radiobtn .label {
    color: #CCC;
    /* font-size: 18px; */
    font-size: 14px;
    font-weight: 300;
    position: relative;
    padding-left: 0px;
    /* le mot trop long casse au lieu de déborder/être coupé (cellule justifiée étroite) */
    overflow-wrap: anywhere;
}

.btn-group .radiobtn .label .info {
    position: absolute;
    right: -8px;
    top: -7px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    font-size: 12px;
    border: 1px solid #CCC
}

.btn-group .radiobtn.active .check-btn-icon {
    background: var(--color1);
    border-color: transparent;
    border-left: 3px solid var(--color5)
}

.btn-group .radiobtn.active .label {
    color: var(--color1)
}

.btn-group .radiobtn.active .check-btn-icon .icon-svg-antea {
    background-color: var(--color1-text);
}

/* === Carto : picto au-dessus, nom en dessous avec le « i » à côté ===
   Par défaut le picto et le libellé sont alignés côte à côte (inline) et le badge
   info est positionné en absolu. Ici on empile : picto centré sur sa ligne, nom
   centré dessous, et le « i » revient dans le flux juste après le nom. */

/* On centre chaque bouton (les règles génériques alignent le 1er à gauche / le
   dernier à droite, ce qui désaligne les pictos une fois empilés). */
.carto-filtre .btn-group>.btn-group:first-child .radiobtn,
.carto-filtre .btn-group>.btn-group:last-child .radiobtn {
    text-align: center !important;
}

/* Le nom passe sous le picto */
.carto-filtre .btn-group .radiobtn .label {
    display: block;
    margin-top: 4px;
}

/* Le badge « i » revient dans le flux, juste à côté du nom */
.carto-filtre .btn-group .radiobtn .label .info {
    position: static;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
}

.carto-filtre .radio label {
    padding-left: 0
}

.carto-filtre .shiny-options-group .radio label span {
    padding-left: 27px
}

.carto-filtre input[type="radio"] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    appearance: none;
    /* For iOS < 15 */
    background-color: #E9E7E8;
    /* Not removed via appearance */
    margin: 0;

    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 0.15em;
    transform: translateY(-0.075em);

    display: block;
    margin-right: 8px;
    text-align: center;

}

.carto-filtre input[type="radio"]::before {
    content: "\e900";
    font-family: 'bdetm';
    color: var(--color1);
    width: 10px;
    height: 10px;
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    display: inline-block;
    /* Windows High Contrast Mode */
    cursor: pointer;
    box-shadow: none;
    border: none;
    margin-left: -2px;
}

.carto-filtre input[type="radio"]:checked::before {
    transform: scale(1);
    box-shadow: none;
    border: none
}

.carto-filtre input[type="radio"]:focus {
    box-shadow: none;
    border: none
}

.carto-filtre .item-filtre .dropdown-toggle,
.carto-filtre .item-filtre .selectize-input {
    background: #FFF !important;
    border: 1px solid #ccc !important;
    color: #666 !important;
    font-size: 12px !important;
}

/* Couleur du texte du picker (.filter-option-inner-inner) : voir mod_carto.css
   (foyer unique des règles spécifiques aux filtres carto). */

.carto-filtre .item-filtre .bootstrap-select .dropdown-toggle .caret {
    border-top: 4px dashed #666 !important;
    border-bottom: none !important
}

.carto-filtre .item-filtre .dropdown-toggle.selected {
    background: var(--color1) !important;
    border: 1px solid var(--color1) !important;
    border-left: 3px solid var(--color5) !important;
    color: var(--color1-text) !important;
}

.carto-filtre .item-filtre .bootstrap-select .dropdown-toggle.selected .caret {
    border-top: 4px dashed var(--color1-text) !important;
}

.side .map-bottom-panel .filter-item .control-label {
    padding-left: 16px;
    position: relative;
    font-weight: 600;
}

.side .map-bottom-panel .filter-item .control-label:after {
    content: "\e900";
    font-family: 'bdetm';
    color: var(--color1);
    position: absolute;
    font-size: 14px;
    left: 0
}

.map-bottom-panel-title div:before {
    content: "\e905";
    font-family: 'bdetm';
    color: var(--color1);
    display: inline-block;
    margin-right: 5px;
    font-weight: 300;
}
.carto-filtre .carto-filtre-group:nth-child(2) .form-group{
    margin-bottom:0
}

/* .icon-svg-antea.bv_aelb { */
.antea-france {
    -webkit-mask: var(--svg-bv);
    mask: var(--svg-bv);
    display: block;
    height: 28px;
    width: 25px;
    background-color: var(--color3-text);
}

/**FICHE**/

/**Slider*/
.filter-container .irs .irs-single,
.filter-container .irs .irs-from,
.filter-container .irs .irs-to,
.filter-container .irs .irs-bar--single,
.filter-container .irs .irs-bar {
    background: var(--color3);
    color: var(--color3-text)
}

.filter-container .irs .irs-bar--single,
.filter-container .irs .irs-bar {
    border-color: rgba(0, 0, 0, 0.2);
}

.filter-container .irs .irs-line {
    background: var(--color1);
    border-color: rgba(0, 0, 0, 0.2);
}

.filter-container .item>div {
    display: inline-block;
    width: 100%;
    vertical-align: middle;
}

.filter-container.level2.fixed {
    position: fixed;
    top: var(--headerHeight);
    left: 0;
    right: 0;
    z-index: 99999;
}

.selectize-dropdown,
.selectize-dropdown.form-control {
    z-index: 999999;
}




[content-active="content-tabActive-tab_fiche_main"] .filter-container {
    padding: 15px;
    text-align: center;
    margin: 0 !important
}

#tdb-container-top,
#tdb-container-body {
    margin-left: 0;
    margin-right: 0
}

[content-active="content-tabActive-tab_fiche_main"] .filter-container .dropdown-toggle,
[content-active="content-tabActive-tab_fiche_main"] .filter-container select,
[content-active="content-tabActive-tab_fiche_main"] .filter-container .selectize-input {
    border-radius: var(--buttonRadius) !important;

}

[content-active="content-tabActive-tab_fiche_main"] .filter-container.level1 {
    background: #f6f6f4;
    color: #666 !important
}

[content-active="content-tabActive-tab_fiche_main"] #export-reload-btns.filter-container.level1 {
    background: var(--color1Darker);
    color: var(--color1-text)
}

[content-active="content-tabActive-tab_fiche_main"] .filter-container.level2 {
    background: var(--color5);
    padding: 5px 15px;
    color: var(--color5-text) !important
}

[content-active="content-tabActive-tab_fiche_main"] .filter-container .shiny-input-container {
    width: 100%;
    margin-bottom: 0
}

.filter-container .item {
    display: inline-block;
    float: none;
    text-align: left;
    margin: 0 15px
}

.filter-container .item .shiny-input-container label,
.filter-container .item .shiny-input-container>div {
    display: inline-block;
    width: 100%
}

.filter-container .item label {
    width: 100%
}

.filter-container select {
    width: 100%
}

.filter-container .item .selectize-control.single .selectize-input,
.filter-container .item .dropdown.bootstrap-select {
    width: 100% !important;
    max-width: 100% !important;
}

/* Modif dropdown surtout pour les départements/régions */
.dropdown-menu {
    z-index: 1001 !important;
    /* max-width: 500px; */
    /* right: 0; */
    top: 100% !important;
    bottom: auto !important;
    margin-top: 2px;
}

/* Suppression de l'ascenseur sur le menu parent */
.bootstrap-select .dropdown-menu {
    max-height: none !important;
    overflow-y: visible !important;
}

/* Le plafond de hauteur + le défilement s'appliquent à la liste interne
   (.dropdown-menu.inner) et non au menu entier : la searchbox et les boutons
   « Tout sélectionner / Dé-sélectionner » en haut du menu occupent de la place,
   donc plafonner le menu entier rognait le bas de la liste. En ciblant .inner,
   toute la liste reste accessible au défilement. */
.bootstrap-select .dropdown-menu.inner {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#tdb-container-top,
#tdb-container-body {
    padding: 20px 50px;
    display: flex;
}

#tdb-container-top .left-content,
#tdb-container-top .right-content {
    display: flex;
    text-align: left;

}

.filter-container#export-reload-btns {
    position: fixed;
    bottom: 0;
    left: 0;
    width: calc(100%);
    z-index: 10;
    text-align: center;
}

.filter-container#export-reload-btns>div {
    display: inline-block;
    margin: 0 20px
}

.modal .btn-line {
    background: var(--color1Darker);
    color: var(--color1-text);
    margin: -15px;
    margin-top: 0;
    text-align: center;
    padding: 15px;
}

.modal .shiny-input-container:not(.shiny-input-container-inline) {
    margin: 0 auto;
    margin-bottom: 15px;
}

.filter-container#export-reload-btns .btn.btn-default,
.modal .btn-line .btn.btn-default {
    border-radius: 0;
    border: none;
    background: var(--color3);
    color: var(--color3-text)
}

#tdb-container-top .left-content .table-info {
    width: 40%;
    display: flex;
}

#tdb-container-top .left-content .map-info {

    width: calc(100% - 40%);
    display: flex;
    height: 300px;
    /* même valeur que leafletOutput(height = "300px") dans mod_fiche_tableaudebord.R */
}

#tdb-container-top .left-content .map-info .leaflet {
    border: 1px solid #dedede;
    display: flex;
    min-height: 0;
    height: 100% !important
}

#tdb-container-top .left-content .map-info .leaflet-top,
#tdb-container-top .left-content .map-info .leaflet-bottom {
    z-index: 3;
}

#tdb-container-top .left-content .table-info>div {
    width: 100%
}

#tdb-container-top .left-content .table-info table {
    background: var(--color1);
    width: 100% !important;
    height: 100% !important;
    margin-bottom: 0
}

#tdb-container-top .left-content .table-info table tr>td {
    border-color: var(--color1Darker);
    color: var(--color1-text);
    vertical-align: middle;
    font-weight: 600
}

#tdb-container-top .left-content .table-info table tr>td:nth-child(1) {
    font-weight: normal;
}

#tdb-container-top .right-content .table-info-container {
    display: flex;
    flex-wrap: wrap;
}

#tdb-container-top .right-content .table-info {
    border: 1px solid #dedede;
    flex: 1 1 100%;
}

#tdb-container-top .right-content .icon-info {
    width: 150px;
    float: left;
    display: table;
    height: 100%;
    background: #efefef;
    vertical-align: middle;
    position: relative;
}

#tdb-container-top .right-content .table-info>div:nth-child(2) {
    width: calc(100% - 150px);
    display: table;
    height: 100%;
}

#tdb-container-top .right-content .table-info {
    margin-bottom: 15px
}

#tdb-container-top .right-content .table-info:last-child {
    margin-bottom: 0
}

#tdb-container-top .right-content .table-info>div:nth-child(2) table {
    width: 100% !important;
    height: 100%;
    margin-bottom: 0;
}

#tdb-container-top .right-content .table-info .icon-svg-antea {
    width: 85px;
    height: 85px;
    position: absolute;
    top: 50%;
    left: 50%;
    position: absolute;
    top: 50%;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-color: var(--color1Darker)
}

.icon.sylvicole {
    background: var(--svg-sylvicole);
    background-size: 100%
}

.graph-container .tab-pane {
    border: 1px solid var(--color1);
    border-top: none;
    padding: 15px
}

#tdb-container-body h2,
#tdb-container-body h3 {
    padding: 0;
    margin: 0;
}

#tdb-container-body h2 {

    font-size: 21px;
    font-weight: 600;
    border-bottom: 2px solid var(--color1Darker);
    color: var(--color1Darker);
    margin-bottom: 20px;
    padding-bottom: 10px
}

#tdb-container-body .panel-default>.panel-heading {

    cursor: pointer;
    padding: 0
}

#tdb-container-body h3 {
    padding: 8px 15px;
    background: var(--color5);
    color: var(--color5-text);
    font-size: 18px;
    font-weight: 600;
    -webkit-transition: all 0.6s ease-in;
    -moz-transition: all 0.6s ease-in;
    -ms-transition: all 0.6s ease-in;
    -o-transition: all 0.6s ease-in;
    transition: all 0.6s ease-in;
}

#tdb-container-body h3:hover {
    background: var(--color5-text);
    color: var(--color5);
}

#tdb-container-body h3 a {
    text-decoration: none;
    color: var(--color5-text) !important;
}

#tdb-container-body h3:hover a {
    color: var(--color5) !important;
}

#tdb-container-body .graph-item {
    text-align: center;
    margin: 20px 0;
    margin-bottom: 30px;
    border-top: 1px solid #dedede;
    padding-top: 30px;
    margin-top: 0
}

#tdb-container-body .grid-stack-item-content {
    text-align: center;
}

#tdb-container-body .gridstack {
    background: #FFF !important
}

#tdb-container-body .panel-body .graph-item:first-child {
    border-top: none;
}

#tdb-container-body h4 {
    display: inline-block;
    margin: 0;
    position: relative;
    padding: 8px 15px;
    padding-right: 50px;
    background: var(--color1);
    color: var(--color1-text);
    width: auto;
    min-height: 60px;
    margin-top: 15px
}

#tdb-container-body h4 .trash {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--color3);
    color: var(--color3-text) !important;
    -webkit-transition: all 0.6s ease-in;
    -moz-transition: all 0.6s ease-in;
    -ms-transition: all 0.6s ease-in;
    -o-transition: all 0.6s ease-in;
    transition: all 0.6s ease-in;
    line-height: 50px;
    width: 40px;
    text-align: center;
    cursor: pointer;
    display: table;
    height: 100%;
    border-radius: 0 !important;
    border: none !important;
}

#tdb-container-body h4 .trash:hover {
    background: var(--color5);
    color: var(--color5-text) !important;


}

#tdb-container-body h4 .sous-titre {
    font-weight: normal;
    font-size: 16px;
    font-style: italic;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--color1Darker)
}

#tdb-container-body h4 .icon-cat {
    position: absolute;
    top: 0px;
    left: -45px;
    background: var(--color1Darker);
    padding: 10px 12px 0;
    display: table;
    height: 100%;
}

#tdb-container-body h4 .icon-cat i {
    background: var(--color1-text);
    height: 30px;
    width: 30px;
    margin-top: 8px
}

#tdb-container-body h4 .icon-type-indic {
    position: absolute;
    background: var(--color5);
    padding: 10px 12px 0;
    top: -15px;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    left: -65px;
    z-index: 9;
}

#tdb-container-body h4 .icon-type-indic i {
    background: var(--color5-text);
    height: 25px;
    width: 25px;
    margin: -3px 0px 0 -5px;

}

/*POPUP carto*/

.highlight-indicator-ctnt {
    margin: 0 -15px;
    margin-top: -15px;
    margin-bottom: 15px;
    padding: 30px;
    background: url(./www/img/illu-foret.jpg) top center;
    background-size: cover;
    background-repeat: no-repeat;
}

.highlight-indicator {
    border-radius: 0;
    background: var(--color2);
    padding: 0;
    padding-left: 15px
}

.highlight-indicator .header-illu {
    height: 150px
}

.highlight-indicator .highlight-percent {
    border-radius: 0;
    margin-left: 10px;
    vertical-align: sub;
}

.popu-filter-container {
    background: var(--color5);
    padding: 5px 15px;
    color: var(--color5-text) !important;
}

/*GLOSSAIRE*/
[content-active="content-tabActive-tab_documentation"] .tab-content {
    padding: 15px 0
}

[content-active="content-tabActive-tab_documentation"] .dataTables_scrollHeadInner {
    background: var(--color5);
    color: var(--color5-text) !important;
}

[content-active="content-tabActive-tab_documentation"] table.dataTable>thead>tr>th,
[content-active="content-tabActive-tab_documentation"] table.dataTable>thead>tr>td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[content-active="content-tabActive-tab_documentation"] table.dataTable tbody tr td {
    text-align: justify;
    vertical-align: top !important;
}

.tab-content .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none
}

.tab-content .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: none;
    background: var(--color1);
    color: #FFFFFF
}

.tab-content .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border: none;
    background: var(--color3);
    color: #FFFFFF !important
}

.tab-content table.dataTable tbody tr.even {
    background: #f1f1f1
}

.tab-content table.dataTable .form-control {
    border-radius: 0;
}

/* [content-active="content-tabActive-tab_documentation"] .highlight-indicator-ctnt,
[content-active="content-tabActive-tab_sources_donnees"] .highlight-indicator-ctnt,
[content-active="content-tabActive-tab_docs_utiles"] .highlight-indicator-ctnt {
    min-height: 190px;
    background-position: center;
} */

/**/
#carto_main_1-carto_filtre_1-carto_filtre_chasse_1-ui_filtre_chasse .col-sm-6:last-child {
    padding-left: 0;
}

#carto_main_1-carto_filtre_1-carto_filtre_chasse_1-ui_filtre_chasse .col-sm-6:last-child .btn,
#carto_main_1-carto_filtre_2-carto_filtre_chasse_1-ui_filtre_chasse .col-sm-6:last-child .btn {
    font-size: 12px
}

/*Style pour contenu texte*/
.txt-content.intro {
    margin-bottom: 20px
}

.txt-content h1 {
    color: var(--color1);
    font-weight: bold;
}

.txt-content h2 {
    color: var(--color3);
}

.txt-content h3 {
    color: var(--color1);
}

.txt-content p {
    text-align: justify;
}

/* Version application : désormais affichée sur l'accueil (voir .version-badge
   dans mod_accueil.css), plus dans le header. */
.navbar-inverse .navbar-collapse {
    position: relative;
}

/* Ajustement largeur filtre et carto */

/* Surcharger Bootstrap pour simuler des colonnes 2.5 / 6.5 */

/* .carto-filtre {
    flex: 0 0 20%;
    max-width: 20%;
}

.map-container {
    flex: 0 0 55%;
    max-width: 55%;
}

.col-md-3 carto-stats-panel {
    flex: 0 0 25%;
    max-width: 25%;
} */