/* ========== NEWKEY IMMOBILIER V2 — Styles Communs ========== */

:root {
  --primary: #1a1a1a;
  --secondary: #6b6b6b;
  --accent: #efaf00;
  --accent-dark: #a88950;
  --light: #f8f7f5;
  --white: #ffffff;
  --border: #e8e6e1;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

::selection {
  background: rgba(201, 169, 110, 0.25);
  color: var(--primary);
}

/* ========== NAVBAR ========== */
.navbar-main {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-main.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-main .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-main .nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  padding: 0.5rem 1rem !important;
  transition: color 0.25s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--primary);
}

/* ========== BUTTONS ========== */
.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-dark-custom {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.5rem;
  border-radius: 0;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-dark-custom:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-light-custom {
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.5rem;
  border-radius: 0;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
  background: var(--white);
  color: var(--primary);
}

/* ========== BREADCRUMB ========== */
.breadcrumb-main {
  background: var(--light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-main .breadcrumb {
  margin: 0;
  font-size: 0.8rem;
}

.breadcrumb-main .breadcrumb-item a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.breadcrumb-main .breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-main .breadcrumb-item.active {
  color: var(--primary);
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.hero-carousel .carousel-item {
  height: 100vh;
  min-height: 600px;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 8s ease-out forwards;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}

.hero-carousel .carousel-caption-custom {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: left;
  padding: 0 2rem;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-sep {
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

/* Carousel controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(255,255,255,0.15);
}

.hero-carousel .carousel-indicators button {
  width: 32px;
  height: 3px;
  border: none;
  background: rgba(255,255,255,0.3);
  margin: 0 4px;
  transition: all 0.3s;
}

.hero-carousel .carousel-indicators button.active {
  background: var(--accent);
}

/* ========== SEARCH BAR ========== */
.search-bar-container {
  position: relative;
  z-index: 20;
  margin-top: -50px;
  padding: 0 1rem;
}

.search-bar-box {
  background: var(--white);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
  padding: 2rem;
}

/* ========== SECTIONS ========== */
.section-padding { padding: 5rem 0; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  font-weight: 500;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ========== PROJECT / PROPERTY CARDS ========== */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
}

.project-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.project-location {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


    
/* ========== CAROUSEL BIENS ========== */
.biens-carousel .carousel-control-prev,
.biens-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  opacity: 1;
  top: -70px;
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.biens-carousel .carousel-control-prev:hover,
.biens-carousel .carousel-control-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.biens-carousel .carousel-control-prev { right: 55px; left: auto; }
.biens-carousel .carousel-control-next { right: 0; left: auto; }

/* ========== NEWS CARDS ========== */
.news-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-date {
  font-size: 0.7rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* ========== AGENCY SECTION ========== */
.agency-section {
  background: var(--primary);
  color: var(--white);
}

.agency-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  min-height: 200px;
}

/* ========== ZONE PILLS ========== */
.zone-pill {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.2rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.zone-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.zone-pill .zone-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  transition: color 0.3s;
}

.zone-pill:hover .zone-name {
  color: var(--white);
}

.zone-pill .zone-count {
  display: block;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-top: 0.25rem;
  transition: color 0.3s;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  background: var(--white);
  height: 100%;
}

.testimonial-card .stars {
  color: #ffc107;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.testimonial-card .quote {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-date {
  font-size: 0.75rem;
  color: var(--secondary);
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-question {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s;
  list-style: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--secondary);
  padding-top: 1rem;
}

/* ========== FOOTER ========== */
.footer-main {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}

.footer-main h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer-main a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}

.footer-main a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  margin-top: 3rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* ========== PAGE: LISTE BIENS ========== */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.filter-sidebar h6 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--primary);
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-sidebar .form-check-label {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 300;
}

.filter-sidebar .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.chip-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0.15rem;
}

.chip-pill:hover,
.chip-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ========== PAGE: DETAIL BIEN ========== */
.gallery-main {
  position: relative;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.gallery-thumb {
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.info-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.info-bar-item {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}

.info-bar-item:last-child { border-right: none; }

.info-bar-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.info-bar-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
}

.detail-specs {
  list-style: none;
  padding: 0;
}

.detail-specs li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.detail-specs li .spec-label {
  color: var(--secondary);
  font-weight: 300;
}

.detail-specs li .spec-value {
  color: var(--primary);
  font-weight: 500;
}

.contact-sticky-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: 90px;
}

/* ========== PAGE: AGENCE ========== */
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid var(--border);
  transition: border-color 0.3s;
}

.team-card:hover .team-avatar {
  border-color: var(--accent);
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
  background: var(--white);
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.agency-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.3s;
}

.agency-card:hover {
  border-color: var(--accent);
}

/* ========== PAGE: CONTACT ========== */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.form-control-custom {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--primary);
  background: transparent;
}

.form-control-custom:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.form-control-custom::placeholder {
  color: var(--secondary);
  opacity: 0.6;
}

.agency-mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.agency-mini-card:hover {
  border-color: var(--accent);
}

.agency-mini-card h6 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.agency-mini-card p {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  font-weight: 300;
}

/* ========== ANIMATIONS ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .section-padding { padding: 3rem 0; }
  .agency-divider { display: none !important; }
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { display: none; }
  .biens-carousel .carousel-control-prev,
  .biens-carousel .carousel-control-next { display: none; }
  .info-bar-item { border-right: none; padding: 0.5rem; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
