  @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


*{
  margin : 0;
  padding : 0;
}

:root {
  --violet: #3b254e;
  --violet-dark: #2a1839;
  --blue: #0057ff;
  --red: #cc2e2e;
  --black: #111111;
  --white: #ffffff;
  --gray: #f5f5f7;
  --success: #28a745;
  --warning: #ffc107;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ====== HEADER SECTION ====== */
 header {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #2c3e50 60%, #2c3e50 100%);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1003;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #dc3545, #667eea, #764ba2) 1;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    
}

.logo img {
    width: 200px;
    height: 64px;
    
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.menu {
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc3545, #667eea);
    transition: width 0.3s ease;
}

.menu a:hover {
    color: #dc3545;
}

.menu a:hover::after {
    width: 100%;
}

/* Services Dropdown */
.menu li {
    position: relative;
}

.menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    display: none;
    flex-direction: column;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    margin-top: 15px;
    border: 1px solid #f0f0f0;
}

.menu li:hover ul {
    display: flex;
}

.menu li ul::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.menu li ul li {
    margin: 8px 0;
}

.menu li ul li a {
    padding: 8px 24px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
}

.menu li ul li a::after {
    display: none;
}

.menu li ul li a:hover {
    background: #f8f9fa;
    color: #dc3545;
    padding-left: 25px;
}


/* ====== HAMBURGER MENU ====== */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.hamburger:hover {
  background: #e9ecef;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #2c3e50;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ====== HEADER RESPONSIVE ====== */
@media (max-width: 991px) {
  header {
    background: #ffffff;
    border-image: none;
    --mobile-header-height: 90px;
  }

  .menu {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 8px 16px 16px;
    display: flex !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    box-shadow: 0 16px 40px rgba(44, 62, 80, 0.18);
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 0 0 18px 18px;
    z-index: 1002;
    gap: 12px;
  }

  .menu.show {
    max-height: 80vh;
    opacity: 1;
    display: flex !important;
  }

  .hamburger {
    background: #2c3e50;
  }

  .hamburger span {
    background: #ffffff;
  }

  .hamburger.active {
    transform: rotate(90deg);
  }

  .menu a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 10px 12px;
    color: #333;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.04);
    border: 1px solid rgba(44, 62, 80, 0.08);
    letter-spacing: 0.2px;
  }

  .menu a:hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
  }

  .menu li ul {
    position: static;
    display: block !important;
    background: #f8f9fa;
    margin: 8px 0;
    padding: 8px;
    border-radius: 8px;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
  }

  .menu li.show ul {
    max-height: 500px;
    opacity: 1;
    transform: translateX(0);
  }

  .menu li ul li a {
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    border-bottom: none;
    background: transparent;
    border: none;
    border-radius: 8px;
  }

  .menu li ul li a:hover {
    background: #ffffff;
    color: #2c3e50;
  }

  .menu-overlay {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--mobile-header-height));
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}


/* ===== HERO SECTION ===== */
.hero-tl {
  position: relative;
  margin-top: 0;
  padding-top: 200px;
  padding-bottom: 80px;
  min-height: 60vh;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.55)),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-tl .gradien {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 87, 255, 0.35), transparent 60%);
  pointer-events: none;
}

/* ===== SEARCH FILTERS ===== */
.search-filters {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.filter-btn {
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 87, 255, 0.3);
  color: white;
}

/* ===== PROPERTY CARDS ===== */
.property-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 87, 255, 0.15);
}

/* ===== IMAGE CAROUSEL ===== */
.property-image-carousel {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.property-image-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.property-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.property-price {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--red);
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.property-content {
  padding: 20px;
}

/* ===== PROPERTY ACTIONS ===== */
.property-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.property-actions .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  padding: 8px 15px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: none;
}

.property-actions .btn-success {
  background: #25d366;
  color: white;
}

.property-actions .btn-success:hover {
  background: #128c7e;
  transform: translateY(-2px);
  color: white;
}

.property-actions .btn-primary {
  background: var(--blue);
  color: white;
}

.property-actions .btn-primary:hover {
  background: #0041cc;
  transform: translateY(-2px);
  color: white;
}

.property-features {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 0.9rem;
  color: #6c757d;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-outline-blue {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-blue:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a2e !important;
  padding: 4rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img {
  background: #f2f2f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 6px 10px;
  display: block;
}

.footer-description {
  color: #adb5bd;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #dc3545;
}

.social-links {
  display: flex;
}

.social-link {
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-2px);
}

.contact-info {
  color: #adb5bd;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}



.contact-item a{
  text-decoration: none;
  color: #dc3545;
}

.contact-item:last-child span {
  white-space: nowrap;
}

.contact-item i {
  margin-top: 2px;
}

.newsletter-text {
  color: #adb5bd;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
  color: #adb5bd;
}

.newsletter-form .btn {
  border-radius: 0 25px 25px 0;
  border: none;
}

.copyright {
  color: #6c757d;
  font-size: 0.85rem;
}

.footer-legal a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #dc3545;
}

/* ====== BOUTON RETOUR EN HAUT ====== */
.btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
  box-shadow: 0 4px 15px rgba(204, 46, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 37, 78, 0.4);
}

@media (max-width: 768px) {
  .btn-back-to-top {
    display: none;
  }
}