/*
 * Theme Name: Cinq Oreilles
 * Text Domain: co2
 */
 
html, body {
	font-family: livvic, sans-serif;
	transition: all 500ms ease;
}

h1, h2, h3, h4, .boogaloo {
	font-family: boogaloo, sans-serif;
}
h2 { font-size: 3rem; margin-bottom: .5em; }

h2:focus { outline: none; }

img {
	width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	font-weight: 700;
	color: inherit;
}
a:hover, a:focus {
	color: inherit;
}

.wp-block-columns { margin-bottom: 8px; }

/********** ENTETE **********/

.navbar {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
	background-color: #000;
    z-index: 200;
}

.logo-menu { width: 120px; }

#menuPrincipal .navbar-nav { margin: 1rem 2rem; }

#menuPrincipal .menu-item {
    font-family: "boogaloo", sans-serif;
    font-size: 1.5rem;
    padding: 0 0 1rem;   
}

#menuPrincipal .menu-item.lang-item img{
	transform: scale( 1.5 );
	width: auto;
}
@media screen and (min-width:768px)  {
	.logo-menu { width: 160px; }
	#menuPrincipal .navbar-nav { margin: 0 0 0 10%; }
	#menuPrincipal .menu-item {
		font-size: 3vw;
		padding: 0 1em;
	}
	#menuPrincipal .lang-item {
		padding: 0 .25em;
	}
	#menuPrincipal .menu-item.lang-item img{
		transform: scale( 1.5 );
	}
}

#menuPrincipal .menu-item a {
    color: #fff;
    line-height: 1;
    text-decoration: none;
}

#menuPrincipal .menu-item a:hover,
#menuPrincipal .menu-item a:focus {
	color: #fcca73;
}

.navbar-toggler {
	position: relative;
    width: 38px;
    height: 27px;
    padding: 14px 0 0;
	margin-right: 1rem;
}
.navbar-toggler span {
    display: block;
    margin-top: 20px;
    text-transform: uppercase;
    color: #fff;
    font-size: 12px;
}

.navbar-toggler:focus, .navbar-toggler:hover {
	background: transparent;
}
.navbar-toggler i {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: #fff;
  transition: 500ms ease all;
}
.navbar-toggler i:before, .navbar-toggler i:after {
  content: " ";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 4px;
  transition: 500ms ease all;
}
.navbar-toggler i:before {
  margin: -12px 0 0 0;
}
.navbar-toggler i:after {
  margin: 12px 0 0 0;
}

#navbar.show .navbar-toggler i {
  background-color: transparent;
}

#navbar.show .navbar-toggler i:before {
  transform: rotate(135deg); margin: 0;
}
#navbar.show .navbar-toggler i:after {
  transform: rotate(-135deg); margin: 0;
}
/********** MENU RAPIDE **********/

#acces-rapide {
	position: fixed;
	z-index: 10;
	left: 50%;
    bottom: 0;
    transform: translate(-50%,90%);
	transition: all .5s ease-in-out;
}
#acces-rapide:hover, #acces-rapide:focus, #acces-rapide.up {
	transform: translate(-50%,0%);
}

#acces-rapide ul{
	list-style: none;
    font-size: 2rem;
    padding: 0;
    margin: 0;
	background-color: rgba(255,255,255,.75);
}
#acces-rapide ul > li{
	display: inline-block;
	margin: 0 8px;
}

#acces-rapide ul > li > a {
	color: #000;
}

#acces-rapide ul > li  > a:hover {
	text-decoration: none;	
}

[class^="icon-"] > a:before, [class*=" icon-"] > a:before {
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: middle;
}

.icon-bandcamp > a:before {
  content: "\e909";
  color: #408294;
}

.icon-facebook > a:before {
  content: "\e900";
  color: #1877f2;
}
.icon-youtube > a:before {
  content: "\e901";
  color: #f00;
}
.icon-phone > a:before {
  content: "\e902";
}
.icon-cd > a:before {
  content: "\e903";
}
#acces-rapide ul > li span {
	display: none;
}

@media screen and (min-width:576px)  {
	#acces-rapide {
		left: calc( 100% - 3rem );
		bottom: 50vh;
		transform: translate(0,50%);
	}
	#acces-rapide:hover, #acces-rapide:focus, #acces-rapide.up {
		transform: translate(0,50%);
	}
	#acces-rapide ul{
		padding: 0 ;
		background-color: transparent;
	}
	#acces-rapide ul > li{
		display: block;
		padding: 0;
    	margin: 0;
	}
	#acces-rapide ul > li a {
		display: block;
		padding: 5px .5rem;
    	margin: 0;
		background-color: rgba(255,255,255,.75);
	}
	#acces-rapide ul > li span {
		display: inline;
		font-size: 1rem;
		margin-left: 1rem;
		vertical-align: middle;
	}
	#acces-rapide ul > li a:hover {
		transform: translateX( -64% );
	}
}
/*********** PHOTO ANIMEE ************/

.anim {background-color: #000; }

body::after{
   position:absolute; width:0; height:0; overflow:hidden; z-index:-1;
   content:url(images/image2.jpg) url(images/image3.jpg) url(images/image4.jpg);
}

@keyframes testAnim1 {
	0%   {background-image: url("images/image2.jpg"); }
	14%  {background-image: url("images/image2.jpg"); }
	17%  {background-image: url("images/image3.jpg"); }
	47%  {background-image: url("images/image3.jpg"); }
	50%  {background-image: url("images/image4.jpg"); }
	80%  {background-image: url("images/image4.jpg"); }
	83% {background-image: url("images/image1.jpg"); }
	100% {background-image: url("images/image1.jpg"); }
}

#anim {
	height:100vh;
	background-color: #000;
	background-size: 100%;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: 0px 109px;
	transition: 500ms ease all;
}

#anim:not(.loaded) {
	background-image: url("images/image1.jpg");
}

#anim.loaded{
	animation-name: testAnim1;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-direction: alternate;
	animation-duration: 5s;
	animation-play-state:paused;
}

#anim.loaded:hover{
	animation-play-state: running;
}

/*@media screen and (min-width:576px)  {
	#anim { background-position: 0px 109px; }
}*/
@media (orientation: portrait)  {
	#anim { background-position: 0px bottom; }
}

@media screen and (max-width:1024px)  {
	#anim.loaded{
		animation-play-state: running;
	}
}

/*********** PROCHAIN CONCERT ************/

.prochain-concert {
	text-align: center;
	padding-top : 1rem;
	padding-bottom: 1rem;
	background-color: #000;
	color: #fff;
	font-family: "boogaloo", sans-serif;
	font-size: 1rem;
	transform: translateY(-77px);
}
@media (orientation: portrait)  {
	.prochain-concert {
		transform: translateY(-80vh);
	}
}

/*********** CONTENU ************/
#content {
	background-image: url('images/antartique.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed;
}

.maincontainer {
	max-width: 90%;
	margin: 0 auto;
	padding: 50px 0;
}

@media screen and (min-width:768px)  {
	.prochain-concert{ font-size: 24px; }
	.maincontainer { font-size: 18px; max-width: 800px; }
}

@media screen and (min-width:1024px)  {
	.prochain-concert { font-size: 30px; }
	.maincontainer { font-size: 20px; max-width: 920px; }
}

.maincontainer > .wp-block-group{
	background-color: #fff;
	background-image: url('images/papier3.jpg');
	background-repeat: no-repeat;
	background-position: top left;
	background-size: cover;
	padding: 1rem;
	margin: 5rem 0;
	position: relative;
	box-shadow: 13px -10px 21px -12px rgba(0,0,0,0.75);
}

.maincontainer > p{
	margin: 0;
	padding-bottom: 1rem;
}
.proverbe p {
	display: inline;
}
.proverbe cite {
	font-style: normal;
    font-size: initial;
    float: right;
}
.wp-block-image figcaption { font-size: .75em; font-style: italic; }

.blocks-gallery-grid .blocks-gallery-image figcaption,
.blocks-gallery-grid .blocks-gallery-item figcaption,
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
	display: none;
	overflow: hidden;
}

.blocks-gallery-grid .blocks-gallery-image:hover figcaption,
.blocks-gallery-grid .blocks-gallery-item:hover figcaption,
.wp-block-gallery .blocks-gallery-image:hover figcaption,
.wp-block-gallery .blocks-gallery-item:hover figcaption {
	display: block;
	padding: 8px;
}

/*********** MEDIA  ************/
.wp-playlist,
.wp-playlist-caption,
.wp-playlist-item-title { font-size: 16px !important; }
.wp-playlist{ margin-top: 0 !important }
.wp-playlist-current-item { display: none; }

/*********** AGENDA ************/

.concert {
	border-top: 1px solid rgba(0,0,0,.2);
}
.concert:last-of-type {
	border-bottom: 1px solid rgba(0,0,0,.2);
	margin-bottom: 40px;
}

.concert .date {
    font-weight: 700;
}
.concert-ligne .btn {
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: -.4em;
}
button.map-modal.btn.localiser {
    font-size: 1.2rem;
    margin-top: 0;
    padding: 0 .5em;
}
.concert-content {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: rgba(255,255,255,.3);
}
.concert-content > *:last-child {
	margin-bottom: 0;
}
.dates-passees {
	position: relative;
}
.dates-passees > div {
	height: 300px;
	overflow-y: auto;
	padding-right: 8px;
}
.dates-passees > div:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: linear-gradient(to bottom,transparent 0%,#fcca73 100%);
    z-index: 2;
}

@media screen and (min-width:992px)  {
	.dates-passees > div {
		height: auto;
		padding-right: 0;
	}
	.dates-passees > div:after {
		display: none;
	}
}

#modal-map {
	width: 100%; height: 60vh;
}

/*********** BIO ************/

@keyframes bounce {
  0%,
  100%,
  20%,
  50%,
  80% {
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
  }
  40% {
	-webkit-transform: translateY(-10px);
	-ms-transform: translateY(-10px);
	transform: translateY(-10px);
  }
  60% {
	-webkit-transform: translateY(-5px);
	-ms-transform: translateY(-5px);
	transform: translateY(-5px);
  }
}


@media screen and (min-width:768px)  {
	.biographie {
		font-size: 20px;
	}
}
.biographie h3 {
	cursor:pointer;
	font-size: 1.5rem;
	position: relative;
}
.biographie h3:after {
	font-family: 'icomoon';
	content: "\e905";
	position: absolute;
	right: 0;
	top: 0;
	color: rgba( 0,0,0,.6 );
	transform: rotate(90deg);
	transform-origin: center center;
	transition: all 500ms ease-in-out;
	/*animation: bounce 2s infinite 2s;*/
}
.biographie h3.ouvert:after {
	transition: all 500ms ease-in-out;
	transform: rotate(270deg);
}

.biographie .masquer {
	font-size: .9em;
	line-height: 1.3;
	text-align: justify;
	height: 0px;
	overflow: hidden;
	transition: all 500ms ease-in-out;
}
.biographie .masquer.ouvert {
	height: auto;
	transition: all 500ms ease-in-out;
}


@keyframes rotation {
	from { transform: rotate(0deg) }
    to { transform: rotate(360deg) }
}

.image-bio { position: relative; overflow: hidden }
.image-bio:after {
	content:"";
	display: block;
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform:  translateX( -50% );
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 25px solid beige;}

.image-bio > img{
	transform-origin: 50% 50%;
	animation-name: rotation;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-duration: 20s;
}

@media screen and (min-width:1024px)  {
	
	.image-bio > img{
		animation-play-state: paused;
		transition: all 3.2s cubic-bezier(0,.99,.44,.99);
	}
	.image-bio > img.in-view{
		animation-iteration-count: 1;
		animation-timing-function: cubic-bezier(0,.99,.44,.99);
		animation-duration: 3.2s;
		animation-play-state: running;
	}
}


.wp-block-image figure.size-thumbnail {
	width: 150px;
}
.wp-block-image figure.size-medium {
	max-width: 400px;
}