@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700);

html { height: 100% }
body {
  height: 100%; margin: 0; padding: 0 ;
  font-family: 'Source Sans Pro', "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.clearfix {
  clear: both;
}
#map-canvas, #main-content { height: 100% }

.browsehappy {
  z-index: 9999999;
  color: white;
  background: red;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 10px;
}
.browsehappy p {
  text-align: center;
}
.browsehappy p a {
  color: white;
  font-weight: bold;
}

/* SIDEBAR NAVIGATION */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow-y: auto;
  box-sizing: border-box;
}
.nav-header {
  padding: 16px 20px 8px;
  text-align: center;
}
#TI-link {
  cursor: pointer;
  position: relative;
  display: inline-block;
}
#TI-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233695D8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
}
#TI-link:hover::after {
  opacity: 1;
}
.logo-ti-main {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}
.nav-subtitle {
  font-size: 11px;
  color: #999;
  line-height: 1.3;
  margin-top: 4px;
}
.nav-links {
  flex: 0 0 auto;
  padding: 4px 0;
}
.nav-links {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.nav-links .nav-link + .nav-link {
  border-top: 1px solid #f0f0f0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  background: #f0f0f0;
  color: #1a73e8;
}
.nav-link:visited {
  color: #444;
}
.nav-link:hover:visited {
  color: #1a73e8;
}
.nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}
.nav-bottom {
  margin-top: auto;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
}
#search {
  padding: 8px 16px;
}
#search input {
  font-size: 13px;
  box-sizing: border-box;
}
.search-wrapper {
  position: relative;
}
.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #888;
  pointer-events: none;
}
#search_input {
  width: 100%;
  padding: 8px 30px 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
  font-size: 13px;
  box-sizing: border-box;
}
#search_input:focus {
  outline: none;
  border-color: #3695D8;
  background: #fff;
}
#search_submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: #3695D8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
#search_submit:hover {
  background: #2a7ab8;
}
.advanced_search_activated #search_input {
  width: 100%;
}
#advanced_search_on {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #3695D8;
  text-decoration: none;
  border: 1px solid #3695D8;
  border-radius: 4px;
  padding: 3px 10px;
  transition: background 0.15s, color 0.15s;
}
#advanced_search_on:hover {
  background: #3695D8;
  color: #fff;
}
#advanced_search_off {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #c0392b;
  text-decoration: none;
  border: 1px solid #c0392b;
  border-radius: 4px;
  padding: 3px 10px;
  transition: background 0.15s, color 0.15s;
}
#advanced_search_off:hover {
  background: #c0392b;
  color: #fff;
}
.advanced_search_activated #advanced_search_on {
  display: none;
}
#advanced_search {
  display: none;
  width: 100%;
  padding-top: 8px;
}
.adv-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin: 8px 0 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adv-label:first-child {
  margin-top: 0;
}
.adv-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.adv-sep {
  color: #aaa;
  font-size: 13px;
  flex-shrink: 0;
}
#advanced_search input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
  font-size: 13px;
  box-sizing: border-box;
}
#advanced_search input:focus {
  outline: none;
  border-color: #3695D8;
  background: #fff;
}
.advanced_search_activated #advanced_search {
  display: block;
}
#domtom_link {
  padding: 0;
}
#domtom_link .nav-link {
  color: #555;
}

/* HAMBURGER (mobile) */
#nav-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
#nav-toggle svg {
  stroke: #333;
}

/* MAP + CONTENT AREA — shift right by sidebar width */
#map-canvas {
  position: absolute;
  top: 0;
  left: 220px;
  width: calc(100% - 220px);
  height: 100%;
}
#view {
  position: fixed;
  top: 0;
  left: 220px;
  width: calc(100% - 220px);
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  overflow-y: auto;
  display: none;
  z-index: 10010;
}

/* COMMITMENTS (iframe embed): no sidebar, full-width map */
body.no-sidebar #nav,
body.no-sidebar #nav-toggle {
  display: none;
}
body.no-sidebar #map-canvas,
body.no-sidebar #view {
  left: 0;
  width: 100%;
}

/* MOBILE: sidebar hidden, hamburger visible */
@media screen and (max-width: 768px) {
  #nav {
    left: -220px;
    transition: left 0.25s ease;
    box-shadow: none;
  }
  body.nav-open #nav {
    left: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  }
  #nav-toggle {
    display: block;
  }
  body.nav-open #nav-toggle {
    left: 230px;
  }
  #map-canvas, #view {
    left: 0;
    width: 100%;
  }
}

/* SPLASH SCREEN */
#splash-screen {
  display: none;
	width: 100%;
	height: 100%;
	background: rgba(60, 60, 60, 0.7);
	z-index: 999999;
	position: fixed;
}

#splash-screen > a {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
}

#splash-screen-inner {
  width: 100%;
  height: 600px;
  line-height: 300px;
  text-align: center;
	background: #3695D8;
	margin: 200px 0;
	color: white;
	font-size: 150%;
	z-index: 9999991;
	position: relative;
}

.splash-youtube-title {
  text-align: center;
}
.splash-youtube {
  text-align: center;
}
.splash-youtube iframe {
  height: 315px;
  width: 560px;
}

#splash-screen-inner > div {
  width: 60%;
  display: inline-block;
  line-height: normal; /* on rétablit le line-height */
  text-align: left;
  vertical-align: middle;
  position: relative;
  top: 20px;
}
#splash-screen-inner > div h1 {
	margin: 4px 0 16px 0;
	padding: 0;
	font-size: 100%;
}
#splash-screen-inner > div h2 {
	margin: 8px 0;
	padding: 0;
	font-size: 70%;
}
#splash-screen-inner > div > p > a {
	color: white !important;
	font-size: 80%;
}

@media screen and (max-width:768px) {
    #splash-screen-inner {
        height: 600px;
        margin: 120px 0;
        font-size: 140%;
    }
    #splash-screen-inner > div {
        width: 85%;
        padding: 20px 30px;
        position: relative;
        top: 10px;
    }
    .splash-youtube iframe {
      height: 281px;
      width: 500px;
    }
}
@media screen and (max-width:480px) {
    #splash-screen-inner {
        height: 600px;
        margin: 80px 0;
        font-size: 130%;
    }
    #splash-screen-inner > div {
        width: 92%;
        padding: 6px 12px;
        position: relative;
        top: 0px;
    }
    #splash-screen-inner > div p {
        margin-top: 2px;
    }
    .splash-youtube iframe {
      height: 202px;
      width: 360px;
    }
}

/* MISC */
p.close {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
}

p.close a {
  color: white;
}
@media screen and (max-width:420px) {
  .back-link {
    font-size: 130%;
  }
  .back-link-details {
    display: none;
  }
}

div.close {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 2.2em;
  font-weight: 400;
  text-shadow: 0px 1px 2px rgb(20, 20, 20);
}

div.close a {
  text-decoration: none;
  color: white;
}

#view h1 {
  width: 100%;
  text-align: center;
  background: #3695D8;
  color: white;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 130%;
  padding: 10px 0;
}

#view tr > td:first-child {
    padding-right: 10px;
}

#view .first-column-nowrap tr > td:first-child {
    white-space: nowrap;
}
@media screen and (max-width:480px) {
    #view .first-column-nowrap tr > td:first-child {
        white-space: normal;
    }
}


#view .presentation-youtube {
  text-align: center;
}

.modify_act img {
  width: 20px;
  margin-left: 10px;
}

.content {
	padding: 10px;
	font-size: 95%;
}

.quick_intro {
  /*color: #3695D8;*/
  border-bottom: 2px solid #3695D8;
  padding-bottom: 16px;
}
.donner {
  margin: auto;
  width: 219px;
}
.donner a {
  display: block;
}
.donner img {
  border: 1px solid #3695D8;
}

.open_data {
  border: 1px solid #3695D8;
  width: 300px;
  margin: auto;
  padding: 10px;
  text-align: center;
}
.open_data img {
  display: block;
  margin: auto;
  margin-bottom: 5px;
}

.stats_table {
  border-collapse: collapse;
}
.stats_table td, .stats_table th {
  border: 1px solid #CCCCCC;
  padding: 2px;
}

.stats_infractions, .stats_secteurs {
  float: left;
  margin: 10px;
  margin-bottom: 14px;
}
.stats_secteurs {
  width: 304px;
}
.stats_secteurs p {
  font-size: 70%;
  font-style: italic;
}

.logged_in_stats {
  border: 2px solid #FF8C00;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 140, 0, 0.1);
}
.logged_in_stats > p {
  font-size: 80%;
  font-style: italic;
  color: #FF8C00;
}

.anon_tag {
    /*color: #888888;
    font-style: italic;*/
}

.vie_publique {
    width: 160px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.eventuel_recours {
    font-size: 70%;
    font-style: italic;
}

.lexicon_table td {
    padding-bottom: 10px;
    vertical-align: top;
}

#region_infobox {
  float: right;
  position: relative;
  width: 280px;
  padding: 5px;
  visibility: hidden;
  border: 1px solid black;
}

#region_infobox_about {
  font-size: 80%;
  font-style: italic;
  color: #888888;
}

#region_map {
  width: 510px;
  height: 550px;
}
@media screen and (max-height:768px) {
  #region_map {
    transform-origin: 0 0;
    transform: scale(0.75);
    -webkit-transform-origin: 0 0;
    -webkit-transform: scale(0.75);
    margin-bottom: -120px;
  }
}
@media screen and (max-width:768px) {
  #region_map {
    transform-origin: 0 0;
    transform: scale(0.75);
    -webkit-transform-origin: 0 0;
    -webkit-transform: scale(0.75);
    margin-bottom: -120px;
  }
}
@media screen and (max-height:480px) {
  #region_map {
    transform-origin: 0 0;
    transform: scale(0.5);
    -webkit-transform-origin: 0 0;
    -webkit-transform: scale(0.5);
    margin-bottom: -240px;
  }
}
@media screen and (max-width:480px) {
  #region_map {
    transform-origin: 0 0;
    transform: scale(0.5);
    -webkit-transform-origin: 0 0;
    -webkit-transform: scale(0.5);
    margin-bottom: -240px;
  }
}

#region_infobox_close {
  visibility: hidden;
}

#region_infobox div.close {
  font-size: 1.8em;
}
#region_infobox div.close a {
  color: black;
}
#region_infobox .sub {
  font-size: 80%;
  line-height: 4px;
}

#outre_mer {
  clear: both;
  font-style: italic;
}

#zoom_max_infobox {
  display: none;
  background: white;
  padding: 6px;
  position: absolute;
  width: 250px;
  right: 0;
  z-index: 19999;
}

#donation_zone {
  padding: 8px 16px 12px;
  text-align: center;
}
#donation_zone img {
  max-width: 100%;
  height: auto;
  border: 1px solid #3695D8;
  border-radius: 4px;
}

#zoom_max_infobox div.close {
  font-size: 2em;
}
#zoom_max_infobox div.close a, #donation_zone div.close a {
  color: black;
}


/* Css pour le formulaire de contact */
.contact_warning {
  border: 1px solid #FF2000;
  border-radius: 10px;
  padding: 0 10px;
}
.contact_warning span {
  color: #FF2000;
}


#contact {
  width: 200px;
  padding-top: 0.25em;
  padding-bottom: 1.5em;
}

#contact label {
  float: left;
  width:120px;
  padding-top:1em;
  padding-bottom:1em;
}

#send_message {
  float:none ;
}

.latest_list_update_date {
  color: #555555;
  /*font-size: 70%;
  font-weight: bold;*/
}


.anon_marks_why {
  font-size: 80%;
}

.commitments_table {
  border-collapse: collapse;
}

.commitments_table .commitments_table_th_light {
  background-color: #A1CEED;
}

.commitments_table td, .commitments_table th {
  border: 1px solid #CCCCCC;
  padding: 2px;
  text-align: center;
}

.commitments_table td:nth-child(1), .commitments_table td:nth-child(2), .commitments_table td:nth-child(3) {
  background-color: #E2F0FA;
}

.commitments_table th.proposition_cell {
  background-color: #3695D8;
  color: white;
}
.commitments_table .proposition_cell {
  cursor: help;
  width: 8%;
}
@media screen and (max-width:768px) {
  .commitments_table {
    font-size: 80%;
  }
}
@media screen and (max-width:480px) {
  .commitments_table {
    font-size: 60%;
  }
}
.commitments_table td.proposition_cell {
  font-size: 180%;
  color: #3695D8;
}
