/* RESET SIMPLE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}
body {
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  overflow-x: hidden;

  /* IMPORTANT : pour éviter que le contenu passe sous la barre fixe */
  padding-top: 120px; /* Ajustable selon la hauteur du header */
}
/* Images responsives : elles ne dépasseront jamais la largeur de l'écran */
main img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* CONTAINER GLOBAL */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* HEADER — BARRE FIXE EN HAUT */
header {
  background: #0c325c;
  color: #D4AF37;
  padding: 1.2rem 0;

  /* BARRE FIXE (toujours visible) */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Contenu du header : logo + menu côte à côte */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
}

/* LOGO — taille par défaut (ordinateur) */
header .brand img {
  height: 120px;   /* taille logo desktop */
  width: auto;
  display: block;
}

header .brand h1 {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
  font-weight: bold;
}

header .brand span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* NAVIGATION */
header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

header nav a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: 0.15s ease;
}

header nav a:hover {
  opacity: 0.8;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

header nav a.active {
  border-bottom: 2px solid #ffd54f;
}

/* SECTIONS GENERALES */
section {
  margin: 3rem 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #0c325c;
}

/* CARTES */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  background: #0c325c;
  color: #D4AF37;
}

.btn-primary:hover {
  background: #0a2847;
  color: #D4AF37;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background: #e4eff9;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* INFO BOX */
.info-box {
  background: white;
  padding: 1.8rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
  margin-top: 3rem;
  background: #0c325c;
  color: #D4AF37;
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.9rem;
}


    .imo-intro {
      margin: 2rem 0 1rem;
    }

    .imo-intro h2 {
      margin-bottom: 0.5rem;
    }

    .imo-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1rem;
      font-size: 0.9rem;
    }

    .imo-filters input[type="search"],
    .imo-filters select {
      padding: 0.4rem 0.7rem;
      border-radius: 999px;
      border: 1px solid #ccc;
      min-width: 150px;
    }

    .imo-filters button {
      border-radius: 999px;
      border: none;
      padding: 0.4rem 1rem;
      cursor: pointer;
    }

    /* Grille des biens */
    .property-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
    }

    .property-card {
      background: #ffffff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
      transition: transform 0.12s ease, box-shadow 0.12s ease;
    }

    .property-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .property-card a {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    .property-image {
      position: relative;
      aspect-ratio: 4 / 3;
      overflow: hidden;
    }

    .property-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .property-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.65);
      color: #ffffff;
      font-size: 0.75rem;
      padding: 3px 8px;
      border-radius: 999px;
    }

    .property-price {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: rgba(30, 136, 229, 0.95);
      color: #ffffff;
      font-size: 0.85rem;
      padding: 4px 10px;
      border-radius: 999px;
      font-weight: 600;
    }

    .property-body {
      padding: 0.6rem 0.7rem 0.7rem;
    }

    .property-title {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.15rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .property-location {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 0.4rem;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .property-location::before {
      content: "";
      font-size: 0.9em;
    }

    .property-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      font-size: 0.75rem;
      color: #666;
      margin-bottom: 0.4rem;
    }

    .property-meta span {
      padding: 3px 8px;
      border-radius: 999px;
      background: #f0f0f0;
      white-space: nowrap;
    }

    .property-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.75rem;
      color: #666;
      border-top: 1px solid #f0f0f0;
      padding-top: 0.35rem;
      margin-top: 0.35rem;
    }

    .property-ref {
      font-weight: 500;
    }

    .property-cta {
      font-weight: 600;
    }

@media (max-width: 700px) {

    /* Le header devient "normal" sur mobile */
    header {
        position: static;      /* plus fixed */
        box-shadow: none;      /* optionnel : enlever l'ombre */
        padding: 0.6rem 0;
    }

    /* Plus besoin de réserver de place en haut */
    body {
        padding-top: 0;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    header .brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
        margin-bottom: 0;
    }

    header .brand img {
        height: 60px;
        width: auto;
    }

    header .brand h1 {
        font-size: 1.4rem;
        margin: 0;
    }

    header .brand span {
        font-size: 0.85rem;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 1.2rem;
    }

    header nav a {
        font-size: 0.9rem;
        padding-bottom: 2px;
    }
}
