* {
  margin: 0px;
  padding: 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-family: Montserrat;
}
html {
  scroll-behavior: smooth;
}
a:hover {
  text-decoration: none !important;
}

/* header style */
.nav-bar {
  height: 70px;
  background: #262626;
}

.brand {
  float: left;
  position: absolute;
  padding-left: 20px;
  line-height: 70px;
  font-size: 1.5em;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 80%;
  margin: auto;
  box-sizing: border-box;
  position: relative;
}



.nav-link
 {
  color: rgba(0, 0, 0, 0.8);
  font-size: 12.75px;
  font-weight: 600;
  text-decoration: none;
  margin: 0px 10px;
}
.nav_links {
  align-items: center;
}
#check:checked ~ .nav_links {
  right: 0px;
  display: flex;
  z-index: 4;
}

#check {
  display: none;
}

.burger-bar {
  display: none;
}
.logo {
  max-width: 140px;
  margin-bottom: 50px;
  margin-left: 4rem;
  cursor: pointer;
}

.btn{
  margin-right: 3rem;
  color: rgb(255, 255, 255);
}
.btn:hover{
  color: white;
}
/* Style for the dropdown */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  width: 210px;
  background: #fff;
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 4px 15px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.dropdown-menu a {
  font-size: 13.5px;
  font-weight: 400;
  padding: 8px 4px;
  text-decoration: none;
  display: block;
}

.white-icon{
  padding: 4px 8px;
}

/* .dropdown-content a:hover {background-color: #f1f1f1} */
/* f1f1f1 */
/* .dropdown:hover .dropdown-content {
  display: block;
}
.nav_button {
  display: inline-block;
  margin: 0px 10px;
}

.social_links {
  position: absolute;
  top: 10px;
  right: 19px;
}

.social_links li {
  color: rgb(99, 99, 99);
  background-color: rgb(226, 226, 226);
  width: 27px;
  height: 25px;
  padding: 5px;
  border-radius: 50%;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  margin-left: 4px;
}
.social_links li:hover {
  background-color: #234e7a;
  color: white;
}

.nav_button {
  background-color: #ffb900;
  padding: 6px 12px;
  border-radius: 3px;
  line-height: 18px;
  cursor: pointer;
}
.nav_button button {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  color: rgb(255, 255, 255);
  letter-spacing: 0.55px;
  border: none;
  background-color: #ffb900;
  cursor: pointer;
  text-align: center;
}

.white-icon {
  color: white;
} */

/* nos metieres section */

.nos_metires_img img {
  width: 180px;
  margin-top: 22px;
}

.nos_metiers_section {
  width: 80%;
  max-width: 80%;
  margin: auto;
  box-sizing: border-box;
  flex-direction: column;
  margin: 2rem auto;
}

.nos_metiers_content {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  margin: 1rem auto;
  box-sizing: border-box;
  padding-right: 3rem;
}

.nos_metires_text p {
  color: rgb(68, 68, 68);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.nos_metires_text h4 {
  margin: 10px 0px;
  color: rgb(55, 55, 55);
  font-size: 21px;
  font-weight: 600;
  font-family: Montserrat;
}
/* nos_références */

.nos_références_gallary {
  width: 100%;
  max-width: 80%;
  display: flex;
  margin: 4rem auto;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
}
.nos_références_content {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  margin: auto;
  flex-wrap: wrap;
}

.box {
  font-size: 15px;
  color: rgb(55, 55, 55);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-style: italic;
  font-weight: 400;
  width: 210px;
  text-align: center;
  margin: 1rem 0px;
}
.box img {
  width: 100%;
  max-width: 200px;
}
/* nos_chiffres_section */
.nos_chiffres_section {
  width: 100%;
  max-width: 100%;
  background: url(images/slide_01.jpg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  height: 58vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
  position: relative;
  margin: 5rem 0rem;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: 0.5;
  transition: opacity 0.3s, border-radius 0.3s;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

.nos_chiffres_section h2 {
  color: #ffffff;
  font-size: 45px;
  font-family: sans-serif, Montserrat;
  font-weight: 800;
  z-index: 1;
}
.nos_chiffres_content_value span {
  color: rgb(255, 255, 255);
  font-size: 40px;
  font-family: sans-serif;
  font-weight: 800;
}
.nos_chiffres_content_value p {
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.nos_chiffres_content_value {
  margin: 1rem;
}

.nos_chiffres_content {
  width: 100%;
  max-width: 80%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  z-index: 1;
}
.contact_form {
  color: rgb(104, 104, 104);
  border-right: 1px solid rgb(234, 236, 238);
  padding-right: 32px;
}
.error-message {
  color: green;
  margin-top: 5px;
}
.contact_form span {
  color: #252525;
  font-size: 15px;
  font-weight: 400;
  font-weight: bold;
}
.contact-mode label {
  padding-right: 10px;
  padding-bottom: 3px;
  cursor: pointer;
}

.custom-select {
  position: relative;
  display: block;
  max-width: 400px;
  min-width: 180px;
  margin: 14px 0px;
  border: 1px solid rgb(229, 229, 229);

  z-index: 10;
}
select {
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  margin: 0;
  display: block;
  width: 100%;
  padding: 12px 55px 15px 15px;
  font-size: 14px;
  color: #714bb9;
}

.contact-mode {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.contact_mode_textarea {
  min-height: 130px;
  color: #282828;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
  padding: 0 0.75em;
  height: 2.6em;
  width: 100%;
  max-width: 95%;
  vertical-align: middle;
  border-radius: 1px;
  overflow: auto;
}
input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}
input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}
input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type="submit"] {
  background-color: rgb(35, 78, 122);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 22px;
  font-weight: bold;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

.contact_section {
  background: url(images/prix-domotique-maroc.jpg);
  background-position: center;
  position: relative;
}
.contact_section_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 255);
  opacity: 0.8;
  transition: opacity 0.3s, border-radius 0.3s;
}
.contact_section_content {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 90%;
  margin: auto;
  padding: 12px;
  font-family: sans-serif;
}

.contact_section_text {
  width: 100%;
  max-width: 40%;
  margin: 2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}
.contact_section_text p {
  font-size: 19px;
  line-height: 1.4em;
  text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.3);
  color: rgb(55, 55, 55);
  padding: 12px;
  margin-bottom: 2rem;
}
.contact_icons a {
  text-decoration: none;
  margin: 12px;
  color: rgb(55, 55, 55);
  font-weight: 600;
}
.social_icon {
  background-color: #234e7a;
  padding: 8px 9px;
  border-radius: 50%;
  color: rgb(255, 255, 255);
}
.contact_section_text h2,
.slider_text {
  color: rgb(55, 55, 55);
  font-size: 31px;
  font-weight: 700;
  padding-left: 12px;
}

.slider_text{
margin: 20px;
}
.contact_form {
  margin: 2rem;
  z-index: 1;
}

.contact_container {
  display: flex;
  width: 100%;
  max-width: 80%;
  margin: 2rem auto;
}
footer {
  background-color: #212121;
  padding: 20px;
  /* text-align: center; */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.99);
  /* align-items: center; */
}

.footer-contact-info {
  width: 100%;
  max-width: 215px;
  margin: 16px;
}
.footer-contact-info {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.99);
  font-family: sans-serif;
  list-style: none;
}
.footer-contact-info-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 22px;
  padding: 8px 0px;
  color: rgba(255, 255, 255, 0.79);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}


.footer-contact-info ul {
  padding: 22px 0px;
}
.footer-contact-info li {
  font-size: 14px;
  list-style: none;
  /* padding: 2px; */
  line-height: 22px;
}
#footer_links li {
  color: rgb(35, 78, 122);
  border-color: rgb(234, 236, 238);
  list-style: none;
}

#footer_links {
  margin-top: 2rem;
}

.subfooter {
  background-color: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.99);

  padding: 20px 0px;
}

.subfooter li {
  margin: 0px 4px;
  cursor: pointer;
  color: rgb(255, 255, 255);
}

@media screen and (max-width: 600px) {
  .footer-content {
    flex-direction: column;
  }
}

@media screen and (max-width: 912px) {
  .contact_section_content {
    flex-direction: column;
    align-items: center;
  }
  .contact_section_text {
    max-width: 100%;
  }
  .contact_container {
    flex-direction: column;
    align-items: center;
  }
  .contact_form {
    border-right: none;
  }
}
@media (max-width: 1024px) {
  .header {
    justify-content: space-between;
  }
  .nav_links {
    background: #2d2d2d;
    width: 228px;
    padding: 12px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav_button {
    padding: 7px;
    width: 185px;
    border-bottom: none;
  }
  .contact_icons {
    display: flex;
    flex-direction: column;
  }

  .nav_links a {
    color: rgba(255, 255, 255, 0.79);
    margin: 12px 0px;
  }
  .burger-bar {
    width: 35px;
    z-index: 2;
    cursor: pointer;
    /* display: block; */
    position: absolute;
    top: 4px;
    /* right: -53px; */
    background: azure;
    border-radius: 3px;
    display: none;
  }

  .nav_links a:after {
    content: "";
    display: block;
    border-bottom: 1px solid gray;
    margin: auto;
    height: 5px;
    width: 200px;
    background: transparent;
    transition: width 0.3s ease, background-color 0.3s ease;
  }

  #check {
    display: none;
  }
  .nav_links {
    width: 228px;
    position: fixed;
    top: 0px;
    right: -100px;
    display: none;
  }
  .social_links {
    top: 67%;
    right: 14%;
  }
}
@media (max-width: 768px) {
  .nos_metiers_content {
    flex-wrap: wrap;
    padding: 0;
    align-items: center;
    justify-content: center;
  }
  .footer-content {
    align-items: center;
  }
  .nos_chiffres_section h2 {
    font-size: 30px;
  }
  .nos_chiffres_content_value span {
    font-size: 25px;
  }
}

h2 {
  text-align: center;
  padding: 20px;
}
/* Slider */

.slider {
  margin: 4rem 0rem;
}

.slick-slide {
  margin: 0px 20px;
}

.slick-slide img {
  width: 100%;
}

.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.slick-list:focus {
  outline: none;
}
.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: block;
}
.slick-track:before,
.slick-track:after {
  display: table;
  content: "";
}
.slick-track:after {
  clear: both;
}
.slick-loading .slick-track {
  visibility: hidden;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}
[dir="rtl"] .slick-slide {
  float: right;
}
.slick-slide img {
  display: block;
}
.slick-slide.slick-loading img {
  display: none;
}
.slick-slide.dragging img {
  pointer-events: none;
}
.slick-initialized .slick-slide {
  display: block;
}
.slick-loading .slick-slide {
  visibility: hidden;
}
.slick-vertical .slick-slide {
  display: block;
  height: auto;
  border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
  display: none;
}

/* 


/* Slideshow container */
.slideshow-container {
  position: relative;
  margin: auto;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 2s; /* Adjust the duration as needed */
  opacity: 0.99;
  transition: opacity 1s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0.99;
  }
  to {
    opacity: 1;
  }
}

/* Add smooth transition for image change */
.mySlides {
  display: none;
  width: 100%;
  height: 600px; /* Set a fixed height for the slider, adjust as needed */
  position: relative;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Scale the image while maintaining its aspect ratio */
}
.slider_title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-70%, -50%);
  text-align: start;
  width: 60%;
}
.slider_title h2 {
  color: rgb(255, 255, 255);
  font-family: Sans-serif;
  font-size: 44px;
  font-weight: 800;
  padding: 0px;
  text-align: start;
  /* font-size: 2em; */
  margin-bottom: 10px;
}

.slider_title p {
  color: rgb(255, 255, 255);
  font-size: 20px;
  font-weight: 400;
  /* font-size: 1.2em; */
  margin-bottom: 20px;
}

.slider_title button {
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  fill: #ffffff;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: rgba(255, 255, 255, 0.54);
  border-radius: 3px 3px 3px 3px;
  font-size: 16px;
  padding: 15px 30px;
  margin-top: 0.6rem;
  outline: none;
  cursor: pointer;
}

.slider_title button:hover {
  background-color: rgb(255, 255, 255);
  color: #262626cc;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.mySlides {
  display: none;
  position: relative;
}

.overlay_slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust the overlay color and opacity */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.slider_title {
  z-index: 1; /* Ensures that the text and button are above the overlay */
}

@media (max-width: 768px) {
  .slider_title h2 {
    font-size: 28px;
  }
  .slider_title p {
    font-size: 19px;
  }
  .slider_title button {
    font-size: 16px;
    padding: 12px 20px;
  }
}
@media (max-width: 650px) {
  .slider_title {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-70%, -50%);
    text-align: start;
    width: 80%;
  }
}
@media (max-width: 510px) {
  .slider_title h2 {
    font-size: 18px;
  }
  .slider_title p {
    font-size: 14px;
  }
  .slider_title button {
    font-size: 8px;
    padding: 5px 10px;
  }
}

.hero_section h2 {
  color: rgba(255, 255, 255, 0.99);
  font-size: 34px;
  font-weight: 800;
}

@media (max-width: 650px) {
  .hero_section h2 {
    font-size: 22px;
  }
}
