/* =========================== */
/*    VARIABLES ET COULEURS    */
/* =========================== */
:root {
  --main-color: #0064aa;
  --second-color: #a1bd09;
  --link-color: #337ab7; /* couleur des liens internes */
}

h3 {
    font-weight: 500;
}


/* ============ */
/*    NAVBAR    */
/* ============ */
/* Pour modifier l'emplacement des onglets de recherche et les mettre au milieu du navbar */
.search-center {
    flex:1;
    margin-left: 115px;   
    justify-content: left; 

}

/* Ajuster la taille des champs si nécessaire */
.search-center .form-control {
    width: 115px;  
}

/* Taille des onglets de recherche et du texte à l'intérieur */
.ajax-search {
    height: 45px;
    font-size: 15px;
}

.logoStructure {
    margin-top: -1px;
    margin-left: -10px;
}


/* ============= */
/*    SIDEBAR    */
/* ============= */
/* Ajuster la taille de l'emplacement du logo ABT*/
.sidebar-brand-abt {
    height: 80px;              
    display: flex;
    align-items: center;       
    justify-content: center;
}


/* ============ */
/*    FOOTER    */
/* ============ */
/*Changer la couleur des liens dans le footer*/
.footer a{
    color: var(--link-color);
}

/* =============================== */
/*    PAGE D'ACCUEIL DE L'ATLAS    */
/* =============================== */
/* Titre*/
.textIntroduction h1 {
    font-family: 'Holiday Planner'; /*, cursive*/
    color: var(--main-color);
    font-size: 55px;
    line-height: 40px;
}

/* Texte */
.textIntroduction p {
    font-size: 16px;
    text-align: justify;
}

/* Slider slick */
.slidepartenaireindex {
  height: 100px;
}

.slidepartenaireindex img {
  max-height: 85px;
 /* padding: 6px;*/
}

.slick-prev::before, 
.slick-next::before {
    color: #1e1b0c;
}


/* ================== */
/*    FICHE ESPECE    */
/* ================== */
/* Changer la couleur du lien de la photo */
#mainImg {
    color: var(--link-color);
}

#mainImg:hover {
    color: #004b82;
    text-decoration: underline;
}

/* Changer la couleur des liens de la taxonomie des espèces */
#taxonomy a {
    color: var(--link-color);
}

#taxonomy a:hover {
    color: #004b82;
    text-decoration: underline;
}

/* Changer la couleur du nom des communes */
#communes a {
    color: var(--link-color);
}

#communes a:hover {
    color: #004b82;
    text-decoration: underline;
}


/* ============================ */
/*    FICHES COMMUNE ET EPCI    */
/* ============================ */

/* BLOC 1 + 2 : fond blanc unique */
.bg-white {
    border-radius: 4px;
    background: white;
}

/* Pour aligner le titre des pages communes et EPCI sur le haut de la carte*/
.header-align {
    margin-top: 0px;
}

/* Pour centrer les stats par rapport à la hauteur de la carte et entre elles*/

.stat-box {
    border: 2px solid black;
    border-radius: 8px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    background-color: white;
}

.stat-espèces {
    border-color: #009ee2;   /* bleu pour le bloc "espèces" */
}

.stat-observations {
    border-color: #98c121;   /* vert pour le bloc "observations" */
}

.stat-structures {
    border-color: #3295a0;   /* vert d'eau pour le bloc "structures" */
}

.stat-enjeux {
    border-color: #d3001b;   /* rouge pour le bloc "espèces à enjeux" */
}

.stat-prot {
    border-color: #ff8c00;   /* orange pour "espèces protégées" */
}


/* Taille des nombres et du texte dans les stats */

.stat-number {
    font-size: 20px;    
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    font-weight: normal;
}

/* TABLEAU */
/* Background des entêtes du tableau de la fiche commune + EPCI */
.panel-heading {
  background-color: #f5f5f5;
}

.taxon-panel {
    border: 1px solid #ddd;
    margin-bottom: 15px; /* espace entre catégories */
    border-radius: 4px;
    background: white;
}

.taxon-heading {
    background: #f5f5f5; /* fond entête catégorie */
    border-bottom: 1px solid #ddd;
}

/* Lien titre catégorie */
.taxon-heading a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
}

.taxon-heading a:hover {
    text-decoration: none;
}

/* Header content */
.taxon-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Groupe icon */
.taxon-icon .pn {
    font-size: 15px;
}

/* Arrow */
.taxon-arrow {
    font-size: 20px;
}


.panel-body { 
    overflow-x: hidden;
}

.panel-body .row {
    padding-left: 30px;
    padding-right: 30px;
}

.taxon-table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Liens internes en bleu */
.taxon-table a {
    color: var(--link-color);
    text-decoration: none;
}

.taxon-table a:hover {
    text-decoration: underline;
}

.taxon-table th,
.taxon-table td {
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Entête tableau */
.taxon-table th {
    background: #ffffff; /* fond blanc */
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    text-align: center;
}

/* Colonnes type (icône) */
.type-cell {
    text-align: center;
    width: 80px;
}

.type-cell .pn {
    font-size: 35px;
}

/* Colonnes Nom vernaculaire et Nom latin plus larges */
.taxon-table th:nth-child(2),
.taxon-table td:nth-child(2),
.taxon-table th:nth-child(3),
.taxon-table td:nth-child(3) {
    width: 25% !important;
}

/* Hauteur minimum pour éviter débordement */
.taxon-table tr {
    height: 55px;
}

/* Badges Liste Rouge */
.redlistBadge {
    padding: 4px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.redlistLC { color:#FFFFFF; background-color:#78b74a; }
.redlistNT { color:#000000; background-color:#fbf2ca; }
.redlistVU { color:#000000; background-color:#ffed00; }
.redlistEN { color:#000000; background-color:#fbbf00; }
.redlistCR,.redlistCRstar { color:#FFFFFF; background-color:#d3001b; }
.redlistRE { color:#FFFFFF; background-color:#5a1a63; }
.redlistEX { color:#FFFFFF; background-color:#000000; }
.redlistDD,.redlistNA { color:#FFFFFF; background-color:#d3d4d5; }

/* Texte à droite du tableau */
/* Pour centrer le texte et le bouton de téléchargement du PDF */
#btnexportlist p {
    text-align: center;
}

#btnexportlist button {
    margin-top: 15px; /* petit espace au-dessus du bouton */
}

/* Justifier le texte de l'alerte */
.alert.alert-warning p {
    text-align: justify;
}

/* BLOC 3 : Forme du texte de la liste rouge */
.textListeRouge{
  text-align: justify;
  font-size: 17px;
  padding-left: 30px;
  padding-right: 30px;
}

.textListeRouge h3{
  border-bottom: 1px solid black;
}

.textListeRouge p{
  text-align: justify;
  font-size: 17px;
}

.textListeRouge ul{
  font-size: 17px;
}

.textListeRouge li{
  font-size: 17px;
  float : none;
  width: 500px;
  text-align: justify;
  border-right: 0px;
}

.textListeRouge a{
    color: var(--link-color);
}

/* Ajuster le graphique de la fiche commune + EPCI */
#taxonomicChart {
    width: 520px !important;
    height: 520px !important;
}


/* ================================== */
/*    PAGE PRESENTATION DE L'ATLAS    */
/* ================================== */
/* Fixer le menu de la page de présentation en haut au scroll */
#sommaire {
  position: sticky;       
  top: 65px;                 
  width: 100%;
  background-color: #f8f9fa;
  z-index: 1050;
  border-bottom: 1px solid #000000;
  padding: 0.5rem 0;
}

#sommaire .navbar-nav {
  justify-content: center;
  width: 100%;
}

#sommaire .nav-link {
  color: #333 !important;       
  font-size: 14px !important;   
  font-weight: 600 !important;  
  padding: 0.5rem 0.75rem;
  text-align: center;
}

#sommaire .nav-link:hover,
#sommaire .nav-link:focus {
  color: var(--link-color) !important;
  text-decoration: underline;
}

.h2Pres {
   color: #0064aa;
   font-size: 40px;
}

.h3Pres {
   color: #777;
   font-size: 28px;
}

.h4Pres {
   color: #a1bd09;
   border-bottom:1px solid #a1bd09;
   margin-bottom:15px;
   font-size: 22px;
}

.leadPres {
   text-align : justify;
   font-size : 18px;
}

.leadPres a {
   color: var(--link-color);
}


/* ================================= */
/*    PAGE PARTENAIRES DE L'ATLAS    */
/* ================================= */
/* Informations et images */
.partenaires {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.img-responsive.center.partenaires {
  height:125px;
}