/* Style par défaut (mobile first) */

/* [TODO] :  Hover sur survol des champs span avec Tooltip   */


.container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  justify-content: start;
}

nav {
  display: flex; 
  align-items: center;
  align-content: center;
	border: 1px solid black;
	height:100px;
  font-family: lato, sans-serif;
}

#nav_title {
  display: flex;
  align-items: center;
  font-size:1.2em;
  padding-left:1em;
  background-color:green;
  color : white;
  height:100%;
  width:100%
}

/* Smartphone */
@media (max-width: 1199px) {

  .container {
    grid-template-rows: 400px auto;
  }
  g {
    transform: translate(-20px,0px) scale(0.6);
  }
}

/* Desktop */
@media (min-width: 1200px) {
    nav {width:1150px;}
  .container {
    grid-template-columns: 600px 740px; /* OLD : 800px 400px */
  }
  g {
    transform: translate(-40px,20px) scale(0.9);
  }
}

@media (min-width: 1560px) { /*--- OLD : min-width: 1600px ***/
  nav {width:1350px;}
  .container {
    grid-template-columns: 800px 740px; /* OLD : 800px 400px */
  }
  g {
    transform: translate(-40px,20px) scale(1);
  }
}

#myChart {
	/** OLD : width: 200px;  */
	height:250px;
}

#container_chart {
	border: 1px dashed black; /* DEBUG */
	height:auto; /* 400px; */
}

p {
  line-height: 0.8; /* Valeur sans unité (multiplicateur de la taille de la police) */
}

/* Configuration du Tableau ACI */
td input {
    width: 100%;
    box-sizing: border-box;
}
input, select {
  background-color: rgba(252, 228, 214, 1);
}

.input-number-pct {
  width: 3.5em;
}

/**** Style Menus depliants ****/
details {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

summary {
  padding: 10px 15px;
  background: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
}

summary:hover {
  background: #e9e9e9;
}

.contenu-section {
  padding: 15px;
  background: white;
}

.small-italic {
  font-size: 0.8em;
  font-style: italic;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  font-style: normal;
  cursor: help;
  position: relative;
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  /* transform: translateX(-50%); */

  background: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: normal;
  white-space: pre-wrap;  
  word-wrap: break-word;
  width: var(--after-width);
  opacity: 0;
  visibility: hidden;
}

.info-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

/****
body {
  width: 100%;
  overflow-x: hidden;
}
****/




h2 {
	font-size: 1em;
}

#carte {
	border: 1px solid black;
  width:100%;
	/* height:800px; */ /* 800px; */
	/* background-color: blue; */
}

#formulaire {
	height:800px;
	border: 1px solid black;
	/* background-color: gray; */
	padding-left : 10px;
}

#TRB {
	font-size: 1.4em;	
}

polygon:hover {
fill: blue;
}

/* 
polygon {
fill: white;
}
*/

.tooltip {
	position: relative;
	display: inline-block;
	/* border-bottom: 1px dotted black; */
	cursor: help;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background-color: #555;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	left: 50%;
	margin-left: -60px;
	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}