
/* ------------------- Basic Layout Styles ---------------- */

html,
body,
#page  {
  height: 100%;
}
#page-wrapper {
  min-height: 100%;
}
#main,
.main {
	clear:both;
}
body .image-head.video,
#header div.section,
#main-menu-links,
#featured div.section,
#messages div.section,
#main,
.main,
#main-menu #main-menu-links,
#header .section.clearfix,
#triptych,
#footer-columns,
#footer {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  float:none;
}
#header div.section {
  position: relative;
}

body.logged-in.toolbar .region-header{
	top: -79px;
}

#toolbar {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.region-header {
margin: 0px 5px;
position: relative;
  top: -54px;
}

#secondary-menu {
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
}
#main-wrapper {
  clear: both;
  position: relative;
}
body.not-front #main-wrapper {
	padding-bottom: 30px;
	position: relative;
	clear: both;
}

#content .section,
.sidebar .section {
    padding: 0;
    position: relative;
}

#breadcrumb {
  margin: 0 15px;
}
#footer-wrapper {
  padding: 35px 0 30px;
}
#footer-wrapper .section {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 15px;
}
.region-triptych-first,
.region-triptych-middle,
.region-triptych-middle-two {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0 15px 0 0;
}
.region-triptych-last {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0px;
}
.region-footer-firstcolumn,
.region-footer-secondcolumn,
.region-footer-thirdcolumn,
.region-footer-fourthcolumn {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 10px;
}

@media all and (min-width: 560px) and (max-width: 850px) {

  #sidebar-first,
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-last,
  .region-footer-firstcolumn,
  .region-footer-secondcolumn,
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    display: inline;
    float: left; /* LTR */
    position: relative;
  }

  #sidebar-second {
    margin-left: 50%; /* LTR */
  }

  .one-sidebar #sidebar-second {
    margin-left: 0; /* LTR */
  }
  #block-views-activit-s-agenda-block .swiper-button-next.one, #block-views-activit-s-agenda-block .swiper-button-prev.one {
    bottom: 34px;
  }
  .view-activit-s-agenda .view-footer a {
    margin-top: 35px;
  }
 .region-triptych-first,
 .region-triptych-middle, 
 .region-triptych-middle-two, 
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-last {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 1% 0;
    width: 33.333%;
    float: left;
  }
  .region-footer-firstcolumn,
  .region-footer-secondcolumn {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 1% 0;
    width: 100%;
  }
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 1% 0;
    width: 100%;
  }
	#triptych-wrapper img {
		height: auto!important;
		width: 100%!important;
	}

}

@media all and (min-width: 851px) {
  body .image-head.video,
  #header div.section,
  #main-menu-links,
  #featured div.section,
  #messages div.section,
  #main,
  .main,
  #main-menu #main-menu-links,
  #header .section.clearfix,
  #triptych,
  #footer-columns,
  #footer,
  div#triptych.clearfix {
    max-width: calc(100% - 30px);
	  position: relative;
  }

  #content,
  #sidebar-first,
  #sidebar-second,
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-middle-two,
  .region-triptych-last,
  .region-footer-firstcolumn,
  .region-footer-secondcolumn,
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    display: inline;
    float: left; /* LTR */
    position: relative;
  }
  .two-sidebars #content {
    margin-left: 25%;
    margin-right: 25%;
    width: 50%;
  }
  body.front #content {
    width: 100%;
  }

body.not-front #content {
	position: relative;
	margin-top: 0px;
}

body.node-type-webform #content,
body.page-mecenat #content,
body.page-activites #content {
	margin-top: 20px;
}

  .no-sidebars #content {
    width: 100%;
  }
   body.front #content {
    margin-left: 0%; /* LTR */
    margin-right: 0; /* LTR */
  }
  
   .sidebar-first #content {
    margin-left: 25%; /* LTR */
    margin-right: 0; /* LTR */
  }
  
  .sidebar-first #content {
    margin-left: 25%; /* LTR */
    margin-right: 0; /* LTR */
  }
  .sidebar-second #content {
    margin-left: 0; /* LTR */
  }
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-middle-two,
  .region-triptych-last {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
	height: 192px;
  }
  
   #triptych .region{
    width: calc(32% - 2px);
  }

  #triptych .region-triptych-middle {
  width: calc(34% - 2px);
  }
  .region-footer-secondcolumn,
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
    /*width: 30%;*/
  }
   .region-footer-firstcolumn{
    width: 40%;
  }
}

@media all and (min-width: 1230px) {
  body .image-head.video,
  #header div.section,
  #main-menu-links,
  #featured div.section,
  #messages div.section,
  #main,
  .main,
  #main-menu #main-menu-links,
  #header .section.clearfix,
  #triptych,
  #footer-columns,
  #footer,
  div#triptych.clearfix{
    max-width: 1200px;
	  position: relative;
  }
}
