@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

:root {
  --primary-color: #051650; /* Bleu nuit - Couleur principale */
  --primary-light: #2c3d7a; /* Bleu moyen - Hover, boutons clairs */
  --primary-dark: #010e30; /* Bleu très foncé - Pour contrastes forts */

  --secondary-color: #cf15c2; /* Magenta vif - Accent dynamique */
  --secondary-light: #ec6ae0; /* Rose clair - Hover, badges */
  --secondary-dark: #9c0f90; /* Magenta foncé - Pour éléments soutenus */

  --accent-color: #f2b705; /* Jaune doré - Pour attirer l'œil (call-to-action) */
  --accent-light: #f9d66d;
  --accent-dark: #b88a00;

  --neutral-light: #f8f9fc; /* Fond très clair */
  --neutral-medium: #e1e5f0; /* Fond section / hover */
  --neutral-dark: #2c2f3f; /* Texte sombre / Footer */

  --text-color: #1a1a1a; /* Couleur par défaut du texte */
  --text-light: #ffffff; /* Texte clair sur fond foncé */
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 70px; /* hauteur de ton header */
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 20px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
  border: 3px solid #f1f1f1;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 10vw;
}

.not-found {
  max-width: 400px;
  margin: auto;
  text-align: center;
  padding: 5rem 0;
}

.not-found h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.not-found p {
  margin-bottom: 1rem;
}

.not-found p a {
  color: var(--primary-color);
}

.card-property img {
  height: 22.5rem;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.card-property h3 {
  margin-bottom: 0.5rem;
}

.card-property .description {
  font-size: 0.85rem;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-property .row {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;

  flex-wrap: nowrap;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.card-property .row .info {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.5rem !important;
  border-right: 1px solid #eee;
  padding-right: 1rem;
  flex: 1;
  min-width: 130px;
}

.card-property .row .info svg {
  fill: gray;
  height: 1.5rem;
}

.card-property .row .info h2 {
  font-size: 0.7rem !important;
  font-weight: 200;
  text-transform: uppercase;
  color: var(--accent-color);
}

.card-property .row .info p {
  font-size: 0.85rem;
}

.card-property .row a {
  color: var(--primary-light);
  font-size: 0.8rem;
  font-size: 600;
  white-space: nowrap;
}

@media only screen and (max-width: 900px) {
  .container {
    padding: 1rem 7.5vw;
  }
}

@media only screen and (max-width: 560px) {
  .container {
    padding: 1rem 5vw;
  }

  .card-property img {
    height: 17.5rem;
  }
}
