/* ===== FRICAIMMO PAGE STYLES ===== */
:root {
  --brand: #92400e;
  --brand-light: #d97706;
  --brand-dark: #78350f;
  --brand-pale: #fffbeb;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --navy: #1e293b;
  --accent: #f59e0b;
  --accent2: #d97706;
}

/* ===== CONTACT SECTION OVERRIDES (amber/gold theme) ===== */
.contact-item .ci-icon {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.btn-submit:hover {
  background: #fbbf24;
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.value-item:hover {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
}

/* ===== FRICAIMMO HERO ===== */
.fi-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #292524 100%);
  display: flex;
  align-items: center;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.fi-hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% 35%, rgba(245,158,11,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 35% 40% at 15% 75%, rgba(146,64,14,0.15) 0%, transparent 65%);
}

.fi-hero-grid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 55px 55px;
}

.fi-hero-content { position: relative; max-width: 680px; }

.fi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fi-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.fi-hero h1 span {
  background: linear-gradient(135deg, #fcd34d, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fi-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Property cards visual */
.fi-hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
}

.prop-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 14px;
  padding: 18px 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.prop-card:hover { transform: translateX(-6px); }

.prop-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.prop-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.prop-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(245,158,11,0.2);
  color: var(--gold-light);
}

.prop-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.prop-card .prop-price { font-size: 18px; font-weight: 900; color: var(--gold); }
.prop-card .prop-loc { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ===== SERVICES ===== */
.fi-services { background: #fafaf9; }

.fi-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fi-service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1.5px solid #e7e5e4;
  transition: all 0.3s ease;
}

.fi-service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(245,158,11,0.12);
  transform: translateY(-6px);
}

a.fi-service-card { display: block; color: inherit; }

.fi-service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  transition: gap 0.2s;
}

.fi-service-card:hover .fi-service-link { color: var(--gold); }

.fi-service-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.fi-service-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.fi-service-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.fi-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.fi-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--brand-pale);
  color: var(--brand);
  border-radius: 100px;
}

/* ===== POURQUOI INVESTIR ===== */
.fi-invest { background: #fff; }

.fi-invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.fi-invest-content h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.fi-invest-content p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 32px;
}

.fi-invest-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fi-invest-stat {
  padding: 24px;
  background: var(--brand-pale);
  border-radius: 14px;
  border-left: 4px solid var(--gold);
}

.fi-invest-stat .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}

.fi-invest-stat .lbl { font-size: 13px; color: #6b7280; line-height: 1.4; }

.fi-invest-visual {
  background: linear-gradient(135deg, var(--brand-dark), #92400e);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
}

.fi-invest-visual h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}

.fi-advantages { display: flex; flex-direction: column; gap: 0; }

.fi-adv {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fi-adv:last-child { border-bottom: none; }

.fi-adv-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,158,11,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.fi-adv h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.fi-adv p { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ===== BIENS PHARES ===== */
.fi-listings { background: #fafaf9; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.listing-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #e7e5e4;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.15);
  border-color: var(--gold);
}

.listing-img {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.listing-card:nth-child(1) .listing-img { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.listing-card:nth-child(2) .listing-img { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.listing-card:nth-child(3) .listing-img { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); }
.listing-card:nth-child(4) .listing-img { background: linear-gradient(135deg, #fdf4ff, #e9d5ff); }
.listing-card:nth-child(5) .listing-img { background: linear-gradient(135deg, #fff1f2, #fecdd3); }
.listing-card:nth-child(6) .listing-img { background: linear-gradient(135deg, #ecfdf5, #a7f3d0); }

/* ---- Card Carousel ---- */
.fc-track {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.fc-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
  display: block;
}

.fc-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  pointer-events: none;
}
.fc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
}
.fc-dot.active { background: #fff; transform: scale(1.3); }

.fc-prev, .fc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 20;
  padding: 0;
  transition: opacity 0.2s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.fc-prev { left: 8px; }
.fc-next { right: 8px; }
.fc-prev:hover, .fc-next:hover { background: #fff; }
.fc-prev:active, .fc-next:active { background: #f59e0b; color: #fff; }

.fc-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 20;
  pointer-events: none;
}

.listing-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  z-index: 5;
}

.status-vente   { background: rgba(0,0,0,0.55); color: #fff; }
.status-location { background: rgba(0,0,0,0.55); color: #fff; }
.status-invest  { background: rgba(0,0,0,0.55); color: #fff; }
.status-loc     { background: rgba(0,0,0,0.55); color: #fff; }

.listing-certif-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #92400e, #f59e0b);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
}

.listing-meta-row-below {
  padding: 6px 16px 2px;
  display: flex;
  align-items: center;
}

.listing-body {
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.listing-footer {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-footer .listing-btn,
.listing-footer .listing-btn-detail {
  margin-top: 0;
}

.listing-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.listing-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.listing-loc {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.listing-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 12px;
}

.listing-details {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6b7280;
}

.listing-details span { display: flex; align-items: center; gap: 4px; }

/* ===== LISTINGS TABS ===== */
.listings-page-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.listings-tab {
  flex: 1;
  min-width: 220px;
  padding: 18px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.listings-tab-vente {
  background: var(--brand-pale);
  color: var(--brand-dark);
  border-color: var(--gold);
}

.listings-tab-vente:hover {
  background: var(--gold);
  color: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}

.listings-tab-loc {
  background: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.listings-tab-loc:hover {
  background: #3b82f6;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

/* ===== PROCESSUS ===== */
.fi-process { background: #fff; }

.fi-process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.fi-process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #f97316);
  z-index: 0;
}

.fi-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.fi-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}

.fi-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.fi-step p { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* ===== PUBLIER UN BIEN ===== */
.fi-publish { background: var(--brand-pale); }

.fi-publish-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.fi-publish-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 28px;
}

.fi-pub-avantages { display: flex; flex-direction: column; gap: 24px; }

.fi-pub-adv {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fi-pub-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(245,158,11,0.12);
}

.fi-pub-adv h4 { font-size: 15px; font-weight: 700; color: var(--brand-dark); margin-bottom: 4px; }
.fi-pub-adv p { font-size: 13px; color: #6b7280; line-height: 1.5; }

.fi-publish-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

.fi-submit-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #78350f;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
  transition: all .2s ease;
  text-align: center;
}
.fi-submit-btn:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 6px 24px rgba(245,158,11,.4);
  transform: translateY(-2px);
}
.fi-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245,158,11,.25);
}
.fi-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.fi-radio-group {
  display: flex;
  gap: 12px;
}

.fi-radio {
  flex: 1;
  cursor: pointer;
}

.fi-radio input[type="radio"] { display: none; }

.fi-radio span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #e7e5e4;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.2s ease;
}

.fi-radio input[type="radio"]:checked + span {
  border-color: var(--gold);
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.fi-upload-zone {
  position: relative;
  border: 2px dashed #d6d3d1;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.fi-upload-zone:hover { border-color: var(--gold); }

.fi-upload-zone input[type="file"] {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.fi-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  cursor: pointer;
}

.fi-upload-icon { font-size: 32px; }
.fi-upload-label span { font-size: 14px; font-weight: 600; color: #374151; }
.fi-upload-label small { font-size: 12px; color: #9ca3af; }

.fi-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 8px 0;
}

.fi-divider::before,
.fi-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e7e5e4;
}

/* ===== CTA ===== */
.fi-cta {
  background: linear-gradient(135deg, var(--brand-dark), #92400e, #b45309);
  color: #fff;
  text-align: center;
  padding: 96px 5%;
}

.fi-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.fi-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}

.btn-gold {
  background: var(--gold);
  color: var(--brand-dark);
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ===== NAVBAR IMMO — double rangée LeBonCoin ===== */

/* Badge partagé */
.fav-badge, .msg-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  line-height: 1;
  border: 1.5px solid rgba(10,14,26,0.97);
}

/* Conteneur nav en colonne */
.navbar-immo {
  background: rgba(10, 14, 26, 0.98);
  flex-direction: column;
  height: auto;
  padding: 0;
  align-items: stretch;
}

/* ── RANGÉE 1 : logo · publier · recherche · icônes ── */
.nav-top {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 4%;
  gap: 16px;
}

.nav-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-publish-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #78350f;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}

.nav-publish-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-publish-btn::after { display: none; }

/* Barre de recherche */
.nav-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  margin: 0 auto;
}

.nav-search:focus-within {
  border-color: rgba(245,158,11,0.35);
  background: rgba(255,255,255,0.09);
}

.nav-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f9fafb;
  font-size: 14px;
  padding: 0 14px;
  font-family: inherit;
  min-width: 0;
}

.nav-search input::placeholder { color: rgba(255,255,255,0.36); }

.nav-search-btn {
  background: #f59e0b;
  border: none;
  color: #78350f;
  font-size: 16px;
  padding: 0 16px;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-search-btn:hover { opacity: 0.85; }

/* Icônes droite */
.nav-top-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-icon-action:hover { background: rgba(255,255,255,0.06); }
.nav-icon-action.active { background: rgba(245,158,11,0.08); }

.nav-icon-action-icon {
  font-size: 20px;
  line-height: 1;
  position: relative;
  display: inline-flex;
}

.nav-icon-action-icon .fav-badge,
.nav-icon-action-icon .msg-badge {
  position: absolute;
  top: -4px; right: -7px;
}

.nav-icon-action-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.58);
  white-space: nowrap;
  line-height: 1;
}

.nav-icon-action:hover .nav-icon-action-label { color: #fff; }
.nav-icon-action.active .nav-icon-action-label { color: #f59e0b; }
.nav-icon-action.auth-logged .nav-icon-action-label { color: #fcd34d; }

/* Sélecteur pays dans la navbar */
.nav-pays-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  max-width: 145px;
}
.nav-pays-select:hover {
  background-color: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.22);
}
.nav-pays-select:focus { border-color: rgba(245,158,11,0.5); }
.nav-pays-select option, .nav-pays-select optgroup { background: #111827; color: #f9fafb; }

/* ── RANGÉE 2 : catégories ── */
.nav-cats {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0 4%;
  display: flex;
  align-items: center;
  height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-cats::-webkit-scrollbar { display: none; }

.nav-cats-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-cat-sep {
  color: rgba(255,255,255,0.18);
  font-size: 13px;
  padding: 0 4px;
  user-select: none;
}

.nav-cat-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  padding: 4px 9px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cat-link::after { display: none; }

.nav-cat-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-cat-link.active {
  color: #f59e0b;
  font-weight: 700;
}

.nav-cat-group {
  color: rgba(255,255,255,0.28) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-left: 8px;
}

.nav-cat-group:hover { color: rgba(255,255,255,0.55) !important; }

/* Dropdown Louer dans la barre catégories */
.nav-cat-dropdown-wrap { position: relative; }

.nav-cat-dropdown-wrap:hover .nav-cat-dropdown,
.nav-cat-dropdown-wrap:focus-within .nav-cat-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-cat-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 215px;
  background: #0d1526;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.nav-cat-dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-cat-dropdown a:hover {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
}

/* Menu mobile */
.nav-mobile-menu {
  position: fixed;
  top: 108px;
  left: 0; right: 0;
  background: #0a0e1c;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 5% 20px;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
}

.nav-mobile-menu.open { transform: translateY(0); }

.nav-mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-mobile-menu a:hover {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
}

.nav-mobile-sep {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 0;
}

.nav-mobile-cta {
  background: #f59e0b !important;
  color: #78350f !important;
  text-align: center;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 13px !important;
  border-radius: 10px;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-cats { display: none; }
  .nav-publish-btn .nav-publish-label { display: none; }
  .nav-icon-action-label { display: none; }
  .navbar-immo .hamburger { display: flex !important; }
}

/* ===== NAVBAR MOBILE (≤ 600px) — Style LeBonCoin ===== */
.nav-mobile-searchbar { display: none; }
.nav-mobile-cats { display: none; }
.nav-mobile-publish { display: none; }

@media (max-width: 600px) {

  /* --- Navbar : hauteur fixe 56px, hamburger positionné en absolu à gauche --- */
  .navbar-immo {
    height: 56px;
    overflow: visible;
  }

  /* Hamburger : sorti du flux, collé à gauche de la navbar */
  .navbar-immo .hamburger {
    display: flex !important;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    margin: 0;
  }

  /* nav-top : toute la hauteur, laisse de la place à gauche pour le hamburger */
  .nav-top {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 8px 0 52px; /* 52px gauche = espace hamburger */
    gap: 8px;
    overflow: hidden;
  }

  /* Logo + bouton Publier (petit) à gauche */
  .nav-top-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  /* Masquer le bouton Publier dans la navbar (remplacé par la barre dédiée) */
  .nav-publish-btn { display: none !important; }

  /* Icônes à droite */
  .nav-top-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }

  /* Masquer la barre de recherche desktop */
  .nav-search { display: none; }

  /* Masquer le sélecteur desktop (trop peu d'espace dans la navbar mobile) */
  .nav-pays-select { display: none; }

  /* --- Ligne 2 : barre de recherche --- */
  .nav-mobile-searchbar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 56px; /* ajusté par JS au chargement */
    left: 0; right: 0;
    height: 56px;
    z-index: 1010;
    background: #fff;
    padding: 0 12px;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
  }
  .nav-mobile-searchbar form {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    padding: 0 4px 0 14px;
    gap: 6px;
    flex: 1;
    min-width: 0;
    height: 40px;
  }
  .nav-mobile-searchbar form:focus-within {
    border-color: #f59e0b;
    background: #fff;
  }
  .nav-mobile-searchbar input {
    flex: 1;
    background: none;
    border: none;
    color: #111827;
    font-size: 15px;
    padding: 0;
    outline: none;
    min-width: 0;
    font-family: inherit;
    height: 40px;
  }
  .nav-mobile-searchbar input::placeholder { color: #9ca3af; }
  .nav-mobile-searchbar button {
    background: #f59e0b;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    color: #78350f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Sélecteur pays dans la barre de recherche mobile */
  .nav-pays-mb {
    flex-shrink: 0;
    height: 40px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 0 28px 0 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23374151'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
    max-width: 140px;
    min-width: 90px;
  }
  .nav-pays-mb:focus {
    outline: none;
    border-color: #f59e0b;
  }
  .nav-pays-mb option,
  .nav-pays-mb optgroup { background: #fff; color: #111827; }

  /* --- Ligne 3 : catégories scrollables --- */
  .nav-mobile-cats {
    display: flex;
    align-items: center;
    position: fixed;
    top: 112px;
    left: 0; right: 0;
    height: 44px;
    z-index: 1009;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
    gap: 8px;
    white-space: nowrap;
    box-sizing: border-box;
  }
  .nav-mobile-cats::-webkit-scrollbar { display: none; }
  .nav-mobile-cats a {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
  }
  .nav-mobile-cats a.active,
  .nav-mobile-cats a:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
  }

  /* --- Ligne 4 : bouton Publier un bien --- */
  .nav-mobile-publish {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 156px;
    left: 0; right: 0;
    height: 52px;
    z-index: 1008;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 12px;
    box-sizing: border-box;
  }
  .nav-mobile-publish-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    color: #78350f;
    font-size: 14px;
    font-weight: 700;
    padding: 0 24px;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    height: 36px;
    gap: 6px;
    transition: opacity 0.15s;
    box-sizing: border-box;
  }
  .nav-mobile-publish-btn:hover { opacity: 0.88; }

  /* Fallback CSS : décalage body avant que le JS tourne (56 nav + 56 search + 44 cats + 52 publish) */
  body { padding-top: 208px; }

  /* padding-top géré par JS sur body — on réinitialise les valeurs CSS fixes */
  main, .listings-header, .fi-hero, .detail-main,
  .fmsg-page-header, .fav-page-header, .fcompte-main,
  main.listings-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Menu hamburger sous le stack complet */
  .nav-mobile-menu {
    top: calc(56px + 152px) !important;
  }

  /* Masquer la recherche dupliquée dans le menu hamburger */
  .nav-mobile-search { display: none !important; }
}

@media (min-width: 601px) {
  .nav-mobile-search { display: none; }
}

@media (min-width: 901px) {
  .nav-mobile-menu { display: none !important; }
  .navbar-immo .hamburger { display: none !important; }
}

/* Correction décalage sous navbar (108px) */
.fcompte-main { padding-top: 120px !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .fi-hero-visual { display: none; }
  .fi-hero { padding: 120px 5% 64px; }
  .fi-services-grid { grid-template-columns: repeat(2, 1fr); }
  .fi-invest-grid { grid-template-columns: 1fr; gap: 40px; }
  .listings-grid { grid-template-columns: 1fr; }
  .fi-process-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .fi-process-steps::before { display: none; }
  .fi-publish-wrapper { grid-template-columns: 1fr; gap: 40px; }
  section, .fi-hero, .fi-services, .fi-invest, .fi-listings,
  .fi-process, .fi-publish, .fi-diaspora, .fi-juridique { padding-left: 4%; padding-right: 4%; }
}

@media (max-width: 900px) {
  /* Hamburger : taille touch-friendly */
  .hamburger { width: 44px; height: 44px; justify-content: center; align-items: center; }

  /* Nav-mobile-menu : espacement et touch targets */
  .nav-mobile-menu a { padding: 13px 20px; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
  .nav-mobile-menu { max-height: calc(100vh - 64px); overflow-y: auto; }
}

@media (max-width: 768px) {
  .fi-hero { padding: 100px 5% 52px; min-height: auto; }
  .fi-hero p { font-size: 15px; margin-bottom: 28px; }
  .fi-hero-btns { flex-direction: column; gap: 12px; }
  .fi-hero-btns a, .fi-hero-btns button { width: 100%; text-align: center; justify-content: center; }
  .fi-services-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .listing-img { height: 180px; }
  .fi-invest-stats { grid-template-columns: 1fr 1fr; }
  .fi-invest-visual { padding: 28px 20px; }
  .fi-process-steps { grid-template-columns: 1fr; }
  .fi-publish-form { padding: 24px; }
  .fi-publish-form input,
  .fi-publish-form select,
  .fi-publish-form textarea { font-size: 16px !important; } /* évite zoom iOS */
  .fcompte-group input,
  .fcompte-group select { font-size: 16px !important; }
  .fcompte-profile-grid { grid-template-columns: 1fr; }
  .fcompte-profile-header { flex-direction: column; text-align: center; gap: 16px; }
}

@media (max-width: 600px) {
  .fi-hero { padding: 88px 4% 44px; }
  .fi-hero h1 { letter-spacing: -0.5px; }
  .fi-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; }
  .fi-services-grid { gap: 16px; }
  .fi-invest-stats { grid-template-columns: 1fr; }
  .fi-invest-stat { padding: 18px; }
  .fi-process-steps { gap: 20px; }
  .fi-publish-wrapper { gap: 24px; }
}

@media (max-width: 400px) {
  .fi-hero { padding: 80px 3% 36px; }
  .nav-mobile-menu a { font-size: 14px; padding: 12px 16px; }
}

/* ── Promo gratuité temporaire ─────────────────────────────────────────── */
.frica-promo-old {
  text-decoration: line-through;
  color: var(--fi-muted, #9ca3af);
  opacity: .75;
  margin-right: 6px;
}
.frica-promo-free {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .3px;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
