@charset "UTF-8";
/*
Theme Name: Mayor Sanitaire
Theme URI: https://karac.ch
Author: karac web
Author URI: https://karac.ch
Version: 1.0
Text Domain: mayor
*/

/* Couleurs */
:root {
  --primary: #009ee3;
  --light-bg: #fff;
  --medium-bg: #fafafa;
  --dark-bg: #464646;
  --light-color: var(--light-bg);
}
/* END Couleurs */

/* Fonts */
@font-face {
  font-family: montSerratRegular;
  src: url(font/Montserrat-Regular.ttf);
}
@font-face {
  font-family: montSerratMedium;
  src: url(font/Montserrat-Medium.ttf);
}
@font-face {
  font-family: montSerratBold;
  src: url(font/Montserrat-Bold.ttf);
}

/* Coller le footer en bas de l'écran */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
#main-page-content {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

/* END Fonts */

body {
  font-family: montSerratRegular;
}
h2 {
  /*font-family: montSerratBold;*/
  font-family: montSerratRegular;
  color: var(--primary);
  /*text-transform: uppercase;*/
}
h3 {
  font-family: montSerratMedium;
  font-size: 24px;
}
button,
button:focus { 
  outline: none; 
  border: 0;
}

.t-dark-bg {
  background: var(--medium-bg);
}
.t-primary-bg {
  background: var(--primary);
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden;
}

.pt-6 {
  padding-top: 64px;
}
.pb-6 {
  padding-bottom: 64px;
}
.pt-xl {
  padding-top: 120px;
}
.pb-xl {
  padding-bottom: 120px;
}
.mt-xl {
  margin-top: 120px;
}
.mb-xl {
  margin-bottom: 120px;
}
.mt-xxl {
  margin-top: 160px;
}
.mb-xxl {
  margin-bottom: 160px;
}
.pe-6 {
  padding-right: 64px;
}
.mt-6 {
  margin-top: 64px;
}
.mb-6 {
  margin-bottom: 64px;
}
.mt-7 {
  margin-top: 80px;
}
.mb-7 {
  margin-bottom: 80px;
}
.mt-nav {
  margin-top: 112px;
}

/* END Polices */

/* Navbar */
#top-page {
  margin-top: 76px;
}
.top-page-info {
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: center;
  align-items: left;
  flex-direction: column;
}
.navbar-header {
  background-color: var(--light-bg);
}
.navbar-brand img {
  height: 86px;
}
.nav-link.active {
  font-family: montSerratBold;
}
#burger-icon {
  display: block;
  width: 50px;
}
.burger-line{
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-miterlimit: 10;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-nav .nav-link {
  padding: 20px 40px;
  color: var(--primary);
  text-transform: uppercase;
}

/* top page */
#top-page p {
  font-size: 24px;
  font-weight: 600;
  color: var(--light-bg);
  line-height: 1.2;
}
#top-page img {
  object-fit: cover;
  height: 100%;
}
/* custom button */
.custom-button {
  padding: 14px 40px;
  border: 1px solid var(--primary);
  border-radius: 50px;
  background-color: var(--primary);
  color: var(--light-color);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}
.custom-button:hover {
  background: var(--light-bg);
  color: var(--primary);
  font-family: montSerratMedium;
}
.custom-button.t-light {
  border: 1px solid var(--light-bg);
  background-color: var(--light-bg);
  color: var(--primary);
  font-family: montSerratMedium;
}
.custom-button.t-light:hover {
  border: 1px solid var(--light-bg);
  background-color: var(--primary);
  color: var(--light-color);
  font-family: montSerratMedium;
}
.custom-button.t-long {
  padding-left: 20%;
  padding-right: 20%;
}
.custom-button.t-xlong {
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}
.custom-button.t-normalcase {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 24px;
  padding-right: 24px;
  text-transform: none;
  font-family: montSerratMedium;
}
.custom-button.t-full {
  display: block;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 0;
  padding-right: 0;
  text-transform: none;
}

.custom-card {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: var(--primary);
  color: var(--light-color);
  transition: all 0.3s ease;
}
.custom-card.t-higher:hover .custom-card-foldable-container {
  overflow-y: scroll;
}
.custom-card:hover .custom-card-foldable-container {
  height: 100%;
}
.custom-card h2 {
  padding-bottom: 2rem;
  color: var(--light-color);
  font-size: 26px;
  font-family: montSerratMedium;
}
.custom-card .custom-button {
  display: inline-block;
  border: 1px solid var(--primary);
  background-color: var(--light-bg);
  color: var(--primary);
}
.custom-card .custom-button:hover {
  border: 1px solid var(--light-bg);
  background-color: var(--primary);
  color: var(--light-color);
}
.custom-card .bg-image {
  padding-top: 100px;
  object-fit: cover;
  width: 100%;
  height: 600px;
}
.custom-card-foldable-container {
  position: absolute;
  padding: 36px;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--primary);
  transition: all 0.3s ease;
  /*overflow: scroll;*/
}

.custom-card-nofoldable-container{
  position: absolute;
  padding: 36px;
  overflow: hidden;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  transition: all 0.3s ease;
}
.custom-card-nofoldable-container h2{
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.custom-card-nofoldable-content, .custom-card-nofoldable-content-grand{
  padding-top: 1.4rem;
}

.custom-card-content a{
  color: var(--light-color);
  text-decoration: underline;
}
.custom-card-content ul{
  padding-left: 1rem;
}
.custom-card-content ul li{
  padding-left: 0.4rem;
}

/* END custom */
/* fixed button */
.fixed-button {
  position: fixed;
  z-index: 10;
  bottom: 60px;
  right: 20px;
  padding: 6px 6px;
  border: 2px solid white;
  border-radius: 50px;
  background-color: var(--primary);
  color: var(--light-color);
  text-decoration: none;
  overflow-x: hidden;
}
.fixed-button:hover {
  color: var(--light-color);
}
.fixed-button span {
  display: inline-block;
  width: 0;
  transition: all 0.3s ease;
}
.fixed-button:hover span {
  width: 110px;
}
.fixed-button.active span {
  width: 110px;
}
#icon-tool {
  display: inline-block;
  width: 60px;
}
#icon-tool path {
  fill: var(--light-bg);
}
/* END fixed button */
/* masonry */
.grid-item {
  position: relative;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 20px;
  float: left;
  overflow: hidden;
}
.grid-item--small {
  /*height: calc(180px - 10px);*/
  height: 360px;
  width: 100%;
}

.grid-item--big { 
  height: 360px;
  width: 100%;
}

.grid-item img,
.grid-item--big img {
  width: 100%;
  /*height: 100%;*/
  height: 360px;
  object-fit: cover;
}
.grid-item-info {
  position: absolute;
  z-index: 1;
  padding: 20px;
  height: 76px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--light-color);
  text-align: left;
  transition: all 0.3s ease;
}
.grid-item:hover .grid-item-info {
  height: 100%;
}
.grid-item-info h3,
.grid-item-info .team-position {
  display: block;
  font-size: 16px;
  font-family: montSerratMedium;
}

.grid-item-info .custom-button {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-block;
  opacity: 0;
}
.grid-item:hover .custom-button {
  opacity: 1;
}


/* Accueil */
#activites_secteurs h2{
  text-align: center;
}
/* END Accueil */


/* activity */
.raccourcis_services a{
  margin-left: 4px;
  margin-right: 4px;
  display:block;
}


.activity h1 {
  font-family: montSerratMedium;
  color: var(--primary);
  /*text-transform: uppercase;*/
  font-size: 2rem;
}
.activity-detail .col-md-6 {
  min-height: 500px;
}

.activity-detail .col-md-6 img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.activity-detail h2 {
  padding-bottom: 1rem;
  font-family: montSerratMedium;
  font-size: 24px;
  text-transform: none;
  color: var(--primary);
}
.activity-detail .custom-button {
  display: inline-block;
}
.activity-detail-content a {
  text-decoration: none;
  color: var(--primary);
}
.activity-detail-content ul {
  list-style-type: none;
  padding-left: 0;
}
.content-container {
  height: 100%;
}
/*.activity-detail-content ul li::before {
  content: '• ';
}*/
.activity-detail img {
  width: 100%;
  height: 404px;
  object-fit: cover;
}
.activity ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style-type: none;
}
/*.activity ul li::before {
  content: '• ';
}*/
.activity a:not(.custom-button) {
  color: var(--primary);
}
.activity img {
  border-radius: 50%;
}
.activity.t-quote {
  padding-top: 80px;
  padding-bottom: 80px;
}
.activity.t-quote h1 {
  margin-bottom: 0;
  font-size: 26px;
  text-transform: uppercase;
}
#bureau, #montage, #entretien  {
  scroll-margin-top: 80px;
}
/*END Navbar */
/* General */

/* quote */
#quote blockquote {
  text-transform: uppercase;
  font-style: italic;
  font-size: 36px;
  line-height: 1.2;
}
/* END quote */
/* information */
#information .t-dark {
  background-color: var(--dark-bg);
  color: var(--light-color);
}
#information .t-light {
  background-color: var(--light-bg);
  color: var(--dark-bg);
}
.information-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
#information ul {
  padding-left: 20px;
}
#information .custom-button {
  display: inline-block;
}
.information-text {
  padding-left: 40px;
  padding-right: 40px;
}
.information-text ul,
.activity-detail-content ul {
  padding-left: 1rem;
  list-style-position: outside;
  list-style-image: url('img/bullet.png');
}
.information-text ul > li,
.activity-detail-content ul > li {
  padding-left: 0.8rem;
  padding-bottom: 0.4rem;
}
/* END information */

/* achievement */
.achievement-img {
  height: 360px;
}
.achievement-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(50%);
}
.achievement-info {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 20px;
  width: 80%;
  transform: translateY(-50%);
  color: var(--light-color);
  display: block;
  font-size: 16px;
  opacity: 1;
  transition: all 0.3s ease;
}
.achievement-info h3, 
.achievement-info h4 {
  font-family: montSerratMedium;
  font-size: 16px;
}
.achievement-info h3 {
  font-size: 24px;
  text-transform: uppercase;
}

.achievements span {
  display: block;
}
.achievements button {
  padding: 0;
  text-align: left;
  overflow: hidden;
  background-color: transparent;
}
.achievement-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  background-color: var(--primary);
  transition: all 0.3s ease;
}
.achievements button:hover .achievement-overlay {
  width: 100%;
}
.achievements button:hover .achievement-info {
  opacity: 1;
}
.modal-header {
  position: relative;
  flex-direction: column;
  background: var(--primary);
  color: var(--light-color);
  border-bottom: 0;
}
.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.modal-body {
  padding: 0;
  overflow: hidden;
}
.modal-body img {
  width: 100%;
  height: 594px;
  object-fit: cover;
}
.modal-info {
  padding: 30px;
  background-color: var(--primary);
  color: var(--light-color);
}
.swiper-pagination span {
  display: inline-block;
}
.swiper-pagination {
  color: var(--light-color);
}
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--primary);
}
/* END achievement */

/* Contact */
.contact strong {
  color: var(--primary);
}
.contact a {
  color: var(--primary);
}
.gmap iframe {
  width: 100%;
}
/* END Contact */

/* footer */
footer {
  position: relative;
  background-color: var(--primary);
  font-size: 16px;
  color: var(--light-color);
  overflow: hidden;
}
footer a:not(.custom-button) {
  text-decoration: none;
  color: var(--light-color);
}
footer address {
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}
footer h4, h5 {
  margin-bottom: 0;
  font-family: montSerratBold;
  font-size: 16px;
  text-transform: uppercase;
}
.dark-bg {
  position: absolute;
  z-index: 0;
  left: -1000px;
  right: -1000px;
  top: 0;
  bottom: -5rem;
  background-color: var(--dark-bg);
}
.footer-buttons {
  margin-top: 40px;
}
.footer-right-container {
  position: relative;
}
.footer-right-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
footer ul {
  margin-top: 16px;
  list-style-type: none;
  padding-left: 0;
  text-transform: uppercase;
}
footer ul li {
  padding-bottom: 16px;
}
/* END footer */

/* END General */
@media (min-width: 768px) {
  .grid-sizer,
  .grid-item--small {
    height: 360px;
    width: calc(50% - 12px);
    padding-bottom: calc(50% - 12px);
  }
  .grid-item--big {
    height: 360px;
    width: calc(50% - 12px);
    padding-bottom: calc(50% - 12px);
  }

  .grid-item--small > div,
  .grid-item--big > div {
    position: absolute;
    height: 100%;
    width: 100%;
  }
  .grid-item img,
  .grid-item--big img {
    width: 100%;
    height: 100%;
  }
  .pb-md-6 {
    padding-bottom: 6rem;
  }
  .pt-md-xl {
    padding-top: 120px !important;
  }
  .pb-md-xl {
    padding-bottom: 120px !important;
  }
  #quote blockquote {
    text-transform: uppercase;
    font-style: italic;
    font-size: 44px;
    line-height: 1.2;
  }
  .mb-md-xl {
    margin-bottom: 120px;
  }
  .mt-md-xxl {
    margin-top: 160px;
  }
  .achievement-img img {
    filter: brightness(100%);
  }
  .achievement-info {
    left: 60px;
    opacity: 0;
  }
  .raccourcis_services a{
    display:inline;
  }
  .fixed-button {
    position: fixed;
    z-index: 10;
    bottom: 60px;
    right: 20px;
    padding: 6px 6px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    background-color: var(--primary);
    color: var(--light-color);
    text-decoration: none;
    overflow-x: hidden;
  }
  #top-page p {
    font-size: 30px;
  }
  .custom-card h2 {
    font-size: 32px;
  }
  .activity.t-quote h1 {
    font-size: 36px;
  }
  .footer-right-content {
    text-align: left;
  }
  footer address {
    text-align: left;
  }
  .footer ul {  
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}
@media (min-width: 992px) {
  .dark-bg {
    left: -1000px;
    right: -1000px;
    bottom: -3rem;
  }
  .custom-button.t-xlong {
    padding-left: 22%;
    padding-right: 22%;
  }
  #activites_secteurs h2{
    text-align: left;
  }
  .custom-card-nofoldable-content-grand{
    padding-top: 0px;
  }
}
@media (min-width: 1200px) {
  #information .row>* {
    padding-left: 0;
    padding-right: 0;
  }
  .information-text {
    padding-left: 0;
    padding-right: 0;
  }
  .dark-bg {
    left: 0;
    right: -10000px;
    top: -3rem;
    bottom: -3rem;
  }
}

@media (min-width: 1400px) {
  .grid-sizer {
    height: calc(180px - 10px);
    width: calc(33% - 20px);
  }

  .grid-item--small {
    height: calc(180px - 10px);
    /*width: calc(20% - 24px);*/
    width: calc(33% - 20px);
    padding-bottom: calc(20% - 20px);
  }
  .grid-item--big {
    /*width: calc(40% - 24px);*/
    width: calc(66% - 20px);
    padding-bottom: calc(40% - 20px);
    height: 0;
  }
}
