/*

TemplateMo 591 villa agency

https://templatemo.com/tm-591-villa-agency

*/

/* ---------------------------------------------
VERTAT Color Variables
--------------------------------------------- */
:root {
  --primary-color: #0b2b40;         /* Couleur principale du site */
  --secondary-color: #45BA01;       /* Couleur secondaire */
  --secondary-color-hover: #368a01; /* Couleur secondaire au survol */
  --text-color: #ffffff;            /* Couleur du texte sur fond foncé */
  --light-bg: #f9f9f9;
  --dark-bg: #072130;              /* Couleur du header/footer */
  --border-radius: 6px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --max-width: 1200px;
}

/* ---------------------------------------------
Table of contents
------------------------------------------------
01. font & reset css
02. reset
03. global styles
04. header
05. banner
06. features
07. testimonials
08. contact
09. footer

--------------------------------------------- */
/* 
---------------------------------------------
font & reset css
--------------------------------------------- 
*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900");
/* 
---------------------------------------------
reset
--------------------------------------------- 
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, div
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q,
s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
figure, header, nav, section, article, aside, footer, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

ul, li {
  padding: 0;
  margin: 0;
  list-style: none;
}

header, nav, section, article, aside, footer, hgroup {
  display: block;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--primary-color);
}

a {
  text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: 700;
}

ul {
  margin-bottom: 0px;
}

p {
  font-size: 14px;
  line-height: 28px;
  color: var(--text-color);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

img {
  width: 100%;
  overflow: hidden;
}

/* 
---------------------------------------------
Global Styles
--------------------------------------------- 
*/
html,
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
}

::selection {
  background: var(--secondary-color);
  color: #fff;
}

::-moz-selection {
  background: var(--secondary-color);
  color: #fff;
}

.section {
  margin-top: 120px;
}

.section-heading {
  margin-bottom: 70px;
}

.section-heading h2 {
  font-size: 40px;
  font-weight: 700;
  text-transform: capitalize;
  margin-top: 20px;
  line-height: 56px;
  color: var(--text-color);
}

.section-heading h2 em {
  font-style: normal;
  color: var(--secondary-color);
}

.section-heading h6 {
  color: var(--secondary-color);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
}

.icon-button a {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  height: 50px;
  line-height: 50px;
  padding: 0px 35px 0px 0px;
  border-radius: 25px;
  transition: all .3s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(69, 186, 1, 0.3);
}

.icon-button a i {
  background-color: #ffffff;
  color: var(--secondary-color);
  height: 50px;
  width: 50px;
  text-align: center;
  border-radius: 50%;
  line-height: 50px;
  display: inline-block;
  margin-right: 15px;
  margin-left: -25px !important;
}

.icon-button a:hover {
  background-color: var(--dark-bg);
  color: var(--text-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.icon-button a:hover i {
  background-color: #ffffff;
  color: var(--secondary-color-hover);
}

/* --- BOUTONS UNIFIÉS --- */
/* Utiliser <a class="main-button"> ou <button class="main-button">, ne pas imbriquer <a> dans un div.main-button */
.main-button,
.main-button:visited,
.icon-button a {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  height: 50px;
  line-height: 50px;
  border-radius: 25px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(69, 186, 1, 0.3);
  padding: 0 25px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.main-button:hover,
.icon-button a:hover {
  background-color: var(--secondary-color-hover);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

/* 
---------------------------------------------
Pre-loader Style
--------------------------------------------- 
*/

.js-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11,43,64,0.99);
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  z-index: 9999;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.js-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@-webkit-keyframes dot {
  50% {
      -webkit-transform: translateX(96px);
      transform: translateX(96px);
  }
}

@keyframes dot {
  50% {
      -webkit-transform: translateX(96px);
      transform: translateX(96px);
  }
}

@-webkit-keyframes dots {
  50% {
      -webkit-transform: translateX(-31px);
      transform: translateX(-31px);
  }
}

@keyframes dots {
  50% {
      -webkit-transform: translateX(-31px);
      transform: translateX(-31px);
  }
}

.preloader-inner {
  position: relative;
  width: 142px;
  height: 40px;
  background: transparent;
}

.preloader-inner .dot {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 12px;
  left: 15px;
  background: var(--secondary-color);
  border-radius: 50%;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -webkit-animation: dot 2.8s infinite;
  animation: dot 2.8s infinite;
}

.preloader-inner .dots {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  margin-top: 12px;
  margin-left: 31px;
  -webkit-animation: dots 2.8s infinite;
  animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
  display: block;
  float: left;
  width: 16px;
  height: 16px;
  margin-left: 16px;
  background: var(--secondary-color);
  border-radius: 50%;
}

/* 
---------------------------------------------
Header Style
--------------------------------------------- 
*/

.sub-header {
  background-color: var(--dark-bg);
  padding: 10px 0px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sub-header ul li {
  display: inline-block;
  margin-top: 3px !important;
}

.sub-header ul.social-links {
  text-align: right;
}

.sub-header ul.social-links li {
  margin-left: 8px;
}

.sub-header ul.social-links li a {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  color: var(--text-color);
  font-size: 14px;
  transition: all .3s;
}

.sub-header ul.social-links li a:hover {
  background-color: var(--secondary-color);
}

.sub-header ul.info li {
  font-size: 14px;
  color: #e0e0e0;
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 25px;
  padding-right: 25px;
}

.sub-header ul.info li:last-child {
  margin-right: 0px;
  padding-right: 0px;
  border-right: none;
}

.sub-header ul.info li i {
  font-size: 20px;
  color: var(--secondary-color);
  margin-right: 8px;
}

.background-header {
  background-color: var(--dark-bg);
  height: 80px!important;
  position: fixed!important;
  top: 0!important;
  left: 0;
  right: 0;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.15)!important;
  -webkit-transition: all .5s ease 0s;
  -moz-transition: all .5s ease 0s;
  -o-transition: all .5s ease 0s;
  transition: all .5s ease 0s;
}

.header-area {
  position: relative;
  background-color: var(--dark-bg);
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  padding: 0 !important;
  box-sizing: border-box;
  z-index: 100;
  -webkit-transition: all .5s ease 0s;
  -moz-transition: all .5s ease 0s;
  -o-transition: all .5s ease 0s;
  transition: all .5s ease 0s;
  width: 100%;
}

.header-area .main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  padding: 0 24px;
  min-height: 80px !important;
  max-height: 80px !important;
  gap: 32px;
  height: 80px !important;
  box-sizing: border-box;
}

.header-area .main-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px; /* espace entre logo et texte */
  height: 80px;
  padding: 0;
}

.header-area .main-nav .logo img {
  height: 36px;
  width: auto;
  max-width: 48px;
  display: block;
  margin: 0;
  padding: 0;
}

.header-area .main-nav .logo h1 {
  font-size: 1.7rem;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  height: 36px;
}

.background-header .main-nav .logo h1 {
  line-height: 80px;
}


.header-area .main-nav ul.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 0;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
  position: static;
  z-index: 999;
}

@media (max-width: 992px) {
.header-area .main-nav ul.nav {
  flex-basis: 100%;
  margin-top: 0px;
  justify-content: right;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  position: relative;
  z-index: 999;
  display: flex;
}
}

/* Suppression du doublon - déjà défini plus haut */

.header-area .main-nav .nav li:last-child {
  padding-right: 0px;
}

.header-area .main-nav .nav li {
  padding-left: 10px;
  padding-right: 10px;
  height: 0px;
  line-height: 100px;
}

.header-area .main-nav .nav li a {
  display: block;
  padding-left: 20px;
  padding-right: 20px;
  font-weight: 500;
  font-size: 15px;
  height: 40px;
  line-height: 40px;
  text-transform: capitalize;
  color: var(--text-color);
  -webkit-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
  border: transparent;
  letter-spacing: .25px;
}

.header-area .main-nav .nav li:last-child a {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;  /* <--- bold */
  text-transform: none;
  border-radius: 20px;
  padding-left: 0px;
}

.header-area .main-nav .nav li:last-child a i {
  background-color: var(--secondary-color);
  display: inline-block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  margin-left: -1px;
}

.header-area .main-nav .nav li:last-child:hover a {
  background-color: var(--dark-bg);
}

.header-area .main-nav .nav li:last-child:hover a i {
  color: #fff;
}

.header-area .main-nav .nav li:hover a {
  color: var(--secondary-color);
}

.header-area .main-nav .nav li a.active {
  color: var(--secondary-color);
}

.background-header .main-nav .nav li a.active {
  color: var(--secondary-color);
}

.header-area .main-nav .menu-trigger {
  cursor: pointer;
  position: absolute;
  top: 23px;
  width: 32px;
  height: 40px;
  text-indent: -9999em;
  z-index: 99;
  right: 20px;
  display: none;
}

/* Affichage de la navbar en desktop */
@media (min-width: 993px) {
  .header-area .main-nav ul.nav {
    display: flex !important;
  }
  
  .header-area .main-nav .menu-trigger {
    display: none !important;
  }
}

.background-header .main-nav .menu-trigger {
  top: 22px;
}


.header-area .main-nav .menu-trigger span,
.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: var(--text-color);
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 0;
}

.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: var(--text-color);
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 0;
  width: 75%;
}

.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  content: "";
}

.header-area .main-nav .menu-trigger span {
  top: 16px;
}

.header-area .main-nav .menu-trigger span:before {
  -moz-transform-origin: 33% 100%;
  -ms-transform-origin: 33% 100%;
  -webkit-transform-origin: 33% 100%;
  transform-origin: 33% 100%;
  top: -10px;
  z-index: 10;
}

.header-area .main-nav .menu-trigger span:after {
  -moz-transform-origin: 33% 0;
  -ms-transform-origin: 33% 0;
  -webkit-transform-origin: 33% 0;
  transform-origin: 33% 0;
  top: 10px;
}

.header-area .main-nav .menu-trigger.active span,
.header-area .main-nav .menu-trigger.active span:before,
.header-area .main-nav .menu-trigger.active span:after {
  background-color: transparent;
  width: 100%;
}

.header-area .main-nav .menu-trigger.active span:before {
  -moz-transform: translateY(6px) translateX(1px) rotate(45deg);
  -ms-transform: translateY(6px) translateX(1px) rotate(45deg);
  -webkit-transform: translateY(6px) translateX(1px) rotate(45deg);
  transform: translateY(6px) translateX(1px) rotate(45deg);
  background-color: var(--text-color);
}

.background-header .main-nav .menu-trigger.active span:before {
  background-color: var(--text-color);
}

.header-area .main-nav .menu-trigger.active span:after {
  -moz-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  -ms-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  -webkit-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  transform: translateY(-6px) translateX(1px) rotate(-45deg);
  background-color: var(--text-color);
}

.background-header .main-nav .menu-trigger.active span:after {
  background-color: var(--text-color);
}

.visible{
  display:inline !important;
}

@media (max-width: 1200px) {
  .header-area .main-nav .nav li {
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 767px) {
  .header-area {
    padding: 0px 15px;
    height: 80px;
    box-shadow: none;
    position: relative;
  }
  
  .header-area .container {
    padding: 0px;
    position: relative;
  }
  
  .header-area .main-nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-area .main-nav .logo {
    position: relative;
    z-index: 1002;
  }
  
  .header-area .main-nav .logo h1 {
    line-height: 80px !important;
    font-size: 24px;
    margin: 0;
  }
  
  /* Correction pour éviter le scroll horizontal */
  body {
    overflow-x: hidden;
  }
  
  .properties .item {
    min-height: auto;
  }
  
  .properties .item .card-image {
    height: 160px;
  }
}

/* 
---------------------------------------------
Banner Style
--------------------------------------------- 
*/

.main-banner .item {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 120px 20% 160px 20%;
  margin-top: 0px;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.main-banner .item-1 {
  background-image: linear-gradient(rgba(11, 43, 64, 0.7), rgba(11, 43, 64, 0.7)), url(../images/devanture.jpg);
}

.main-banner .item-2 {
  background-image: linear-gradient(rgba(11, 43, 64, 0.7), rgba(11, 43, 64, 0.7)), url(../images/soudeur5.jpg);
}

.main-banner .item-3 {
  background-image: linear-gradient(rgba(11, 43, 64, 0.7), rgba(11, 43, 64, 0.7)), url(../images/machine.jpg);
}

.main-banner .item span.category {
  background-color: var(--secondary-color);
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
  padding: 8px 18px;
  display: inline-block;
  margin-bottom: 30px;
  border-radius: 10px;
}

#home > div > div.owl-stage-outer > div > div.owl-item.active.center > div > div > h2{
  width: 65%;
}

.main-banner .item span.category em {
  font-style: normal;
  color: var(--secondary-color);
}

#reparations > div > div{
  justify-content: center;
}

.main-banner .item h2 {
  font-size: 68px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-color);
  line-height: 78px;
  margin-bottom: 0px;
}



@media (max-width: 768px) {
  #reparations > div > div > div{
    width: 100%;
    margin: 0;
    padding: 0 15px;
  }
  
  /* Correction des décalages généraux sur mobile */
  .container {
    padding: 0 15px;
    margin: 0 auto;
  }
  
  .row {
    margin: 0 -15px;
  }
  
  .col-lg-4, .col-md-6, .col-lg-6, .col-lg-12 {
    padding: 0 15px;
  }
  
  /* Correction spécifique pour les sections */
  #reparations .container,
  #photos .container,
  #vente .container,
  #contact .container {
    padding: 0 15px;
  }
  
  /* Correction pour les cards qui débordent */
  .properties .item,
  #photos .item {
    margin-left: 0;
    margin-right: 0;
  }
}


#photos > div > div > div{
  width: auto;
}

#contact > div > div > div{
  width: auto;
}

.main-banner .item .header-text {
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.main-banner .owl-dots {
  position: absolute;
  bottom: 60px;
  left: 20%;
}

.main-banner .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all .5s;
}

.main-banner .owl-dots .active {
  background-color: var(--secondary-color);
}

.main-banner .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50px);
}

.main-banner .owl-nav .owl-prev i,
.main-banner .owl-nav .owl-next i {
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 24px;
  display: inline-block;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 1;
  transition: all .3s;
}

.main-banner .owl-nav .owl-prev i {
  position: absolute;
  left: 45px;
}

.main-banner .owl-nav .owl-next i {
  position: absolute;
  right: 45px;
}

.main-banner .owl-nav .owl-prev i:hover,
.main-banner .owl-nav .owl-next i:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
}



/* 
---------------------------------------------
Featured Style
--------------------------------------------- 
*/

.featured .left-image {
  position: relative;
}

.featured .left-image img {
  border-radius: 16px;
}

.featured .left-image a {
  display: inline-block;
  width: 110px;
  height: 110px;
  line-height: 110px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: -55px;
}

.featured .section-heading {
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 60px;
}

.featured .section-heading h2 {
  width: 70%;
}

.featured .accordion {
  margin-left: 10px;
  margin-right: 10px;
  --bs-accordion-border-radius: 10px;
  --bs-accordion-inner-border-radius: 10px;
  --bs-accordion-bg: rgba(255,255,255,0.05);
  --bs-accordion-border-color: none;
  border: none !important;
}

.featured .accordion-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.featured .accordion-button {
  box-shadow: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-color);
}

.featured .accordion-button:not(.collapsed) {
  color: var(--secondary-color);
  background-color: rgba(255,255,255,0.05);
  outline: none;
}

.featured .accordion-button::after {
  display: none;
}

.featured #headingThree {
  border-bottom: none;
}

.featured .accordion-item:last-of-type .accordion-collapse {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.featured .info-table {
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: rgba(255,255,255,0.05);
}

.featured .info-table ul li {
  display: block;
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.featured .info-table ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.featured .info-table ul li img {
  float: left;
  margin-right: 25px;
}

.featured .info-table ul li h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
}

.featured .info-table ul li h4 span {
  font-size: 15px;
  color: #ccc;
  font-weight: 400;
}

/* 
---------------------------------------------
Video Style
--------------------------------------------- 
*/

.video {
  background-image: url(../images/video-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 100px 0px 250px 0px;
  position: relative;
}

.video-content {
  margin-top: -240px;
}

.video .section-heading h2 {
  color: #fff;
}

.video-content .video-frame {
  position: relative;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.video-content .video-frame img {
  border-radius: 10px;
}

.video-content .video-frame a {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-26px, -26px);
  width: 52px;
  height: 52px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  line-height: 52px;
  color: var(--secondary-color);
  outline: 15px solid rgba(69, 186, 1, 0.5);
  font-size: 18px;
}

/* 
---------------------------------------------
Fun Facts Style
--------------------------------------------- 
*/

.fun-facts {
  text-align: center;
  margin-top: 125px;
}

.fun-facts .counter {
  background-color: rgba(255,255,255,0.05);
  position: relative;
  border-radius: 10px;
  width: 270px;
  padding: 20px 0px;
  display: inline-block;
}

.fun-facts .counter h2,
.fun-facts .counter p {
  display: inline-flex;
  vertical-align: middle;
}

.fun-facts .counter p {
  text-align: left;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 600;
  line-height: 28px;
}

.fun-facts .counter h2 {
  margin-right: 25px;
  font-size: 40px;
  color: var(--secondary-color);
}

.fun-facts .counter:after {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  content: '';
  right: -25px;
  top: -25px;
}


/* 
---------------------------------------------
Best Deal Style
--------------------------------------------- 
*/

.best-deal {
  background-color: var(--primary-color);
}

.best-deal .tab-content .tab-image {
  text-align: center;
  padding: 0px 45px;
}

.best-deal .tab-content .tab-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.best-deal .tabs-content .nav-link {
  font-size: 16px;
  font-weight: 500;
  background-color: var(--dark-bg) !important;
  border-radius: 5px;
  height: 50px;
  line-height: 50px;
  display: inline-block;
  padding: 0px 25px;
  color: var(--text-color);
}

.best-deal .tabs-content .nav-tabs .nav-link.active {
  background-color: var(--secondary-color) !important;
  color: #fff;
}

.best-deal .tabs-content ul.nav-tabs {
  border: none !important;
  background: transparent !important;
}
.best-deal .tabs-content .nav-tabs .nav-link {
  border: none !important;
  background: var(--dark-bg) !important;
  color: var(--text-color);
}
.best-deal .tabs-content .nav-tabs .nav-link.active {
  background: var(--secondary-color) !important;
  color: #fff !important;
  border: none !important;
}

.best-deal .tabs-content ul.nav-tabs li {
  padding-right: 0px;
  border-right: none;
  margin-left: 20px;
}

.best-deal .info-table {
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: rgba(255,255,255,0.05);
}

.best-deal .info-table ul li {
  display: block;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  font-size: 15px;
  color: var(--text-color);
  font-weight: 400;
}

.best-deal .info-table ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.best-deal .info-table ul li span {
  font-size: 20px;
  color: var(--text-color);
  font-weight: 700;
  float: right;
  display: inline-block;
}

.best-deal .tabs-content {
  padding: 0px;
  background-color: transparent;
}

.best-deal .tabs-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-color);
}

.best-deal .icon-button {
  margin-top: 30px;
}


/* 
---------------------------------------------
Properties Style
--------------------------------------------- 
*/

.properties .item {
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.properties .item .card-image,
.best-deal .tab-content .tab-image,
#photos .card-image,
#photos .item .card-image,
#photos .item img {
  height: 180px !important;
  width: 100% !important;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.properties .item .card-image img,
.best-deal .tab-content .tab-image img,
#photos .card-image img,
#photos .item .card-image img,
#photos .item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.properties .item span.category {
  background-color: var(--secondary-color);
  font-weight: 500;
  border-radius: 5px;
  font-size: 14px;
  color: #fff;
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 15px;
}

.properties .item h4 {
  font-size: 19px;
  margin: 15px 0px 20px 0px;
  color: var(--text-color);
  min-height: 50px;
}

.properties .item h4 a {
  color: var(--text-color);
}

.properties .item ul {
  flex-grow: 1;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.properties .item ul li {
  display: block;
  font-size: 15px;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.properties .item ul li span {
  font-weight: 600;
  color: var(--text-color);
}

.properties .item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 20px;
}

.properties .item h6 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-top: 6px;
  display: inline-block;
  float: right;
  margin-top: 30px;
}

.properties .item .main-button {
  text-align: center;
  margin-top: auto;
}


/* 
---------------------------------------------
Contact Style
--------------------------------------------- 
*/

.contact {
  background-image: linear-gradient(rgba(11, 43, 64, 0.7), rgba(11, 43, 64, 0.7)), url(../images/devanture.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  padding: 100px 0px 250px 0px;
  position: relative;
}

.contact .section-heading h2 {
  color: #fff;
}

.contact-content {
  margin-top: -240px;
  position: relative;
  z-index: 1;
}

.contact-content #map {
  border-radius: 10px;
  margin-bottom: 60px;
}

.contact-content .item {
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: rgba(255,255,255,0.05);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.contact-content .item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.25);
}

.contact-content .phone {
  margin-right: 30px;
}

.contact-content .email {
  margin-left: 30px;
  margin-right: 30px;
}

.contact-content .location {
  margin-left: 30px;
}

/* Responsive contact cards */
@media (max-width: 992px) {
  .contact-content .phone,
  .contact-content .email,
  .contact-content .location {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* Correction spécifique pour la section contact */
  .contact-content {
    padding: 0 15px;
  }
  
  .contact-content .row {
    margin: 0 -15px;
  }
  
  .contact-content .col-lg-4,
  .contact-content .col-lg-5,
  .contact-content .col-lg-7 {
    padding: 0 15px;
  }
  
  .contact-content #contact-form {
    margin-left: 0;
    margin-right: 0;
  }
}

.contact-content .item .icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.contact-content .item:hover .icon-wrapper {
  transform: scale(1.1);
}

.contact-content .item .icon-wrapper i {
  font-size: 24px;
  color: #ffffff;
}

.contact-content .phone .icon-wrapper {
  background: linear-gradient(45deg, #4CAF50, #45BA01);
}

.contact-content .email .icon-wrapper {
  background: linear-gradient(45deg, #2196F3, #1976D2);
}

.contact-content .location .icon-wrapper {
  background: linear-gradient(45deg, #FF9800, #F57C00);
}

.contact-content .item h6 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-content .item h6 span {
  font-size: 14px;
  color: #aaa;
  font-weight: 400;
  display: block;
  margin-top: 5px;
}

.contact-content #contact-form {
  margin-left: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: var(--dark-bg); /* plus foncé qu'avant */
}

.contact-content #contact-form label {
  font-size: 15px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.contact-content #contact-form input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background-color: rgba(255,255,255,0.1);
  border: none;
  margin-bottom: 30px;
  font-size: 14px;
  padding: 0px 15px;
  color: var(--text-color);
}

.contact-content #contact-form textarea {
  width: 100%;
  height: 150px;
  max-height: 180px;
  border-radius: 22px;
  background-color: rgba(255,255,255,0.1);
  border: none;
  margin-bottom: 40px;
  font-size: 14px;
  padding: 15px 15px;
  color: var(--text-color);
}

/* .contact-content #contact-form button {
  background-color: var(--dark-bg);
  height: 44px;
  border-radius: 22px;
  padding: 0px 20px;
  color: var(--text-color);
  border: none;
  font-size: 15px;
  font-weight: 500;
  transition: all .5s;
} */

/* .contact-content #contact-form button:hover {
  background-color: var(--secondary-color);
} */

.main-button-wrapper {
  text-align: center;
  margin-top: 20px;
}


/* 
---------------------------------------------
Footer Style
--------------------------------------------- 
*/

footer.footer-no-gap {
  margin-top: 0px;
}

footer {
  margin-top: 150px;
  background-color: var(--dark-bg);
  min-height: 100px;
}

footer p {
  text-align: center;
  line-height: 100px;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 400;
}

footer p a {
  color: var(--primary-color);
  transition: all .3s;
  position: relative;
  z-index: 3;
}

footer p a:hover {
  opacity: 0.75;
}


/* 
---------------------------------------------
Page Header Style
--------------------------------------------- 
*/

.page-heading {
  background-image: url(../images/devanture.jpg);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 110px 0px;
  text-align: center;
}

.page-heading span {
  background-color: #fff;
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 25px;
  display: inline-block;
  margin-bottom: 30px;
}

.page-heading span a {
  color: #1e1e1e;
}

.page-heading h3 {
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}


/* 
---------------------------------------------
Properties Style
--------------------------------------------- 
*/


.properties ul.properties-filter {
  list-style: none;
  text-align: center;
  margin-bottom: 70px;
}

.properties ul.properties-filter li {
  display: inline-block;
  margin: 5px 8px;
}

.properties ul.properties-filter li a {
  display: inline-block;
  text-align: center;
  font-size: 15px;
  text-transform: capitalize;
  font-weight: 500;
  color: #fff;
  background-color: #1e1e1e;
  padding: 12px 25px;
  border-radius: 5px;
  transition: all .3s;
}

.properties ul.properties-filter li a.is_active {
  background-color: var(--secondary-color);
  color: #fff;
}

.properties ul.properties-filter li a.is_active:hover {
  color: #fff;
}

.properties ul.properties-filter li a:hover {
  color: var(--secondary-color);
}

.properties ul.pagination {
  margin-top: 50px;
  text-align: center;
  width: 100%;
  display: inline-block;
}

.properties ul.pagination li {
  display: inline-block;
  margin: 0px 5px;
}

.properties ul.pagination li a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50%;
  transition: all .3s;
}

.properties ul.pagination li a:hover,
.properties ul.pagination li a.is_active {
  background-color: var(--secondary-color);
  color: #fff;
}


/* 
---------------------------------------------
Single Page Style
--------------------------------------------- 
*/

.single-property .main-image img {
  float: none;
}

.single-property .main-content h4 {
  font-size: 25px;
  margin-top: 25px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-color);
}

.single-property .main-content span.category {
  background-color: var(--secondary-color);
  font-weight: 500;
  border-radius: 5px;
  font-size: 14px;
  color: #fff;
  padding: 5px 12px;
  display: inline-block;
  margin-top: 40px;
}

.single-property .accordion {
  margin-top: 60px;
  margin-left: 0px;
  margin-right: 0px;
  --bs-accordion-border-radius: 10px;
  --bs-accordion-inner-border-radius: 10px;
  --bs-accordion-bg: #fafafa;
  --bs-accordion-border-color: none;
  border: none !important;
}

.single-property .accordion-header {
  border-bottom: 1px solid #eaeaea;
}

.single-property .accordion-button {
  box-shadow: none;
  font-size: 17px;
  font-weight: 500;
  color: #1e1e1e;
}

.single-property .accordion-button:not(.collapsed) {
  color: var(--secondary-color);
  background-color: #fafafa;
  outline: none;
}

.single-property .accordion-button::after {
  display: none;
}

.single-property #headingThree {
  border-bottom: none;
}

.single-property .accordion-item:last-of-type .accordion-collapse {
  border-top: 1px solid #eaeaea;
}

.single-property .info-table {
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  margin-left: 60px;
}

.single-property .info-table ul li {
  display: block;
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #eee;
}

.single-property .info-table ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.single-property .info-table ul li img {
  float: left;
  margin-right: 25px;
}

.single-property .info-table ul li h4 {
  font-size: 22px;
  font-weight: 600;
}

.single-property .info-table ul li h4 span {
  font-size: 15px;
  color: #aaa;
  font-weight: 400;
}


/* 
---------------------------------------------
Contact Page Style
--------------------------------------------- 
*/

.contact-page #map {
  margin-top: 100px;
}

.contact-page .section-heading {
  margin-bottom: 40px;
  margin-right: 280px;
}

.contact-page p {
  margin-bottom: 50px;
}

.contact-page .item {
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: #fff;
  display: inline-block;
  min-width: 360px;
}

.contact-page .phone {
  margin-bottom: 30px;
}

.contact-page .item img {
  float: left;
  margin-right: 25px;
  vertical-align: middle;
}

.contact-page .item h6 {
  font-size: 20px;
  font-weight: 600;
  vertical-align: middle;
}

.contact-page .item h6 span {
  font-size: 15px;
  color: #aaaaaa;
  font-weight: 400;
}

.contact-page #contact-form {
  margin-left: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 35px 30px;
  background-color: #fff;
}

.contact-page #contact-form label {
  font-size: 15px;
  color: #3a3a3a;
  margin-bottom: 15px;
}

.contact-page #contact-form input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background-color: #f6f6f6;
  border: none;
  margin-bottom: 30px;
  font-size: 14px;
  padding: 0px 15px;
}

.contact-page #contact-form textarea {
  width: 100%;
  height: 150px;
  max-height: 180px;
  border-radius: 22px;
  background-color: #f6f6f6;
  border: none;
  margin-bottom: 40px;
  font-size: 14px;
  padding: 15px 15px;
}

.contact-page #contact-form button {
  background-color: #1e1e1e;
  height: 44px;
  border-radius: 22px;
  padding: 0px 20px;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 500;
  transition: all .5s;
}

.contact-page #contact-form button:hover {
  background-color: var(--secondary-color);
}


/* 
---------------------------------------------
Responsive Style
--------------------------------------------- 
*/

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Correction globale des débordements */
* {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  /* Force le respect des limites sur mobile */
  html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Empêche les débordements horizontaux */
  .container-fluid,
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 767px) {
  .header-area .main-nav .logo h1 {
    line-height: 80px !important;
    font-size: 24px;
  }
  .best-deal .tabs-content .nav-link {
    font-size: 13px;
    padding: 0px 12px;
    height: 40px;
    line-height: 40px;
  }
  .best-deal .tabs-content ul.nav-tabs li {
    margin: 0px 3px;
  }
  .properties ul.properties-filter li a {
    font-size: 13px;
    padding: 8px 12px;
  }
  .properties ul.properties-filter li {
    margin: 3px;
  }
  .header-area .main-nav .nav li:last-child {
    display: none;
  }
  .properties .item {
    min-height: auto;
  }
  .properties .item .card-image {
    height: 160px;
  }
  
  /* Réduction des espaces généraux sur mobile */
  .section {
    margin-top: 80px;
  }
  
  .section-heading {
    margin-bottom: 40px;
  }
  
  .section-heading h2 {
    font-size: 28px;
    line-height: 36px;
  }
  
  .section-heading h6 {
    font-size: 13px;
  }
  
  /* Optimisation du hero banner */
  .main-banner .item span.category {
    font-size: 14px;
    padding: 5px 12px;
    margin-bottom: 20px;
  }
  
  .main-banner .item h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

@media (max-width: 992px) {
  .sub-header {
    display: none;
  }
  .header-area .main-nav .logo h1 {
    line-height: 100px;
  }
  .background-header .main-nav .logo h1 {
    line-height: 80px;
  }
  .header-area .main-nav .nav li a {
    padding-left: 3px;
    padding-right: 3px;
  }
  .header-area .main-nav .nav li:last-child a {
    padding-right: 15px;
  }
  .main-banner .item h2 {
    width: 100%;
  }
  .featured .section-heading {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 100px;
  }
  .featured .accordion {
    margin-left: 0px;
    margin-right: 0px;
  }
  .featured .info-table {
    margin-top: 45px;
  }
  .fun-facts .counter {
    margin-bottom: 45px;
  }
  .best-deal .section-heading {
    text-align: center;
  }
  .best-deal .tabs-content ul.nav-tabs {
    margin-top: 0px;
    justify-content: center;
  }
  .best-deal .tabs-content ul.nav-tabs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 80px;
    margin-top: 0;
    gap: 16px;
  }

.best-deal .tabs-content .nav-tabs .nav-item {
  margin: 0 !important;
}

.best-deal .tabs-content .nav-tabs .nav-link {
  min-width: 150px;
  text-align: center;
}
  .best-deal .info-table {
    margin-bottom: 45px;
  }
  .best-deal .tab-content .tab-image {
    padding: 0px;
  }
  .best-deal .tabs-content h4 {
    margin-top: 45px;
  }
  .properties .item h6 {
    text-align: center;
    margin-bottom: 15px;
  }
  .properties .item .main-button {
    text-align: center;
  }
  .properties .item ul li {
    margin-right: 10px;
    font-size: 13px;
  }
  .contact-content .phone {
    margin-right: 0px;
    margin-bottom: 20px;
  }
  .contact-content .email {
    margin-left: 0px;
    margin-bottom: 45px;
  }
  .contact-content #contact-form {
    margin-left: 0px;
  }
  .single-property .info-table {
    margin-left: 0px;
    margin-top: 45px;
  }
  .contact-page .section-heading {
    margin-right: 0px !important;
  }
  .contact-page #contact-form {
    margin-left: 0px;
    margin-top: 60px;
  }
  .best-deal .info-table ul li span {
    float: right !important;
    width: auto !important;
  }
  .properties .item {
    min-height: 550px;
  }
  .properties .item .card-image {
    height: 200px;
  }
}

@media (max-width: 1200px) {
  .best-deal .info-table ul li span {
    float: none;
    width: 100%;
  }
  .contact-page .section-heading {
    margin-right: 100px;
  }
  .properties .item {
    min-height: 550px;
  }
}

/* Accordion text styles */
.accordion-body {
  color: #ffffff !important;
}

.accordion-body strong {
  color: #ffffff !important;
}

/* Phone icon color */
.sub-header .info i {
  color: #ffffff !important;
}

/* Properties cards more fit */
.properties .item {
  padding: 25px 20px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
  height: auto;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.properties .item .card-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 200px;
  margin-bottom: 20px;
}

.properties .item .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.properties .item .main-button {
  text-align: center;
  margin-top: auto;
  width: 100%;
}

.properties .item .main-button a {
  width: 90%;
  max-width: 260px;
  display: block;
  margin: 0 auto 0 auto;
  text-align: center;
  color: #ffffff;
}

/* Gallery cards specific styles */
.properties .item h4 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
}

.properties .item p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.properties .item span.category {
  background-color: var(--secondary-color);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 15px;
}

/* Responsive styles for properties */
@media (max-width: 768px) {
  .properties .item {
    margin-bottom: 20px;
    min-height: 320px;
    padding: 20px 15px;
  }
  
  .properties .item .card-image {
    height: 160px;
    margin-bottom: 15px;
  }
  
  .properties .item h4 {
    font-size: 17px;
    margin: 10px 0 12px 0;
    min-height: 40px;
  }
  
  .properties .item p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .properties .item ul li {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  
  .properties .item span.category {
    font-size: 12px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }
  
  .properties .item .main-button a {
    padding: 8px 0;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
  }
}

/* Responsive styles for hero */
@media (max-width: 992px) {
  .main-banner .item {
    padding: 40px 2% 60px 2%;
    min-height: 300px;
    height: 300px;
    max-height: 300px;
  }
  
  .main-banner .item h2 {
    font-size: 42px;
    line-height: 48px;
    width: 100%;
  }
  
  .main-banner .item span.category {
    font-size: 16px;
    padding: 6px 15px;
  }
}

@media (max-width: 768px) {
  .main-banner .item {
    padding: 20px 5% 30px 5%;
    min-height: 250px;
    height: 250px;
    max-height: 250px;
  }
  
  .main-banner .item h2 {
    font-size: 28px;
    line-height: 34px;
  }
  
  .main-banner .item span.category {
    font-size: 13px;
    padding: 4px 10px;
    margin-bottom: 15px;
  }
}

/* Empêche l'icône calendar du lien Contact de passer en vert au hover */
.header-area .main-nav .nav li a i.fa-calendar {
  color: var(--text-color) !important;
  transition: color 0.3s;
}
.header-area .main-nav .nav li:hover a i.fa-calendar,
.header-area .main-nav .nav li a.active i.fa-calendar {
  color: var(--text-color) !important;
}

/* Uniformise la hauteur des cards de la galerie */
#photos .item {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px; /* réduit la hauteur minimale */
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 20px 15px;
  margin-bottom: 30px;
}

#photos .item .card-image {
  height: 140px; /* réduit la hauteur de l'image */
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#photos .item .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

#photos .item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0 0; /* marge supprimée sous le titre */
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#photos .item p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Ajoute un espace entre les lignes de cards dans la galerie */
#photos .container .row {
  row-gap: 20px; /* espace vertical entre les lignes */
  column-gap: 15px; /* espace horizontal entre les colonnes */
}

@media (max-width: 768px) {
  #photos .container .row {
    row-gap: 15px;
    column-gap: 10px;
    margin: 0;
    padding: 0;
  }
  
  #photos .row {
    margin: 0 -10px;
  }
  
  #photos .col-lg-4, #photos .col-md-6 {
    padding: 0 10px;
    margin-bottom: 15px;
  }
}

/* Empêche le titre Photos / Réalisations de passer à la ligne */
#photos .section-heading h2 {
  white-space: nowrap;
}

/* Empêche le titre Radiateurs & Accessoires de passer à la ligne */
#vente .section-heading h2 {
  white-space: nowrap;
}

#vente .section-heading,
#vente .section-heading h2 {
  border-bottom: none !important;
  box-shadow: none !important;
}

@media (max-width: 500px) {
  #vente .section-heading h2 {
    font-size: 22px;
  }
}

/* Empêche le titre Réparations & Conception de passer à la ligne */
#reparations .section-heading h2 {
  white-space: nowrap;
}

/* Centre le titre Réparations & Conception dans la section */
#reparations .section-heading,
#reparations .section-heading h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}


/* Optionnel : ajuste le logo contact si besoin */
.contact-logo img {
  max-width: 120px;
  display: block;
  margin: 0 auto 20px auto;
}

.contact .section-heading h2 {
  white-space: nowrap;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.contact .section-heading h2 {
  white-space: nowrap;
  display: inline-block;
}

.contact-content .col-lg-5 {
  margin-bottom: 80px;
}

.section-heading,
.section-heading h2,
.section-heading h6 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.section-heading p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.main-banner .item .header-text,
.main-banner .item h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

footer p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.text-center {
  text-align: center !important;
}

.vente-carousel-img {
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
@media (max-width: 768px) {
  .vente-carousel-img {
    height: 160px;
  }
  
  .best-deal .info-table {
    padding: 25px 20px;
  }
  
  .best-deal .info-table ul li {
    font-size: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }
  
  .best-deal h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .best-deal p {
    font-size: 14px;
    line-height: 1.5;
  }
}

.section-heading.text-start {
  text-align: left !important;
  margin-bottom: 0;
}

.best-deal .tabs-content ul.nav-tabs {
  margin-bottom: 0;
  margin-top: 0;
}

.best-deal .tabs-content .nav-tabs .nav-link,
.best-deal .tabs-content .nav-tabs button.nav-link {
  display: inline-block !important;
  background-color: var(--secondary-color) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  height: 50px !important;
  line-height: 50px !important;
  border-radius: 25px !important;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(69, 186, 1, 0.3) !important;
  padding: 0 25px !important;
  border: none !important;
  cursor: pointer !important;
  text-align: center !important;
  margin: 0 6px !important;
  outline: none !important;
  background-image: none !important;
  box-sizing: border-box !important;
}

.best-deal .tabs-content .nav-tabs .nav-link:hover,
.best-deal .tabs-content .nav-tabs button.nav-link:hover,
.best-deal .tabs-content .nav-tabs .nav-link.active,
.best-deal .tabs-content .nav-tabs button.nav-link.active {
  background-color: var(--secondary-color-hover) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
  border: none !important;
}

.best-deal .tabs-content .nav-tabs .nav-link:focus,
.best-deal .tabs-content .nav-tabs button.nav-link:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--secondary-color-hover) !important;
}

/* Reset Bootstrap button/tab styles */
.best-deal .tabs-content .nav-tabs button.nav-link {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
}

.main-button.inactive {
  background-color: transparent !important;
  color: #ffff !important;
  box-shadow: none !important;
}

.vente-heading {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.vente-label {
  color: var(--secondary-color);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.vente-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
}
@media (max-width: 600px) {
  .vente-title {
    font-size: 1.3rem;
  }
}

/* --- Galerie en grid moderne --- */
#photos .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  #photos .row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  #photos .row {
    grid-template-columns: 1fr;
  }
}

#photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centre verticalement si hauteur définie */
  min-height: 80vh;        /* occupe au moins 80% de la hauteur de la fenêtre */
  padding-top: 40px;
  padding-bottom: 40px;
}

#photos .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#photos .section-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px; /* espace entre le titre et la grille */
}

#photos .section-heading h2 {
  text-align: center;
  margin: 0;
  width: 100%;
  display: block;
}

#photos .row {
  width: 100%;
  justify-content: center;
}

#photos .item {
  display: flex;
  flex-direction: column;
  height: 370px;           /* Hauteur fixe pour toutes les cards */
  min-height: 370px;
  max-height: 370px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  padding: 20px 15px;
  overflow: hidden;
}

@media (max-width: 768px) {
  #photos .item {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    padding: 15px 12px;
  }
  
  #photos .item .card-image {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    margin-bottom: 10px;
  }
  
  #photos .item h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
    min-height: 20px;
  }
  
  #photos .item p {
    font-size: 12px;
    line-height: 1.4;
  }
  
  #photos .item span.category {
    font-size: 11px;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
}

#photos .item .card-image {
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#photos .item .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

#photos .item h4,
#photos .item p {
  margin-bottom: 0;
}

#photos .item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0 0; /* marge supprimée sous le titre */
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#photos .item p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
  align-items: flex-end;
  /* Optionnel : ellipsis si trop long */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Harmonise la hauteur des slides du hero (encore plus grand) */
.main-banner .item {
  min-height: 520px;
  height: 520px;
  max-height: 520px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 992px) {
  .main-banner .item {
    min-height: 350px;
    height: 350px;
    max-height: 350px;
  }
}

@media (max-width: 600px) {
  .main-banner .item {
    min-height: 280px;
    height: 280px;
    max-height: 280px;
  }
}

#photos .section-heading h2,
#photos .section-heading h6 {
  text-align: center !important;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#photos .section-heading {
  text-align: center !important;
  justify-content: center !important;
}


.contact-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 10px;
}
.contact-card-link .item {
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  cursor: pointer;
}
.contact-card-link:hover .item,
.contact-card-link:focus .item {
  transform: scale(1.045);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.contact-card-link .item h6,
.contact-card-link .item span,
.contact-card-link .item i {
  color: inherit !important;
  text-decoration: none !important;
}
.contact-card-link:active,
.contact-card-link:visited {
  color: inherit !important;
}

/* Aligne parfaitement les cartes de contact sur une ligne */
.contact-content .row[style*="margin-bottom"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.contact-content .col-lg-4 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.contact-card-link {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
}

.contact-card-link .item {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  text-align: center;
  /* Optionnel : pour un look plus carré */
  border-radius: 12px;
}

@media (max-width: 768px) {
  .contact-card-link .item {
    min-height: 120px;
    padding: 20px 15px;
  }
  
  .contact-content .item .icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
  }
  
  .contact-content .item .icon-wrapper i {
    font-size: 20px;
  }
  
  .contact-content .item h6 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .contact-content .item h6 span {
    font-size: 12px;
  }
}

/* Styles pour tablette et mobile */
@media (max-width: 992px) {
  .header-area {
    position: relative;
    overflow: visible;
  }
  
  .header-area .main-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .header-area .main-nav .logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
  }
  
  .header-area .main-nav .menu-trigger {
    display: block !important;
    position: absolute;
    top: 30px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
    width: 32px;
    height: 32px;
  }
  
  .background-header .main-nav .menu-trigger {
    top: 24px;
  }
  
  .header-area .main-nav .nav {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    background: var(--dark-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  
  .header-area .main-nav .nav.show {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .header-area .main-nav .nav li {
    width: 100%;
    height: auto;
    line-height: normal;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  .header-area .main-nav .nav.show li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .header-area .main-nav .nav.show li:nth-child(1) { transition-delay: 0.1s; }
  .header-area .main-nav .nav.show li:nth-child(2) { transition-delay: 0.15s; }
  .header-area .main-nav .nav.show li:nth-child(3) { transition-delay: 0.2s; }
  .header-area .main-nav .nav.show li:nth-child(4) { transition-delay: 0.25s; }
  .header-area .main-nav .nav.show li:nth-child(5) { transition-delay: 0.3s; }
  .header-area .main-nav .nav.show li:nth-child(6) { transition-delay: 0.35s; }
  .header-area .main-nav .nav.show li:nth-child(7) { transition-delay: 0.4s; }
  
  .header-area .main-nav .nav li:last-child {
    border-bottom: none;
  }
  
  .header-area .main-nav .nav li a {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    min-height: 54px;
    text-align: left;
  }
  
  .header-area .main-nav .nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(69, 186, 1, 0.1), transparent);
    transition: left 0.6s ease;
  }
  
  .header-area .main-nav .nav li a:hover::before {
    left: 100%;
  }
  
  .header-area .main-nav .nav li a:hover,
  .header-area .main-nav .nav li a.active {
    color: var(--secondary-color);
    background-color: rgba(69, 186, 1, 0.08);
    padding-left: 30px;
    box-shadow: inset 3px 0 0 var(--secondary-color);
    transform: translateX(2px);
  }
  
  /* Animation d'ouverture/fermeture optimisée */
  

}

@media (max-width: 992px) {
  .header-area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .header-area .container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .header-area .main-nav {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .header-area .main-nav .nav {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 992px) {
  .header-area {
    position: relative !important;
    z-index: 100;
  }
  .header-area .container {
    position: static !important; /* important pour que .main-nav soit bien positionné */
  }
  .header-area .main-nav {
    position: static !important; /* important pour que .nav soit positionné par rapport au header */
  }
  .header-area .main-nav .nav {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    /* conserve tes transitions et styles d'ouverture */
  }
}

@media (max-width: 992px) {
  .header-area .main-nav {
    min-height: 80px;
    padding: 0 10px;
  }
  .header-area .main-nav ul.nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-area .main-nav ul.nav.show {
    opacity: 1;
    pointer-events: auto;
    max-height: 420px;
  }
  .header-area .main-nav ul.nav li {
    height: auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    justify-content: flex-start;
  }
  .header-area .main-nav ul.nav li:last-child {
    border-bottom: none;
  }
  .header-area .main-nav ul.nav li a {
    padding: 18px 25px;
    height: auto;
    border-radius: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  #vente .col-12.col-lg-2.d-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
  }
  #vente .col-12.col-lg-2.d-flex .main-button {
    width: 100%;
    margin: 0 !important;
  }
}

@media (max-width: 991.98px) {
  #vente .d-flex.justify-content-lg-end.justify-content-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  #vente .d-flex.justify-content-lg-end.justify-content-center .main-button {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
  }
}

@media (max-width: 991.98px) {
  #vente .d-flex.justify-content-lg-end.justify-content-center {
    flex-direction: column !important;
    align-items: center !important; /* <-- centre les boutons horizontalement */
    gap: 12px !important;
  }
  #vente .d-flex.justify-content-lg-end.justify-content-center .main-button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
    white-space: normal !important; /* autorise le retour à la ligne */
    word-break: break-word !important;
  }
}

@media (max-width: 991.98px) {
  #vente .col-12.col-lg-2 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

@media (max-width: 600px) {
  .header-area .main-nav .logo img {
    height: 28px;
    max-width: 36px;
  }
  .header-area .main-nav .logo h1 {
    font-size: 1.2rem;
    height: 28px;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  margin-left: 16px;
}
.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 4px;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 38px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--secondary-color);
  color: #fff;
}
footer p {
  margin-bottom: 0;
}

.text-white em {
  color: #fff !important;
  font-style: normal;
}

#review-scores {
  margin-bottom: 32px;
}
.review-score-card {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  max-width: 240px;
  width: 100%;
  margin: 0 8px;
}
.review-score-logo img {
  height: 36px;
  margin-bottom: 10px;
}
.review-score-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-end;
}
.review-score-value .score-total {
  font-size: 1.2rem;
  color: #fff;
  margin-left: 2px;
}
.review-score-reviews {
  font-size: 1rem;
  color: #fff;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .review-score-card {
    padding: 16px 8px;
    min-width: 120px;
    max-width: 100%;
  }
  #review-scores .col-md-4 {
    margin-bottom: 12px;
  }
}