/* ===== Tayofinance — feuille de style principale ===== */

:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --navy-dark: #071a34;
  --gold: #c9a24b;
  --gold-light: #e4c97a;
  --bg: #f7f5f0;
  --white: #ffffff;
  --text: #1c2430;
  --muted: #667085;
  --border: #e6e2d8;
  --green: #1e8f5f;
  --green-bg: #e7f5ee;
  --red: #c0392b;
  --red-bg: #fbeae8;
  --amber: #b7791f;
  --amber-bg: #fbf1dd;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--muted { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.05rem;
}
.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.lang-switch button.active {
  background: var(--gold);
  color: var(--navy-dark);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 4px 8px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    display: none;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-actions .btn-secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,162,75,0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  color: var(--gold-light);
}
.hero-stat span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hero-card .muted { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.hero-mini-list { display: flex; flex-direction: column; gap: 14px; }
.hero-mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hero-mini-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero-mini-item div strong { display: block; font-size: 0.9rem; }
.hero-mini-item div span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Pillars / Features ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.pillar-card h3 { font-size: 1.08rem; }
.pillar-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Cards: biens & projets ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-light); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,37,69,0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.card-badge.gold { background: var(--gold); color: var(--navy-dark); }
.status-pill {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-disponible, .status-en-cours { background: var(--green-bg); color: var(--green); }
.status-reserve { background: var(--amber-bg); color: var(--amber); }
.status-vendu, .status-financee, .status-cloture { background: var(--red-bg); color: var(--red); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.02rem; margin-bottom: 0; }
.card-loc { color: var(--muted); font-size: 0.84rem; display: flex; align-items: center; gap: 6px; }
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.card-price {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.12rem;
}
.card-price small { font-weight: 500; font-size: 0.72rem; color: var(--muted); }

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.progress-row strong { color: var(--navy); }

/* ---------- Filters ---------- */
.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.montant-devise-row { display: flex; gap: 8px; }
.montant-devise-row input { flex: 1; min-width: 0; }
.montant-devise-row select { width: 110px; flex-shrink: 0; }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.empty-state h3 { color: var(--navy); }

/* ---------- Page header (sub pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 56px 0 46px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 620px; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Detail pages ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: start;
}
.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.detail-thumbs img {
  width: 84px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
}
.detail-thumbs img.active { border-color: var(--gold); }

.detail-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.detail-panel .price {
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
}
.detail-panel .price small { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.spec-list { margin: 18px 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; color: var(--navy); }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.content-block { margin-top: 30px; }
.content-block h2 { font-size: 1.3rem; }
.content-block h3 { font-size: 1.05rem; margin-top: 24px; }
.content-block ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.content-block li { margin-bottom: 6px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.radio-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.radio-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.radio-tab input { display: none; }
.radio-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(30,143,95,0.25); }
.alert-info { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(183,121,31,0.25); }

.checkbox-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--muted); margin: 16px 0; }
.checkbox-line input { margin-top: 3px; }

/* ---------- Simulateur souscription ---------- */
.simulator {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 18px 0;
}
.simulator-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 6px 0; }
.simulator-row strong { color: var(--navy); }
.simulator-total {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 8px; padding-top: 10px;
  font-weight: 700; color: var(--navy); font-size: 1rem;
}

/* ---------- Trust / logos strip ---------- */
.strip {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Partenaires ---------- */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  height: 40px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.18s ease, opacity 0.18s ease;
}
.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin-bottom: 12px;
}
.step h3 { font-size: 0.96rem; }
.step p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 320px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section { padding: 52px 0; }
}
