@media (max-width: 640px) {
	* {
		box-sizing: border-box;
	}
	
	/* passer body (et tous les éléments de largeur fixe) en largeur automatique */
	
	
html {height: 100%; min-height: 100%; }	
	
	

	body {

		width: 100%;
		height: 100%;
		height: inherit;
		padding: 0;
		background-size: cover !important;
		overflow: inherit;

	}
body.custom-background {
background-image: url("images/fond_media.jpg") !important;	
background-position: top right !important;
}
	
#post-71 {margin-top: 100px;}	
	
	
	.site-content {width: 100%; height: auto; position: static; min-height:100%; }
	.entry-content {padding-right: 0;}
	
	#menu_pages {display: none !important;}
	
	.site-header {width: 100%;}
	
	#headercontainer {padding: 0; width: inherit; height: 85px; display: block;}
	
	.site-title h1 a, .site-title h1 {line-height: 0.8; font-size: 30px; margin-left: 0px;margin-top: 15px; }
	
.site-title {padding-left: 70px; padding-right: 70px; text-align: center; display: block;}
	
.mobmenul-container {width: 30px;}

.mob-icon-menu {line-height: normal;}

.page-id-56 #maincontentcontainer {
background-image: none;
width: auto;

}


.liens {
position: fixed;
margin: 0;
width: 70px;
top: 0;
right: 0;
z-index: 9999;
}




#maincontentcontainer {position: static; height: 76%; overflow: auto;}


	article {height: auto;}
	
	.colonne-media {
display: block;
margin: auto;
width: 90%;
height: auto;
overflow-y: auto;
	
	}
	
	.ngg-simplelightbox {margin: 0;}
	
	.ngg-simplelightbox img {width: 100%;}
	
	/* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

	img,
	table,
	td,
	blockquote,
	code,
	pre,
	textarea,
	input,
	iframe,
	object,
	embed,
	video {
		max-width: 100%;
	}
	
	/* conserver le ratio des images */

	img {
		height: auto;
	}
	
	/* gestion des mots longs */

	textarea,
	table,
	td,
	th,
	code,
	pre,
	samp {
		-webkit-hyphens: auto; /* césure propre */
		-moz-hyphens: auto;
		hyphens: auto;
		word-wrap: break-word; /* passage à la ligne forcé */
	}
	
	code,
	pre,
	samp {
		white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
	}
	
	/* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

	.element1,
	.element2 {
		float: none;
		width: auto;
	}
	
	/* masquer les éléments superflus */

	.hide_mobile {
		display: none !important;
	}
	


@media (max-device-width:768px) and (orientation: landscape) {
  html {
   -webkit-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
  }
}


.mobmenu-panel {
background-color: #000;
background-image: url(images/fond-panneau.png);
background-position: bottom;
background-repeat: no-repeat;
}

.mobmenu-content {
margin-top: 0 !important;
}