:root {
  --text-primary-color: #28a7e9;
  --text-secondary-color: #ffffff;
}

body {
  background: #303030;
  color: var(--text-secondary-color);
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  overflow-x: hidden; /* prevent horizontal scrollbar from appearing */
}

a {
  color: #47c6f8;
}

a:hover {
  color: #0ff;
}

/* start h2 */
h2 {
  text-align: center;
  font-size: 40px;
  padding-bottom: 40px;
}
h2 span {
  color: #28a7e9;
  font-weight: bold;
}
/* end h2 */
.btn-contact {
  width: 100%;
  text-align: center;
}
/* start about team service portfolio contact */
#about,
#team,
#service,
#portfolio,
#contact {
  padding-top: 60px;
  padding-bottom: 40px;
}
/* end about team service portfolio contact */

/* start preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  background: none repeat scroll 0 0 #ffffff;
}
.sk-spinner-wave.sk-spinner {
  width: 50px;
  height: 30px;
  text-align: center;
  font-size: 10px;
}
.sk-spinner-wave div {
  background-color: #333;
  height: 100%;
  width: 6px;
  display: inline-block;
  -webkit-animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
  animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
}
.sk-spinner-wave .sk-rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}
.sk-spinner-wave .sk-rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
.sk-spinner-wave .sk-rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}
.sk-spinner-wave .sk-rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-waveStretchDelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
  }

  20% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}

@keyframes sk-waveStretchDelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
    transform: scaleY(0.4);
  }

  20% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}
/* end preloader */

/* start nagivation */
.navbar-default {
  background: #303030;
  border: none;
  box-shadow: none;
  margin: 0 !important;
}

.navbar .navbar-nav a {
  color: white !important;
}

.navbar .navbar-nav a.current {
  color: var(--text-primary-color) !important;
}

.navbar .navbar-nav a {
  color: #505050 !important;
}

.navbar-default .navbar-brand {
  font-weight: 500;
  font-size: 30px;
  height: 70px;
  line-height: 40px;
  padding: 12px 0px 0px 12px;
  padding: 5px;
}
.navbar-brand img {
  height: 100%;
}
.navbar-default .navbar-nav li a {
  font-weight: bold;
  font-size: 13px;
  height: 70px;
  line-height: 40px;
}

.navbar-default .navbar-nav > li > a.current {
  color: var(--text-primary-color);
}
.custom-nav {
  border-radius: 0;
  width: 100%;
  z-index: 1000;
}
.sticky {
  position: fixed;
  left: 0;
  top: 0;
}
/* end navigation */

/* start home */
#home {
  background: url("../images/home-bg.jpg") no-repeat;
  background-size: cover;
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: calc(100vh - 70px);
}
#home h1 {
  font-weight: 300;
  font-size: 70px;
  padding-bottom: 10px;
}
#home h1 span {
  color: var(--text-primary-color);
  font-weight: bold;
}
#home .btn {
  background: transparent;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  width: 180px;
  height: 60px;
  padding-top: 18px;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
#home .btn:hover {
  background: var(--text-primary-color);
  border-color: transparent;
}
.element {
  height: 60px;
  font-size: 16px;
  text-align: center;
}
/* end home */

/* start about */
#about .about-description {
  font-size: 1.25em;
  line-height: 1.5em;
  margin-bottom: 2em;
}
#about .about-image {
  max-height: 600px;
  margin-left: auto;
  border-radius: 15%;
  margin-bottom: 1em;
}
/* end about */

/* start service */
#service .col-md-4 {
  padding: 40px;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

#service .active {
  background: #505050;
  padding: 40px;
}
#service .service-icon {
  border-radius: 2px;
  margin: auto;
  fill: #fff;
  font-size: 50px;
  width: 100px;
  height: 100px;
  line-height: 100px;
  text-align: center;
}
#service h4 {
  color: var(--text-primary-color);
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 14px;
}
/* end service */

/* start portfolio */
#portfolio {
  padding-bottom: 80px;
}

#portfolio .portfolio-videos video {
  max-height: 325px;
}

#portfolio .portfolio-videos video:not(.in-progress) {
  cursor: pointer;
  height: 325px;
}

#portfolio .portfolio-videos .video-js .vjs-big-play-button {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#portfolio .portfolio-galery {
  text-align: center;
}

#portfolio .portfolio-galery .img-responsive:not(.paysage) {
  aspect-ratio: 607/911;
}

#portfolio .portfolio-galery .img-responsive {
  aspect-ratio: 6/4;
}

#portfolio .portfolio-galery img {
  width: auto;
  height: 350px;
  display: inline-block;
}

#portfolio .portfolio-thumb.portfolio-thumb-left > * {
  margin-left: auto;
}

#portfolio .portfolio-thumb.portfolio-thumb-right > * {
  margin-right: auto;
}

#portfolio .portfolio-thumb .img-responsive.paysage {
  aspect-ratio: 6/4;
}

#portfolio > .container-fluid {
  padding: 5%;
}
#portfolio .col-md-3 {
  padding: 0px;
}
.portfolio-thumb,
.portfolio-overlay {
  max-width: 100%;
}

#portfolio .portfolio-thumb {
  overflow: hidden;
  padding: 0 2em;
  margin: 2em auto;
}

#portfolio .portfolio-thumb .portfolio-thumb-container {
  width: fit-content;
  position: relative;
}
#portfolio .portfolio-thumb .portfolio-thumb-container:not(.in-progress)::after {
  content: "▶"; /* Icône Play (Unicode) */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  background: rgba(0, 0, 0, 0.5); /* Cercle semi-transparent */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: none; /* Ne pas bloquer les clics sur la vidéo */
  z-index: 1;
}

#portfolio .portfolio-thumb:hover .portfolio-overlay {
  cursor: pointer;
  opacity: 0.8;
}
/* end portfolio */

/* start contact */
#contact {
  background: #202020;
}
#contact .form-control {
  background: transparent;
  border: 1px solid var(--text-primary-color);
  border-radius: 2px;
  box-shadow: none;
  color: #fff;
  margin-top: 6px;
  margin-bottom: 16px;
}
#contact label {
  font-weight: 500;
}
#contact input {
  height: 50px;
}
#contact input[type="submit"] {
  background: var(--text-primary-color);
  font-weight: bold;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
#contact input[type="submit"]:hover {
  background: transparent;
}
#contact address {
  border-bottom: 1px solid #505050;
  padding-top: 30px;
}
#contact address .address-title {
  font-weight: bold;
  font-size: 20px;
  padding-bottom: 10px;
}
#contact address span {
  display: block;
  padding-bottom: 30px;
}
#contact address p {
  display: flex;
  align-items: center;
  justify-content: left;
  margin-bottom: 1.5em;
}
#contact address .contact-icon {
  fill: var(--text-secondary-color);
  border-radius: 2px;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  text-align: center;
  margin: auto 10px auto 0;
}
/* end contact */

/* start copyright */
#copyright {
  padding: 20px;
}
#copyright p {
  font-weight: 400;
}
/* end copyright */

/* start social icon */
.social-icon {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}
.social-icon h4 {
  display: inline-block;
  padding-right: 20px;
}
.social-icon li:not(:first-child) {
  display: inline-block;
  list-style: none;
  margin: 1em 1em 1em 0;
}
.social-icon li a {
  text-decoration: none;
}
.social-icon li .social-icon-link {
  border-radius: 2px;
  fill: #fff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  margin-right: 10px;
}
.social-icon li .social-icon-link:hover {
  fill: var(--text-primary-color);
}
/* end social icon */

@media only screen and (max-width: 1199px) and (min-width: 992px) {
  #portfolio .portfolio-thumb .portfolio-overlay {
    padding: 0px 8px;
  }
}

/* start 980 media quires */
@media only screen and (max-width: 980px) {
  #team .team-wrapper {
    margin-top: 40px;
  }
  #portfolio .portfolio-thumb .portfolio-overlay {
    background: var(--text-primary-color);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    padding: 40px 10px 20px 20px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
  }
}
/* end 360 media quires */

/* start 768 media quires */
@media only screen and (max-width: 767px) {
  #home {
    min-height: 300px;
    padding-top: 80px;
    padding-bottom: 60px;
  }
  #home h1 {
    font-size: 52px;
  }

  .custom-nav {
    position: fixed;
    top: 0;
  }
  header {
    margin-top: 70px;
  }
  header .social-icon {
    text-align: left;
  }
  .navbar-toggle {
    margin-top: 15px;
  }
  .navbar-collapse {
    max-height: 300px;
    overflow-y: auto;
  }
  .navbar-default .navbar-nav li a {
    height: 45px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 35px;
  }
}
/* end 768 media quires */

/* start 360 media quires */
@media only screen and (max-width: 360px) {
  header .social-icon {
    text-align: left;
  }
  #home {
    min-height: 200px;
    padding-top: 60px;
    padding-bottom: 40px;
  }
  #home h1 {
    font-size: 32px;
  }
}
/* end 360 media quires */
