/* changer les proprietes de l'info-bulle des tableaux => ne fonctionne pas aucune idée pourquoi, du coup la propriété est dans le layout css du dash.datatable*/
div.dash-tooltip .dash-table-tooltip {
    background-color: grey;
    font-family: Spectral;
    color: white;
    max-width: 400px;
    min-width: 100px;
}

/* changer la couleur de la fleche de l'info-bulle des tableaux */
div.dash-tooltip:before, .dash-tooltip:after {
    border-bottom-color: grey !important;
}

/* sinon le menu apparait vert quand on passe dessus */
.fr-nav__list > * > .fr-nav__btn, .fr-nav__list > * > .fr-nav__link, .fr-nav__list > .fr-nav__btn, .fr-nav__list > .fr-nav__link {
	font-weight: 400;
	height: 100%;
	margin: 0;
	min-height: 3.5rem;
	padding: 1rem;
	width: auto;
	color: black;
}

/* Pour retrouver les menu déroulant du design de l'état
problème dès qu'on met une dash_table dans la page : https://github.com/plotly/dash/issues/482 mettrediv. permet de forcer le custom.css */
div.Select-control {
	--idle: transparent;
	--hover: var(--background-contrast-grey-hover);
	--active: var(--background-contrast-grey-active);
	--data-uri-svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='m12 13.1 5-4.9 1.4 1.4-6.4 6.3-6.4-6.4L7 8.1l5 5z'/%3E%3C/svg%3E");
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	background-color: #eee;
	background-color: var(--background-contrast-grey);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='m12 13.1 5-4.9 1.4 1.4-6.4 6.3-6.4-6.4L7 8.1l5 5z'/%3E%3C/svg%3E");
	background-image: var(--data-uri-svg);
	background-position: calc(100% - .5rem) 50%;
	background-repeat: no-repeat;
	background-size: 1.5rem 1.5rem;
	border-radius: .25rem .25rem 0 0;
	box-shadow: inset 0 -2px 0 0 #3a3a3a;
	box-shadow: inset 0 -2px 0 0 var(--border-plain-grey);
	color: #161616;
	color: var(--text-title-grey);
	display: run-in;
	font-size: 1rem;
	line-height: 1.5rem;
	padding: 0rem 0rem 0.2rem 0rem;
	width: 100%;
}

/* Pour la selection simple de date */
div.Select-placeholder, .Select--single > .Select-control .Select-value {
	--idle: transparent;
	--hover: var(--background-contrast-grey-hover);
	--active: var(--background-contrast-grey-active);
	--data-uri-svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='m12 13.1 5-4.9 1.4 1.4-6.4 6.3-6.4-6.4L7 8.1l5 5z'/%3E%3C/svg%3E");
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	background-color: #eee;
	background-color: var(--background-contrast-grey);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='m12 13.1 5-4.9 1.4 1.4-6.4 6.3-6.4-6.4L7 8.1l5 5z'/%3E%3C/svg%3E");
	background-image: var(--data-uri-svg);
	background-position: calc(100% - .5rem) 50%;
	background-repeat: no-repeat;
	background-size: 1.5rem 1.5rem;
	border-radius: .25rem .25rem 0 0;
	box-shadow: inset 0 -2px 0 0 #3a3a3a;
	box-shadow: inset 0 -2px 0 0 var(--border-plain-grey);
	color: #161616;
	color: var(--text-title-grey);
	display: run-in;
	font-size: 1rem;
	width: 100%;
}

/* Pour les selections multiples type territoire */
div.Select.is-focused:not(is.open) > .Select-control {
	background-color: #eee;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161616' d='m12 13.1 5-4.9 1.4 1.4-6.4 6.3-6.4-6.4L7 8.1l5 5z'/%3E%3C/svg%3E");
	background-position: calc(100% - .5rem) 50%;
	background-repeat: no-repeat;
	background-size: 1.5rem 1.5rem;
}

div.Select.is-focused:not(is.open) > .Select-control .Select-value {
    border-color:transparent;
}

div.Select-control .Select-value {
    border-color:transparent;
}

div.Select-control .Select-value .Select-value-icon {
    border-color:transparent;
}

div.Select-control .Select-value .Select-value-icon:after {
    background-color:red;
}

/* paramètrage des choix du menu déroulant */
div.Select-menu-outer {
    background-color: #eee;
    font-size:14px;
}

/* pour changer les propriété de la selection multiple dans un menu déroulant */
div.Select--multi .Select-value {
	background-color: #f6f6f6;
	font-size: .9em;
	margin-left: 5px;
	margin-top: 5px;
	vertical-align: top;
}

div.Select--multi .Select-value-label {
	cursor: default;
	padding: 2px 5px;
	color:black;
}

div.Select--multi .Select-value-icon {
	cursor: pointer;
	padding: 1px 5px 3px;
	color:black;
}

/* cacher le bouton du menu déroulant qui est créé par dcc.Dropdown */
span.Select-arrow {
	display: none;
}

/* laisser un espace au dessus des etiquettes des menu déroulants */
.fr-label_custom {
	color: var(--text-label-grey);
	display: block;
	font-size: 1rem;
	line-height: 1.5rem;
	margin-bottom:1rem;
}

/* laisser un espace sous les étiquettes des boutons radio */
.fr-label {
	margin-bottom:0.5rem;
}

/* laisser un espace sous les boutons radio */
.fr-radio-group {
	margin-bottom:1.5rem;
}

/* ajuster bouton radio vers la gauche */
.form-check {
	padding-left: 0em;
}

/* pour pouvoir cliquer le 1er bouton radio */
div.fr-radio-group input[type="radio"] + label::before {
	border-radius: 0rem;
	content: "";
	height: 0rem;
	margin-left: 0rem;
	position: absolute;
	top: 0;
	width: 0rem;
}

/* changer les propriétés des boutons de la barre de navigation */
.nav-link.active {
	font-family: Marianne;
    color: #000091;
    font-size: 14px;
    border-bottom: 0.15rem solid;
    border-color:#000091;
    padding-top:0.9rem;
}

.nav-link.active:hover {
    color: #000091;
}

.nav-link {
    height:3.5rem;
    padding-top:0.9rem;
    color: #242424;
}

.nav-link:hover {
    color: #4e4e4e;
}

div.fr-nav__item_custom {
	position: static;
	font-size: 14px;
	font-family: Marianne;
}

div.fr-nav__item_custom:hover {
	background-color: #f6f6f6;
	color: #4e4e4e;
}

/* customiser les boutons du slider */
div.rc-slider-handle {
	position: absolute;
	width: 20px;
	height: 20px;
	cursor: pointer;
	cursor: -webkit-grab;
	margin-top: -8px;
	cursor: grab;
	border-radius: 50%;
	border: solid 4.5px #fff;
	outline: 1px solid #313178;
	background-color: #313178;
	touch-action: pan-x;
}

div.rc-slider-handle:hover {
	position: absolute;
	width: 20px;
	height: 20px;
	cursor: pointer;
	cursor: -webkit-grab;
	margin-top: -8px;
	cursor: grab;
	border-radius: 50%;
	border: solid 4.5px #fff;
	outline: 1px solid #313178;
	background-color: #313178;
	touch-action: pan-x;
}

div.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {
	border: solid 4.5px #fff;
	outline: 2px solid #313178;
	background-color: #313178;
	box-shadow:0 0 0 0;
}

div.rc-slider-handle-click-focused:focus {
	border: solid 4.5px #fff;
	outline: 1px solid #313178;
	background-color: #313178;
	box-shadow:0 0 0 0;
}

div.rc-slider-handle-click-focused {
	border: solid 4.5px #fff;
	outline: 1px solid #313178;
	background-color: #313178;
	box-shadow:0 0 0 0;
}

div.rc-slider-handle-click-focused:active {
	border: solid 4.5px #fff;
	outline: 1px solid #313178;
	background-color: #313178;
	box-shadow:0 0 0 0;
}

.rc-slider-track {
	position: absolute;
	left: 0;
	height: 4px;
	border-radius: 6px;
	background-color: #313178;
}

.rc-slider-dot-active {
	border-color: #313178;
}

.rc-slider-mark-text-active {
	color: #313178;
}

/* faire apparaitre l'icone i dans la note de lecture */
div.fr-callout[class*=" fr-fi-"]::before, .fr-callout[class*=" fr-icon-"]::before, .fr-callout[class^="fr-fi-"]::before, .fr-callout[class^="fr-icon-"]::before {
	display: block;
	margin: -.5rem 0 .5rem;
	background-image : url("/assets/icons/system/information-line.svg");
	color:#eeeeee;
}

/* texte dans la mise en avant */
div.fr-callout__text {
	font-size: 1rem;
	line-height: 1.5rem;
}

/* texte dans la mise en avant de la page comparaison */
div.fr-callout__text_comp {
	font-size: 0.85rem;
	line-height: 1.3rem;
}

.fr-footer__content-link, .fr-footer__top-cat {
	color: var(--text-title-grey);
}

/* Spinner de chargement */
div.#loading {
    display: none !important;
}

div.body:has(#_pages_content[data-dash-is-loading="true"]) #loading {
    display: flex !important;
}

div.fr-header__brand {
    width: 100%;
}

/* Liseré bleu autour des champs de saisie */
input:valid {
	outline-color: #0a76f6;
	outline-offset: 2px;
	outline-width: 2px;
}

/* texte blanc quand on passe le souris sur le bouton de connection + pas de retour à la ligne */
#user-status-div > a {
	color: white;
	white-space: nowrap;
}

/* flèche après le lien : revenir au menu */
.fr-icon-arrow-right-line::after, .fr-icon-arrow-right-line::before {
	-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0ibTE2LjE3MiAxMS01LjM2NC01LjM2NCAxLjQxNC0xLjQxNEwyMCAxMmwtNy43NzggNy43NzgtMS40MTQtMS40MTRMMTYuMTcyIDEzSDR2LTJoMTIuMTcyWiIvPjwvc3ZnPg==);
	mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0ibTE2LjE3MiAxMS01LjM2NC01LjM2NCAxLjQxNC0xLjQxNEwyMCAxMmwtNy43NzggNy43NzgtMS40MTQtMS40MTRMMTYuMTcyIDEzSDR2LTJoMTIuMTcyWiIvPjwvc3ZnPg==);
}

/* texte bleu lors du passage de souris : revenir au menu */
#page-content > div > a {
	color: var(--text-action-high-blue-france);
}

#page-content > div > div > a {
	color: var(--text-action-high-blue-france);
}

/* dcc.Loading component with transparent background */
/* this defines a style for a Loading component with parent_className='loading-wrapper' */
.loading_wrapper > div {
    visibility: visible !important;
}

.fr-btn_custom {
    background-color: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    min-height: 2.5rem;
    padding: .5rem 1rem;
    width: 100%;
    text-align: center;
    text-align: center;
}


