/*--  gaby_aout_2018 ajout fichier --*/

/*-- 0.1. BODY --*/
/*-- 0.2. FDR  --*/

/*-- 1. HEADER --*/
/*--    1.1. Primary Menu --*/
/*--    1.2. Search Toggle --*/
/*--    1.3. Langues --*/
/*--    1.4. Menu Social --*/
/*--    1.5. Header Secondary --*/
/*--    1.6. Navigation --*/
/*--    1.7. Masthead fixed --*/

/*-- 2. MOSAIQUE --*/
/*--    2.1. Open modal de la page daccueil --*/
/*--    2.2. Clic images mosaïque --*/
/*--    2.3. Hover images mosaïque --*/

/*-- 3. WIDGETS --*/

/*-- 4. MODELES DE PAGE --*/
	/*-- 4.0. Entry  --*/
	/*-- 4.1. Entry header --*/
	/*-- 4.2. subtitle and breadcrumbs --*/
	/*-- 4.3. Entry Main content --*/
	/*-- 4.4. Entry complement categories --*/
	/*-- 4.5. Entry complement page --*/
	/*-- 4.6. Page agenda --*/
	/*-- 4.7. Single --*/
	/*-- 4.8. Search --*/
	/*-- 4.9. Appel à l'action --*/
	/*--4.10 Footer --*/

/*-- 5. MEDIA QUERIES --*/

/*-- 0. FONTS --*/

@font-face {
    font-family: 'fibre_vintagefibre_vintage';
    src: url('fonts/fibre-font-webfont.woff2') format('woff2'),
         url('fonts/fibre-font-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'droid_serifbold_italic';
    src: url('fonts/droidserif-bolditalic-webfont.woff2') format('woff2'),
         url('fonts/droidserif-bolditalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'droid_serifregular';
    src: url('fonts/droidserif-webfont.woff2') format('woff2'),
         url('fonts/droidserif-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'vinylregularregular';
    src: url('fonts/vinyl_regular-webfont.woff2') format('woff2'),
         url('fonts/vinyl_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/*-- 0.1. BODY --*/

 .campagnes body {
 	line-height: 0;
 }
 
/*-- 0.2. FDR  --*/
 .campagnes   div#result {
    padding: 2px 20px;
    font-size: 16px;
 }
 .campagnes   div#error {
     padding: 2px 20px;
    font-size: 16px;
    font-weight: bold;
}
.campagnes.page-template-campagnestemplate-campagne-2017-homepage-php #fdr .col.label , 
.campagnes.page-template-campagnestemplate-campagne-2017-homepage-php #fdr .label {
    display: none;
}



/*-- 2. MOSAIQUE --*/

.grid .grid-item .img,.grid .geo-bleu  { /*gs 0902*/
		/*width: 49.7%;min-height: 224px;*/
		float: left;
		width: 14%;
    width: 14.05vw;
    width: -webkit-calc(14.25vw - 3px);
    height: 14.25vw;
    max-height: 185px;
    max-width: 185px;
}

.grid .grid-item img {
	display: inline-block;
  border: 0.5px solid #fff;
  width: auto;
  height: 100%;
  width: 100%;
  /*min-height: 100%; safari bug*/
  overflow: hidden;
}



.grid .grid-item--width2 {
	width: 100%;
	height: auto;
	position: relative;
	left: 0;
}

.geo.grid-item--width2 .img {/*image centrale home*/
	background-color: #00b1eb;
}

.geo.grid-item--width2 .content {
	color: #fff;
	z-index: 1;
  min-height: 42.50vw;
}

.geo.grid-item--width2 .attachment-featured-home {
  display: none;
}

/*blockquote*/
.geo.grid-item--width2 .content p:nth-child(0n+1) {
		width: 90%;
		/*margin: 17px auto;*/
		margin: 15px auto;
		font-size: 13px;
		font-style: italic;
		color: #fff;
}
.geo.grid-item--width2  .content p:nth-child(0n+2) {
	font-size: 12px;
	margin: -13px 0 -8px 0;
}

.geo.grid-item--width2 .content blockquote p:first-child:before {
	content: url("../campagnes/images/blockquote-avant.png");
	padding-right: 10px;
}

.geo.grid-item--width2 .content blockquote p:first-child:after {
	content: url("../campagnes/images/blockquote-arriere.png");
	padding-left: 20px;
}

/*phrase*/
.geo.grid-item--width2  .content p:nth-child(0n+3) {
	width: 87%;
	margin: 0 auto;
	padding-bottom: 0px;
}
/*bouton*/
.geo.grid-item--width2 .content a {
	color: #19baef;
	background: #fff;
	padding: 12px 7px;
	text-transform: uppercase;
	font-family: 'montserrat';
	font-weight: bold;
	letter-spacing: 1px;
	font-size: 10px;
	display: block;
	width: 90%;
	margin:0 auto;
}

.geo.grid-item--width2 .content a:hover {
	color: #fff;
	background: #000;
	transition-duration: 0.3s;
}

.ligne-bleu  {
	display:none;
}

/*naviguation*/
	nav.prev-next-posts {
		margin-top: 0px;
	}
	.prev-posts-link {
		width: 50%;
		height: 49px;
		z-index: 12;
		POSITION: relative;
		float: left;
	}

	.next-posts-link {
		width: 50%;
		height: 49px;
		z-index: 12;
		POSITION: relative;
		float: right;
	}


	.prev-posts-link a {
		background-image: url("../campagnes/images/next-smartphone.png");
    	border: 1px solid #19baef;
    	background-position: center;
    	color: transparent;
	}
	.next-posts-link a {
		background-image: url("../campagnes/images/prev-smartphone.png");
    	border: 1px solid #19baef;
    	background-position: center;
    	color: transparent;
	}
	.prev-posts-link a:hover {
		background-image: url("../campagnes/images/next-hover-smartphone.png");
    	border: 1px solid #ffcf27;
    	background-position: center;
    	color: transparent;
	}
	.next-posts-link a:hover {
		background-image: url("../campagnes/images/prev-hover-smartphone.png");
    	border: 1px solid #ffcf27;
    	background-position: center;
    	color: transparent;
	}
	.prev-posts-link a, .prev-posts-link a:hover {
		/*top: -104%;
		width: 100%;*/
		width: 99%;
		height: 49px;
		position: absolute;
		background-size: cover;
		/*right: 0;*/
		left: 0;
	}

	.next-posts-link a, .next-posts-link a:hover {
		/*top: -104%;
		top: -203%; */
		/*width: 100%;*/
		width: 99%;
		height: 49px;
		position: absolute;
		background-size: cover;
		left: 0;
	}



/*--    2.1. Open modal de la page daccueil --*/
.img {
    display: block;
}

.modalContent .close,  .modalContent .social,  .modalContent .img,  .modalContent .txt {
  display: block;
}

.modalDialog {

	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0px;
	background: rgba(0,0,0,0.8);

	z-index: -1;
	opacity: 0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	/*pointer-events: none;  gs 0902*/
}

.modalDialog:target {
	opacity:1;
	/*pointer-events: auto; gs 0902*/
	z-index: 99999;
}

.modalDialog:target > div {
	transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-webkit-transition: all 0.4s ease-in-out;
}

.modalDialog > div {
	width: 90%;
	position: relative;
	margin: 10% auto;
	/*padding: -1px 0px 13px 0px;  gs 0902*/

	background: #fff;

	transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-webkit-transition: all 0.4s ease-in-out;
}

a.close  {
	margin-top: -60px;
	display: block;
}

.center {
	text-align: center;
}


	/*--    2.2. Clic images mosaïque --*/

#main-sidebar .modalContent a.close {
	margin:-21px;
	display: block;
	background-image: url("../campagnes/images/close.png");
	background-repeat: no-repeat;
	width: 42px;
	height: 42px;
	color: transparent;
	float: right;
	position: inherit;
  z-index: 100;
}

#main-sidebar .modalContent a.close:hover {
	background-image: url("../campagnes/images/close-hover.png");
	color: transparent;
}

#main-sidebar .modalContent .txt {
	color: #ffc600;
    font-weight: bold;
    font-style: italic;
    font-size: 11px;
    min-height: 290px;
    vertical-align: bottom;
    font-family: 'droid_serifbold_italic';
    display: block;
    padding: 5px;
    width: 90%;/* gs */
    margin: 0px 0px 0 20px;/* gs */
}

#main-sidebar .modalContent .social {
	background: #00b1eb;
}

#main-sidebar .modalContent .social .share-sidebar.widget h3 {
	display: none;
}

#main-sidebar .modalContent .img {
	float: left;
	width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 0 10% 5% 0;
}

#main-sidebar .modalContent .img .metadata-nom,
#main-sidebar .modalContent .img .metadata-date {
	position: absolute;
}

#main-sidebar .modalContent .img img {
	/*width: 390px;
	 max-height: 390px;
	max-width:390px;
	height:auto;*/
	/*height: 390px;*/
	width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
}

#main-sidebar .modalContent .img  .metadata-title {
   top: 285px;
    color: #fff;
    font-size: 14px;
    position: absolute;
    margin-left: 30px;
    padding-bottom: 5px;
    /* border-bottom: 1px solid #fff; */
    max-width: 100%;
    text-transform: uppercase;
	background-color: rgba(0, 0, 0, 0.15);
}

#main-sidebar .modalContent .img .metadata-nom {
	top: 315px;
	color: #fff;
	font-size: 15px;
	margin-left: 30px;
	padding-bottom: 5px;
	/*border-bottom: 1px solid #fff;*/
	max-width: 240px;
	background-color: rgba(0, 0, 0, 0.15);
}

#main-sidebar .modalContent .img .metadata-date {
	top: 345px;
  padding-left: 30px;
	color: #fff;
	font-size: 11px;
}

#main-sidebar .modalContent .social .share-sidebar.widget {
	padding: 10px 0px 0 20px;
	width: 89%;
  display: block;
  text-align: left;
}

#main-sidebar .modalContent .social .share-sidebar.widget a {
	background-image: url("../campagnes/images/page-sprite2.png");
	margin: 0px 5px 5px 0px;
	border: none;
  display: inline-block;
}

/* On ne les affiche que sur les écrans suffisamment grands */
#main-sidebar .modalContent .social .share-sidebar.widget a.ggl-button,
#main-sidebar .modalContent .social .share-sidebar.widget a.eml-button {
  display: none;
}


/*--    2.3. Hover images mosaïque --*/

#main-sidebar .widget.grid .geo.grid-item .img .metadata-nom,
#main-sidebar .widget.grid .geo.grid-item .img .plus,
#main-sidebar .widget.grid .geo.grid-item .img .txt {
	display: none;
}

#main-sidebar .widget.grid .geo.grid-item .img:hover .metadata-nom,
#main-sidebar .widget.grid .geo.grid-item .img:hover .plus {
	position: absolute;
	max-width: 180px;
	display: none;
}

#main-sidebar .widget.grid .geo.grid-item .img:hover {
	position: relative;
}

#main-sidebar .widget.grid .geo.grid-item .img:hover .plus {
	bottom: 10px;
	right: 15px;
	color: #436ef5;
	font-weight: bold;
}

#main-sidebar .widget.grid .geo.grid-item .img:hover .txt {
	position: absolute;
	display: none;
	min-width: 110px;
	width: 110px;
	height: 54px;
	max-height: 30%;
	right: 0;
	bottom:0;
	color: #140e0e;
	font-size: 0.7em;
	font-weight: bold;
	text-align: left;
	/*padding: 80px 0px 0px 20px; gs 0902*/
	padding: 40px 0px 15px 20px;
	background-image: url("../campagnes/images/hover-mosaique.png");
	background-size: cover;
	background-repeat: no-repeat;
}

#main-sidebar .widget.grid .geo.grid-item .img:hover .metadata-nom {/* gs 0902*/
	width: 68px;
    right: 0;

    background-image: url(../campagnes/images/hover-mosaique.png);
    bottom: 0px;

    padding: 10px;

    color: #6e8df2;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.7em;
    text-align: left;
    font-family: 'montserrat';
    position: absolute;
}

/*-- 5.1 MEDIA QUERIES OK --*/

@media screen and (min-width: 434px) {

	/*-- 2. MOSAIQUE --*/
	.geo.grid-item--width2 .content a {
		padding: 22px 7px;
		font-size: 12px;
		width: 70%;
	}

	#main-sidebar .widget.grid .geo.grid-item .img:hover .metadata-nom,
	#main-sidebar .widget.grid .geo.grid-item .img:hover .plus {
		display: block;
	}

	#main-sidebar .modalContent .txt {
		font-size: 12px;
	}

	/*appel action image du bas*/
	page-template-campagnestemplate-campagne-2017-calltoaction-php .campagne-homepage-sidebar.widget.widget_text.actions.text_atd-140-c {
   		height: 417px;
	}


  /* On ne les affiche que sur les écrans suffisamment grands */
  #main-sidebar .modalContent .social .share-sidebar.widget a.ggl-button,
  #main-sidebar .modalContent .social .share-sidebar.widget a.eml-button {
    display: inline-block;
  }

}

@media screen and (min-width: 600px) {

	/*-- 2. MOSAIQUE --*/
	.grid-sizer {
		width: 14.286%;
	}

	.grid .grid-item--width2 { /*image centrale home*/
		position: absolute;
		left: 28.56%;
		width: 42.86%;
		max-height:  42.84%;
		border-top: 0.5px solid #fff;
	}

  .geo.grid-item--width2 .attachment-featured-home {
    /*display: block;*/
  }

	.grid .grid-item img:hover {
		border: 0.5px solid #fff;
	}

	/*blockquote*/
  .geo.grid-item--width2 .img {
    background-image: url("/wp-content/uploads/2017/01/image-centrale-home.png");
    background-position-x: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
  }

	.geo.grid-item--width2 .content p:nth-child(0n+1) {
		display:none;
	}
	.geo.grid-item--width2  .content p:nth-child(0n+2) {
		display:none;
	}



	.ligne-bleu, .box-28 {
		display:block;
	}
	/* open modal */
	.modalDialog {
		display: block
	}

	/*naviguation*/
	nav.prev-next-posts {
		margin-top: 0px;
	}
	.prev-posts-link a,
	.prev-posts-link a:hover {
		background-repeat: no-repeat;
		width: 59px;
		height: 60px;
		background-position: center;
		position: absolute;
		color: transparent !important;
		display: block;
		right: 30px;
		transition-duration: 0.3s;
		top: 300px;
		z-index: 1;
		left: initial;
	}

	.next-posts-link a,
	.next-posts-link a:hover {
		background-repeat: no-repeat;
		width: 59px;
		height: 60px;
		background-position: center;
		position: absolute;
		color: transparent !important;
		display: block;
		left: 30px;
		transition-duration: 0.3s;
		top: 300px;
	}

	.prev-posts-link {
		width: 0.5px;
		/*height: 11%; pb safari*/
		position: absolute;
		color: transparent;
		display: block;
		right: 0;
	}

	.next-posts-link {
		width: 0.5px;
		/*height: 11%;pb safari*/
		position: absolute;
		color: transparent;
		display: block;
		left: 0;
	}

	.prev-posts-link a {
		background-image: url("../campagnes/images/suivant.png");
		background-size: contain;
		border: none;
	}

	.prev-posts-link a:hover {
		background-image: url("../campagnes/images/suivant-hover.png");
		background-size: contain;
		border: none;
	}

	.next-posts-link a {
		background-image: url("../campagnes/images/precedent.png");
		background-size: contain;
		border: none;
	}

	.next-posts-link a:hover {
		background-image: url("../campagnes/images/precedent-hover.png");
		background-size: contain;
		border: none;
	}

	/*Widgets Home*/ 
	page-template-campagnestemplate-campagne-2017-homepage-php #main-sidebar .newsletter-image {
		margin-top: 18%;
	}

	/* gs 26/09 */
	#main-sidebar .widget_text.rejoindre ,
	#before-main-sidebar .widget:first-child   {
		height: 456px; 
	}

	#main-sidebar .widget_text.rejoindre .textwidget .link {
		padding-top: 50px;
	}

	#main-sidebar .widget_text.alliance {
		height: 489px;
		background-size: initial;
	}
}


 @media screen and (min-width: 800px) {

	/*-- 4. MOSAIQUE --*/
	.geo.grid-item--width2  .content p:nth-child(0n+3) {
		font-size: 15px;
		line-height: 1.5em;
		padding-bottom: 4px;
	}
}

@media screen and (min-width: 1024px) {
	 
	/*-- 2. MOSAIQUE --*/
	.geo.grid-item--width2 .content p img {
		opacity: 1;
		width: 20%;
		display:block;
	}

	.geo.grid-item--width2 .content {
		padding-top: 20px;
    min-height: 534px;
	}

	/*blockquote*/
	.geo.grid-item--width2 .content p:nth-child(0n+1) {
		display:block;
	}
	.geo.grid-item--width2  .content p:nth-child(0n+2) {
		display:block;
	}

		/* vignette*/
	#main-sidebar .modalContent .social {
		width: 7%;/* gs */
    display: inline-block;
    float: left;
    height: 390px;
	}
  #main-sidebar .modalContent .social .share-sidebar.widget {
    padding: 25px 0 0 8px;
    margin-top: 0;
  }
	/* gs 0902 hover vignette*/
	#main-sidebar .widget.grid .geo.grid-item .img:hover .metadata-nom {
		width: 110px;
		right: 0;
		bottom:0;
		z-index: 1;
		padding-bottom: 70px;
		 background-image: none;
	}

	#main-sidebar .widget.grid .geo.grid-item .img:hover .txt {

		display: block;

	}

	/*open modal */
	.modalDialog > div {
			max-width: 955px;
			max-height: 390px;
	}


	#main-sidebar .modalContent .img {
		width: 390px;
		height: 390px;
	}

	#main-sidebar .modalContent .txt {
		font-size: 18px;
		height: 390px;
	}

  #main-sidebar .modalContent .img  .metadata-title {
     top: 285px;
      color: #fff;
      font-size: 14px;
      position: absolute;
      margin-left: 30px;
      padding-bottom: 5px;
      /* border-bottom: 1px solid #fff; */
      max-width: 100%;
      text-transform: uppercase;
  	background-color: rgba(0, 0, 0, 0.15);
  }

  #main-sidebar .modalContent .img .metadata-title {
    top: 300px;
  }
  #main-sidebar .modalContent .img .metadata-nom {
  	top: 330px;
  }
  #main-sidebar .modalContent .img .metadata-date {
  	top: 336px;
    padding-left: 30%;
  }


	#main-sidebar .modalContent .img .metadata-nom {
		font-size: 20px;
	}
}
