/*
=========================================================================

  TABLEAUX - styles de base

=========================================================================

*/
table {
	border-collapse: collapse;
	border-spacing: 0;
	margin-top: 0.8em;
	margin-bottom: 1.3em;
	width: 100%;
}
table + table {
	margin-top: 2em;
}
table caption {
	text-align: left;
	font-family: "proxima-nova-semibold", sans-serif;
}
table tr td {
	border-top: 1px solid #cccccc;
	padding: 0.6em 0.5em;
	line-height: 1.35em;
}
table thead tr th {
	background-color: #074b98;
	color: white;
	font-family: "proxima-nova-bold", sans-serif;
	font-size: 17px;
	padding: 0.6em 0.5em;
	text-align: left;
}
table thead tr th a {
	color: white;
}
table thead tr th[colspan="2"] {
	text-align: center;
}
table thead tr:nth-child(2) th {
	border-top: 3px solid white;
	text-align: center;
}
table thead tr th > h2, table thead tr th > h3, table thead tr th > h4 {
	color: white;
	font-family: "proxima-nova-bold", sans-serif;
	margin: 0;
	padding: 0;
}
table thead tr th > h2 {
	font-size: 20px;
}
table thead tr th > h3 {
	font-size: 17px;
}
table thead tr th > h4 {
	font-size: 16px;
}
table tbody {
	font-size: 16px;
}
table tbody tr th {
	border-top: 1px solid #cccccc;
	font-family: "proxima-nova-semibold", sans-serif;
	font-weight: 600;
	padding: 0.6em 0.5em;
	text-align: left;
	line-height: 1.35em;
}
table tbody tr th[colspan="2"], table tbody tr th[colspan="3"], table tbody tr th[colspan="4"] {
	border-top: 1px solid transparent;
	padding: 1em 0.5em 0.6em;
}
table tfoot tr td, table tfoot tr th {
	background-color: white;
	border-top: 1px solid #cccccc;
	padding: 0.6em 0.5em;
	text-align: left;
}
/* Bordure bottom à la dernière ligne de tableau */
table tbody tr:last-child th, table tbody tr:last-child td {
	border-bottom: 1px solid #cccccc
}
/* Aligne à droite le contenu d'un champ. */
table th.aligne-droite, table td.chiffre, table td.aligne-droite, table tr .nombre {
	float: none;
	margin-left: initial;
	text-align: right;
}
/* Aligne au centre le contenu d'un champ. */
table .centrer {
	text-align: center;
}
table tbody tr td, table tbody tr th {
	background-color: white;
}
table:not(.uni) tbody tr:nth-child(even) td, table:not(.uni) tbody tr:nth-child(even) th {
	background-color: #f2f2f2
}
table p {
	margin: 0px
}
		table p + p {margin-top:12px;
}
table td h3:first-child, table td h4:first-child  {
	margin-top: 0
}
/* Ligne totale */
table tbody tr.total td, table tbody tr.total th {
	background-color: #d1e2f1;
	font-family: "proxima-nova-bold", sans-serif;
}
/* Sous-total */
table tbody tr.sous-total td, table tbody tr.sous-total th {
	background-color: #e6e6e6;
	font-family: "proxima-nova-bold", sans-serif;
}
/* Source d'un tableau (exemples A propos > Quelques chiffres */
table .source, .note_tableau, .note-tableau {
	font-size: 0.8em;
	line-height: 1.15em;
}
table .top, table.top th, table.top td {
	vertical-align: top;
}
/* Empêche le retour à la ligne d'un champ. */
table th.nowrap, table td.nowrap {
	white-space: nowrap;
}
table th.col-80, table td.col-80 {
	width: 80%;
}
table th.col-75, table td.col-75 {
	width: 75%;
}
table th.col-60, table td.col-60 {
	width: 60%;
}
table th.col-50, table td.col-50 {
	width: 50%;
}
table th.col-40, table td.col-40 {
	width: 40%;
}
table th.col-33, table td.col-33 {
	width: 33.3333333333333%;
}
table th.col-25, table td.col-25 {
	width: 25%;
}
table th.col-20, table td.col-20 {
	width: 20%;
}

@media (max-width: 766px) {
table.nowrap {
	white-space: nowrap;
}
table.horizontal {
	display: inline-block;
	vertical-align: top;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	border-spacing: 0;
}
/* scrolling shadows*/
table.horizontal, table.vertical tbody {
	-webkit-overflow-scrolling: touch; /* optional - enable iOS momentum scrolling */
	background: radial-gradient(left, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 0 center, radial-gradient(right, ellipse, rgba(0,0,0, .2) 0%, rgba(0,0,0, 0) 75%) 100% center;
	background-size: 10px 100%, 10px 100%;
	background-attachment: scroll, scroll;
	background-repeat: no-repeat;
}
table.horizontal td:first-child, table.vertical tbody tr:first-child {
/*background-image: linear-gradient(to right, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
  background-repeat: no-repeat;
  background-size: 20px 100%;*/
}
/*table.horizontal td:last-child,
table.vertical tbody tr:last-child {
  background-image: linear-gradient(to left, rgba(255,255,255, 1) 50%, rgba(255,255,255, 0) 100%);
  background-repeat: no-repeat;
  background-position: 100% 0;
  background-size: 20px 100%;
}*/
table.vertical {
	display: flex;
	overflow: hidden;
	background: none;
}
table.vertical thead {
	display: flex;
	flex-shrink: 0;
	min-width: min-content;
}
table.vertical tbody {
	display: flex;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
}
table.vertical tr {
	display: flex;
	flex-direction: column;
	min-width: min-content;
	flex-shrink: 0;
}
table.vertical td, table.vertical th {
	display: block;
	line-height: 0.8em;
}
table.vertical td {
	background-image: none !important;
	border-left: 0;
}
table.vertical th:not(:last-child), table.vertical td:not(:last-child) {
	border-bottom: 0;
}
}
/* A tester dans différents tableaux */


/* Tableaux quadrillés (avec séparation des colonnes) */

table.quad tr th,
table.quad tr td {
	border-right: 1px solid #cccccc;
}
table.quad tr td:last-child {
	border-right: none;
}

/*
=========================================================================

  TABLEAUX responsives à 2 colonnes

=========================================================================

*/
@media (max-width: 499px) {
	.responsive-2cols {
		/*display: block;*/
		margin-top: 1em;
        width: 100%;
	}
	.responsive-2cols thead {
		display: none;
	}
	.responsive-2cols th, 
	.responsive-2cols td {
		display: block;
        padding-left: 0;
	}
    .responsive-2cols th:first-child,
    .responsive-2cols td:first-child {
        border-bottom: none;
        padding-bottom: 1px;
    }
    .responsive-2cols th:nth-child(2),
    .responsive-2cols td:nth-child(2) {
        border-top: none;
        padding-top: 1px;
    }
	.responsive-2cols tbody tr th,
	.responsive-2cols tbody tr:last-child th{
		border-bottom: none;
	}
	.responsive-2cols tbody td {
		border-top: none;
	}
	.responsive-2cols tbody th {
		width: 100%;
	}
    table.responsive-2cols tbody tr:nth-child(even) td, 
    table.responsive-2cols tbody tr:nth-child(even) th { 
        background: transparent
    }
}



/*
=========================================================================

  TABLEAUX - dans des tiroirs

=========================================================================

*/

.toggle-container table thead tr th, .toggle_container table thead tr th {
	background-color: #175ba8;
}
.toggle-container table:not(.uni) tbody tr:nth-child(even) td, .toggle-container table:not(.uni) tbody tr:nth-child(even) th, .toggle_container table:not(.uni) tbody tr:nth-child(even) td, .toggle_container table:not(.uni) tbody tr:nth-child(even) th {
	background-color: #f2f2f2;
}
/*
=========================================================================

  TABLEAUX - dans des formulaires (souvent des boutons radios)

=========================================================================

*/

fieldset table {
	margin-top: 0;
	margin-bottom: 0;
}
/*
=========================================================================

  TABLEAUX - Calendrier d'activités en liste

=========================================================================

*/
.calendrier-activites td h3 {
	text-transform: none;
}
.calendrier-activites td h3, .calendrier-activites td h4, .calendrier-activites td h5 {
	margin-top: 3px
}
.calendrier-activites th.date-jour, .calendrier-activites th.date-heure {
	text-align: center;
	color: white;
	width: 110px;
	vertical-align: top;
	font-size: 110%;
	padding-top: 1em;
}

th.date-heure.middle {
	vertical-align: middle;
	padding-top:0;
}
.calendrier-activites th.date-jour span {
	font-size: 40px;
}
.calendrier-activites th.date-heure{font-size: 20px;}

.calendrier-activites th.date-jour span sup {    font-size: 20px;
    top: -0.8em;}
.calendrier-activites th.date-jour span.date-a-partir, .calendrier-activites th.date-jour span.date-a-venir {
	font-size: 18px;
}
.calendrier-activites th.date-jour span.date-a-partir{line-height:2.2em}
table.calendrier-activites tbody tr th, table.calendrier-activites tbody tr td {
	border-top: 6px solid white;
}
table.calendrier-activites tbody tr td {
	padding-left: 10px;
	vertical-align: top;
	background-color: #f2f2f2
}
table.calendrier-activites tbody tr:last-child th, table.calendrier-activites tbody tr:last-child td {
	border-bottom: 0px none;
}

@media (min-width: 450px) {
.calendrier-activites th.date-jour {
	padding: 12px 0px;
	vertical-align: middle;
}
.calendrier-activites th.date-jour span {
	font-size: 40px;
	line-height: 0.9em;
}
.calendrier-activites th.date-jour span.date-a-partir, .calendrier-activites th.date-jour span.date-a-venir {
	font-size: 18px;
}
	.calendrier-activites th.date-jour span.date-a-partir{line-height:1.35em}
table.calendrier-activites tbody tr td {
	padding-left: 25px;
}
}
/* Couleurs selon le module */
.hors_module .calendrier-activites th.date-jour, .hors_module .calendrier-activites th.date-heure {
	background-color: #144487 !important;
}
.apropos .calendrier-activites th.date-jour {
	background-color: #697697 !important;
}
.citoyens .calendrier-activites th.date-jour, .citoyens .calendrier-activites th.date-heure {
	background-color: #108848 !important;
}
.gensaffaires .calendrier-activites th.date-jour, .gensaffaires .calendrier-activites th.date-heure {
	background-color: #027AC5 !important;
}
.touristes .calendrier-activites th.date-jour, .touristes .calendrier-activites th.date-heure {
	background-color: #cd4c1d !important;
}
/*
=========================================================================

  TABLEAUX - de la section PIV et logos

=========================================================================

*/
table [rowspan].logo-conteneur {
	background-color: white;
	border-top: none;
	text-align: center;
	width: 125px;
}
table [rowspan].logo-conteneur > img {
	max-width: 125px;
}
