/* ==============================================
   IDF-IMMOBILIER.COM — Style Index V3
   PALETTE PRO 3 COULEURS : Bleu / Vert / Noir
   ============================================== */

/* --- CSS Variables (Palette PRO) --- */
:root {
  /* ★ COULEUR 1 : BLEU — Principale */
  --bleu: #0064E0;
  --bleu-hover: #0052c2;
  --bleu-clair: #e8f1fd;
  --bleu-50: #f0f6ff;

  /* ★ COULEUR 2 : VERT — Ventes uniquement */
  --vert: #059669;
  --vert-hover: #047857;
  --vert-clair: #ecfdf5;

  /* ★ COULEUR 3 : NOIR — Texte & Footer */
  --noir: #1a1a2e;
  --gris-900: #2d2d3f;
  --gris-700: #4a4a5a;
  --gris-500: #6b7280;
  --gris-400: #9ca3af;
  --gris-300: #d1d5db;
  --gris-200: #e5e7eb;
  --gris-100: #f3f4f6;
  --gris-50: #f9fafb;
  --blanc: #ffffff;

  /* Accent logo uniquement */
  --orange-logo: #FF8C00;

  /* Fond global */
  --fond-page: #f5f7fb;

  /* Ombres */
  --ombre-sm: 0 1px 3px rgba(0,0,0,.05);
  --ombre-md: 0 4px 12px rgba(0,0,0,.07);
  --ombre-lg: 0 8px 30px rgba(0,0,0,.10);
  --ombre-hover: 0 12px 35px rgba(0,0,0,.13);

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typographie */
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--fond-page);
  color: var(--gris-700);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ==============================================
   1. HEADER / NAVBAR
   ============================================== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--blanc);
  border-bottom: 2px solid var(--bleu);
  backdrop-filter: blur(12px);
}

.main-header .navbar { padding: 0.75rem 0; }

/* Logo */
.logo-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: var(--noir);
  line-height: 1.2;
}

.logo-title .text-accent { color: var(--orange-logo); }

.logo-slogan {
  font-size: 10px;
  color: var(--gris-500);
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ===== BOUTONS HEADER ===== */
.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  background: var(--blanc);
  color: var(--gris-700);
  border: 1px solid var(--gris-300);
  box-shadow: var(--ombre-sm);
}

.hdr-btn i {
  font-size: 15px;
  color: var(--gris-400);
  transition: color 0.25s ease;
}

.hdr-count {
  background: var(--gris-100);
  color: var(--gris-500);
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  transition: var(--transition);
}

/* Locations — hover bleu */
.hdr-loc:hover {
  border-color: var(--bleu);
  color: var(--bleu);
  background: var(--bleu-50);
}
.hdr-loc:hover i { color: var(--bleu); }
.hdr-loc:hover .hdr-count { background: var(--bleu-clair); color: var(--bleu); }

/* Ventes — hover vert */
.hdr-ven:hover {
  border-color: var(--vert);
  color: var(--vert);
  background: var(--vert-clair);
}
.hdr-ven:hover i { color: var(--vert); }
.hdr-ven:hover .hdr-count { background: var(--vert-clair); color: var(--vert); }

/* Publier — accent bleu (pas rouge) pour cohérence */
.hdr-publier {
  color: var(--bleu);
  border-color: var(--bleu);
  background: var(--bleu-50);
}
.hdr-publier i { color: var(--bleu); }
.hdr-publier:hover {
  background: var(--bleu);
  color: var(--blanc);
  border-color: var(--bleu);
}
.hdr-publier:hover i { color: var(--blanc); }

/* Espace Pro & Annuaire — hover violet léger */
.hdr-pro:hover,
.hdr-annuaire:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}
.hdr-pro:hover i,
.hdr-annuaire:hover i { color: #7c3aed; }

.nav-group-left, .nav-group-right { flex-shrink: 1; }

@media (min-width: 992px) {
  .navbar-nav { display: flex !important; width: 100%; }
  .nav-group-right { margin-left: auto !important; }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--blanc);
    padding: 16px 20px;
    border-top: 1px solid var(--gris-100);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--ombre-md);
  }
  .navbar-nav { gap: 0 !important; }
  .nav-group-left, .nav-group-right {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .nav-group-left {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gris-100);
  }
  .hdr-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 10px;
  }
  .hdr-count { margin-left: auto; }
}

/* ==============================================
   2. BANNIÈRE
   ============================================== */

.banner {
  width: 100%;
  height: 35vw;
  min-height: 360px;
  max-height: 520px;
  background-image: url('../banniere.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--noir);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ==============================================
   3. FORMULAIRE DE RECHERCHE
   ============================================== */

.search-box {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f1fd 50%, #f5f9ff 100%) !important;
  border-radius: var(--radius-lg) !important;
  padding: 30px 35px !important;
  box-shadow: var(--ombre-lg) !important;
  border: 1px solid rgba(0, 100, 224, 0.10) !important;
  margin-top: -40px;
  position: relative;
  z-index: 100;
}

.search-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bleu);
  text-align: center;
  margin-bottom: 25px;
}

.search-box .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gris-700);
  margin-bottom: 6px;
}

.search-box .form-control,
.search-box .form-select {
  height: 48px !important;
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--gris-200) !important;
  background-color: var(--blanc) !important;
  font-size: 14px !important;
  color: var(--gris-900) !important;
  transition: var(--transition);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
  border-color: var(--bleu) !important;
  box-shadow: 0 0 0 4px rgba(0, 100, 224, 0.12) !important;
  outline: none !important;
}

/* Bouton Rechercher */
.btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bleu);
  color: var(--blanc);
  border: none;
  padding: 14px 50px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 100, 224, 0.30);
}

.btn-search:hover {
  background: var(--bleu-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 100, 224, 0.40);
}

/* Autocomplétion */
.ac-wrapper { position: relative; }

.ac-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--ombre-md);
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
}

/* ==============================================
   4. BLOC TEXTE SEO
   ============================================== */

.seo-block {
  background: linear-gradient(135deg, #f0f6ff 0%, #f5f9ff 60%, #f8fbff 100%) !important;
  border-radius: var(--radius-md) !important;
  padding: 30px 35px !important;
  box-shadow: var(--ombre-md) !important;
  border: 1px solid rgba(0, 100, 224, 0.08) !important;
  border-left: 4px solid var(--bleu) !important;
}

.seo-block h1,
.idf-title1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--noir);
  text-align: center;
  margin-bottom: 12px;
}

.seo-block p {
  font-size: 0.95rem;
  color: var(--gris-500);
  line-height: 1.7;
  margin: 0;
}

.seo-block a {
  color: var(--bleu);
  font-weight: 600;
}
.seo-block a:hover {
  color: var(--bleu-hover);
  text-decoration: underline;
}

.btn-degrade-bleu {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--blanc);
  background: var(--bleu);
  box-shadow: 0 4px 14px rgba(0, 100, 224, 0.30);
  transition: var(--transition);
}

.btn-degrade-bleu:hover {
  background: var(--bleu-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 100, 224, 0.40);
  color: var(--blanc);
}

/* ==============================================
   5. SLIDER — 10 DERNIÈRES ANNONCES
   ============================================== */

.custom-slider-section { padding: 30px 0; }

.slider-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gris-700);
  margin-bottom: 20px;
  font-style: italic;
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cards-viewport {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 5px;
}

/* Card Annonce */
.modern-card {
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 auto;
  background: var(--blanc);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--ombre-md);
  transition: var(--transition);
  border: 1px solid var(--gris-200);
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre-hover);
}

/* Thème couleur — BLEU locations, VERT ventes */
.modern-card.card-location {
  border-bottom: 3px solid var(--bleu);
}

.modern-card.card-vente {
  border-bottom: 3px solid var(--vert);
}

/* Image */
.card-media {
  width: 100%;
  height: 195px;
  position: relative;
  border-bottom: 1px solid var(--gris-100);
}

.photo-slider {
  position: relative;
  overflow: hidden;
  height: 195px;
  width: 100%;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slides img {
  width: 100%;
  min-width: 280px;
  height: 195px !important;
  object-fit: cover !important;
  flex-shrink: 0;
  display: block;
}

/* Flèches navigation photos */
.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: var(--blanc);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: var(--transition);
}

.photo-slider:hover .img-nav-btn { opacity: 1; }
.img-nav-btn:hover { background: rgba(0,0,0,.8); }
.img-nav-btn.prev { left: 6px; }
.img-nav-btn.next { right: 6px; }

/* Badge type */
.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--blanc) !important;
  border-radius: 4px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  z-index: 5;
}

.badge-location { background: var(--bleu) !important; }
.badge-vente { background: var(--vert) !important; }

/* Compteur photos */
.photo-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.6);
  color: var(--blanc);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.photo-counter::before { content: "📷"; font-size: 12px; }

/* Contenu card */
.card-content { padding: 16px; flex: 1; }

.card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-price small { font-size: 0.85rem; font-weight: 400; color: var(--gris-500); }

.card-location .card-price { color: var(--bleu); }
.card-vente .card-price { color: var(--vert); }

.card-subtitle { font-size: 14px; font-weight: 500; color: var(--gris-700); margin-bottom: 8px; line-height: 1.4; }
.card-loc { font-size: 13px; color: var(--gris-500); display: flex; align-items: center; gap: 4px; }
.card-date { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gris-400); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--gris-200); }
.card-link-wrapper { display: block; text-decoration: none !important; color: inherit !important; }

/* Flèches navigation slider */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blanc);
  border: 1px solid var(--gris-200);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ombre-md);
  transition: var(--transition);
}

.nav-arrow span { font-size: 28px; line-height: 0; color: var(--gris-700); }

.nav-arrow:hover { background: var(--noir); border-color: var(--noir); }
.nav-arrow:hover span { color: var(--blanc); }

.nav-arrow.prev { left: -18px; }
.nav-arrow.next { right: -18px; }

@media (max-width: 768px) {
  .nav-arrow { display: none; }
  .cards-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 15px; }
  .modern-card { min-width: 85%; scroll-snap-align: center; }
}

@media (min-width: 769px) {
  .modern-card { min-width: 280px; scroll-snap-align: start; }
  .cards-viewport { overflow-x: hidden; }
}

/* ==============================================
   6. BLOCS LOCATIONS / VENTES (Tableaux)
   ============================================== */

.card-header.bg-primary {
  background: var(--bleu) !important;
  border: none;
}

.card-header.bg-success {
  background: var(--vert) !important;
  border: none;
}

.card.shadow-sm {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--ombre-md);
}

.table {
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
}

.table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--gris-700);
  border-bottom: 2px solid var(--gris-200);
  padding: 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table tbody td {
  padding: 10px 6px;
  vertical-align: middle;
  color: var(--gris-700);
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th:nth-child(1) { width: 22%; }
.table th:nth-child(2) { width: 13%; }
.table th:nth-child(3) { width: 10%; }
.table th:nth-child(4) { width: 16%; }
.table th:nth-child(5) { width: 8%; }
.table th:nth-child(6) { width: 22%; }
.table th:nth-child(7) { width: 9%; }

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(0, 100, 224, 0.02);
}

.table-hover tbody tr:hover {
  background-color: var(--bleu-clair) !important;
}

/* Badge DPE */
.badge-dpe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--blanc);
}

.dpe-A { background: #008000; }
.dpe-B { background: #3cb371; }
.dpe-C { background: #9acd32; color: #333; }
.dpe-D { background: #ffd700; color: #333; }
.dpe-E { background: #ffa500; }
.dpe-F { background: #ff4500; }
.dpe-G { background: #8b0000; }
.dpe-NC { background: #ccc; color: #666; }

/* Cards Mobile */
.card-mobile-custom {
  border-left: 4px solid;
  border-radius: var(--radius-sm);
  background: var(--blanc);
  box-shadow: var(--ombre-sm);
  transition: var(--transition);
}

.card-mobile-custom:hover { box-shadow: var(--ombre-md); }
.card-mobile-location { border-left-color: var(--bleu); }
.card-mobile-vente { border-left-color: var(--vert); }

/* Boutons tableaux */
.btn-outline-primary {
  border-color: var(--bleu);
  color: var(--bleu);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}
.btn-outline-primary:hover { background: var(--bleu); color: var(--blanc); }

.btn-outline-success {
  border-color: var(--vert);
  color: var(--vert);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}
.btn-outline-success:hover { background: var(--vert); color: var(--blanc); }

.text-success { color: var(--vert) !important; }
.text-primary { color: var(--bleu) !important; }

/* ==============================================
   7. SECTION PRÉSENTATION — 3 Cards BLEU unifié
   ============================================== */

/* idf-presentation moved to section 13 with blue gradient */

.idf-container { max-width: 1100px; margin: 0 auto; }

.idf-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--noir);
  text-align: center;
  margin-bottom: 16px;
}

.idf-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gris-500);
  max-width: 800px;
  margin: 0 auto 45px auto;
  line-height: 1.7;
}

.idf-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.idf-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: var(--gris-50);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--ombre-sm);
  transition: var(--transition);
  border: 1px solid var(--gris-200);
  position: relative;
  overflow: hidden;
}

.idf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bleu);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.idf-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-hover);
  border-color: var(--bleu-clair);
  background: var(--blanc);
  color: inherit;
}

.idf-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--bleu);
}

.idf-card p {
  font-size: 0.95rem;
  color: var(--gris-500);
  line-height: 1.6;
}

.idf-card-footer { margin-top: auto; padding-top: 12px; }

.idf-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--bleu);
  transition: var(--transition);
}

.idf-card:hover .idf-btn { color: var(--bleu-hover); }

@media (max-width: 768px) {
  .idf-title { font-size: 1.5rem; }
  .idf-columns { grid-template-columns: 1fr; }
}

/* ==============================================
   8. FOOTER
   ============================================== */

.footer-dark {
  background: var(--noir) !important;
  color: var(--blanc) !important;
}

.footer-dark h5 {
  font-family: var(--font-display);
  color: var(--blanc);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-dark p,
.footer-dark li {
  color: rgba(255,255,255,.5);
  font-size: 0.9rem;
}

.footer-dark a {
  color: rgba(255,255,255,.6) !important;
  text-decoration: none;
  transition: var(--transition);
}

.footer-dark a:hover {
  color: var(--blanc) !important;
  padding-left: 3px;
}

.footer-hr {
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 25px 0;
}

.footer-links li { margin-bottom: 8px; }

@media (max-width: 576px) {
  .footer-dark { text-align: center; }
  .footer-links li { margin-bottom: 12px; }
}

/* ==============================================
   9. DESKTOP-ONLY
   ============================================== */

.desktop-only { display: block; }
@media (max-width: 768px) { .desktop-only { display: none !important; } }

/* ==============================================
   10. MOBILE — FORMULAIRE DE RECHERCHE
   ============================================== */

@media (max-width: 767px) {
  .search-box {
    padding: 22px 18px !important;
    margin: 10px !important;
    margin-top: -30px !important;
  }

  .search-box h4 { font-size: 1rem !important; margin-bottom: 18px !important; }

  .search-box .col-sm-6,
  .search-box .col-sm-12 { width: 100% !important; margin-bottom: 12px !important; }

  .search-box .form-control,
  .search-box .form-select {
    height: 52px !important;
    background-color: var(--gris-100) !important;
    font-size: 16px !important;
  }

  .search-box .form-control:focus,
  .search-box .form-select:focus {
    border-color: var(--bleu) !important;
    background-color: var(--blanc) !important;
  }

  .btn-search {
    width: 100% !important;
    height: 52px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 1rem !important;
    padding: 0 !important;
  }

  .ac-list { width: 100% !important; z-index: 9999 !important; }
}

@media screen and (max-width: 767px) {
  input[type="text"], select { font-size: 16px !important; }
}

/* ==============================================
   11. UTILITAIRES & ANIMATIONS
   ============================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-box,
.seo-block,
.custom-slider-section,
.idf-presentation {
  animation: fadeInUp 0.6s ease-out;
}

::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gris-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gris-500); }

@media (max-width: 576px) {
  .container.my-5 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
}

/* ==============================================
   12. BLOC VILLES POPULAIRES
   ============================================== */

.villes-pop-block {
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f1fd 40%, #f5f9ff 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(0, 100, 224, 0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    margin-bottom: 24px;
}
.villes-pop-header{
    display:flex;align-items:center;gap:14px;margin-bottom:22px;flex-wrap:wrap;
}
.villes-pop-icon{
    width:48px;height:48px;border-radius:12px;
    background: var(--bleu);
    display:flex;align-items:center;justify-content:center;
    font-size:1.3rem;color:#fff;flex-shrink:0;
}
.villes-pop-title{
    font-family: var(--font-display);font-weight:900;font-size:1.15rem;
    color: var(--noir);margin:0;letter-spacing:-.02em;
}
.villes-pop-sub{
    font-size:13px;color: var(--gris-500);margin:2px 0 0;
}
.villes-pop-voirtout{
    margin-left:auto;display:inline-flex;align-items:center;gap:6px;
    padding:10px 24px;border-radius:var(--radius-pill);
    background: var(--blanc);border:1.5px solid var(--bleu);
    color: var(--bleu);font-family: var(--font-display);font-weight:700;font-size:13px;
    text-decoration:none !important;transition: var(--transition);white-space:nowrap;
    box-shadow: 0 2px 8px rgba(0, 100, 224, 0.12);
}
.villes-pop-voirtout:hover{
    background: var(--bleu) !important;
    color: #ffffff !important;
    border-color: var(--bleu) !important;
    transform:translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 100, 224, 0.30);
    text-decoration: none !important;
}
.villes-pop-voirtout:hover i{
    color: #ffffff !important;
}
.villes-pop-grid{
    display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px;
}
.villes-pop-card{
    display:flex;align-items:center;gap:10px;
    padding:14px 16px;border-radius:12px;
    border:1px solid rgba(0, 100, 224, 0.08);background: var(--blanc);
    text-decoration:none;color:inherit;
    transition: var(--transition);
}
.villes-pop-card:hover{
    border-color: var(--bleu);background: var(--bleu-50);
    transform:translateY(-2px);box-shadow:0 4px 14px rgba(0,100,224,.12);
    color:inherit;
}
.villes-pop-card-icon{
    width:36px;height:36px;border-radius:8px;
    background: var(--bleu-clair);display:flex;align-items:center;justify-content:center;
    font-size:.95rem;color: var(--bleu);flex-shrink:0;
    transition: var(--transition);
}
.villes-pop-card:hover .villes-pop-card-icon{
    background: var(--bleu);color: var(--blanc);
}
.villes-pop-card-name{
    font-family: var(--font-display);font-weight:700;font-size:13px;color: var(--noir);
    flex:1;line-height:1.2;
}
.villes-pop-card-count{
    font-family: var(--font-display);font-weight:800;font-size:11px;
    color: var(--bleu);background: var(--bleu-clair);
    padding:3px 10px;border-radius:10px;white-space:nowrap;
}
.villes-pop-links{
    display:flex;gap:10px;flex-wrap:wrap;justify-content:center;
    padding-top:14px;border-top:1px solid rgba(0, 100, 224, 0.06);
}
.villes-pop-links a{
    display:inline-flex;align-items:center;gap:5px;
    padding:7px 16px;border-radius:20px;
    font-family: var(--font-display);font-weight:600;font-size:12px;
    text-decoration:none;border:1px solid var(--gris-200);color: var(--gris-500);background: var(--blanc);
    transition: var(--transition);
}
.villes-pop-links a:hover{
    border-color: var(--bleu);color: var(--bleu);background: var(--bleu-50);
}
@media(max-width:900px){
    .villes-pop-grid{grid-template-columns:repeat(2,1fr);}
    .villes-pop-voirtout{margin-left:0;width:100%;justify-content:center;margin-top:4px;}
}
@media(max-width:500px){
    .villes-pop-grid{grid-template-columns:1fr;}
    .villes-pop-block{padding:20px 16px;}
}

/* ==============================================
   13. SECTION PRÉSENTATION — fond bleu léger
   ============================================== */

.idf-presentation {
  padding: 60px 20px;
  background: linear-gradient(180deg, var(--gris-50) 0%, #edf3fc 50%, #e8f1fd 100%);
  border-top: 1px solid rgba(0, 100, 224, 0.06);
}