/*
 * 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
   ========================================================================== */

body { font-family: 'kabel_md_btmedium'; color:#343434 }
#fixedbg{
    background:#f6f6f6 url(../img/agence-immobiliere-beaune.jpg) no-repeat fixed;
    height:100%;
    position:fixed;
    width:100%;
    z-index:-1;
    top:0;
}
hr {
    display: block; height: 1px; border: 0;
    border-top: 1px solid #2663a6; margin: 1em 0; padding: 0;
	margin-left:120px;
}

img { vertical-align: middle; }
a { color:#2e000a; text-decoration:none } a:hover { text-decoration:underline }
.bleu { color:#2663a6 } .orange { color:#f09731 } .vert { color:#0099a1 }

h1 { color:#fff; text-align:right; font-size:1.8em; }
h2 { font-size:1.3em }
h3 { color:#fff } h3.orange { background-image:url(../img/fd-vendre.png); color:#fff } h3.vert { background-image:url(../img/fd-louer.png); color:#fff }

ol { margin-left:120px; margin-right:50px; }

.relative {position: relative;}
.tac {text-align: center;}
/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */
.chromeframe {
    margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
header { background-color:#f6f6f6; }
	header>div:first-child { height:15px; background-color:#2663a6; margin-bottom:30px; }
	header #logo { float:left; width:34%; _width:36%; text-align:right; background-color:#fff; height:148px; padding:0 1%; }
	header #logo img { margin-top:22px }
	header #agence { width:24%; margin:0px auto; background-color:#2663a6; height:148px; padding:0 1%; } 
	header #agence img { margin-top:22px }
	header #tel { display:none }
	header nav { float:right; width:34%; _width:36%; background-color:#fff; line-height:1.5em; height:133px; padding:15px 1% 0 1%; }
	header nav a { color:#2663a6 }
	.shadow { box-shadow:0px 0px 5px #000; }
summary { text-align:center; padding:5px 0 25px 0; background-color:#f6f6f6; }
section>h2, section>p { margin-left:120px }
section>h3 { margin:0; padding:0 15px 0 120px; float:left; height:39px; line-height:39px; background-image:url(../img/fd-cnc.png); }
	section>h3 a { color:#fff }
 } section>h3:last-of-type { background-image:url(../img/fd-louer.png); }
section>p { margin-right:50px; text-align:justify }
section>div.annonce { margin-left:120px; height:248px; overflow:hidden }
section>div.annonce article { float:left; width:210px; margin-right:35px; margin-bottom:20px; border-width:1px 0 0 1px; border-style:solid; position:relative }
section>div.annonce article ul { position:relative; height:210px; list-style:none; margin:0; padding:0 } section>div article ul>li { position:absolute }
section>div.annonce article>div { position:absolute; top:110px; width:210px; text-align:center; padding:10px 0; z-index:100 }
section>div.annonce article>div a { color:#fff; font-weight:bold }

section>div.annonce article figcaption { text-align:center; padding:0px 5px; }
section #footer { width:100% }
section #footer .coord { padding:10px 0 10px 120px }

.qsn { padding:10px 100px 10px 120px }
/* ==========================================================================
   Page contact
   ========================================================================== */
fieldset{ margin-left:120px; border:0 }
   fieldset input { 
   	margin:3px 10px; width:400px; border:1px solid #2663a6; padding:3px 0; background:#fff url(../img/ico_validation.png) 370px 24px no-repeat; display: inline-block; 
	-moz-transition: background-color 1s ease; -webkit-transition: background-color 1s ease; -o-transition: background-color 1s ease; transition: background-color 1s ease;
   }
   fieldset textarea { margin:3px 10px; border:1px solid #2663a6; width:400px; height:170px; }
   fieldset input[type=submit] { width:auto; padding:5px 20px; background-color:#2663a6; color:#fff; }
   fieldset input[type=submit]:hover { box-shadow:-1px 1px 5px #000 inset; border:1px solid #9a9a9a }
   
	#signup fieldset input:required:valid { background-color: #fff;	background-position: 370px -61px; }
	/* Enhanced error styling */
	#signup input.error { background-color: pink; background-position: 370px 3px; outline: none; }
	#signup input.required { background-color: #fff; background-position: 370px -29px; }
	#signup input.valid { background-color: #fff; background-position: 370px -61px;	}
	
	#signup input.error::-webkit-input-placeholder,	#signup inputerror :-moz-placeholder { color: #fff;	}
/* ==========================================================================
   Page biens
   ========================================================================== */
aside { margin:0 30px 0 120px; float:left; clear:both; }
#list_bien { margin-top:20px; height:auto; border-left:1px dotted #f09731; padding-left:20px; }
	#list_bien #navigation { margin-bottom:12px; }
	#list_bien #navigation_b { clear:both; text-align:right }
#tri { float:right; margin-right:20px; }
#tri span { cursor:pointer }
.ordersel { font-weight:bold; text-decoration:underline }
.suite { float:right; margin-bottom:10px } .suite a { text-decoration:none }
#photos { float:left; width:420px; }
#diapo { height:440px; padding:0 30px; border-right:1px dotted; border-left:1px dotted; margin-right:30px; }
#diapo #image { width:330px; height:330px; border-left:1px solid; border-top:1px solid; }
#diapo #image>a>img { position:absolute; }

.infiniteCarousel { width: 330px;  position: relative; }
.infiniteCarousel .wrapper {
  width: 270px; /* .infiniteCarousel width - (.wrapper margin-left + .wrapper margin-right) */
  height: 105px; 
  overflow: auto; margin: 0 30px;
  position: absolute;  top: 0;
}

.infiniteCarousel .wrapper ul {
  list-style-image:none; list-style-position:outside; list-style-type:none;
  margin:0; padding:0; position: absolute; top: 0;
}

.infiniteCarousel ul li {
  display:block; float:left;
  padding: 10px 10px 0 10px;
  height: 70px; width: 70px;
  cursor:pointer
}

.infiniteCarousel .arrow {
  display: block; height: 30px; width: 30px;
  background: url(../img/picto-immobilier/arrow.png) no-repeat 0 0;
  text-indent: -999px;
  position: absolute; top: 30px;
  cursor: pointer; outline: 0;
}

.infiniteCarousel .forward { background-position: 0 0;  right: 0; }
.infiniteCarousel .back { background-position: 0 -66px; left: 0; }
.infiniteCarousel .forward:hover { background-position: 0 -33px; }
.infiniteCarousel .back:hover { background-position: 0 -99px; }

.sidebar { float:left }
#dpe { width:100% }
#dpe div { background-image:url(../img/dpe-immo.png); width:50px; height:17px; _height:20px; color:#fff; text-align:right; }
.text {   padding:20px; border:1px solid; }
#description { float:left; margin:20px 0px 0px -90px;width:440px; }
.text hr { margin:0; }
.btn-contact {  padding:20px; text-align:center; }
.btn-orange { background-color:#f09731;  -webkit-transition: background-color 1000ms linear; -moz-transition: background-color 1000ms linear; -o-transition: background-color 1000ms linear; -ms-transition: background-color 1000ms linear; transition: background-color 1000ms linear;}
.btn-vert { background-color:#0099a1;  -webkit-transition: background-color 1000ms linear; -moz-transition: background-color 1000ms linear; -o-transition: background-color 1000ms linear; -ms-transition: background-color 1000ms linear; transition: background-color 1000ms linear;}
.btn-contact a { color:#fff }
.btn-orange:hover {
	cursor:pointer;	background-color:#df6f00; -webkit-transition: background-color 500ms linear; -moz-transition: background-color 500ms linear; -o-transition: background-color 500ms linear; -ms-transition: background-color 500ms linear; transition: background-color 500ms linear;
}
.btn-vert:hover {
	cursor:pointer;	background-color:#007981; -webkit-transition: background-color 500ms linear; -moz-transition: background-color 500ms linear; -o-transition: background-color 500ms linear; -ms-transition: background-color 500ms linear; transition: background-color 500ms linear;
}
#prix { background-color:#333333; font-size:1.3em; font-weight:bold; padding:10px; text-align:center; margin:10px 0}

/* DPE biens */
.noteDpe {position: absolute; font-weight: bold;}
.dpe {left: 23px;}
.dpe2 {left: 90px;}
.dpeA, .dpe2A {top: 13%;}
.dpeB, .dpe2B {top: 21%;}
.dpeC, .dpe2C {top: 32%;}
.dpeD, .dpe2D {top: 42%;}
.dpeE, .dpe2E {top: 53%;}
.dpeF, .dpe2F {top: 64%;}
.dpeG, .dpe2G {top: 75%;}

/* GES biens */
.noteGes {position: absolute; font-weight: bold;}
.gesA {top: 37%; left: 140px;}
.gesB {top: 43.5%; left: 160px;}
.gesC {top: 50%; left: 180px;}
.gesD {top: 56.5%; left: 200px;}
.gesE {top: 63%; left: 220px;}
.gesF {top: 70%; left: 240px;}
.gesG {top: 76.5%; left: 245px;}

/* ==========================================================================
   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: 150%;
}
/* * 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.
   ========================================================================== */

@media only screen and (max-width: 1141px) {
    /* Style adjustments for viewports that meet the condition */
	h1 {font-size:1.4em }
}

@media only screen and (max-width: 951px) {
	.sidebar { clear:both; margin:30px 0 0 120px; width:480px; }
}

@media only screen and (max-width: 810px) {
	#logo img {max-width:100% }
	#agence span { display:none }
}

@media only screen and (max-width: 628px) {
	body { background-color:#f6f6f6 }
	#fixedbg { display:none }
	section>h2, section>p { margin:10px 20px }
	section>h3 { padding-left:20px; float:none; margin:10px 0 -10px 0 }
	img[alt="Acheter immobilier Beaune"], img[alt="Location immobilier Beaune"], section a.orange, section a.vert, section img[alt="CNC Expertise"], .suite, .retour { display:none }	
	section>div.annonce { margin-left:20px; }
	#footer { border-top:1px solid #2663a6 }
	#footer td.coord { padding-left:10px; } 
	
	.qsn { padding:0 20px 0 20px }
	hr { margin:10px 0 }
	section ol { margin:10px 50px 10px 40px; }
	fieldset { margin-left:20px }
	fieldset input { width:100% } fieldset textarea { width:100% }
	
	aside { margin-left:20px }
	.sidebar {margin-left:20px }
}

@media only screen and (max-width: 530px) {
	header #logo { float:none; width:100%; text-align:center; margin:0; padding:0; }
	header #agence { width:100%; height:auto; padding-bottom:20px;}
	header #agence h1 {text-align:center }
	header #agence img { display:none }
	header #agence span { display:inline }
	header nav { float:none; width:100%; text-align:center; padding:0; margin:10px 0}
	
	section aside { display:none }
	#photos {width:100% }
	#description { width:auto; margin:20px }
	.sidebar { width:90%;}
	
	#diapo { height:auto }
	#diapo #image, #diapo #image>a>img { max-width:80% }
	 .infiniteCarousel { display:none }
	
	
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    body {
        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; }
	
	header { background:#fff }
	#fixedbg, header nav, summary, section .suite, section a.retour, section .im-titre, section>aside>a, .infiniteCarousel, section aside, .btn-contact, section #footer a, #dpe #ti-ges, #dpe #ges, .trop  { display:none }
	header #agence {  background-color:#2663a6; width:auto; } header #agence img { display:none } header #agence #tel { display:block; font-size:.9em; }
	
	section h3.orange, section h3.vert { background:none; color:#000; font-size:1.4em; margin:10px 0 -20px 0; padding:0; float:none } .im-titre { display:none }
	#photos { width:100%; } #photos #diapo { height:200px; border:none; padding:0 } #photos #diapo #image { width:auto; border:0; margin:0; padding:0 }
	#photos #diapo #image>a>img { position:static; float:left; width:180px; margin:0 10px 10px 0}
	section #description { width:auto; margin:10px 0 20px 0; padding:10px }
	.sidebar { width:auto; width:100%; padding:0 }
	#listing { width:45%; float:left }
	#prix { width:45%; float:right; padding:0; margin-top:0; }
	#dpe { width:45%; float:right }
	#footer td { padding:0; text-align:center; border-top:1px solid #2663a6 } 
}

/* Font face */
@font-face {
    font-family: 'kabel_md_btmedium';
    src: url('5665_0-webfont.eot');
    src: url('5665_0-webfont.eot?#iefix') format('embedded-opentype'),
         url('5665_0-webfont.woff') format('woff'),
         url('5665_0-webfont.ttf') format('truetype'),
         url('5665_0-webfont.svg#kabel_md_btmedium') format('svg');
    font-weight: normal; font-style: normal;
}

@font-face {
    font-family: 'kabel_md_btbold';
    src: url('5680_0-webfont.eot');
    src: url('5680_0-webfont.eot?#iefix') format('embedded-opentype'),
         url('5680_0-webfont.woff') format('woff'),
         url('5680_0-webfont.ttf') format('truetype'),
         url('5680_0-webfont.svg#kabel_md_btbold') format('svg');
    font-weight: normal; font-style: normal;
}