:root {
  --bg: #f3f4f6;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #860697;
  --accent-soft: #ede0ff;
  --accent-gold: #c7a64b;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #59125c);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.logo-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(209, 213, 219, 0.5);
  color: var(--text);
}

.main-nav a.active {
  background: var(--accent-soft);
  color: #860697;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d81dcf, var(--accent));
  color: #f9fafb;
  box-shadow: 0 14px 35px rgba(179, 37, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(53, 10, 66, 0.7);
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid rgba(156, 163, 175, 0.9);
}

.btn-secondary:hover {
  background: #f9fafb;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 2.4rem 0 2.7rem;
}

.hero-home {
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.hero-inner-simple {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-sub {
  margin: 0 0 1.3rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero panel */
.hero-panel {
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
}

.hero-panel-light {
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.stat-card {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #0f172a;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0 0 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.stat-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.stat-mini {
  flex: 1;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.stat-mini-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.stat-mini-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.hero-bullets li::before {
  content: "•";
  color: var(--accent);
}

/* Inner page hero */
.hero-inner-page {
  background: #ffffff;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: #f9fafb;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 1.3rem;
}

.cards-annonces {
  margin-top: 1.2rem;
}

.property-card,
.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.2rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(5, 6, 8, 0.04);
}


.cards-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-card h3 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.05rem;
}

.property-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(5, 6, 8, 0.04);
  max-width: 1100px;
  margin: 0 auto;
  /* centré */
  padding: 1.4rem 1.8rem;
  /* ESPACEMENT TEXTE */
}


.property-line {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.property-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.property-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}

.property-badge-gold {
  background: #fef3c7;
  color: #92400e;
}

.property-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.property-tags li {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
}

/* Property list layout */
.property-list {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: flex-start;
}

.property-list-side {
  text-align: right;
}

.property-price {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Photo dans le hero (agence) */
.hero-photo {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #e5e7eb;
  max-height: 220px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.property-thumb {
  width: 100%;
  height: 380px;
  /* hauteur PRO et équilibrée */
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #e5e7eb;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* cadrage parfait */
  display: block;
}



.link-more {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

/* Sectors */
.sectors {
  display: grid;
  gap: 1.1rem;
}

.sector-group {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}

.sector-group h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.sector-group p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
}

.steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #0f172a;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Booking / contact */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.booking-text h2 {
  margin: 0 0 0.5rem;
}

.booking-bullets {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.booking-bullets li {
  margin-bottom: 0.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.contact-grid-alt {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
}

.contact-infos {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-infos li {
  margin-bottom: 0.3rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem 1.3rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.contact-form-mini {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  background: #ffffff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Search bar */
.search-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: flex-end;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-field label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Map card */
.map-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.map-placeholder {
  border-radius: 12px;
  border: 1px dashed rgba(156, 163, 175, 0.9);
  padding: 1.2rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: #f9fafb;
}

/* Footer */
.site-footer {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-mini {
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

.mt-lg {
  margin-top: 1.2rem;
}

.text-muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .cards-grid.three-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid,
  .contact-grid-alt,
  .booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .property-list {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .property-list-side {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 1.7rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.logo-text strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #6b7280;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(209, 213, 219, 0.5);
  color: #0f172a;
}

.main-nav a.active {
  background: #e0ecff;
  color: #860697;
}

/* Burger */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  /* visible seulement en mobile */
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
}

.nav-toggle-label span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* RESPONSIVE HEADER */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  /* logo à gauche, burger à droite */
  .header-inner {
    align-items: center;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    position: relative;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
    display: none;
    /* caché par défaut */
  }

  .main-nav a {
    width: 100%;
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
  }

  /* quand le burger est coché, on affiche le menu */
  .nav-toggle:checked~.main-nav {
    display: flex;
  }
}

/* Images responsive mobile */
@media (max-width: 768px) {

  /* Photo de l'agence dans le hero */
  .hero-photo {
    max-height: none;
  }

  .hero-photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  /* Vignettes de biens */
  .property-thumb {
    height: auto;
    max-height: none;
  }

  .property-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}