

/* === STYLE GLOBAL === */



body {
  margin: 0;
  background-color: #f5f7f1;
  color: #2f3e2e;
  font-family: Lora, Segoe UI, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}


#dock-content {
  overflow-y: hidden !important; /* cache la barre verticale */
}

#dock {
  border-right: none !important;
}


h2 {
    font-size: 25px;
    background-color: none;
}

a#edition-draw.btn.btn-small {
  background-color: #ffffff !important;  /* fond clair */
  color: #217346 !important;             /* texte vert du Parc national */
  border: 2px solid #217346 !important;  /* bordure bien visible */
  font-weight: bold;
  border-radius: 5px;
  padding: 6px 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

a#edition-draw.btn.btn-small:hover {
  background-color: #e6f0ec !important; /* effet hover doux */
  color: #000 !important;
}



.btn-selectiontool-clear.btn-error.btn-link {
  color: #fff !important;
  background: transparent !important;
  border: none !important;
}



#dock .form-horizontal .control-label, div.modal .form-horizontal .control-label {
  display: inline-block !important;  /* évite le retour à la ligne */
  width: auto !important;            /* largeur auto */
  white-space: nowrap;               /* pas de coupure forcée */
  font-size: 14px !important;        /* taille de police */
  font-weight: bold;                  /* gras  */
  vertical-align: middle;            /* bien aligné avec la case */
  margin-right: 10px;                /* petit espace si plusieurs labels */
}


.btn-selectiontool-clear.btn-error.btn-link {
    color: rgb(241, 5, 5) !important;
}



/* === LAYER SWITCHER === */
#layer-switcher {
  background-color: #f5f7f1 !important;
  color: #2f3e2e;
  font-size: 16px;
}



#dock-tabs > li > a, 
#right-dock-tabs > li > a, 
#bottom-dock-tabs > li > a {
  color: rgb(255, 255, 255);
}



/* Lien dans la div d'avertissement Lizmap */
div.lizmap_warning a {
    color: white;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

/* Couleur au survol */
div.lizmap_warning a:hover {
    color: #94aebb; /* bleu ciel (light sky blue) */
}

div.action-buttons {
    float: right;
    width: 100%;
    background-color: #00623100;
}


div.tab-pane {
  background-color: #f4f7f5;
  color: #000;
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 15px;
  font-family: Arial, sans-serif;
}


/*PANEL EDITION valide */

/* Titres de sections (h3) */
#edition-form-container h3 {
  color: #222;
  font-size: 14px;
  border-bottom: 1px solid #006231;
}


/* Conteneur général du formulaire */
#edition div.tab-pane {
  background-color: #f4f7f5;
  color: #000;
  border: 1px solid #006231; 
  font-family: Arial, sans-serif;
}



#dock .form-horizontal .control-label, 
div.modal .form-horizontal .control-label {
  width: 90px;
  -webkit-hyphens: auto;
  font-size: 12px;
  hyphens: auto;
  font-family: Arial, sans-serif;
  text-align: left;
  float: inherit;
}


#dock .form-horizontal .controls {
  margin-left: 0px;
  margin-right: 0px;
  min-width: 100px;
  min-height: 35px;
}


.edition-tabs .nav-pills > li > a,
.edition-tabs .nav-pills > li > a:hover, 
.edition-tabs .nav-pills > li.active > a, 
.edition-tabs .nav-pills > .active > a, 
.edition-tabs .nav-pills > .active > a:hover, 
.edition-tabs .nav-pills > .active > a:focus
 {
    background-color: #0e4c2d;
    color: var(--color-contrasted-text) !important;
}

.btn.action-run-button,
.btn.action-deactivate-button,
.div.action-buttons button:hover,
.btn.action-run-button:hover,
.btn.action-deactivate-button:hover {
    background-color: #4d7a4d;
    color: var(--color-contrasted-text) !important;
}
div.action-buttons button:hover:not([disabled]) {
    background-color: #4d7a4d;
    background-image: linear-gradient(to bottom, #4d7a4d, #4d7a4d);
    color: white;
    text-shadow: none;
}


/* Accordéons (titres cliquables de groupe) */
#edition-form-container .accordion-bound {
  background-color: #174f2f;
  color: white;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  max-width: 100%;
}

/* Accordéons (titres cliquables de groupe) */
#edition-form-container .accordion-bound {
  background-color: #174f2f;
  color: white;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  max-width: 100%;
}

/* CHEVRONS DES PANNEAUX EDITION */
legend .chevron {
  display: inline-block;
  margin-left: 8px;
  border: solid #fcfcfc;
  border-width: 0 2px 2px 0;
  padding: 4px;
  transform: rotate(0deg);
  transition: transform 0.2s;
}

/* Chevrons ouverts (vers le bas) */
legend .chevron.open {
  transform: rotate(90deg);
}



#switcher-layers-actions button,
#dock-close,
#right-dock-close {
  background-color: #ffffff !important;
}
#switcher-layers-actions button:hover
{
  border-color: #16441e;
  border-radius: 2px;
}
#dock-close:hover,
#right-dock-close:hover {
  background-color: #164e3061 !important;
  color: var(--color-contrasted-text) !important;
}

#hide-sub-dock,
.btn.btn-danger, 
.btn-bottomdock-clear,
.btn.btn-danger:focus{
  background-color: #fd8c62 !important;
}


#toolbar h3, 
#menu h3, 
#dock h3
div.modal h3, 
.dock-subtitle,
#filter.tab-pane.active h3 .text,
#switcher-baselayer.baselayer h3 .text
 {
    color: #f5f5f5;
}

#edition-form-container h3,
#sub-dock h3, 
#right-dock h3, 
#right-dock a, 
#mini-dock h3, 
#edition-point-coord-form-group h3,
#global_legend.tab-pane.active h3 .text {
    color: #000 !important;
}


#toolbar div.menu-content, 
#menu div.menu-content, 
#dock div.menu-content, 
#sub-dock div.menu-content,  
#right-dock div.menu-content, 
div.modal div.menu-content, 
#bottom-dock div.bottom-content {
    background-color: #ffffff;
}


.btn.btn-primary.active,
button.btn-bottomdock-size.btn.btn-mini  {
  background-color: #3b643b81 !important;
}

.btn.btn-primary:hover,
.modal-footer > button.btn.btn-default:hover  {
  background-color: rgb(48, 94, 65) !important;
}

.modal-footer > button.btn.btn-default h3:hover {
  color:#000
}
.modal-footer > button.btn.btn-default h3 {
  color:#fcfafa
}

.btn.btn-primary,
.modal-footer > button.btn.btn-default {
  background-color: #4d7a4d77 !important;
}


/* CE QUE JE VALIDE VA ICI */ 

/* Boutons de la barre de navigation Lizmap */
#navbar .btn {
    background-color: #0e4c2d !important;   /* Vert foncé */
    border: 1px solid #0e4c2d !important;
    color: white !important;
}
#navbar .btn:hover {
    background-color: #146b3a !important;   /* Vert plus clair */
    border-color: #146b3a !important;
    color: #fff !important;
    opacity: 0.9;
}


/* STYLE DU TUTORIEL*/

.shepherd-button {
    background-color: rgb(48, 94, 65) !important; /* Bleu lisible */
    color: white !important; /* Texte en blanc */
    border: none;
    padding: 6px 12px;
    margin: 5px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    opacity: 1 !important; /* Corrige les éventuelles opacités */
    transition: background-color 0.2s;
}

.shepherd-button:hover {
    background-color: rgb(48, 94, 65) !important;
}

.shepherd-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px solid #ddd;
}

.shepherd-cancel-icon {
    color: rgb(48, 94, 65) !important; 
}



/* Change le texte au survol du lien Administration */
.dashboard-item:hover .hidden-phone {
  color: #000 !important;
}

/* Texte utilisateur (nom) devient noir au survol */
.user.dropdown:hover .hidden-phone {
  color: #000 !important;
}

/* Change le texte  du lien Administration */
.dashboard-item .hidden-phone {
  color: #f7f5f5 !important;
}

/* Texte utilisateur (nom)  */
.user.dropdown .hidden-phone {
  color: #f9f4f4 !important;
}


/* Table attributaire */

button.btn-open-attribute-layer:hover {
  background-color: rgb(14, 76, 45) !important; /* Un peu plus foncé au hover */
}

button.btn-open-attribute-layer {
  background-color: rgb(14, 76, 45) !important; /* Vert plus lumineux */
  color: #ffffff !important; /* Blanc pur pour fort contraste */
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  transition: background-color 0.3s ease;
}

#attributeLayers-tabs > li.active > a, #attributeLayers-tabs > li > a:hover {
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: rgb(14, 76, 45);
    color: var(--color-contrasted-text);
}



/* Faire les petits boutons d'édition du popup */
.feature-toolbar .btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    margin: 2px;
}
.feature-toolbar .btn:hover {
    background-color: #0c3c0f7d !important; /* léger fond vert clair au survol */
    border-color: rgb(17, 19, 17) !important;
}



/* Réglages opacité des couches */
/* Boutons d'opacité : état par défaut */
.btn-opacity-layer {
    color: #333 !important;
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    margin: 2px;
    font-weight: normal;
    padding: 4px 8px;
    border-radius: 4px;
    text-shadow: none !important;
}

/* Survol avant clic : gris foncé */
.btn-opacity-layer:hover {
    background-color: #999 !important;
    color: white !important;
}

/* État actif : vert clair */
a.btn.btn-opacity-layer.active {
    background-color: #4d7a4d !important;  
    color: white !important;
    border-color: #4d7a4d !important;
}

/* Style de base (obligatoire)*/
button.btn.link.layer-info {
    background-color: #f5f5f5 !important; /* fond clair */
    color: #333 !important;               /* texte foncé */
    border: 1px solid #ccc !important;
    border-radius: 4px;
    padding: 5px 10px;
    font-weight: normal;
    box-shadow: none;
    text-shadow: none;
    transition: background-color 0.2s;
}



/*LEGENDE */


/* Zone interne contenant l’image */
#my-legend-items-container {
  overflow: hidden !important;  /* Supprime le scroll horizontal et vertical */
  padding: 0 !important;
}

/* Image de la légende */
#my-legend-items-container img {
  display: block;
  height: auto !important;
  max-width: none !important;
  border: none;
}

/* Enlève toute marge inutile autour de la légende */
.my-legend-container {
  margin: 0 !important;
  padding: 0 !important;
}


/* Appliquer une taille de police cohérente à toute la légende */
#global_legend,
#my-legend-items-container,
#my-legend-items-container * {
  font-size: 13px !important;  /* Ajuste selon tes préférences */
  line-height: 1.4em;
  font-family: Arial, sans-serif;
}


/* Container global de la légende */
#global_legend {
  max-width: 400px !important;  /* Largeur étendue */
  min-width: 300px;
  padding: 10px;
}



/* le slide du mode filtrer lorsqu'il y a des dates */
.ui-slider.ui-slider-horizontal .ui-slider-range {
  background-color: #064608 !important;
  border: 1px solid #3b553b !important;
  color:rgb(14, 76, 45) !important;
}

.ui-slider.ui-slider-horizontal .ui-slider-handle {
  background-color: #fff !important;
  border: 2px solid #49684a !important;
  color:#0c3b0f !important;
  border-radius: 20% !important;
  width: 0.5em !important;
  height: 0.5em !important;
  margin-left: 0em !important;
  margin-top: 0em !important;
}

.ui-slider.ui-slider-horizontal {
  background-color: #ffffff !important;
  border-radius: 4px !important;
}



/* === EN-TÊTE avec le titre en blanc, sans fond, et l'image sur le serveur qui ressemble à la Charte graphique === */
#header {
  background-color: #2b2b2b00;
  background-image : url(/index.php/view/media/getMedia?repository=04joursdelanuit&project=bilan_extinctions_2024&path=media%2Fthemes%2Fdefault%2Fcss%2F/img/fond.jpg);
  color : #FBFBFB; 
  text-decoration: none;
  background-repeat: none;
}

#title {
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  width: 700px !important;
  max-width: 700px;
  margin: 0 auto;
  display: block; 
}

/* TITRE DES STATS */
#dataviz .text {
    color: rgb(27, 26, 26) !important;
}

#dataviz.tab-pane.active {
  background-color: #ffffff; /* gris clair */
}



/* nettoyer le pop up quand il n'y a pas de valeurs */
.control-has-empty-value {
  display: none !important;
}

#mapmenu li.projects.nav-dock {
    display: none !important;
}


#tabform.tab-pane.active {
    max-height: 80vh;   /* hauteur max par rapport à la fenêtre */
    overflow-y: auto;   /* barre de défilement verticale */
    overflow-x: hidden; /* pas de scroll horizontal */
    padding: 5px 10px;  /* garde tes espacements */
}



#lizmap-loading {
    display: none;             /* déjà géré en JS */
    justify-content: center;
    align-items: center;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f90e;
    margin-top: 10px;

    position: relative;        /* clé */
    z-index: 1000;             /* pour qu’il passe au-dessus des billes */
}

#lizmap-loading::before {
    content: ;               /* petite marge au-dessus */
    display: block;
    height: 10px;              /* espace supplémentaire */
}


#lizmap-loading-text {
  display: inline-block;
  margin-top: -80px; /* ajuste la valeur selon le rendu */
  position: relative;
}
