@charset "utf-8";
/* FONT-FACES
------------------------------------------------------------*/

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: local("roboto light"), url("../webfonts/roboto-300.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: local("roboto regular"), url("../webfonts/roboto-400.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: local("roboto medium"), url("../webfonts/roboto-500.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: local("roboto bold"), url("../webfonts/roboto-700.woff2") format("woff2");
}

@font-face {
  font-family: "icon";
  src: url("../webfonts/icons.woff2") format("woff2");
}

/* CSS VARIABLES
------------------------------------------------------------*/
:root {
	--md-primary-color: #3F51B5; /* UI objects BG : top, etc. ; */
	--md-secondary-color: #FF4081; /* UI items : FAB, buttons…; */
	--main-md-text-color: #ffffff;
	--scnd-md-text-color: #ffffff;
}

::selection {
	color: var(--main-md-text-color);
	background: var(--md-primary-color);
}

#body.preferences,
#body.maintenance { /* dark gray */
	--md-primary-color: #383838;
	--md-secondary-color:;
	--main-md-text-color: #fff;
	--scnd-md-text-color:;
}

#body.index { /* white */
	--md-primary-color: #fff;
	--main-md-text-color: #333;
}

#body.articles { /* red */
	--md-primary-color: #CA2825;
	--main-md-text-color: #f5f5f5;
	--md-secondary-color: #E88A1A;
	--scnd-md-text-color:;
}

#body.ecrire { /* dark blue */
	--md-primary-color: #20639B;
	--md-secondary-color: #65C6C4;
	--main-md-text-color: #f5f5f5;
	--scnd-md-text-color:;
}

#body.comments { /* light orange */
	--md-primary-color: #ED553B;
	--md-secondary-color: #665C84;
	--main-md-text-color: #fff;
	--scnd-md-text-color:#fff;
}

#body.feeds { /* orange */
	--md-primary-color: #344955;
	--main-md-text-color: #fff;
	--md-secondary-color: #F87D42;
	--scnd-md-text-color: #000;
}

#body.notes { /* light green */
	--md-primary-color: #FFCE00;
	--md-secondary-color:;
	--main-md-text-color: #000;
	--scnd-md-text-color:;
}

#body.files { /* dark blue */
	--md-primary-color: #7C49B2;
	--md-secondary-color:;
	--main-md-text-color: #fff;
	--scnd-md-text-color:;
}

#body.links { /* light-blue */
	--md-primary-color: #00C2FF;
	--md-secondary-color:;
	--main-md-text-color: #000;
	--scnd-md-text-color:;
}

#body.agenda { /* teal */
	--md-primary-color: #DB2D43;
	--md-secondary-color: #03DAC5;
	--main-md-text-color: #fff;
	--scnd-md-text-color: #000;
}

#body.contacts { /* skyblue */
	--md-primary-color: #039BE5;
	--md-secondary-color:;
	--main-md-text-color: #fff;
	--scnd-md-text-color:;
}

/* ANIMATIONS
------------------------------------------------------------*/
/* rotating loading spinner */

@keyframes spinnerLoading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

/* bottom left popup in/out sliding */
@keyframes popup-disapear {
	10% {
		bottom: 30px;
	}
	80% {
		bottom: 30px;
	}
	90% {
		bottom: -100px;
		opacity: 1;
	}
	100% {
		opacity: 0;
		bottom: -999px;
	}
}

/* makes a box appearing */
@keyframes appear {
	0%   { transform-origin: 50% 50%; transform: scale(0); }
	99%  { transform-origin: 50% 50%; transform: scale(1.05); }
	100% { transform-origin: 50% 50%; transform: scale(1); }
}

@keyframes appearSlow {
	0%   { transform-origin: 50% 50%; transform: scale(0.4 , 1.4); }
	100% { transform-origin: 50% 50%; transform: scale(1, 1); }
}

/* makes a box disapearing vertically */
@keyframes disapear {
	0%   { transform-origin: 0 0; transform: scaleY(1); opacity: 1; }
	100% { transform-origin: 0 0; transform: scaleY(0); opacity: 0; }
}

/* makes a box disapearing honrizontaly */
@keyframes disapearH {
	0%   { transform-origin: 0 0; transform: scaleX(1); opacity: 1; }
	100% { transform-origin: 0 0; transform: scaleX(0); opacity: 0; }
}

/* elements slide smothly to right / left */
@keyframes slideright {
	0%   { left: 50%; opacity: 1; }
	100% { left: 60%; opacity: 0; }
}

@keyframes slideleft {
	0%   { left: 50%; opacity: 1; }
	100% { left: 40%; opacity: 0; }
}

/* material design button-click "ripple" effect */
@keyframes md-ripple {
	0%   { transform: scale(0, 0);   opacity: 1; }
	50%  { transform: scale(25, 25); opacity: .5; }
	100% { transform: scale(25, 25); opacity: 0; }
}

/* popup fade-in */
@keyframes fade-in {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}

/* GENERAL PAGE LAYOUT
------------------------------------------------------------ */

* {
	color: inherit;
}

[hidden] {
	display: none!important;
}

:not(img)::before,
:not(img)::after {
	font-family: "icon";
	vertical-align: middle;
	line-height: 1;
	color: inherit;
}

html,
body {
	margin: 0;
	padding: 0;
}

html {
	background: #eee;
	color: rgba(0, 0, 0, .87);
	font-family: Roboto, Verdana, Helvetica, Arial, sans-serif;
	word-wrap: break-word;
	font-size: 15px;
	height: 100%;
}

body {
	position: relative;
	/*min-height: calc( 100% - 100px);
	padding-bottom: 100px;*/
	min-height: 100%;
}

body.noscroll {
	overflow: hidden;
}

#header {/* the top bar(s) */
	z-index: 100;
	color: white;
	color: var(--main-md-text-color);
	background: #263238;
	background: var(--md-primary-color);
	position: sticky;
	top: 0;
	box-shadow: 0 1px 8px rgba(0,0,0,.5);
}

#axe { /* the entire page without top bars (#header) and footer (#footer) */
	padding: 20px;
	margin: auto;
}

#page { /* the main frame. #axe minus the "filtre" forms, and the subnav */
	padding: 5px;
}

/* Footer */
#footer {
	text-align: center;
	color: #666;
	padding: 0 0 30px;
	font-size: .8em;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	z-index: -1;
}

/* GENERAL STUFF
------------------------------------------------------------------- */

a {
	color: #2196F3;
}

a:hover {
	color: #4f6681;
	text-decoration: underline;
}

img {
	border: none;
}

pre { white-space: pre-wrap; }

h1, h2, h3, h4, h5, h6 {
	font-family: 'Trebuchet MS', Roboto, Arial, sans-serif;
	clear: both;
}

textarea {
	resize: both;
	width: 100%;
	padding: 5px;
	box-sizing: border-box;
}

textarea, input, button {
	font-family: inherit;
	font-size: inherit;
	font-weight: 300;
	border-radius: 0;
}

label, input, textarea, select {
	vertical-align: middle;
}

input[type="submit"],
input[type="button"],
input[type="reset"],
button {
	cursor:pointer;
}

q, blockquote {
	font-style: italic;
}

#footer a {
	color: inherit;
	text-decoration: none;
}

.centrer {
	text-align: center;
}

.hidden {
	display: none;
}

.info { /* ex : « il n'y a aucun commentaire » est un .info */
	padding: 15px;
	padding-left: 40px;
	position: relative;
	margin: 0;
}

/* Message de confirmation ou d’erreur */
.confirmation, .no_confirmation {
	max-width: 400px;
	position: fixed;
	bottom: -100px; left: 20px;
	padding: 15px;
	margin: auto;
	text-align: center;
	font-weight: bold;
	z-index: 150;
	box-shadow: 0px 2px 24px 0px rgba(0, 0, 0, 0.2);
	animation: popup-disapear 7s;
	animation-fill-mode: forwards;
	border: 1px solid #333;
	border-radius: 3px;
	background: #444;
	color: #fff;
}

.no_confirmation {
	color: #faa;
}

#erreurs, .erreurs {
	display: block;
	clear: both;
	color: #D40000;
	margin: 0 0 15px 0;
}

/* TOP
------------------------------------------------------------------------ */
#top {
	display: flex;
	box-sizing: border-box;
	align-items: stretch; /* vertical align*/
	height: 64px;
	padding: 8px 20px;
	background: inherit;
}

#top a {
	text-decoration: none;
	color: inherit;
}

/* TOP > H1 : title w/ link;
------------------------------------------------------*/
#titre-page {
	flex: 1 0 auto;
	font-size: 1.3em;
	font-weight: normal;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
	margin: 0;
	line-height: 48px;
}

#titre-page > a {
	vertical-align: middle;
	display: inline-block;
}

#titre-page > a::before {
	font-size: 1.4em;
	line-height: inherit;
	vertical-align: middle;
	padding-right: 10px;
}


#body.feeds    #titre-page > a::before { content: "\e0e5"; }

#body.preferences #titre-page > a::before,
#body.maintenance #titre-page > a::before { content: "\e8b8"; }


/* TOP > Search button + searchbar
------------------------------------------------------*/
#search {
	flex: 0 1 550px;
	margin: 0 15px 0 8px;
	display: flex;
	align-items: stretch;
	color: rgb(0, 0, 0);
	background-color: rgba(255, 255, 255, .4);
	border-radius: 4px;
}

#input-rechercher {
	display: none;
}

#q { /* normal */
	padding: 0;
	border: 1px solid transparent;
	max-width: 550px;
	flex: 1 1 auto;
	order: 2;
	background-color: transparent;
	border-top-right-radius: inherit;
	border-bottom-right-radius: inherit;
}

#q:focus,
#q:focus + #label_q,
#q:focus + #label_q::before,
#q[value=""]:focus,
#q[value=""]:focus + #label_q,
#q[value=""]:focus + #label_q::before,
#q:not([value=""]),
#q:not([value=""]) + #label_q,
#q:not([value=""]) + #label_q::before { /* focus OR not empty (a search is done) */
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
}

#label_q {
	overflow: hidden;
	flex: 0 0 48px;
	text-align: center;
	border-top-left-radius: inherit;
	border-bottom-left-radius: inherit;
}

#label_q::before {
	content: "\e8b6";
	position: relative;
	font-size: 1.6em;
	display: block;
	line-height: 48px;
	padding-top: 1px /* icon-form centering compensation */
}

#q:hover { /* hover */
	cursor: text;
}


/* TOP > nav bar
------------------------------------------------------*/
#nav::before {
	font-size: 1.6em;
	text-align: center;
	content: "\e5c3";
	width: 48px;
	cursor: pointer;
	display: inline-block;
	line-height: 48px;
}

/* TOP > nav bar > menu
----------------------------------------*/
#nav > ul {
	list-style-type: none;
	margin: 0;
	padding: 20px;
	box-sizing: border-box;
	position: absolute;
	background-color: white;
	right: 8px;
	transform: translateY(-700px);
	top: 60px;
	box-shadow: 0px 14px 24px rgba(0, 0, 0, 0.6);
	opacity: 0;
	border-radius: 2px;
	display: grid;
	grid-template-columns: repeat(3, 100px);
}

#nav > ul::before {
	content: "";
	position: absolute;
	padding: 7px;
	top: -7px;
	right: 125px;
	transform: rotate(45deg);
	background: inherit;
}

#nav.visible > ul {
	opacity: 1;
	transform: translateY(0);
	transition: opacity .2s ease-in;
}

#nav > ul > li {
	display: inline-block;
	vertical-align: bottom;
	text-align: center;
	border: 2px solid transparent;
	border-radius: 2px;
}

#nav > ul > li:hover {
	border-color: rgba(0, 0, 0, .1);
}

#nav a {
	display: block;
	color: rgba(0, 0, 0, .6);
	padding: 5px;
	font-size: .8em;
}

#nav a::before {
	display: block;
	font-size: 2em;
	color: rgba(0, 0, 0, .7);
	border-radius: 100%;
	height: 1em;
	width: 1em;
	padding: .5em;
	margin: 0 auto 10px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .4) inset;
	text-shadow: 0px 0px 1px white;
}

#nav #lien-rss:before      { content: "\e0e5"; background-color: rgba(239,108,0, .5); }


/* TOP > Notif-icon / drop-down menu
------------------------------------------------------*/

#notif-icon::before {
	font-size: 1.6em;
	text-align: center;
	content: "\e7f4";
	width: 48px;
	cursor: pointer;
	display: inline-block;
	line-height: 48px;
}

#notif-icon:not([data-nb-notifs="0"])::before {
	content: "\e7f7";
}

#notif-icon:not([data-nb-notifs="0"])::after {
	content: attr(data-nb-notifs);
	position: absolute;
	color: white;
	font-size: .65em;
	font-family: inherit !important;
	background: red;
	border-radius: 50%;
	padding: 0.1em;
	box-sizing: border-box;
	top: 13px;
	margin-left: 24px;
	font-weight: bold;
	height: 1.9em;
	line-height: 1.7em;
	min-width: 2.1em;
	text-align: center;
}

#notif-icon > ul {
	list-style-type: none;
	margin: 0;
	padding: 20px;
	position: absolute;
	background-color: white;
	right: 8px;
	transform: translateY( calc(-100% - 50px) ) ;
	top: 60px;
	box-shadow: 0px 14px 24px rgba(0, 0, 0, 0.6);
	opacity: 0;
	border-radius: 2px;
	color: initial;
}

#notif-icon > ul::before {
	content: "";
	position: absolute;
	padding: 7px;
	top: -7px;
	right: 76px;
	transform: rotate(45deg);
	background: inherit;
}

#notif-icon.visible > ul {
	opacity: 1;
	z-index: 1;
	transition: opacity .4s ease-out;
	transform: translateY(0);
}

#notif-icon a {
	margin: 0;
	padding: 20px;
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 2px;
}

#notif-icon a:hover {
	background: rgba(0, 0, 0, .1);
}

/* TOP > Right nav bar
------------------------------------------------------*/
#nav-acc::before {
	font-size: 2em;
	text-align: center;
	content: "\e853";
	width: 48px;
	cursor: pointer;
	display: inline-block;
	line-height: 48px;
}

/* TOP > right menu
----------------------------------------*/
#nav-acc > ul {
	list-style-type: none;
	margin: 0;
	padding: 5px 0;
	box-sizing: border-box;
	position: absolute;
	background-color: white;
	right: 8px;
	transform: translateY(-230px);
	top: 60px;
	box-shadow: 0px 14px 24px rgba(0, 0, 0, 0.6);
	text-align: right;
	opacity: 0;
	border-radius: 2px;
	color: initial;
}

#nav-acc > ul::before {
	content: "";
	position: absolute;
	padding: 7px;
	top: -7px;
	right: 29px;
	transform: rotate(45deg);
	background: inherit;
	z-index: -1;
}

#nav-acc.visible > ul {
	opacity: 1;
	transform: translateY(0);
	transition: opacity .2s ease-in;
}

#nav-acc a {
	height: 45px;
	line-height: 45px;
	padding: 0 48px 0 77px;
	display: block;
}

#nav-acc a:hover {
	background: rgba(0, 0, 0, .1);
}

#nav-acc a:after {
	font-size: 1.2em;
	margin-left: 10px;
	font-weight: bold;
}

#nav-acc #lien-preferences:after { content: "\e8b8"; }
#nav-acc #lien-site:after        { content: "\E89E"; }
#nav-acc #lien-deconnexion:after { content: "\E879"; }

/* TOP > Sub-menu (on specific pages)
------------------------------------------------------*/
#sub-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 0 11px 0 14px;
	background: #fefefe;
	color: #333;
	position: relative;
	z-index: -2;
	border-radius: 7px 7px 0 0;
}

#sub-menu #counter-wraper {
	margin-left: 20px;
}

#sub-menu #counter {
	margin: 0 8px;
	display: none;
	height: 15px;
	width: 15px;
	border: 3px solid rgba(0, 0, 0, .2);
	border-top-color: rgba(0, 0, 0, .7);
	border-radius: 50%;
	animation: spinnerLoading 0.6s infinite linear;
	vertical-align: middle;
}


#sub-menu #hide-side-nav {
	padding: 6px;
	background-color: transparent;
	border: none;
	border-radius: 50%;
	color: rgba(0, 0, 0, .7);
}

#sub-menu #hide-side-nav:focus {
	background-color: rgba(0, 0, 0, .1);
}

#sub-menu #hide-side-nav:before {
	content: "\e5d2";
	font-size: 1.7em;
	cursor: pointer;
}

.sub-menu-buttons {
	flex: 1 0 auto;
	text-align: right;
	margin: 0;
	padding: 0;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.sub-menu-buttons > li {
	display: inline-block;
}

.sub-menu-buttons li > button:focus,
.sub-menu-buttons li > button::-moz-focus-inner {
	background-color: rgba(0, 0, 0, .05);
	transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s;
   outline: none;
	border-color: transparent;
}

/* Floating action button (FAB)
------------------------------------------------------------------ */
#fab {
	display: inline-block;
	height: 56px;
	width: 56px;
	border-radius: 50%;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	position: fixed;
	padding: 0;
	overflow: hidden;
	right: 32px;
	bottom: 32px;
	z-index: 99;
	transition: transform .2s cubic-bezier(.57,.57,.96,1.39);
	border: 0;
}

#fab::before {
	content: "\E145";
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	color: var(--scnd-md-text-color);
	line-height: 56px;
	text-align: center;
	font-size: 1.9em;
	background: #f44336;
	background: var(--md-secondary-color);
}

#fab:focus {
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.15), 0 8px 17px 0 rgba(0, 0, 0, 0.4);
	outline: none;
}

#fab.hidden {
	transform: scale(0);
	transition: transform .2s cubic-bezier(.2,-.5,.5,.2);
}

/* SUBNAV (with nb articles/comms or link to "see online")
------------------------------------------------------------------ */
#subnav {
	margin: 10px 5px 20px;
	display: flex;
}

#subnav > .nombre-elem {
	font-weight: bold;
	color: #333;
	margin: auto 0 auto auto ;
}

#subnav > .nombre-elem > ul { /* list on link-hover on comm-page */
	display: inline-block;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 15;
	border-radius: 3px;
}

#subnav > .nombre-elem li {
	margin: 0;
	width: 100%;
	box-sizing: border-box;
	transition: box-shadow ease 0s, opacity ease .1s;
}

#subnav > .nombre-elem li+li {
	position: absolute;
	height: 0;
	overflow: hidden;
}

#subnav > .nombre-elem ul:hover > li {
	background: #fefefe;
	box-shadow: 0 15px 20px rgba(0, 0, 0, .2);
	transition: box-shadow ease .1s, opacity ease 0s;
}

#subnav > .nombre-elem li:hover {
	background: #fafafa;
}

#subnav > .nombre-elem a:hover {
	color: #45a6ff;
}

#subnav > .nombre-elem ul:hover li+li {
	height: auto;
}

#subnav > .nombre-elem a {
	text-decoration: none;
	display: inline-block;
	padding: 10px;
}

#subnav > .nombre-elem > ul > li > a {
	display: block;
	box-sizing: border-box;
}

/* GENERAL FORM STUFF
----------------------------------------------------------*/
select {
	border: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 250px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border-bottom: 1px solid silver;
	padding: 15px 20px 15px 15px;
	color: #333;
	cursor: pointer;
	font-size: inherit;
	background: transparent no-repeat 100% 50% / 20px url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij48cGF0aCBkPSJNMTAuNSAxNWw3LjUgNy41IDcuNS03LjV6Ii8+PC9zdmc+Cg==");

	padding-top: 5px;
	padding-bottom: 5px;
	border: 1px solid #dadce0;

	background-color: white;

}

select:focus {
	box-shadow: 0px 0px 5px 0px silver;
}

select option,
select optgroup::before {
	border: 0;
	background: white;
	color: #333;
}

select optgroup::before {
	background: #eee;
	text-align: center;
}

legend {
	padding: 0;
}

fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.text, *[type='submit'] {
	box-sizing: border-box;
	padding: 5px;
	background: none;
}

.text {
	margin: 0;
	padding: 15px;
	border: 1px solid transparent;
	border-bottom-color: silver;
	border-radius: 0;
	background: white no-repeat;
	position: relative;
}

.text:invalid {
	box-shadow: none;
	outline: none;
	border-bottom-color: red;
}

.text:focus {
	box-shadow: 0px 0px 5px 2px silver;
	z-index: 2;
	border-radius: 5px;
}

/* FORMS defaults
-------------------------------------------------------------*/
/*input buttons */
.submit-bttns {
	text-align: right;
	margin: 20px auto 5px;
	box-sizing: border-box;
	width: 100%;
	max-width: 700px;
	padding: 0 20px;
}

.submit-bttns .button-delete {
	float: left;
	min-width: 140px;
}

.submit {
	color: white;
	font-weight: 500;
	vertical-align: middle;
	padding: 6px 12px;
	//box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	border-radius: 2px;
	border: 0px solid transparent;
	min-width: 100px;
	text-transform: uppercase;
}

.submit:hover {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.button-submit {
	min-width: 140px;
	background: #2196f3;
}

.button-delete {
	color: #f44336;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0);
	transition: box-shadow .2s;
	background: rgba(244, 67, 54, .1);
}

.button-cancel {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0);
	background: white;
	color: #777;
	margin-right: 5px;
	transition: box-shadow .2s;
}

.submit[disabled] {
	color: silver;
	background: #eee;
	box-shadow: none;
	cursor: auto;
}

.submit {
	position: relative;
	overflow: hidden;
}

.submit:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, .5);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%);
}

/* for mouse focus */
.submit:focus:hover::after {
	animation: md-ripple 1s ease-out;
}

/* for keyboard focus */
.submit:focus:not(:hover)::after {
	background: rgba(255, 255, 255, .2);
	transform: scale(1, 1);
	border-radius: 0;
	opacity: 1;
}

/* checkboxes with "toggle-button" style */
.checkbox-toggle {
	margin: 25px 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.checkbox-toggle+label {
	cursor: pointer;
	position: relative;
}

.checkbox-toggle+label::after {
	position: absolute;
	right: -30px;
	top: -1px;
	width: 22px;
	height: 22px;
	border-radius: 100%;
	background: #ECECEC;
	box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
	content: '';
	transition: all 0.3s ease;
}

.checkbox-toggle:checked + label::after {
	right: -50px;
	background: var(--md-secondary-color);
}

.checkbox-toggle+label::before {
	position: absolute;
	right: -50px;
	top: 3px;
	height: 15px;
	width: 40px;
	background: #B2B2B2;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	content: '';
}

.checkbox-toggle:checked + label:before {
	background: var(--md-secondary-color);
	opacity: .6
}

.checkbox-toggle:focus+label::after {
	box-shadow: 0px 3px 3px rgba(0,0,0,0.2), 0 0 0 5px rgba(0, 0, 0, .1);
}

.checkbox-toggle:not(:disabled):active + label::after {
	box-shadow: 0px 3px 3px rgba(0,0,0,0.2), 0 0 0 15px rgba(160, 194, 249, .4);
}

/* ERREURS */
#erreurs, .erreurs, #succes, .succes {
	display: block;
	clear: both;
	margin: 0 0 15px 0;
}

#erreurs, .erreurs {
	color: #D40000;
}

#succes, .succes {
	color: #00A400;
}

#erreurs ul {
	list-style-type: square;
	padding-left: 20px;
	margin-top: 10px;
}

#erreurs li {
	margin: 0;
}

/* Popup (initially hidden)
********************************************/
/* on popup display */
#popup-wrapper {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0, .5); /* dark */
	/*background: rgba(229, 229, 229, .75);*/ /* light */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 150;
	animation: fade-in .2s;
	backdrop-filter: blur(2px);
}

#popup {
	display: flex;
	flex-direction: column;
	min-height: 350px;
	min-width: 600px;
	width: 600px;
	background: white;
	box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.3), 0 0px 12px 0 rgba(0, 0, 0, 0.3);
	padding: 0;
	overflow: hidden; /* for rounded corners */
	border-radius: 2px;
	resize: both;
	max-height: calc(100% - 10px);
	animation:  appearSlow .1s;
	border-radius: 4px;
}

#popup > .popup-title {
	background: #F6F6F6;
	padding: 5px 15px;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 20px;
}

#popup > .popup-title::after {
	content: "";
	display: block;
	background: transparent;
	height: 5px;
	width: 100%;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	box-shadow: 0 3px 3px rgba(0, 0, 0, .3);
}

#popup > .popup-title > .button-cancel {
	background: transparent;
	border: 0;
	min-width: 0;
	padding: 10px;
	color: inherit;
	margin-right: 0;
	border-radius: 50%;
}

#popup > .popup-title > .button-cancel:hover {
	box-shadow: none;
	background: rgba(0, 0, 0, .1);
}

#popup > .popup-title > .button-cancel::before {
	content: "\e5cd";
	display: inline-block;
	font-size: 1.4em;
}

#popup > .popup-title > .item-menu-options::before {
	font-size: 1.4em;
}

#popup > .popup-content {
	padding: 15px;
	overflow-y: scroll;
	position: relative;
	flex: 1;
}

#popup > .popup-content::before {
	content: "";
	display: block;
	background: linear-gradient(white 50%, transparent);
	height: 8px;
	width: 100%;
	position: absolute;
	top: 0px;
	z-index: 1;
	left: 0;
}

#popup .popup-footer {
	padding: 10px;
	text-align: right;
	display: flex;
	justify-content: space-between;
}

#popup .popup-footer .submit {
	font-size: .9em;
}

#popup .popup-footer .button-submit {
	background: white;
	//box-shadow: none;
	color: #222;
}

/* Page maintenance.
********************************************/
#form_export, #form_import, #form_optimi,
#e_json, #e_html, #e_zip {
	display: none;
}

/* MAIN PAGES TILES Styles
*************************************/

/* empty pages : add fun image; */
#post-list:-moz-only-whitespace,
#blocBillets:-moz-only-whitespace,
#liste-commentaires:-moz-only-whitespace,
#list-link:-moz-only-whitespace,
#daily-events:-moz-only-whitespace {
	height: 500px;
	background: no-repeat center center url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OCA0OCI+PGRlZnM+PHN0eWxlPi5jbHMtMntmaWxsOiNiZGJlYzB9LmNscy0yLC5jbHMtNSwuY2xzLTZ7c3Ryb2tlOiM0NTQxM2M7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kfS5jbHMtNXtmaWxsOm5vbmV9LmNscy02e2ZpbGw6Izg3ODk4Y308L3N0eWxlPjwvZGVmcz48Zz48ZWxsaXBzZSBjeD0iMjQiIGN5PSI0NS4yMiIgZmlsbD0iIzQ1NDEzYyIgb3BhY2l0eT0iLjE1IiByeD0iMjMuMTMiIHJ5PSIxLjc4Ii8+PHBhdGggZD0iTTQ1IDEyLjU3YTEuMTggMS4xOCAwIDAgMC0xLjE5LTEuMThIMTAuNjJWNDRINDJhMyAzIDAgMCAwIDMtM3oiIGNsYXNzPSJjbHMtMiIvPjxwYXRoIGZpbGw9IiNmMGYwZjAiIGQ9Ik0zOS42NyA0MS42M0EyLjM3IDIuMzcgMCAwIDAgNDIgNDRINS44N2EyLjM3IDIuMzcgMCAwIDEtMi4zNy0yLjM3VjYuMDVhMS4xOCAxLjE4IDAgMCAxIDEuMTktMS4xOGgzMy43OWExLjE4IDEuMTggMCAwIDEgMS4xOSAxLjE4eiIgLz48cGF0aCBmaWxsPSIjZTBlMGUwIiBkPSJNNDIgNDRhMi4zNyAyLjM3IDAgMCAxLTIuMzctMi4zN3YtLjg5SDUuODdhMi4zNyAyLjM3IDAgMCAxLTIuMzctMi4zN3YzLjI2QTIuMzcgMi4zNyAwIDAgMCA1Ljg3IDQ0eiIvPjxwYXRoIGQ9Ik0zOS42NyA0MS42M0EyLjM3IDIuMzcgMCAwIDAgNDIgNDRINS44N2EyLjM3IDIuMzcgMCAwIDEtMi4zNy0yLjM3VjYuMDVhMS4xOCAxLjE4IDAgMCAxIDEuMTktMS4xOGgzMy43OWExLjE4IDEuMTggMCAwIDEgMS4xOSAxLjE4eiIgY2xhc3M9ImNscy01IiAvPjxyZWN0IHdpZHRoPSIyOC40NiIgaGVpZ2h0PSI2LjUyIiB4PSI3LjA2IiB5PSI5LjAyIiBjbGFzcz0iY2xzLTYiIHJ4PSIuNjMiIHJ5PSIuNjMiLz48cmVjdCB3aWR0aD0iMTUuNDIiIGhlaWdodD0iMTUuNDIiIHg9IjcuNjUiIHk9IjE5LjEiIGNsYXNzPSJjbHMtNiIgcng9IjEuMzUiIHJ5PSIxLjM1Ii8+PHBhdGggZD0iTTI2LjYzIDI3LjE0aDguODkiIGNsYXNzPSJjbHMtNSIgLz48cGF0aCBkPSJNMjYuNjMgMjMuNDZoOC44OSIgY2xhc3M9ImNscy01IiAvPjxwYXRoIGQ9Ik0yNi42MyAxOS43N2g4Ljg5IiBjbGFzcz0iY2xzLTUiIC8+PHBhdGggZD0iTTI2LjYzIDMwLjgzaDguODkiIGNsYXNzPSJjbHMtNSIgLz48cGF0aCBkPSJNMjYuNjMgMzQuNTFoOC44OSIgY2xhc3M9ImNscy01IiAvPjxwYXRoIGQ9Ik03LjY1IDM5LjI2aDI3Ljg3IiBjbGFzcz0iY2xzLTUiIC8+PHBhdGggZD0iTTE4LjgyIDI4YTEzLjQzIDEzLjQzIDAgMCAxLTEuMjctNCAuNTkuNTkgMCAwIDAtLjU5LS41NmgtMi45YS41Ny41NyAwIDAgMC0uNTguNDkgMTguMzQgMTguMzQgMCAwIDEtMS4yMyAzLjc0QTEzLjM0IDEzLjM0IDAgMCAxIDcuNjUgMzN2LjE4QTEuMzQgMS4zNCAwIDAgMCA5IDM0LjUxaDEyLjcyYTEuMzUgMS4zNSAwIDAgMCAxLjM1LTEuMzV2LTFBOS4zMSA5LjMxIDAgMCAxIDE4LjgyIDI4eiIgY2xhc3M9ImNscy0yIiAvPjwvZz48L3N2Zz4K);
	background-size: 120px;
	opacity: .3;
	box-shadow: none;
	position: relative;
}

#blocBillets:-moz-only-whitespace::after,
#post-list:-moz-only-whitespace::after,
#liste-commentaires:-moz-only-whitespace::after,
#list-link:-moz-only-whitespace::before,
#daily-events:-moz-only-whitespace::before {
	content: "Rien ici…";
	font-family: inherit;
	font-size: 2em;
	position: absolute;
	bottom: 150px;
	left: 0;
	right: 0;
	text-align: center;

}

#table-contacts > tbody:-moz-only-whitespace + thead {
	display: none;
}


/* form writing */
#apercu, #form-ecrire .main-form, #form-ecrire #date-and-opts,
#graphs .graph,
#post-new-lien, .linkbloc,
.billets,
#auth, #install,
#form-image, #image-section, #files-section,
#preferences > div, #maintenance-form form,
#post-nv-commentaire, .comm-main-frame,
#form-rss-config, #feed-list, #post-list,
.notebloc, #post-new-note,
#calendar-table, #events-section,
#daily-events, #side-nav,
#table-contacts
 {
	padding: 15px;
	background: #fefefe;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
	box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.3), 0 3px 1px -2px rgba(0,0,0,0.2);
	border-radius: 4px;
}
/* AUTH
-------------------------------------------------------------------------------- */

#pageauth {
	font-size: 1em;
	display: block;
	clear: both;
	margin: auto;
	text-align: center;
}

#auth,
#install {
	width: 320px;
	margin: auto;
	box-sizing: border-box;
}

#auth p {
	display: flex;
	align-items: center;
}

#auth p label:not([for="stay_logged"]) {
	width: 0px;
	overflow: hidden;
	color: rgba(0, 0, 0, .5);
	font-size: 1.7em;
	padding-left: 40px;
	margin-right: -40px;
	z-index: 3;
	height: 40px;
}

#auth p label:not([for="stay_logged"])::before {
	margin-left: -40px;
	width: 40px;
	display: inline-block;
}

#auth p input.text {
	flex: 1;
	padding-left: 40px;
}

#auth p input#stay_logged {
	margin: 20px 5px;
}

/* formulaire d’installation */
#install p {
	text-align: left;
}

#install p label {
	display: block;
	text-align: left;
	padding-left: 5px;
}

#install p input.text {
	display: inline-block;
	padding-left: 5px;
	padding-right: 5px;
	width: 100%;
}

#install #mdp,
#install #mysql_password {
	padding-right: 35px;
}

#install .unveilmdp {
	border: none;
	background: none;
	padding: 10px 0;
	margin-right: -30px;
	margin-left: -30px;
	position: relative;
	z-index: 2;
}

#install .unveilmdp::before {
	content: "\E417";
	font-size: 2em;
}

#install input[type="text"]+.unveilmdp::before {
	color: red;
}

#auth p label[for="user"]::before     { content: "\e7FD"; }
#auth p label[for="password"]::before { content: "\e897"; }

#auth .button-submit,
#install .button-submit {
	width: 200px;
	line-height: 1.9em;
	margin-top: 20px;
}

#pageauth h1 {
	margin: 0 auto 25px;
	font-size: 2.7em;
}

#pageauth h1#step { /* install */
	font-size: 1.8em;
	color: #999;
}

#pageauth label {
	text-align: center;
}

#pageauth label[for="sgdb"] {
	display: inline;
}

/* COMMENTAIRES
-------------------------------------------------------------------------------- */

/* com options button */
.item-menu-options {
	z-index: 4;
	padding: 10px;
	margin-left: 10px;
	position: relative;
	z-index: 20;
}

.item-menu-options::before {
	content: "\e5d4";
	font-size: 1.7em;
	cursor: pointer;
}

.item-menu-options > ul {
	right: 9999px;
	position: absolute;
	top: -10px;
	background: white;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	border-radius: 3px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: top .2s .3s ease-in, opacity .2s .3s ease-in, right ease-out 0s .5s;
}

.item-menu-options:hover ul {
	right: 5px;
	opacity: 1;
	top: 5px;
	transition: top .2s ease-in .05s, opacity .2s ease-in .05s, right 0s ease-out .05s;
}

.item-menu-options > ul > li {
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
}

.item-menu-options > ul > li:hover {
	background: #f5f5f5;
}

.item-menu-options > ul > li > button,
.item-menu-options > ul > li > a {
	color: inherit;
	text-decoration: none;
	padding: 10px 100px 10px 40px;
	display: block;
	border: 0;
	background-color: transparent;
	font-weight: inherit;
	width: 100%;
	text-align: left;
}

/* ajax loading animation */
.ajaxloading .comm-main-frame::before {
	content: "";
	display: block;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(255, 255, 255, .5);
}

.ajaxloading .comm-main-frame::after {
	content: "";
	z-index: +1;
	height: 20px;
	width: 20px;
	border: 4px solid rgba(0, 0, 0, .1);
	border-top-color: rgba(0, 0, 0, .5);
	border-radius: 50%;
	animation: spinnerLoading 0.6s infinite linear;
	top: calc(50% - 15px);
	box-shadow: none;
	left: calc(50% - 15px);
}

/* Ajax removing comment animation (vertical) */
.deleteFadeOut {
	opacity: 1;
	animation: disapear .6s;
}

/* Ajax removing comment animation (Horizontal) */
.deleteFadeOutH {
	opacity: 1;
	animation: disapearH .6s;
}

/* RSS Reader CSS
------------------------------------------------------------ */

#body.feeds:not(.feeds-config) #page,
#body.feeds:not(.feeds-config) #axe {
	padding: 0;
}

#body.feeds #fab {
	left: 198px;
	transition: transform .2s cubic-bezier(.2,-.5,.5,.2), left .3s ease;
}

#sub-menu button:not(.submit) {
	padding: 6px;
	background-color: transparent;
	border: none;
	border-radius: 50%;
	color: rgba(0, 0, 0, .7);
}

#sub-menu #hide-side-nav {
	margin-right: 10px;
}

#sub-menu #hide-side-nav:focus {
	background-color: rgba(0, 0, 0, .1);
}

#sub-menu #hide-side-nav:before {
	content: "\e5d2";
	font-size: 1.7em;
	cursor: pointer;
}

#sub-menu .rss-menu-buttons > button:not(.submit) {
	overflow: hidden;
	font-size: 0;
}

#sub-menu .rss-menu-buttons > button:not(.submit):focus {
	background-color: rgba(0, 0, 0, .1);
}

#sub-menu .rss-menu-buttons > button:not(.submit)::before {
	font-size: 1.5rem;
	display: inline-block;
	text-align: center;
}

#sub-menu .rss-menu-buttons li > button {
	padding: 10px 100px 10px 40px;
}

#sub-menu .rss-menu-buttons li > button::before {
	font-size: 1.5em;
	margin-right: 7px;
}

/*#sub-menu .rss-menu-buttons li:nth-of-type(1) > button::before { content: "\e923"; }*/
/*#sub-menu .rss-menu-buttons li:nth-of-type(2) > button::before { content: "\e896"; }*/
#sub-menu .rss-menu-buttons li:nth-of-type(1) > button::before { content: "\e0c3"; }
#sub-menu .rss-menu-buttons li:nth-of-type(2) > button::before { content: "\e16c"; }



#sub-menu .rss-menu-tags {
	flex: 1 1 100%;
	justify-content: center;
}

#sub-menu .rss-menu-tags > li {
	display: inline-block;
	padding: 5px 15px;
	color: #333;
	border: 1px solid #c7c7c7;
	border-radius: 20px;
	margin: 3px;
	font-weight: bold;
	cursor: pointer;
	background-color: white;
	transition: color 0.2s ease, background-color 0.2s ease;
}

#sub-menu .rss-menu-tags > li:hover,
#sub-menu .rss-menu-tags > li.active-site {
	color: var(--md-primary-color);
	background-color: #eee;
}

/* the left sidebar, with the list of feeds */
#feed-list {
	margin: 0 0 20px 0;
	padding: 0;
	list-style-type: none;
	overflow-y: scroll;
	position: fixed;
	width: 280px;
	height: calc(100% - 110px);
	border-radius: 0;
	transform: translateX(0px);
	transition: transform .3s ease;
}

#feed-list.hidden-list {
	transform: translateX(-280px);	
}

#feed-list.hidden-list + #rss-list {
	margin-left: 20px;
}

#feed-list.hidden-list ~ #fab {
	left: -82px;
}

#feed-list li {
	position: relative;
	border-bottom: 1px solid #eee;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 20px 45px;
	background-repeat: no-repeat;
	background-color: inherit;
	background-position: 12px center;
	cursor: pointer;
	background-size: 20px 20px;
}

#feed-list li.feed-site:hover {
	background-size: 0 0;
}

#feed-list li.feed-site > button {
	display: inline-block;
	background-color: transparent;
	border: 0;
	padding: 0;
	position: absolute;
	left: 3px;
	top: 15px;
	opacity: 0;
}

#feed-list li.feed-site > button::before {
	content: "\e8b8";
	font-size: 1.5em;
	display: inline-block;
	height: 25px;
	width: 30px;
	border-radius: 50%;
	padding: 3px;
	color: rgba(0, 0, 0, .4);
}

#feed-list li.feed-site:hover > button {
	opacity: 1;
}


#feed-list > li.special {
	padding: 0;
}

#feed-list > li.special:hover {
	box-shadow: none;
}

#feed-list > li.special > ul {
	padding: 0;
	width: 100%;
}

#feed-list > li.special > ul > li {
}

#feed-list > li.special > ul > li::before {
	content: "\e901";
	font-size: 1.6em;
	font-weight: normal;
	position: absolute;
	top: 17px;
	left: 10px;
	color: rgba(0, 0, 0, .4);
}

#feed-list > li.special .all-feeds::before   { content: "\e8ef"; }
#feed-list > li.special .today-feeds::before { content: "\e8df"; }
#feed-list > li.special .fav-feeds::before   { content: "\e87d"; }

#feed-list li[class^="feed-"]:not([data-nbrun="0"])::before {
	content: attr(data-nbrun);
	font-family: inherit;
	position: absolute;
	right: 10px;
	padding: 2px;
	opacity: .7;

}

#feed-list li[class^="feed-"]:not([data-nbrun="0"]).active-site::before {
	color: inherit;
}

#feed-list > li.feed-folder > ul {
	font-weight: normal;
	padding-left: 0;
	margin-left: -45px;
	margin-right: -45px;
	height: 0;
	overflow: hidden;
}

#feed-list > li.feed-folder.open {
	padding-bottom: 0;
}

#feed-list > li.feed-folder.open > ul {
	height: auto;
	overflow: visible;
	margin-top: 20px;
}

#feed-list li.feed-folder a.unfold {
	margin-left: 5px;
	overflow: visible;
	transition: transform ease .2s;
	color: inherit;
	position: absolute;
	left: 0;
	top: 12px;
}

#feed-list li.feed-folder .unfold::before {
	content: "\e313";
	font-size: 2em;
	display: inline-block;
	height: 30px;
	width: 30px;
	border-radius: 50%;
	padding: 3px;
	color: rgba(0, 0, 0, .4);
}
#feed-list li.feed-folder.active-site .unfold::before,
#feed-list > li.special > ul > li.active-site::before {
	color: inherit;
}

#feed-list li.feed-folder.open .unfold {
	transform: rotate(90deg);
}

#feed-list li.feed-error {
	color: red;
}

#feed-list li.active-site,
#feed-list > li.feed-folder.active-site {
	background-color: #eee ;
	box-shadow: 3px 0 0 var(--md-secondary-color) inset;
	transition: box-shadow 0.2s ease 0s;
	color: var(--md-secondary-color);
}

#feed-list > li.feed-folder.active-site .li {
	box-shadow: none;
}

#feed-list li.feed-site:hover,
#feed-list li.feed-folder:not(.open):hover {
	box-shadow: 3px 0 0 var(--md-secondary-color) inset;
	transition: box-shadow 0.2s ease 0s
}

#feed-list li[data-nbrun="0"] {
	font-weight: normal;
}

#feed-list li[data-nbrun="0"] .counter {
	visibility: hidden;
}

/* block with list of elements to read */
#rss-list {
	margin-left: 305px;
	margin-right: 20px;
	transition: margin-left .3s ease;

}

#post-list-title {
	padding: 30px 15px 15px;
	display: flex;
	align-items: center;
}

#post-list-title > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

#post-list-title > ul > li {
	display: inline;
}

#post-list-title > ul button {
	font-size: 0;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
	padding: 6px;
	color: rgba(0, 0, 0, .6);
}

#post-list-title > ul button::before {
	font-size: 1.5rem;
}

#post-list-title > ul button:hover {
	background-color: rgba(0, 0, 0, .1);
	transition-delay: 0ms;
}

#post-list-title ul > li:nth-of-type(1) > button::before        { content: "\e8f4"; }
#post-list-title ul > li:nth-of-type(2) > button::before        { content: "\e5d7"; }
#post-list-title ul > li:nth-of-type(2) > button.unfold::before { content: "\e5d6"; }
#post-list-title ul > li:nth-of-type(3) > button::before { content: "\e627"; }
#post-list-title ul > li:nth-of-type(4) > button::before { content: "\e923"; }


#post-list-title > p {
	margin: 0;
}

/* Liste des posts à lire. */
#post-list {
	border-radius: 0;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#post-list > li {
	padding: 0px 15px 0px;
	border-bottom: #F9F9F9 solid 1px;
	transition: box-shadow 0.2s ease 0s;
}

#post-list > li:hover {
	box-shadow: 4px 0px 0px var(--md-secondary-color) inset;
}

#post-list > li.read:not(.open-post) {
	color: gray;
}

#post-list > li img,
#post-list > li table {
	max-width: 100%;
	height: auto;
}

#post-list > li .youtube-iframe-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
	margin: 10px 0 50px;
}

#post-list > li .youtube-iframe-container > iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* rss entry title */
#post-list > li > .post-head {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: flex;
	min-width: 0;
	align-items: center;
}

#post-list > li > .post-head a {
	outline: none;
}

/* bouton fav */
#post-list > li > .post-head > .lien-fav {
	flex: 0 0 32px;
	margin-right: 10px;
	text-decoration: none;
	color: rgba(0, 0, 0, .4);
	border-radius: 50%;
	display: inline-block;
	line-height: 32px;
	text-align: center;
}

#post-list > li > .post-head > .lien-fav::before {
	content: "\e87e";
	font-size: 1.3em;
}

#post-list > li[data-is-fav="1"] > .post-head > .lien-fav::before {
	content: "\e87d";
	color: var(--md-primary-color);
}

/* le nom du site */
#post-list > li > .post-head > .site {
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 0 125px;
	padding-right: 10px;
	color: rgba(0, 0, 0, .5);
	font-size: .9em;
}

/* le dossier */
#post-list > li > .post-head > .folder {
	margin: 0 10px 0 0;
	padding: 1px 10px;
	background-color: var(--md-primary-color);
	color: var(--main-md-text-color);
	border-radius: 10px;
	font-style: italic;
	transition: color .2s ease, background-color .2s ease;
}

#post-list > li > .post-head > .folder:empty {
	display: none;
}

#post-list > li.open-post > .post-head > .folder {
	background-color: var(--md-secondary-color);
	color: var(--scnd-md-text-color);
}


/* le titre */
#post-list > li > .post-head > .post-title {
	font-weight: bold;
	text-decoration: none;
	color: inherit;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 15px 0;
	margin-right: 10px;
}

#post-list > li > .post-head > .post-title:hover {
	text-decoration: underline;
	flex: 1 0 auto;
}

#post-list > li:not(.open-post) > .post-head > .post-title:hover {
	text-decoration: none;
}

#post-list > li .post-head .date {
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 0 auto;
	min-width: 0;
	font-size: .9em;
	color: rgba(0, 0, 0, .5);
}

#post-list > li > .post-head > .share {
	display: none;
}

#post-list > li:hover > .post-head > .share {
	display: block;
	flex: 0 0 auto;
}

#post-list > li > .post-head > .share > a {
	margin-left: 5px;
	text-decoration: none;
	color: rgba(0, 0, 0, .4);
	border-radius: 50%;
	width: 32px;
	display: inline-block;
	height: 32px;
	line-height: 32px;
	text-align: center;
	font-size: 1.3em;
}

#post-list > li > .post-head > .share > .lien-share::before { content: "\e80d"; }
#post-list > li > .post-head > .share > .lien-open::before  { content: "\e8a0"; }
#post-list > li > .post-head > .share > .lien-mail::before  { content: "\e0be"; }

#post-list > li > .post-head > .share a:hover,
#post-list > li > .post-head > .lien-fav:hover {
	background: rgba(0,0,0, .1);
	color: rgba(0, 0, 0, .6);
}

#post-list > li > .rss-item-content {
	height: 0;
	overflow: hidden;
	opacity: 0;
}

#post-list > li > .rss-item-content * {
	max-width: 100%;
}

/* opened post */
#post-list > li.open-post {
	box-shadow: 4px 0px 0px var(--md-secondary-color) inset;
	cursor: auto;
}

#post-list > li.open-post .rss-item-content {
	margin-left: 10px;
	transition: opacity .7s cubic-bezier(0.175, 0.585, 0.32, 1);
	opacity: 1;
	height: auto;
	margin-bottom: 15px;
}

#post-list > li > hr.clearboth {
	clear: both;
	margin: 0;
	height: 0;
	padding: 0;
	border: none;
}

#rss-list > .keyshortcut {
	color: gray;
	margin-top: 20px;
	text-align: center;
}

/* RSS Config Page -------------------- */
#form-rss-config {
	display: none;
	width: 100%;
	border-collapse: collapse;
	background-color: white;
	overflow: hidden;
}

#form-rss-config,
#form-rss-config tr,
#form-rss-config td {
	border: none;
}

#form-rss-config > thead {
	background-color: #f6f6f6;
}

#form-rss-config tr {
	border-bottom: 1px solid rgba(0, 0, 0, .05);
}

#form-rss-config > tbody > tr:hover {
	background-color: rgba(0, 0, 0, .1);
	transition: background-color .5s;
}

#form-rss-config > tbody > tr.feed-error {
	background: lightpink;
}

#form-rss-config > tbody > tr.edited {
	background-color: rgba(128, 128, 0, .1);
}

#form-rss-config > tbody > tr.deleted {
	background-color: rgba(255, 0, 0, .3);
	background-image: linear-gradient(to bottom, transparent 24px, black 24px, black 26px, transparent 26px);
}


#form-rss-config th {
	padding: 20px 10px 10px;
	text-align: left;
	white-space: nowrap;
}

#form-rss-config td {
	padding: 10px;
	max-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: 2px;
}

#form-rss-config td:focus {
	box-shadow: 0px 3px 9px black;
	background: white;
}

#form-rss-config tr td.icon {
	width: 30px;
	max-width: 30px;
}

#form-rss-config tr td.folder {
	width: 0px;
	max-width: 100%;
}

#form-rss-config tr td.dtime {
	width: 0px;
	max-width: 100%;
}


#form-rss-config tr td.suppr {
	width: 30px;
	max-width: 30px;
}


#form-rss-config tr td.suppr > button {
	border: 0;
	background-color: transparent;
	padding: 0;
	width: 30px;
	border-radius: 50%;
	height: 30px;
	color: rgba(0, 0, 0, .5);
}

#form-rss-config tr td.suppr > button:hover {
	background-color: silver;
	color: black;
}

#form-rss-config tr td.suppr > button::before {
	font-size: 1.4em;
	content: '\e92b';
}

/* Edit feed popup */
#popup.popup-edit-feed .feed-content > div {
	position: relative;
	padding-left: 55px;
	margin: 5px 0;
}


#popup.popup-edit-feed .feed-content > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

#popup.popup-edit-feed .feed-content > div::before {
	font-size: 1.4em;
	position: absolute;
	left: 20px;
	top: 19px;
	color: rgba(0, 0, 0, .4);
}

#popup.popup-edit-feed .feed-content > div label {
	margin: 0 0 0px;
	padding: 5px;
	position: relative;
	display: flex;
	/*align-items: center;*/
	overflow: hidden;
	flex: 1;
	flex-basis: 40%;
}

#popup.popup-edit-feed .feed-content > div .text {
	min-width: 0;
	padding: 15px 30px 5px 5px;
	width: 100%;
	position: relative;
	z-index: 1;
	background-color: transparent;
}

#popup.popup-edit-feed .feed-content > div label > span {
	position: absolute;
	left: 5px;
	padding: 15px 5px 5px 5px;
	transition: all 200ms;
	opacity: 0.5;
	z-index: 0;
	font-weight: 300;
}

#popup.popup-edit-feed .feed-content label > .text:not(:placeholder-shown) + span,
#popup.popup-edit-feed .feed-content label > .text:focus + span {
	/*transform: scale(.75) translateY(-14px);*/
	transform: scale(.75) translateY(0px);
	transform-origin: top left;
	padding-top: 0;
	padding-bottom: 0;
}
#popup.popup-edit-feed .feed-content label > .text:focus + span,
#popup.popup-edit-feed .feed-content label > .text:invalid + span {
	opacity: 1;
	color: #000;
}
#popup.popup-edit-feed .feed-content label > .text:invalid + span {
	color: red;
}



#popup.popup-edit-feed .feed-content-url::before    { content: "\E80B"; }
#popup.popup-edit-feed .feed-content-title::before  { content: "\E892"; }
#popup.popup-edit-feed .feed-content-folder::before { content: "\E2C7"; }


#popup.popup-edit-feed .feed-content > .feed-content-lastpost {
	font-style: italic;
	margin-top: 25px;
}

#popup.popup-edit-feed .feed-content > .feed-content-lastpost > span {
	padding-left: 5px;
}

#popup.popup-edit-feed .feed-content-url input {
	background-size: 20px 20px;
	background-position: calc(100% - 5px) 14px;
	background-repeat: no-repeat;
}


#popup.popup-edit-feed .feed-content .feed-content-error {
	background: rgba(255, 0, 0, .6);
	padding: 15px;
	margin-left: 60px;
	margin-right: 5px;
	margin-bottom: 15px;
	border-radius: 4px;
	color: white;
}

#popup.popup-edit-feed .feed-content .feed-content-error:empty {
	display: none;
}
/* NOTES
------------------------------------------------------------ */

.notes-menu-buttons button::before {
	font-size: 1.6em;
}

#list-notes {
}

#list-notes > #are-pinned:not(:empty) {
	margin-bottom: 20px;
}

#post-new-note {
	cursor: pointer;
}

#post-new-note .contain::before {
	content: "\e3de";
	font-size: 1.3em;
	color: rgba(0, 0, 0, .5);
	margin-right: 10px;
	line-height: inherit;
}

#post-new-note .contain {
	line-height: 3em;
	color: rgba(0, 0, 0, .3);
}

.notebloc {
	max-height: 300px;
	width: 240px;
	vertical-align: text-top;
	display: inline-flex; 
	flex-direction: column;
	transition: box-shadow .2s ease-in;
	margin: 10px;
	padding: 0 0 50px;
	text-align: left;
	border-radius: 5px;
	position: relative;
}

.notebloc[data-isarchived="0"] {
	filter: sepia(1);
}

.notebloc[data-ispinned="1"]::after {
	content: "\e226";
	font-size: 1.8em;
	position: absolute;
	right: -9px;
	top: -9px;
	transform: rotate(35deg);
	color: #222;
}

.notebloc:hover {
	box-shadow: 0 2px 15px rgba(0,0,0,0.30);
}

.notebloc .title,
#popup.popup-note .popup-title {
	display: flex;
	position: relative;
}

.notebloc .title > h2,
#popup.popup-note .popup-title > h2 {
	padding: 15px;
	margin: 0;
	font-size: 1.1em;
	font-weight: 700;
	flex: 1;
}

.notebloc > .content {
	white-space: pre-line;
	overflow-y: hidden;
}

.notebloc > .content,
#popup.popup-note .content {
	margin: 0;
	padding: 15px;
	font-size: 1em;
	flex: 1;
}


/* PRÉFÉRENCES
------------------------------------------------------------ */

#preferences {
	max-width: 900px;
	margin: auto;
}

/* field sets */
#preferences .pref {
	padding: 0 0 20px;
	margin-top: 40px;
}

#preferences .form-legend {
	padding: 20px;
	font-weight: 500;
	color: rgba(0, 0, 0, .5);
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
	background-color: #eee;
}

#preferences p {
	display: flex;
	align-items: center;
}

#preferences label {
	text-align: right;
	padding-right: 5px;
	flex: 0 1 45%;
}

#preferences a {
	padding: 15px 0;
}

#preferences textarea.text {
	width: auto;
}

#preferences .submit-bttns {
	margin-top: 40px;
}

/* MAINTENANCE */
#maintenance-form form + form {
	margin-top: 30px;
}

#maintenance-form fieldset {
	padding-bottom: 20px;
	margin-bottom: 20px;
	margin: 0 auto;
}

#maintenance-form legend {
	font-weight: bold;
	color: #1e88e5;
}

#maintenance-form p > label {
	display: inline-block;
	width: 40%;
	text-align: right;
	padding-right: 5px;
}

#maintenance-form #nb-artic,
#maintenance-form #nb-links {
	display: none;
}

#maintenance-form .submit-bttns {
	margin: 0px auto 15px;
	padding: 0px 20px;
	max-width: 700px;
}


@media (max-width: 1100px) {
	/* préférences */
	#preferences p {
		max-width: 100%;
	}
}

@media (max-width: 850px) {

	select {
		max-width: 100%;
	}

	body {
		padding-top: 0;
	}

	/* TOP
	------------------------------------------------------*/
	#top {
		padding: 8px;
	}

	#search {
		flex: 0 0 48px;
		background-color: transparent;
		margin: 0;
		overflow: hidden;
		color: inherit;
	}

	#search #q { /* normal */
		width: 48px;
		height: 48px;
		position: absolute;
		opacity: 0;
	}

	#label_q {
		order: 2;
	}

	#search #q:focus,
	#search #q[value=""]:focus,
	#search #q:not([value=""]) { /* focus OR not empty (a search is done) */
		border-radius: 3px;
		width: calc( 100% - 8px - 48px - 13px - 48px - 48px - 8px );
		right: 165px;
		transition: 0s;
		padding: 5px 10px;
		opacity: 1;
		color: black;
	}

	#search:hover #label_q:active,
	#search #q:focus+#label_q,
	#search #q:not([value=""])+#label_q {
		position: static;
		transition: 0s;
		color: black;
		z-index: 2;
	}

	#nav > ul::before {
		right: 113px;
	}

	#notif-icon > ul::before {
		right: 64px;
	}

	#popup-wrapper {
		padding: 0;
	}

	#popup {
		border-radius: 0;
	}

	#popup-wrapper > #popup {
		height: 100%;
		width: 100%;
		min-width: 0;
		max-height: none;
		animation: none;
	}

}

@media (max-width: 700px) {
	#header {
		position: relative;
	}
	#titre-page > a {
		display: inline;
	}

	#axe {
		padding: 10px 2px;
	}

	#subnav #form-filtre::before {
		position: relative;
		font-size: 2em;
		display: inline-block;
		width: 0;
		left: 5px;
	}

	#subnav form select {
		width: 0;
		background-color: white;
		padding-left: 80px;
		background-position: 80% 50%;
		background-size: 40px;
		border-radius: 5px;
		box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
	}

	#fab {
		right: 20px;
		bottom: 20px;
	}

	/* preferences */
	#preferences p {
		display: block;
		margin: 15px;
	}

	#preferences label {
		width: 195px;
		text-align: left;
		display: inline-block;
	}

	#preferences select {
		max-width: 90px;
		padding: 15px 10px 15px 0;
	}

	#preferences .text,
	#preferences textarea.text {
		width: 100%;
		display: block;
	}

	/* maintenance */
	#maintenance-form fieldset {
		max-width: 100%;
	}

	#maintenance-form p > label {
		display: inline;
		width: auto;
		text-align: left;
		padding-right: 0;
	}

	/* paged des RSS */
	#sub-menu {
		padding: 0 10px;
	}
	#feed-list {
		margin-right: 5px;
		transform: translateX(-280px);	
	}
	#rss-list {
		margin-right: 5px;
		margin-left: 5px;
	}
	#feed-list.hidden-list {
		transform: translateX(0px);
	}

	#feed-list.hidden-list + #rss-list {
		margin-left: 5px;
		display: none;
	}

	#body.feeds #fab {
		left: -82px;
	}
	#feed-list.hidden-list ~ #fab {
		left: 198px;
	}


	#post-list > li {
		padding: 0 5px 0 0;
	}
	#post-list > li > .post-head {
		flex-wrap: wrap;
	}
	#post-list > li > .post-head > .site,
	#post-list > li > .post-head > .folder {
		display: none;
	}
	#post-list > li > .post-head > .post-title,
	#post-list > li > .post-head > .post-title:hover {
		flex: 1 1 250px;
	}
	#post-list > li > .post-head > .share {
		display: block;
		flex: 1 0 auto;
		text-align: right;
		visibility: hidden;
	}
	#post-list > li:hover > .post-head > .share {
		visibility: visible;
	}
	#post-list > li .post-head .date {
		flex: 1 0 auto;
		text-align: right;
	}

	/* feed list config */
	#form-rss-config {
		margin: 25px 5px;
	}
	#rss-feed th,
	#rss-feed td {
		padding-left: 5px;
		padding-right: 5px;
	}
	#rss-feed th:nth-of-type(5),
	#rss-feed td:nth-of-type(5) {
		display: none;
	}


	#side-nav {
		margin-right: 5px;
		transform: translateX(-280px);	
	}

}


