/* ===========================================================
   PAGE-SPECIFIC COMPONENTS
   =========================================================== */

/* ---------- HERO (Accueil) ---------- */
.hero {
  background: var(--grad);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.hero .eyebrow {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.hero p.lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.chip--no svg { color: #ffb4b4; }
.chip--yes svg { color: #b9f6d4; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- WHY US (Accueil section 2) ---------- */
.section--why { background: var(--bg); }

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.price-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-card--popular { border-color: var(--emerald); box-shadow: var(--shadow-lg); }
.price-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.6rem;
  transform: rotate(0deg) translate(28%, 38%) rotate(45deg);
  transform-origin: center;
  width: 150px;
  text-align: center;
}
.price-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.price-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.price-card__period { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 500; margin: 0.5rem 0 1.5rem; }
.price-card__list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.8rem; flex: 1; }
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.price-card__list svg { color: var(--emerald); width: 17px; height: 17px; flex-shrink: 0; margin-top: 0.15rem; }

/* ---------- FINAL CTA (Accueil) ---------- */
.cta-final {
  background: var(--grad);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-final h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.7rem; }
.cta-final p { color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; }

/* ---------- ANNONCES — page head + filters ---------- */
.page-head {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 0.7rem; }
.page-head p { color: var(--muted); font-size: 1.02rem; }

.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1.1rem;
  align-items: end;
  margin-bottom: 2.8rem;
}
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .btn { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .filters { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field select, .field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
}
.field select:focus, .field input:focus { border-color: var(--emerald); outline: none; }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.results-bar strong { color: var(--navy); }

/* ---------- LISTING GRID ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 980px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.listing-card__tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.listing-card__tag--location { background: #1aa05f; }
.listing-card__tag--vente { background: #d98a1c; }
.listing-card__verified {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(255,255,255,0.95);
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.listing-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.listing-card__price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--emerald); }
.listing-card__title { font-size: 1rem; font-weight: 600; color: var(--navy); }
.listing-card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.listing-card__loc svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--danger); }
.listing-card__specs {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.listing-card__specs span { display: flex; align-items: center; gap: 0.35rem; }
.listing-card__specs svg { width: 15px; height: 15px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pagination button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.pagination button.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.pagination button:hover:not(.is-active) { border-color: var(--emerald); }

/* ---------- PUBLISH FORM ---------- */
.form-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.form-shell__head { text-align: center; margin-bottom: 1.6rem; }
.form-shell__head h1 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 0.5rem; }
.form-shell__head p { color: var(--muted); font-size: 0.95rem; }

.fee-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--success-bg);
  border: 1px solid #b8ecd2;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  font-size: 0.88rem;
  color: #0c6b48;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}
.fee-banner strong { color: #0a5538; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid--single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.78rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--emerald); outline: none; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a7afba; }

/* ---------- HOW IT WORKS — steps ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.tabs button {
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tabs button.is-active { background: var(--success-bg); border-color: var(--emerald); color: var(--success-text); }

.steps-group { max-width: 760px; margin: 0 auto 4rem; }
.steps-group__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.steps {
  display: flex;
  flex-direction: column;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.3rem;
  padding-bottom: 2.2rem;
  position: relative;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  z-index: 1;
}
.step__body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step__body p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item.is-open { border-color: var(--emerald); }
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
}
.faq-item.is-open .faq-item__q { color: var(--success-text); }
.faq-item__q svg { flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.2s ease; color: var(--muted); }
.faq-item.is-open .faq-item__q svg { transform: rotate(180deg); color: var(--emerald); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.faq-item.is-open .faq-item__a { max-height: 220px; padding: 0 1.4rem 1.3rem; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.6rem;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card, .contact-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}
.contact-card h3, .contact-form-card h3 { font-size: 1.1rem; margin-bottom: 1.4rem; }
.contact-list { display: flex; flex-direction: column; }
.contact-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.contact-list li:first-child { border-top: none; padding-top: 0; }
.contact-list__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.contact-list strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.2rem; }
.contact-list span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Form success toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: #4fd99a; flex-shrink: 0; }
