/* ============================================================
   LISTINGS.CSS - Pages achat-*.php & location-*.php
   Charge avec global.css
   ============================================================ */

/* ── Variables locales manquantes (pont avec global.css) ─── */
:root {
  --primary-white: #FFFFFF;
  --primary-black: #3A2E22;   /* = var(--text) */
  --primary-gold:  #B9A189;   /* = var(--gold) */
}

/* ── HERO ─────────────────────────────────────────────────── */
.location-hero {
  position: relative;
  height: 30vh;
  min-height: 180px;
  max-height: 280px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.location-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #FFFFFF;
  margin-bottom: 0.8rem;
  text-shadow:
    0 0 18px rgba(196,175,154,0.55),
    0 0 6px  rgba(255,255,255,0.30),
    2px 2px 10px rgba(0,0,0,0.75);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  font-weight: 400;
}

/* ── FILTER SECTION ───────────────────────────────────────── */
.filter-section {
  padding: 3rem 6%;
  background: var(--cream);                        /* fond crème BAYS */
  border-top: 3px solid var(--gold);               /* accent doré en haut */
  border-bottom: 3px solid rgba(185,161,137,0.2);
  box-shadow: 0 4px 24px rgba(58,46,34,0.07);
}

.filter-container { max-width: 1400px; margin: 0 auto; }

.filter-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Label doré au-dessus du titre */
.filter-header::before {
  content: 'Filtres de Recherche';
  display: block;
  font-size: 0.60rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.filter-header h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;                                /* plus élégant que 600 */
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.22;
  display: block;                                  /* retrait du flex */
  margin-bottom: 0;
}

/* Icône inline dans le titre */
.filter-header h2 i {
  color: var(--gold);
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Diviseur doré sous le titre */
.filter-header h2::after {
  content: '';
  display: block;
  width: 34px; height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

.filter-header p {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.6rem;
  display: none;
}

/* ── GRILLE DE FILTRES ────────────────────────────────────── */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);           /* 5 colonnes alignées */
  gap: 1.4rem;
  margin-bottom: 2rem;
  align-items: end;                                /* aligne les champs en bas */
}

.filter-group { display: flex; flex-direction: column; }

.filter-label {
  font-size: 0.62rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}

/* Inputs & Selects */
.filter-input,
.filter-select {
  padding: 0.80rem 1rem;
  border: 1px solid rgba(185,161,137,0.35);
  background: var(--white);
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.88rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  border-radius: 0;
  color: var(--text);
  appearance: auto;
}

.filter-input:hover,
.filter-select:hover {
  border-color: var(--gold);                       /* hover gold */
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(185,161,137,0.15);
}

.filter-input::placeholder {
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* ── BOUTONS ──────────────────────────────────────────────── */
.filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Bouton Rechercher */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.8rem;
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
  cursor: pointer;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: all var(--transition);
  font-size: 0.70rem;
  border-radius: 0;
}

.filter-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.filter-btn i { font-size: 0.75rem; }

/* Bouton Réinitialiser */
.filter-btn-reset {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid rgba(185,161,137,0.45);
}

.filter-btn-reset:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
  box-shadow: none;
  transform: translateY(-2px);
}

/* ── MAP ──────────────────────────────────────────────────── */
.map-container {
  width: 100%;
  height: 500px;
  background: #e5e5e5;
  border-top: 3px solid rgba(185,161,137,0.3);
  border-bottom: 3px solid rgba(185,161,137,0.3);
  position: relative;
  box-shadow: inset 0 4px 15px rgba(0,0,0,0.08);
}

#locationMap { width: 100%; height: 100%; }

/* ── RESULTS ──────────────────────────────────────────────── */
.results-container {
  background: linear-gradient(135deg, rgba(249,249,249,0.5), rgba(255,255,255,0.98));
  padding: 4rem 6%;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid rgba(185,161,137,0.2);
}

.results-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.results-header h2 i { color: var(--darker-gold); }

.properties-count {
  font-size: 1.05rem;
  color: rgba(0,0,0,0.6);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.properties-count i { color: var(--gold); font-size: 1.2rem; }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── PROPERTY CARD — style index.php ─────────────────────── */
.property-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);        /* ✅ sobre, comme index.php */
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
}

.property-card:hover {
  transform: translateY(-3px);            /* ✅ lift léger */
  box-shadow: var(--shadow-hov);          /* ✅ ombre douce */
}

/* Image container */
.property-image-container {
  position: relative;
  width: 100%;
  height: 215px;                          /* ✅ était 280px */
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.carousel        { height: 100%; }
.carousel-inner  { height: 100%; }
.carousel-item   { height: 100%; }

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;                       /* ✅ pas de zoom au hover */
  display: block;
}

/* Carousel controls — toujours visibles, taille index.php */
.carousel-control-prev,
.carousel-control-next {
  width: 38px; height: 38px;             /* ✅ était 45px */
  top: 50%; transform: translateY(-50%);
  background: rgba(58,46,34,0.55);       /* ✅ teinte BAYS */
  border-radius: 0;
  opacity: 1;                            /* ✅ toujours visibles */
  transition: background var(--transition);
  bottom: auto;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.carousel-control-prev:hover,
.carousel-control-next:hover { background: var(--gold); }

.carousel-control-prev-icon,
.carousel-control-next-icon { width: 18px; height: 18px; }

/* Indicators — pilules fines comme index.php */
.carousel-indicators { margin-bottom: 6px; }

.carousel-indicators button {
  width: 16px; height: 2px;             /* ✅ pilule fine */
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: none; border-right: none;
  background-color: rgba(255,255,255,0.55);
  margin: 0 3px;
  opacity: 1;
}

.carousel-indicators button.active {
  background-color: var(--gold);         /* ✅ FIX --primary-gold */
}

.property-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.95);   /* ✅ blanc opaque */
  color: #3A2E22;                           /* ✅ texte brun foncé lisible */
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  z-index: 2;
  border-radius: 0;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}


.rented-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 0.20rem 0.60rem;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: var(--white);
  font-weight: 700;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: 0 4px 12px rgba(255,193,7,0.45);
  z-index: 3;
  border-radius: 0;
}

/* ── PROPERTY INFO ────────────────────────────────────────── */
.property-info {
  padding: 1.1rem 1.2rem 1.3rem;         /* ✅ compact, comme index.php */
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
}

/* Type (Vente / Location) */
.property-type {
  font-size: 0.64rem;                    /* ✅ discret */
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.08rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0;
}

.property-type i { color: var(--gold); font-size: 0.60rem; }

/* Titre */
.property-title-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

.property-title {
  font-size: 0.88rem;                    /* ✅ était 1.3rem */
  margin-bottom: 0;
  line-height: 1.4;
  font-weight: 400;                      /* ✅ était 700 */
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.property-title-link:hover .property-title { color: var(--gold-dark); }

/* Localisation */
.property-location {
  font-size: 0.75rem;                    /* ✅ était 1rem */
  color: var(--text-light);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 400;
}

.property-location i {
  color: var(--gold);                    /* ✅ harmonisé */
  font-size: 0.68rem;
}

/* Détails (chambres, SDB, surface) */
.property-details {
  display: flex;
  gap: 0.8rem;                           /* ✅ était 1.8rem */
  padding-top: 0.42rem;
  border-top: 1px solid var(--border);  /* ✅ séparateur fin */
  flex-wrap: wrap;
  margin-bottom: 0;
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;                    /* ✅ était 0.95rem */
  font-weight: 400;                      /* ✅ était 600 */
  color: var(--text-light);
}

.property-detail i {
  color: var(--gold);
  font-size: 0.68rem;
}

/* Footer — prix + CTA */
.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.42rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);  /* ✅ séparateur fin */
}

/* Prix — compact comme index.php */
.property-price {
  background: transparent;              /* ✅ pas de fond blanc */
  padding: 0;
  display: inline-block;
  font-size: 1rem;                      /* ✅ était 1.7rem */
  font-weight: 400;
  color: var(--gold-dark);
  letter-spacing: 0.01rem;
}

/* CTA — style lien texte comme property-view-btn index.php */
.property-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.30rem;
  padding: 0;
  background: transparent;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color var(--transition);
  font-size: 0.68rem;
  white-space: nowrap;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.property-cta:hover {
  background: transparent;
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.property-cta i {
  margin-left: 0.3rem;
  font-size: 0.60rem;
  transition: transform 0.3s;
}

.property-cta:hover i { transform: translateX(4px); }

/* ── NO PROPERTIES ────────────────────────────────────────── */
.no-properties {
  text-align: center;
  padding: 6rem 3rem;
  color: rgba(0,0,0,0.5);
  background: var(--white);
  border: 2px dashed rgba(185,161,137,0.3);
  border-radius: 0;
  margin: 0 auto;
  max-width: 700px;
}

.no-properties i {
  font-size: 4.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.4;
}

.no-properties h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
}

.no-properties p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
}

.no-properties-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #A68B73, #B9A189);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  transition: all 0.3s;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(185,161,137,0.35);
}

.no-properties-cta:hover {
  background: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  color: var(--white);
}

.no-properties-cta i { font-size: 1.3rem; }

/* ── CUSTOM MARKER LEAFLET ────────────────────────────────── */
.custom-div-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.custom-location-marker {
  position: relative;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-location-marker::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #B9A189 0%, #C4AF9A 100%);
  border: 3px solid var(--white);
  box-shadow: 0 6px 20px rgba(185,161,137,0.7);
  transform: rotate(-45deg);
}

.custom-location-marker img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  object-fit: contain;
  z-index: 10;
  filter: brightness(0) invert(1);
}

/* ── LEAFLET POPUP ────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(249,249,249,0.98)) !important;
  border: 3px solid rgba(185,161,137,0.4) !important;
  border-radius: 0;
  box-shadow: 0 12px 45px rgba(185,161,137,0.4) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: 'Times New Roman', Times, serif !important;
}

.leaflet-popup-tip {
  background: var(--white) !important;
  border: 3px solid rgba(185,161,137,0.4) !important;
  box-shadow: 0 4px 15px rgba(185,161,137,0.3) !important;
}

.bays-popup-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-bottom: 3px solid rgba(185,161,137,0.25);
}

.bays-popup-content { padding: 1rem; }

.bays-popup-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin: 0 0 0.8rem; line-height: 1.4;
}

.bays-popup-location {
  font-size: 0.9rem; color: rgba(0,0,0,0.7);
  margin: 0.6rem 0;
  display: flex; align-items: center; gap: 0.6rem;
}

.bays-popup-location i { color: var(--darker-gold); }

.bays-popup-price {
  font-size: 1.1rem; font-weight: 700;
  color: var(--darker-gold); margin: 1rem 0;
}

.bays-popup-cta {
  display: block; margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #B9A189, #A68B73);
  color: var(--white) !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06rem;
  border-radius: 0; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(185,161,137,0.35);
}

.bays-popup-cta:hover {
  background: linear-gradient(135deg, #A68B73, #8F7963);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185,161,137,0.5);
  color: var(--white) !important;
}

/* ── LEGAL SECTION ────────────────────────────────────────── */
.legal-section {
  padding: 4rem 6%;
  background: linear-gradient(135deg, rgba(249,249,249,0.8), rgba(255,255,255,0.95));
  border-top: 3px solid var(--gold);
}

.legal-container {
  max-width: 1400px; margin: 0 auto; text-align: center;
}

.legal-container h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}

.legal-container h3 i { color: var(--darker-gold); }

.legal-links {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
}

.legal-link {
  flex: 1; min-width: 280px; max-width: 400px;
  padding: 2.2rem 2.5rem;
  background: var(--white);
  border: 2px solid rgba(185,161,137,0.3);
  text-decoration: none; color: var(--text);
  transition: all 0.4s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  position: relative; overflow: hidden; border-radius: 0;
}

.legal-link::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--darker-gold));
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.legal-link:hover::before { transform: translateX(0); }

.legal-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(185,161,137,0.3);
  border-color: var(--darker-gold);
}

.legal-link i {
  font-size: 2.5rem; color: var(--darker-gold);
  margin-bottom: 1.2rem; display: block;
  transition: transform 0.4s;
}

.legal-link:hover i { transform: scale(1.15) rotate(5deg); }

.legal-link-title {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04rem;
  color: var(--text);
}

.legal-link-desc {
  font-size: 0.95rem; color: rgba(0,0,0,0.65); line-height: 1.7;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .map-container   { height: 450px; }
  .filter-grid     { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
  .location-hero {
    height: 22vh;
    min-height: 130px;
    max-height: 180px;
    align-items: center;
    padding: 0 4%;
  }
  .location-hero h1         { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .location-hero-subtitle   { font-size: 0.72rem; }

  .filter-section    { padding: 1.8rem 4%; overflow: hidden; }
  .filter-header     { margin-bottom: 1.2rem; }
  .filter-header h2  { font-size: 1.2rem; flex-direction: column; gap: 0.5rem; }
  .filter-header p   { display: block !important; font-size: 0.85rem; margin-top: 0.5rem; }

  .filter-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 1rem !important;
    padding: 0 0 1rem 0 !important;
    margin-bottom: 1.5rem !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .filter-group {
    flex: 0 0 75% !important;
    min-width: 75% !important;
    scroll-snap-align: start;
  }

  .filter-actions { flex-direction: column; gap: 0.8rem; }
  .filter-btn     { width: 100%; padding: 0.85rem; font-size: 0.8rem; }

  .map-container  { height: 350px; }
  .results-container { padding: 2.5rem 4%; }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .property-image-container { height: 200px; }  /* légèrement réduit sur mobile */
  .property-info { padding: 1rem 1rem 1.2rem; }

  .legal-section { padding: 3rem 4%; }
  .legal-links   { flex-direction: column; align-items: center; }
  .legal-link    { max-width: 100%; min-width: 100%; }
}

@media (max-width: 480px) {
  .location-hero { padding: 0 3%; min-height: 110px; max-height: 150px; height: 20vh; }
  .filter-section { padding: 1.5rem 3%; }
  .map-container { height: 300px; }
  .results-container { padding: 2rem 3%; }

  .property-image-container { height: 185px; }
  .property-info  { padding: 0.9rem 0.9rem 1rem; }
  .property-title { font-size: 0.82rem; }
  .property-price { font-size: 0.95rem; }

  .legal-section { padding: 2.5rem 3%; }
}

img:not([src]) { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====================================
   SECTION ÉDITORIALE — location-marrakech
   ==================================== */

/* ================================================================
   EDITORIAL SECTION — DESIGN MAGAZINE PREMIUM
   ================================================================ */

.editorial-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: #fdfaf7;
    position: relative;
    overflow: hidden;
}

/* Filigrane doré décoratif en arrière-plan */
.editorial-section::before {
    content: 'BAYS';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(120px, 20vw, 260px);
    font-weight: 700;
    color: rgba(185,161,137,0.04);
    letter-spacing: 0.3em;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.editorial-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5%, 48px);
    position: relative;
    z-index: 1;
}

/* ── INTRO ── */
.editorial-intro {
    max-width: 760px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    text-align: center;
}

.editorial-label {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: #A68B73;
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid rgba(185,161,137,0.35);
}

.editorial-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(1.55rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 24px;
}

.editorial-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 52px; height: 2px;
    background: linear-gradient(90deg, #B9A189, #C4AF9A, #A68B73);
}

.editorial-intro p {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(0.88rem, 1.5vw, 1rem);
    color: #4a4a4a;
    line-height: 1.90;
    margin-bottom: 18px;
}

/* ── SOUS-TITRE ── */
.editorial-subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: clamp(24px, 4vw, 40px);
}
.editorial-subtitle-wrap::before,
.editorial-subtitle-wrap::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185,161,137,0.4), transparent);
}

.editorial-subtitle {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(0.78rem, 1.4vw, 0.92rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    margin: 0;
}

/* ── GRILLE QUARTIERS — layout asymétrique ── */
.quartier-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.quartier-card {
    background: #fff;
    border: 1px solid rgba(185,161,137,0.18);
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Numéro décoratif en fond */
.quartier-card::after {
    content: attr(data-num);
    position: absolute;
    bottom: -10px; right: 12px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(185,161,137,0.07);
    line-height: 1;
    pointer-events: none;
    transition: color 0.35s;
}

/* Barre dorée gauche au hover */
.quartier-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, #C4AF9A, #A68B73);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.quartier-card:hover {
    box-shadow: 0 10px 40px rgba(100,75,50,0.12), 0 3px 10px rgba(0,0,0,0.07);
    transform: translateY(-4px);
    border-color: rgba(185,161,137,0.38);
}
.quartier-card:hover::before { transform: scaleY(1); }
.quartier-card:hover::after  { color: rgba(185,161,137,0.13); }

/* Cards asymétriques — 1ère et 4ème plus grandes */
.quartier-card:nth-child(1) { grid-row: span 1; }
.quartier-card:nth-child(4) { grid-column: 2; }

.quartier-card-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #B9A189, #A68B73);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.quartier-card:hover .quartier-card-icon { transform: scale(1.08); }

.quartier-card-icon i { font-size: 1.15rem; color: #fff; }

.quartier-card-body { flex: 1; }

.quartier-card-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.quartier-card-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(0.82rem, 1.3vw, 0.90rem);
    color: #5a5a5a;
    line-height: 1.80;
    margin-bottom: 16px;
}

.quartier-card-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #A68B73;
    background: rgba(185,161,137,0.08);
    border: 1px solid rgba(185,161,137,0.28);
    padding: 5px 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.quartier-card-range::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #B9A189;
    border-radius: 50%;
}

/* ── BLOC CONSEIL ── */
.editorial-conseil {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2218 100%);
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 44px);
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

/* Accent doré */
.editorial-conseil::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #A68B73, #C4AF9A, #A68B73);
}

/* Filigrane icône fond */
.editorial-conseil::after {
    content: '✦';
    position: absolute;
    right: 32px; bottom: -20px;
    font-size: 8rem;
    color: rgba(185,161,137,0.06);
    pointer-events: none;
}

.editorial-conseil-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #B9A189, #A68B73);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.editorial-conseil-icon i { font-size: 1.5rem; color: #fff; }

.editorial-conseil-body .editorial-subtitle {
    color: #C4AF9A;
    text-align: left;
    margin-bottom: 18px;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
}

.editorial-conseil-body p {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(0.85rem, 1.4vw, 0.94rem);
    color: rgba(255,255,255,0.78);
    line-height: 1.85;
    margin-bottom: 14px;
}
.editorial-conseil-body p:last-child { margin-bottom: 0; }

/* ── ANIMATION REVEAL ── */
.quartier-card,
.editorial-intro,
.editorial-conseil {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease,
                box-shadow 0.35s ease, border-color 0.35s ease;
}
.quartier-card.revealed,
.editorial-intro.revealed,
.editorial-conseil.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .quartier-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 600px) {
    .quartier-grid { grid-template-columns: 1fr; gap: 2px; }
    .quartier-card:nth-child(1),
    .quartier-card:nth-child(4) { grid-column: auto; grid-row: auto; }
    .quartier-card { padding: 22px 18px; }
    .editorial-conseil { grid-template-columns: 1fr; gap: 18px; }
    .editorial-conseil-icon { width: 48px; height: 48px; }
    .editorial-subtitle-wrap { gap: 0.8rem; }
    .editorial-subtitle { white-space: normal; font-size: 0.72rem; }
}
