/* Import d'une police plus élégante */

#map {
      display: block;
      height: 80vh;     /* prend tout l'écran visible */
      width: 100%;
      position: relative; /* reste dans le flux, pas absolute */
      z-index: 1;
      border-bottom: 2px solid #eee;
      transition: height 0.4s ease, margin-top 0.4s ease;
}

#map-style-switcher {
  position: absolute;
  bottom: 200px;
  left: 25px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}


.seo-content-block {
    background-color: #f9f9f9;
    padding: 50px 20px;
    font-family: 'Inter', sans-serif; /* Police style tech/immobilier moderne */
    color: #333;
}

.seo-container {
    max-width: 1100px;
    margin: 0 auto;
}

.seo-container h1 {
    font-size: 28px;
    color: #222;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

/* Carte principale mise en avant */
.seo-main-info {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid #e53935; /* Liseré rouge sur le haut */
    margin-bottom: 30px;
    line-height: 1.8;
}

.seo-main-info p {
    font-size: 17px;
    margin: 0;
}

/* Grille de cartes */
.seo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Style des cartes individuelles */
.seo-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.1); /* Ombre légèrement teintée rouge */
    border-color: #e53935;
}

.seo-card h3 {
    font-size: 19px;
    color: #e53935; /* Titre en rouge */
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-card p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Badge rouge pour les chiffres */
.stat-highlight {
    color: #e53935;
    font-weight: 700;
    background: #fff0f0;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #ffcccc;
}

/* Section liens */
/* Section liens */
.seo-bottom {
  margin-top: 50px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  text-align: center; /* centrage global */
}

.seo-bottom h3 {
  margin-bottom: 25px;
  font-size: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  display: inline-block; /* pour centrer la bordure */
}

.departement-list {
  display: grid;
  justify-content: center; /* centrage horizontal du grid */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.departement-list li {
  background: #f5f5f5;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s ease;
}

.departement-list li:hover {
  background: #e53935;
  transform: translateY(-2px);
}

.departement-list li a {
  display: block; /* rend tout le bloc cliquable */
  color: #444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 10px;
  border-radius: 8px;
  transition: color 0.2s;
}

.departement-list li:hover a {
  color: #fff;
}
/* Style du conteneur du bouton de retour */
.back-home-container {
text-align: center;
padding-bottom: 40px;
}

.btn-back-home {
display: inline-flex;
align-items: center;
padding: 12px 25px;
background-color: #e53935; /* Rouge pour rappel SEO */
color: white !important;
text-decoration: none;
border-radius: 50px; /* Bord arrondi style Zillow */
font-weight: 600;
font-family: 'Inter', sans-serif;
box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
transition: all 0.3s ease;
}

.btn-back-home:hover {
background-color: #c62828;
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.btn-back-home i {
font-size: 1.1em;
}