/*
Theme Name: KRenovPro
Theme URI: https://www.krenovpro.fr/
Author: Kevyn Rattez
Theme URI: https://www.krenovpro.fr/
Description: Théme spécial pour la société kRénovPro
Version: 1.0.6
*/

:root {
  --headerLinkColor: #6387c1;
  --btnColor: #6387c1;
  --bs-body-color: rgb(101, 105, 108) !important;
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeftToRight {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideRightToLeft {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.btn-krenov {
  background-color: var(--btnColor) !important;
  border-color: var(--btnColor) !important;
  color: white !important;

  border-radius: 25px !important;
  padding: 12px 20px !important;
}
.btn-krenov:hover {
  opacity: 0.8;
}

.btn-outline-krenov {
  border-color: var(--btnColor) !important;
  color: white !important;

  border-radius: 25px !important;
  padding: 12px 20px !important;
}
.btn-outline-krenov:hover {
  background-color: var(--btnColor) !important;
  color: white !important;
}

.service-krenov {
  border: 1px solid lightgray !important;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: bold;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  font-size: 1.1rem;

  opacity: 0;
  transform: translateY(60px);
}

.service-krenov.animate {
  animation: slideUp 0.8s ease-out forwards;
}

.slideLeftToRightAnimate {
  animation: slideLeftToRight 0.8s ease-out forwards;
}

.slideRightToLeftAnimate {
  animation: slideRightToLeft 0.8s ease-out forwards;
}

.slideLeftToRightBase {
  opacity: 0;
  transform: translateX(-100px);
}

.slideRightToLeftBase {
  opacity: 0;
  transform: translateX(100px);
}

.service-krenov:hover {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-krenov img {
  width: 64px;
  margin-bottom: 10px;
  color: var(--btnColor);
}

.krp_header_top {
  background-color: black;
  padding: 14px 0px;
}

.krp_header_top a {
  color: white;
  text-decoration: none;
}

footer a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.krp_header_top a {
  font-size: 8pt;
}

.krp_header_top a:hover,
footer a:hover {
  cursor: pointer;
  color: var(--headerLinkColor);
}

.navbar-brand img {
  max-height: 100px;
}

.footer-logo {
  max-height: 130px;
}

.footer-border {
  height: 2px;
  background-color: var(--btnColor);
}

.footer-end {
  background-color: var(--btnColor);
  padding: 10px;
  color: white;
}

.navbar-nav .nav-link {
  font-size: 14pt !important;
  border-radius: 25px;
  margin-right: 10px;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background-color: var(--headerLinkColor);
}
.navbar-nav .active {
  color: var(--headerLinkColor) !important;
}

.section-image {
  height: calc(100vh - 120px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.section-presentation-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 90%;
  height: 100%;
  min-height: 200px;
}

.section-image-dark {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
  position: absolute;
  top: 0px;
  left: 0px;
}

.section-image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.sit-title {
  font-size: 60px;
  font-weight: bolder;
}

.sit-subtitle {
  font-size: 30px;
}

.sit-title,
.sit-subtitle {
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.6);
}

.section-link {
  scroll-margin-top: 120px;
  padding: 10px 0px;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
  font-weight: bolder;
  font-size: 35px;
}

.section-title > div:nth-child(2) {
  border-bottom: 1px solid var(--bs-body-color);
  margin-top: 5px;
}

.contact-textarea {
  min-height: 300px !important;
}

textarea {
  resize: none !important;
}

.form-control {
  border: none !important;
  border-radius: 20px !important;
  min-height: 44px;
}

.wpcf7-select {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px !important;
  /* border: 1px solid #cbd6e2 !important;
  border-radius: 0.25rem !important; */

  border: none !important;
  border-radius: 20px !important;
}

footer {
  font-size: 0.9rem;
  background-color: white;
  padding: 20px;
}

.contact-rounded-background {
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
  transition: opacity 0.2s ease-in-out;
  opacity: 1;
}

.spinner-center {
  display: block;
  margin: 0 auto;
}

/** Caroussel **/
.krenov-card {
  height: 400px;
  color: white;
  display: none;
  transition: opacity 0.5s ease;
}

.krenov-card.show {
  display: block;
}

/** Befor/After slider */
.btn-caroussel {
  background-color: #818181;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-caroussel:hover {
  background-color: #757575; /* Couleur au survol */
}

.btn-caroussel-prev {
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}

.btn-caroussel-next {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

.beforeafter-container {
  position: relative;
  width: 304px;
  height: 404px;
  margin: 0 auto;
  border: 2px solid lightgray;
  border-radius: 8px;
}
.beforeafter-container .beforeafter-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 900px 100%;
}
.beforeafter-container .beforeafter-background-img {
  overflow: hidden;
}
.beforeafter-container .beforeafter-foreground-img {
  overflow: hidden;
  width: 50%;
}

.beforeafter-background-img > div,
.beforeafter-foreground-img > div {
  background-size: contain;
  width: 300px;
  height: 400px;
}

.beforeafter-container .beforeafter-slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: rgba(242, 242, 242, 0.3);
  outline: none;
  margin: 0;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.beforeafter-container .beforeafter-slider:hover {
  background: rgba(242, 242, 242, 0.1);
}
.beforeafter-container .beforeafter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 400px;
  background: white;
  cursor: pointer;
}
.beforeafter-container .beforeafter-slider::-moz-range-thumb {
  width: 6px;
  height: 400px;
  background: white;
  cursor: pointer;
}
.beforeafter-container .beforeafter-slider-button {
  pointer-events: none;
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.beforeafter-container .beforeafter-slider-button:after {
  content: "";
  padding: 3px;
  display: inline-block;
  border: solid #5d5d5d;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.beforeafter-container .beforeafter-slider-button:before {
  content: "";
  padding: 3px;
  display: inline-block;
  border: solid #5d5d5d;
  border-width: 0 2px 2px 0;
  transform: rotate(135deg);
}

/* sm */
@media (min-width: 576px) {
}

/* md */
@media (min-width: 768px) {
  .section-image {
    height: calc(100vh - 170px);
    max-height: 700px;
  }

  .btn-caroussel-prev {
    left: -40px;
  }

  .btn-caroussel-next {
    right: -40px;
  }
}

/* lg */
@media (min-width: 992px) {
  .krp_header_top a {
    font-size: 10pt;
  }

  .contact-textarea {
    min-height: 412px !important;
  }
}

/* xl */
@media (min-width: 1200px) {
  .krp_header_top a {
    font-size: 12pt;
  }
}

/* xxl */
@media (min-width: 1400px) {
}
