/**
Theme du site Ortegeek <http://www.ortegeek.fr/>
Copyright (C) 2016  ORTEGA Guillaume @ortegeek

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

* TOOLS.................Outils CSS génériques faible priorité
* GENERIC...............balises génériques et optimisations
* BANNER................Bannière header lol
* MENU..................Menu type Burger
* BANNER................Bannière
* ARTICLE...............Articles et Article seul
* COMMENTS..............Commantaires
* PAGINATION............Pagination
* SIDEBAR...............Sidebar
* FOOTER................fond du site
* LIGHTBOX..............lightbox
* TOUCHSCREEN...........Media queries pour écran tactile
*/





/*------------------------------------*\
	#TOOLS
\*------------------------------------*/

.red {
	color: rgb(34,34,34);
}

.light {
	font-weight: 300;
}





/*------------------------------------*\
	#GENERIC
\*------------------------------------*/

body,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Roboto",sans-serif;
	color: rgb(34,34,34);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	-webkit-hyphens: none;
	-moz-hyphens: none;
	hyphens: none;
	-ms-hyphens: none;
}

a {
	text-decoration: none;
	color: rgb(192,57,43);
}

a:hover,
a:focus {
	text-decoration: underline;
	color: inherit;
}

a[rel~="external"]:not([rel~="nofollow"])::after {
	content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADtJREFUeNpiZEACByy1/zMQA3ApBIkzMRAJWNBNQeY7HL/KiFUCH5t4q/F5CMVZ+HyKzCfNamICGiDAAIHyH9sOFEOpAAAAAElFTkSuQmCC);
}

.skip-links a {
	color: #FFF;
}

::selection {
	color: #FFF;
	background: rgb(192,57,43);
}





/*------------------------------------*\
	#MENU
	SOURCE : https://dribbble.com/shots/1954664-CSS-Menu-Animations
\*------------------------------------*/

div.menu-container {
	position: fixed;
}

div.menu-container.open {
	width: 100%;
	height: 100%;
}

div.burger {
	z-index: 200;
	position: fixed;
	top: 20px;
	left: 20px;
	width: 60px;
	height: 60px;
	border-radius: 30px;
	opacity: .75;
	background-color: rgb(192,57,43);
	box-shadow: 0 0 20px 1px rgb(204,204,204);
	cursor: pointer;
}

div.burger:hover,
div.burger.open {
	opacity: 1;
}

div.burger:not(.open):hover + div.title {
	opacity: 1;
}

div.title {
	z-index: 199;
	position: relative;
	top: 26px;
	left: 95px;
	opacity: 0;
	transition: all .5s linear 0s;
}

div.x,
div.y,
div.z {
	position: relative;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 2px;
	background: #FFF;
	transition: all 200ms ease-out;
}

div.x,
div.y,
div.z {
	width: 26px;
	height: 3px;
}

div.x {
	top: 19px;
}

div.y {
	top: 25px;
}

div.z {
	top: 31px;
}

div.x.collapse {
	top: 27px;
}

div.z.collapse {
	top: 24px;
}

div.collapse {
	top: 20px;
	transition: all 70ms ease-out;
}

div.rotate30 {
	transition: all 50ms ease-out;
	transform: rotate(30deg);
}

div.rotate150 {
	transition: all 50ms ease-out;
	transform: rotate(150deg);
}

div.rotate45 {
	transition: all 100ms ease-out;
	transform: rotate(45deg);
}

div.rotate135 {
	transition: all 100ms ease-out;
	transform: rotate(135deg);
}

div.navbar {
	height: 73px;
	background: rgb(56,94,151);
}

div.circle {
	position: fixed;
	width: 0;
	height: 0;
	border-radius: 50%;
	opacity: 1;
	background: #FFF;
	transition: all 300ms cubic-bezier(.000,.995,.990,1.000);
}

div.circle.expand {
	z-index: 200;
	top: -550px;
	left: -550px;
	width: 1050px;
	height: 1050px;
	transition: all 400ms cubic-bezier(.000,.995,.990,1.000);
}

div.circle.expand ~ nav.menu {
	display: block;
}

nav.menu {
	display: none;
	z-index: 200;
	position: fixed;
	padding-top: 6rem;
}

nav.menu ul {
	padding : 1rem;
}

nav.menu ul li {
    padding: 20px;
    text-align: center;
    opacity: 0;
}

nav.menu li.animate {
	font-size: 21px;
	opacity: 1;
	transition: opacity 400ms cubic-bezier(.000,.995,.990,1.000);
}

nav.menu ul li a {
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 3px;
}

div.menu-container.open::before,
#container-lightbox::before {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	content: "";
	opacity: 0.5;
	background: rgb(189,195,199);
}





/*------------------------------------*\
	#BANNER
\*------------------------------------*/

header.header {
	border-bottom: 2px solid rgb(192,57,43);
}

header.header h1,
header.header h2{
	margin: 0;
}

header.header h1 {
	padding-bottom: 2rem;
}

header.header img {
	transition: transform 2s;
}

header.header img:hover,
header.header img:focus {
	transform: scale(1.1);
}





/*------------------------------------*\
	#ARTICLE
\*------------------------------------*/

.date {
	width: 3.5rem;
	border-bottom: 5px solid rgb(127,140,141);
	color: rgb(127,140,141);
	vertical-align: middle;
}

.date + h2 {
	vertical-align: middle;
}

.date + h2 a {
	word-break: break-word;
}

.artNbCom {
	width: 41px;
	line-height: 41px;
	color: #FFF;
	background-image: url("../img/commentaires.svg");
	background-repeat: no-repeat;
}

.artNbCom > a {
	color: #FFF;
}

.more a {
	display: inline-block;
	padding: 10px;
	padding-right: 30px;
	margin: 2rem 0;
	word-break: break-word;
	color: #FFF;
	background-image: url("../img/after.svg");
	background-position: center center;
	background-size: cover;
}

.more a:hover,
.more a:focus {
	background-image: url("../img/after--hover.svg");
}

.artCat > a {
	padding: .6rem;
	color: #FFF;
	background-color: rgb(192,57,43);
}

.artCat > a:hover,
.artCat > a:focus {
	background-color: rgb(34,34,34);
}

.artTags > a:not(:empty) {
	padding: .6rem;
	color: #FFF;
	background-color: rgb(192,57,43);
}

.artTags > a:not(:empty):hover,
.artTags > a:not(:empty):focus {
	background-color: rgb(34,34,34);
}

article {
	font-size: 1.5rem;
	line-height: 1.8;
}

article figure {
	padding: .6rem;
	background-color: rgb(192,57,43);
}

article figure > figcaption {
	font-style: italic;
	color: #FFF;
}

article figure > a {
	display: flex;
	max-height: 33vh;
	cursor: zoom-in;
}

article figure > a img {
	width: 100%;
	object-fit: cover;
	transition: filter 1s;
	filter: grayscale(75%) blur(.5px);
}

article figure > a:hover img,
article figure > a:focus img {
	filter: none;
	-webkit-filter: none;
}

article iframe {
	max-width: 100%;
}

article .options ul {
	display: flex;
	position: fixed;
	top: 0;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

article .options button {
	padding: 0;
	border: none;
}

article .options button:hover,
article .options button:focus,
article .options a:hover,
article .options a:focus {
	opacity: .75;
}

article .options ul:first-of-type {
	left: 0;
}

article .options ul:last-of-type {
	right: 0;
}

article a .author-infos {
	display: none;
	position: absolute;
	margin-top: -75px;
	padding: 15px;
	border-radius: 3px;
	color: #FFF;
	background: rgba(0,0,0,.95);
	box-shadow: 0 0 2px rgba(0,0,0,.5);
}

a.author-link:hover .author-infos,
a.author-link:focus .author-infos {
	display: block;
}

article:only-of-type > header + div > div:first-of-type:first-letter {
	color: rgb(192,57,43);
	font-size: 3rem;
}

article:only-of-type .options .title {
	display: none;
}

@media(orientation:portrait) {

	article:only-of-type .options ul {
		position: static;
		flex-direction: row;
		margin-bottom: 2rem;
	}

	article:only-of-type .options .title {
		display: block;
	}

	article:only-of-type .options ul {
		display: inline-flex;
	}
}





/*------------------------------------*\
	#COMMENTS
\*------------------------------------*/

.level-0 {
	margin-left: 0;
}

.level-1 {
	margin-left: 50px;
}

.level-2 {
	margin-left: 100px;
}

.level-3 {
	margin-left: 150px;
}

.level-4 {
	margin-left: 200px;
}

.level-5,
.level-max {
	margin-left: 250px;
}

#id_answer {
	margin-bottom: 10px;
	padding:15px;
	border:1px solid #eee;
	width:100%;
	background:#fafafa;
	display:none;
}
@media (max-width: 767px) {
	.level-1,
	.level-2,
	.level-3,
	.level-4,
	.level-5,
	.level-max {
		margin-left: 5px;
	}
}

#form input[type="text"],
#form textarea {
	border: none;
	border-bottom: 2px solid rgb(127,140,141);
	transition: border 0.3s;
}

#form input[type="text"]:focus,
#form textarea:focus {
	border-bottom: solid 2px rgb(34,34,34);
}

#form input[type="submit"] {
	margin: 0;
	padding: 5px;
	border: 1px solid rgb(192,57,43);
	color: #FFF;
	background-color: rgb(192,57,43);
}





/*------------------------------------*\
	#PAGINATION
\*------------------------------------*/

.pagination {
	text-align: center;
}

.pagination span,
.pagination a {
	display: inline-block;
	padding: 5px;
}

.pagination a {
	color: #FFF;
	background-color: rgb(192,57,43);
}

.pagination a:hover {
	background-color: rgb(34,34,34);
}

.pagination span:first-letter,
.pagination a:first-letter {
	text-transform: uppercase;
}





/*------------------------------------*\
	#SIDEBAR
\*------------------------------------*/

aside.complementary ul:not(.unstyled) {
	padding-left: 1.4rem;
	list-style-type: square;
}

aside.complementary li:first-letter {
	text-transform: uppercase;
}

aside.complementary ul.tags {
	padding: 0;
}

aside.complementary ul.tags li {
	margin: .6rem;
	padding: .6rem;
	color: #FFF;
	background-color: rgb(192,57,43);
}

aside.complementary ul.tags li:hover,
aside.complementary ul.tags li:focus {
	background-color: rgb(34,34,34);
}

aside.complementary ul.tags.black li {
	background-color: rgb(34,34,34);
}

aside.complementary ul.tags.black li:hover,
aside.complementary ul.tags.black li:focus {
	background-color: rgb(192,57,43);
}

aside.complementary ul.tags li a {
	color: inherit;
}

aside.complementary .searchform {
	margin-bottom: 2.4rem;
}

aside.complementary .searchfield[type="text"] {
	max-width: 70%;
	padding: 5px;
	border: none;
	border-bottom: 2px solid rgb(127,140,141);
	transition: border 0.3s;
}

aside.complementary .searchfield[type="text"]:focus {
	border-bottom: solid 2px rgb(34,34,34);
}

aside.complementary .searchbutton[type="submit"] {
	height: 30px;
	margin: 0;
	padding: 5px;
	border: 1px solid rgb(192,57,43);
	color: #FFF;
	background-color: rgb(192,57,43);
}





/*------------------------------------*\
	#FOOTER
\*------------------------------------*/

footer.footer {
	border-top: 2px solid rgb(192,57,43);
	color: #DFDFDF;
	background-color: rgb(225,225,225);
	background-image: url(/FO/data/medias/images/footer.fw.png);
	background-repeat: no-repeat;
	background-size: auto;
	background-position: center;
}

footer.footer a {
	color: #C30;
}






/*------------------------------------*\
	#LIGHTBOX
\*------------------------------------*/

#container-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: zoom-out;
}

#container-lightbox img {
	max-height: 90vh;
	max-width: 90vw;
	box-shadow: 0 0 20px 1px rgb(204,204,204);
}

.horizontal {
	display: flex;
	justify-content: center;
}

.vertical {
	display: flex;
	z-index: 100;
	flex-direction: column;
	justify-content: center;
}

/*.overlay-lightbox voir .menu-overlay */

.overlay-lightbox {
	display: block;
	z-index: 99;
}





/*------------------------------------*\
	#PRINT
\*------------------------------------*/

.webcv .border {
	border-bottom: 2px solid rgb(192,57,43);
}





/*------------------------------------*\
	#PRINT
\*------------------------------------*/

@media print {
	* {
		color: rgb(34,34,34) !important;
	}

	*::after,
	*::before,
	iframe {
		display: none;
	}

	main {
		width: auto !important;
	}

	main .grid-2-1 .pal {
		width: 100%;
		font-size: 10pt;
	}

	a::after {
		content: " (" attr(href) ") " !important;
		display: block;
	}

	article figure > a {
		max-height: none;
		overflow: visible;
	}

	article figure > a img {
		margin-top: 0;
	}
}





/*------------------------------------*\
	#TOUCHSCREEN
\*------------------------------------*/

@media(pointer:coarse) {
	aside.complementary a,
	a[rel="external"] {
		line-height: 2.5;
	}
}





/*------------------------------------*\
	#SMALL SCREENS
\*------------------------------------*/
@media (max-width: 640px) {
	.artNbCom {
		display: none;
	}
	.date + h2 a {
		word-break: normal;
	}
	.pal {
		padding : 2rem;
	}
}
