:root {
  --primary:   #11264A;
  --secondary: #D4A81F;
  --light:     #E9ECEF;
  --dark:      #212529;
  --white:     #ffffff;
}

/* Global */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
}
h1, h2, h3, legend {
  font-family: 'Playfair Display', serif;
  color: var(--white);
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
}

/* Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo_img {
  height: 60px;
  width: 60px;
}

/* Navigation links with progressive underline */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;            /* ajustez si besoin */
  width: 100%;
  height: 2px;             /* épaisseur du soulignement */
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  background: var(--primary);
  padding: 3rem 0;
  text-align: center;
}
.hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
}

/* Filters */
.controls {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}
.filter-group {
  display: flex;
  gap: .5rem;
}
.filter,
.status-filter {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: .5rem 1rem;
  border-radius: .375rem;
  cursor: pointer;
  font-weight: 500;
}
.filter.active,
.status-filter.active {
  background: var(--primary);
  color: var(--white);
}

/* Carousel items */
.properties {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.carousel-item {
  background: var(--light);
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}
.carousel-item .badge {
  z-index: 1;
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .25rem .75rem;
  border-radius: .5rem;
  font-weight: bold;
  text-transform: uppercase;
}
.status-disponible {
  background: var(--secondary);
  color: var(--dark);
}
.status-loué {
  background: var(--primary);
  color: var(--white);
}
.carousel-images {
  position: relative;
  height: 200px;
  background: #ddd;
}
.carousel-images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.carousel-images img.active {
  display: block;
}
.carousel-images .prev,
.carousel-images .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.8);
  border: none;
  padding: .5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s background;
}

.prev:hover, .next:hover {
  background: var(--primary);
}


.carousel-images .prev {
  left: .5rem;
}
.carousel-images .next {
  right: .5rem;
}

/* Info */
.info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.info h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  color: var(--primary);
}
.info .type,
.info .address,
.info .price {
  margin: .25rem 0;
}
.info .details {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  font-size: .9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  border-radius: .375rem;
  padding: .5rem 1rem;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
}

/* Form */
.form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: .75rem;
  margin: 2rem auto;
  max-width: 800px;
}
fieldset {
  border: none;
  margin: 1rem 0;
  padding: 0;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
  color: var(--primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  font-family: inherit;
}
.alert-success {
  background: #d1e7dd;
  color: #0f5132;
  padding: .75rem 1rem;
  border-radius: .375rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 0 1rem;
}
.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.site-footer .footer-section {
  flex: 1 1 250px;
  color: white !important;
}
.footer-logo {
  width: 80px;
  margin-bottom: 1rem;
}
.site-footer p,
.site-footer li,
.site-footer a {
  font-size: .9rem;
}
.site-footer a {
  text-decoration: none;
  color: var(--white);
}
.site-footer .footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: .8rem;
  opacity: .7;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: .5rem;
}






/* === À PROPOS === */
.about-ah h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
}

.about-ah p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Étapes de fonctionnement */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step {
  background: var(--light);
  padding: 1.5rem;
  border-radius: .75rem;
  text-align: center;
}
.step h3 {
  margin-bottom: .75rem;
  color: var(--secondary);
}
.step p {
  font-size: .95rem;
  line-height: 1.4;
}

/* Équipe */
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.member {
  width: 200px;
  text-align: center;
}
.member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: .75rem;
  margin-bottom: .75rem;
  transition: filter .3s;
}
.member h4 {
  margin: .5rem 0 .25rem;
  color: var(--primary);
}
.member p {
  font-size: .9rem;
  color: var(--dark);
}


.member>a:hover {
  filter: grayscale(80%);
}



/* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Contenu de la modal */
.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: .75rem;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  font-family: 'Inter', sans-serif;
  color: var(--dark);
}

/* Titre */
.modal-content h2 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

/* Liens mail et téléphone */
.modal-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Bouton de fermeture */
.modal-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1;
}
.modal-close:focus {
  outline: 2px solid var(--secondary);
}
