/* ===== GLOBALE IMMO — NOUVEAU THÈME ===== */

:root {
  --gi-green:       #1D9E75;
  --gi-green-dark:  #0F6E56;
  --gi-green-light: #E1F5EE;
  --gi-green-mid:   #5DCAA5;
  --gi-text:        #1a1a2e;
  --gi-muted:       #6b7280;
  --gi-border:      #e5e7eb;
  --gi-bg:          #f9fafb;
  --gi-white:       #ffffff;
}

/* ===== RESET & BASE ===== */
body { background: #f9fafb; font-family: 'Segoe UI', sans-serif; color: var(--gi-text); }
a { text-decoration: none; }
img { max-width: 100%; }

/* ===== NAVBAR ===== */
.gi-navbar {
  background: #fff;
  border-bottom: 1px solid var(--gi-border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.gi-navbar .gi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gi-text);
}
.gi-navbar .gi-brand .gi-logo-icon {
  width: 36px; height: 36px;
  background: var(--gi-green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.gi-navbar .gi-brand .gi-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.gi-navbar .gi-brand span.accent { color: var(--gi-green); }
.gi-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.gi-nav-links a {
  font-size: 14px;
  color: var(--gi-muted);
  font-weight: 500;
  transition: color .2s;
}
.gi-nav-links a:hover, .gi-nav-links a.active { color: var(--gi-green); }
.gi-nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-gi-outline {
  background: transparent;
  color: var(--gi-green);
  border: 1.5px solid var(--gi-green);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-gi-outline:hover { background: var(--gi-green-light); }
.btn-gi-primary {
  background: var(--gi-green);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-gi-primary:hover { background: var(--gi-green-dark); color: #fff; }

/* ===== HERO ===== */
.gi-hero {
  background: linear-gradient(135deg, var(--gi-green-dark) 0%, var(--gi-green) 60%, var(--gi-green-mid) 100%);
  padding: 60px 32px 0;
}
.gi-hero-text { text-align: center; margin-bottom: 36px; }
.gi-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #9FE1CB;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gi-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}
.gi-hero-sub {
  font-size: 16px;
  color: #9FE1CB;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search box */
.gi-search-box {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 28px;
  max-width: 900px;
  margin: 0 auto;
}
.gi-search-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.gi-tab {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gi-border);
  background: transparent;
  color: var(--gi-muted);
  transition: all .2s;
}
.gi-tab.active { background: var(--gi-green); color: #fff; border-color: var(--gi-green); }
.gi-tab:hover:not(.active) { border-color: var(--gi-green); color: var(--gi-green); }
.gi-search-form { display: flex; gap: 10px; align-items: flex-end; }
.gi-search-form .gi-field { flex: 1; }
.gi-field label { display: block; font-size: 11px; font-weight: 600; color: var(--gi-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.gi-field input, .gi-field select {
  width: 100%;
  border: 1.5px solid var(--gi-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gi-text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.gi-field input:focus, .gi-field select:focus { border-color: var(--gi-green); }
.gi-search-btn {
  background: var(--gi-green);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.gi-search-btn:hover { background: var(--gi-green-dark); }
.gi-search-form-simple .gi-field input { padding: 13px 16px; font-size: 15px; }
.gi-search-form-simple .gi-search-btn { padding: 13px 32px; font-size: 15px; }

/* ===== STATS BAND ===== */
.gi-stats {
  background: #fff;
  border-bottom: 1px solid var(--gi-border);
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.gi-stat { text-align: center; }
.gi-stat + .gi-stat { border-left: 1px solid var(--gi-border); }
.gi-stat-num { font-size: 22px; font-weight: 700; color: var(--gi-green); }
.gi-stat-label { font-size: 13px; color: var(--gi-muted); margin-top: 2px; }

/* ===== SECTIONS ===== */
.gi-section { padding: 48px 32px; }
.gi-section-alt { background: #fff; }
.gi-section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.gi-section-header h2 { font-size: 22px; font-weight: 700; color: var(--gi-text); margin: 0; }
.gi-section-header p { font-size: 14px; color: var(--gi-muted); margin: 4px 0 0; }
.gi-section-header a { font-size: 13px; color: var(--gi-green); font-weight: 600; }
.gi-section-header a:hover { text-decoration: underline; }

/* ===== PROPERTY CARDS ===== */
.gi-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gi-card {
  background: #fff;
  border: 1px solid var(--gi-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.gi-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-3px); }
.gi-card-thumb { position: relative; height: 180px; overflow: hidden; background: var(--gi-green-light); }
.gi-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gi-card:hover .gi-card-thumb img { transform: scale(1.05); }
.gi-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.gi-card-price-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, transparent 100%);
  padding: 28px 14px 10px;
}
.gi-card-price-overlay .gi-card-price { color: #fff; margin-bottom: 0; }
.gi-card-price-overlay .gi-card-price small { color: rgba(255,255,255,.85); }
/* Watermark logo auto-affiché comme signature, centré et vert, sur la photo principale des annonces */
.gi-card-thumb::after,
.gi-premium-card::after,
.gi-gallery-main::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 40%;
  max-width: 90px;
  aspect-ratio: 40 / 45;
  transform: translate(-50%, -50%);
  background-color: #1D9E75;
  -webkit-mask-image: url('/assets/images/header-logo2.png');
  mask-image: url('/assets/images/header-logo2.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: .3;
  z-index: 2;
  pointer-events: none;
}
.gi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}
.gi-badge-location { background: #E1F5EE; color: #0F6E56; }
.gi-badge-vente    { background: #E6F1FB; color: #185FA5; }
.gi-badge-new      { background: #FAEEDA; color: #854F0B; }
.gi-card-fav {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  transition: background .2s;
}
.gi-card-fav:hover { background: #fff; }
.gi-card-fav svg { width: 16px; height: 16px; stroke: var(--gi-muted); fill: none; }
.gi-card-body { padding: 16px; }
.gi-card-price { font-size: 18px; font-weight: 700; color: var(--gi-green); margin-bottom: 4px; }
.gi-card-price small { font-size: 12px; font-weight: 400; color: var(--gi-muted); }
.gi-card-title { font-size: 14px; font-weight: 600; color: var(--gi-text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-card-location { font-size: 12px; color: var(--gi-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.gi-card-location svg { width: 13px; height: 13px; stroke: var(--gi-muted); flex-shrink: 0; }
.gi-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gi-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--gi-muted);
  background: var(--gi-bg);
  padding: 4px 10px;
  border-radius: 6px;
}
.gi-tag svg { width: 13px; height: 13px; stroke: var(--gi-muted); }

/* ===== CITIES GRID ===== */
.gi-cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gi-city-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 160px;
  cursor: pointer;
  background: var(--gi-green-light);
}
.gi-city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gi-city-card:hover img { transform: scale(1.08); }
.gi-city-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,110,86,.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.gi-city-overlay h4 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.gi-city-overlay span { font-size: 12px; color: #9FE1CB; }

/* ===== TYPE BIENS GRID ===== */
.gi-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gi-type-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 160px;
  cursor: pointer;
  background: var(--gi-green-light);
}
.gi-type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gi-type-card:hover img { transform: scale(1.08); }
.gi-type-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,110,86,.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.gi-type-overlay h4 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.gi-type-overlay span { font-size: 12px; color: #9FE1CB; }

/* ===== AGENTS ===== */
.gi-agents-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gi-agent-card { text-align: center; }
.gi-agent-card img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gi-green-light);
  transition: border-color .2s;
}
.gi-agent-card:hover img { border-color: var(--gi-green); }

/* ===== CTA BANNER ===== */
.gi-cta {
  background: var(--gi-green-dark);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gi-cta h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.gi-cta p { font-size: 14px; color: #9FE1CB; margin: 0; }
.btn-gi-white {
  background: #fff;
  color: var(--gi-green-dark);
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.btn-gi-white:hover { background: var(--gi-green-light); }

/* ===== FOOTER ===== */
.gi-footer {
  background: #111827;
  padding: 48px 32px 24px;
  color: #9ca3af;
}
.gi-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.gi-footer h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.gi-footer p, .gi-footer a { font-size: 13px; color: #9ca3af; line-height: 1.8; }
.gi-footer a:hover { color: var(--gi-green-mid); }
.gi-footer ul { list-style: none; padding: 0; margin: 0; }
.gi-footer ul li + li { margin-top: 8px; }
.gi-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gi-footer-brand .icon { width: 32px; height: 32px; background: var(--gi-green); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.gi-footer-brand .icon svg { width: 18px; height: 18px; fill: #fff; }
.gi-footer-brand span { font-size: 18px; font-weight: 700; color: #fff; }
.gi-footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.gi-footer-socials a {
  width: 34px; height: 34px;
  background: #1f2937;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.gi-footer-socials a:hover { background: var(--gi-green); color: #fff; }
.gi-footer-bottom { border-top: 1px solid #1f2937; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; }

/* ===== SECTION PUBS ===== */
.gi-pubs { padding: 24px 32px; }
.gi-pubs img { border-radius: 12px; width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .gi-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .gi-agents-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .gi-cards-grid, .gi-cities-grid, .gi-types-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-stats { grid-template-columns: repeat(2, 1fr); }
  .gi-footer-grid { grid-template-columns: 1fr 1fr; }
  .gi-agents-grid { grid-template-columns: repeat(3, 1fr); }
  .gi-search-form { flex-direction: column; gap: 8px; }
  .gi-search-form .gi-field { flex: unset !important; width: 100%; }
  .gi-search-btn { width: 100%; padding: 13px; }
  .gi-search-box { padding: 20px; }
  .gi-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .gi-navbar { padding: 0 16px; }
  .gi-nav-links { display: none; }
  .gi-hero { padding: 28px 12px 0; }
  .gi-hero h1 { font-size: 24px; line-height: 1.3; }
  .gi-hero-sub { font-size: 14px; }
  .gi-hero-eyebrow { font-size: 10px; }
  .gi-section { padding: 28px 16px; }
  .gi-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gi-cards-grid, .gi-cities-grid, .gi-types-grid { grid-template-columns: 1fr 1fr; }
  .gi-agents-grid { grid-template-columns: repeat(3, 1fr); }
  .gi-footer-grid { grid-template-columns: 1fr; }
  /* Search box mobile */
  .gi-search-box { padding: 16px 14px; border-radius: 12px 12px 0 0; }
  .gi-search-tabs { gap: 6px; margin-bottom: 14px; }
  .gi-tab { padding: 8px 14px; font-size: 13px; flex: 1; text-align: center; }
  .gi-field label { font-size: 11px; margin-bottom: 4px; }
  .gi-field input, .gi-field select { padding: 10px 12px; font-size: 14px; border-radius: 10px; }
  .gi-search-btn { padding: 13px; font-size: 15px; border-radius: 50px; margin-top: 4px; }
  /* Stats band */
  .gi-stats { padding: 16px; gap: 0; }
  .gi-stat-num { font-size: 18px; }
  .gi-stat-label { font-size: 11px; }
}
@media (max-width: 400px) {
  .gi-hero h1 { font-size: 21px; }
  .gi-cards-grid, .gi-cities-grid, .gi-types-grid { grid-template-columns: 1fr; }
  .gi-search-box { padding: 14px 12px; }
}
