/* ===== ACTIF-DETAIL.CSS — Page détail actif immobilier ===== */

html { overflow-x: hidden; }

/* ===== ACTIF HERO ===== */
.actif-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
  padding: 9rem 4rem 4rem;
}
.actif-hero__deco {
  position: absolute; top: -10%; right: -2%;
  width: 700px; height: 900px;
  opacity: 0.14; z-index: 0; pointer-events: none;
}
.actif-hero__deco path {
  stroke: var(--abenex-blue); stroke-width: 2.5; fill: none;
}
.actif-hero__back {
  position: absolute; top: 7rem; left: 4rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s ease;
}
.actif-hero__back:hover { color: var(--text-light); }
.actif-hero__back svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.actif-hero__back:hover svg { transform: translateX(-3px); }

.actif-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.actif-hero__image {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  z-index: 5;
}
.actif-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actif-hero__title {
  font-family: 'Plaax Ney', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1.25rem;
  color: var(--text-light);
}
.actif-hero__badges {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.actif-hero__badge {
  padding: 0.4rem 1rem; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light);
}
.actif-hero__badge--strategy { background: var(--abenex-orange); }
.actif-hero__badge--status { background: rgba(255,255,255,0.15); }

.actif-blue-band { background: var(--abenex-blue); height: 6px; }

/* ===== ACTIF DETAIL ===== */
.actif-detail {
  background: var(--bg-cream); color: var(--text-dark);
  padding-top: 80px;
}
.actif-detail__inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 3rem; align-items: start;
}
.actif-detail__body {
  padding-top: 2rem;
  padding-bottom: 8rem;
}
.actif-detail__body h2 {
  font-size: 1.4rem; font-weight: 700;
  margin: 2rem 0 0.75rem; line-height: 1.3;
}
.actif-detail__body h2:first-child { margin-top: 0; }
.actif-detail__body p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text-muted-dark); margin-bottom: 1.25rem;
}
.actif-detail__body strong { color: var(--text-dark); font-weight: 700; }
.actif-detail__body ul, .actif-detail__body ol {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text-muted-dark);
  margin: 0 0 1.25rem; padding-left: 1.25em;
}
.actif-detail__body li { margin-bottom: 0.4rem; }

/* ===== ACTIF SIDEBAR ===== */
.actif-sidebar {
  background: #FFFFFF; border: 1px solid rgba(0,0,0,0.08);
  padding: 2rem; position: sticky; top: 80px;
}
.actif-sidebar__title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 1.5rem; font-weight: 700;
}
.actif-sidebar__item {
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.actif-sidebar__item:last-child {
  margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}
.actif-sidebar__label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-muted-dark); margin-bottom: 0.3rem; font-weight: 700;
}
.actif-sidebar__value {
  font-size: 0.95rem; color: var(--text-dark); font-weight: 400; line-height: 1.4;
}

/* ===== ARTICLE NAV OVERRIDES — image format paysage comme la grille ===== */
.article-nav__image {
  width: 100px;
  height: 62px;
}
.article-nav__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .actif-hero { padding: 7rem 4rem 0; }
  .actif-hero__back { top: 5rem; }
  .actif-hero__deco { display: none; }
  .actif-detail { padding: 4rem; }
  .actif-detail__inner { grid-template-columns: 1fr; }
  .actif-detail__body { padding-top: 0; }
  .actif-sidebar { position: static; margin-top: 0; }
}

@media (max-width: 768px) {
  .actif-hero { padding: 7rem 2rem 0; }
  .actif-hero__back { left: 2rem; }
  .actif-detail { padding: 4rem 2rem; }
  .actif-hero__image { margin-top: 2rem; }
  .article-nav__image { width: 80px; height: 50px; }
}

@media (max-width: 480px) {
  .actif-hero { padding: 6rem 1rem 0; }
  .actif-hero__back { top: 5rem; left: 1rem; }
  .actif-detail { padding: 3rem 1rem; }
}

/* ===== GALERIE ===== */
.actif-galerie {
  background: var(--bg-cream);
  padding: 4rem 1.5rem;
}
.actif-galerie__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.actif-galerie__title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-dark, #203454);
}
.actif-galerie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
  gap: 1rem;
  justify-content: center;
}
.actif-galerie__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #e5e7eb;
}
.actif-galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.actif-galerie__item:hover img { transform: scale(1.05); }

/* Cession */
.actif-detail__cession {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}
.actif-detail__cession h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .actif-galerie { padding: 2.5rem 1rem; }
  .actif-galerie__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); }
}
