/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ababab;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html {
	background: url(../img/petites1.jpg) fixed center;
	-webkit-background-size: cover;
  -moz-background-size: cover;
  -ms-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
0 ,  , 2 , 3 , 4 , 5{
	background: url(../img/bg1.jpg) fixed center;
}
body{
	max-width:1084px;
	min-width: 320px;
	margin: 0 auto;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 100;
	margin-top: -15px;
}


header{
	background-image: url(../img/background-logo.png);
	background-repeat: no-repeat;
	height: 220px;
}

#logo {
	float:left;
	margin-left: 90px;
}

#nav {
	background-color: rgb(255,255,255);
	background-color: rgba(255,255,255, .7);	
	margin-left: 350px;
}

#nav li {
	display: inline-block;
	padding:10px;
}

#nav li.current a {
	background-color: #ab526b;
	color:white;
}

#nav li a {
	text-decoration: none;
	text-transform: uppercase;
	color:#000;
	padding:12px;
}

#nav li a:hover {
	background-color: #ab526b ;
	color:#FFF;
}

#nav li a:active {
	background-color: #ab3758;
}

h1{
	font-weight: 100;
	text-transform: uppercase;
	font-size: 16px;
}
#titre {
	background-color: rgb(171,82,107);
	background-color: rgba(171,82,107,.8);
	color: #FFF;
	margin-top: 100px;
	float:right;
	padding: 0 20px;
}



#intro {
	background-color: rgb(255,255,255);
	background-color: rgba(255,255,255, .8);
	width:529px;
	padding:20px;
	clear:both; 
	margin-bottom: 40px;
}

#intro h1{
	margin-top: 0;
}

#content{
	float:right;
}

#content a{
	color:#b2274c;
	text-decoration: none;
}

#horaire{
	background-image: url(../img/grandes.jpg);
	
}

#news{
	background-image: url(../img/bg1.jpg);
}

#tarifs{
	background-image: url(../img/bg2.jpg);
}

#contact{
	background-image: url(../img/bg3.jpg);
}

#photos{
	background:#FFF;
	padding: 3px;
}
#photostitre{
	margin: 0;
	width:200px;
}
th, td{
	padding:5px;
	text-align: left;
}

table{
	width:100%;
	margin-bottom: 30px;
}

caption{
	border-bottom: 1px solid #000;
	border-top: 1px solid #000;
	font-size: 1.5em;
	text-transform: uppercase;
}

#jours{
	width:529px;
	padding: 0;
	text-align: center;
	font-weight: bold;
	margin-bottom: 20px;
}

#jours li{
	display: inline-block;
	text-transform: uppercase;

}
#jours li a{
		text-decoration: none;
		color:#000;
		padding:5px;
}

#jours li.active{
	background-color:rgb(171,82,107);
	background-color:rgba(171,82,107,.8);
	color:white;
}

#jours a:hover{
	background-color:rgb(171,82,107);
	background-color:rgba(171,82,107,.8);
	color:white;
}

.tab-pane{
	display: none;	
}

.active{
	display:inherit;
}

blockquote{
	font-size: 1.3em;
	font-style: italic;
	font-family: georgia;

}

blockquote:before {
	margin-top:-20px;
	content: "\201C";
	font-size: 6em;
	color: rgb(171,82,107);
	float:left;
	margin-right: 15px;

	
}

blockquote footer{
	font-size: 0.8em;
	text-align: right;
	font-style: normal;
}

tr td:first-child{
	width:150px;
	vertical-align: top;
}
td i{
	font-size: 0.9em;
}

/***********************Formulaire*********************/
label {
  display: block;
  margin-top: 20px;
  letter-spacing: 2px;
  z-index: 5000px;
  color:#000;
}
form {
  padding:10px;
  box-sizing: border-box;
  border: 1px dotted #ab3758;
  background-color: #FFF;
}

input,
textarea {
  width: 95%;
  height: 27px;
  background: #efefef;
  border: 1px solid #dedede;
  padding: 10px;
  margin-top: 3px;
  font-size: 0.9em;
  color: #000;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
textarea {
  height: 10em;
  background: #efefef;
}
input:focus,
textarea:focus {
  border: 1px solid #97d6eb;
}
#submit {
  width: 30%;
  height: 38px;
  margin-top: 20px;
  border: 1px solid #dedede;
  float: right;
  color: #fff;
  background: #ab3758;
}
#submit:hover {
  opacity: 1;
  background-color: #ababab;
  background-color: #000000;
}
::-webkit-input-placeholder {
  color: #a5a5a5;

}
:-moz-placeholder {
  color: #a5a5a5;
}
.clear{
	clear:both;
}

.tab-content h3{
	text-transform: uppercase;
	text-align: center;
	font-weight: 100;
	font-size: 2em;
	margin-bottom: 20px;
}

.envoi{
	color:#AD526B;
	text-align: center;
	text-transform: uppercase;
	font-size: 1.5em;
}
/***********************************Galerie**********************************/
#album li{
	display: block;
	float:left;
	margin: 2px;
	background-color:rgb(171,82,107);
	width: 150px;
	height: 210px;
}

#album a{
	text-decoration: none;
	color:#FFF;
}

#album span{
	display: block;
	text-align: center;
}

#photos li{
	width: 150px;
	height:150px;
	display: block;
	float:left;
	background-color: rgb(171,82,107);
	background-color: rgba(171,82,107,.8);
	
}

#photos img{
	max-width: 100%;
	width:auto;
	max-height:150px;
	margin: 0 auto;
	display: block;
}

#photos a{
	text-decoration: none;
	color:#FFF;
}

#galerie #content{
	width:100%;
}

#galerie #titre{
	float:none;
	width:200px;
	padding: 1em;
	margin-bottom: -20px;
}
.clear{
	clear:both;
}

#albumsphoto {
	background-color: rgb(255,255,255);
	background-color: rgba(255,255,255,.8);
}

#albumsphoto ul{
	padding: 3px;
}
.news{
	border-bottom: 1px solid #ababab;
	padding: 10px 0;
}
.news:last-child{
	border-bottom: none;
}
.news h2{
	margin-bottom: 0;
}


.news p{
	margin-top: 5px;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen
and (min-width : 320px)
and (max-width : 900px)
{
	body{
		width:100%;
		margin-top: 0;
	}
	#content{ 
		float:none;
		margin: 0 auto;
	}
	
	#intro{
		margin: 0 auto;
	}
	
	#titre{
		float:none;
		text-align: center;
		padding: 5px;
		margin: 0 auto;
		width:25%;
	}	
	
	#logo{
		float:none;
	}
	#nav{
		margin: 0 auto;
		float: none;
		text-align: center;
	}
	#nav li{
		padding-left: 5px;
		padding-right: 5px;
		
	}
	#nav li a{
		padding-left: 5px;
		padding-right: 5px;
	}
}

@media only screen
and (min-width : 320px)
and (max-width : 500px)
{
	
	#content, header, #intro{
		width:100%;
		box-sizing: border-box;
	}
	
	header>a{
		text-align: center;
	}
	#logo{
		text-align: center;
		margin-bottom: 15px;
	}
	#titre{
		width:50%;
		padding: 0;
		margin:0;
		box-sizing: border-box;
		text-align: center;
	}	
	
	#nav{
		padding: 0;
	}
	#nav li{
		display: block;
		text-align: center;
		}
	#titre{
		margin-top: 150px;
		width:100%;
		padding: 5px;
	}
	
	#intro{
		box-sizing: border-box;
		padding: 10px;;
	}
	
	#intro ul{
		box-sizing: border-box;
		padding-left: 0;
		list-style-type: none;
	}
	

}
@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}