/* ==========================================================================
   AIB — Thème moderne (surcouche Bootstrap)
   ========================================================================== */

:root {
  --aib-primary: #b8371b;
  --aib-primary-dark: #8a250f;
  --aib-primary-light: #fdeee9;
  --aib-accent: #2980b9;
  --aib-accent-light: #e8f2fa;
  --aib-green: #1f9d55;
  --aib-green-light: #e5f7ec;
  --aib-purple: #7c3aed;
  --aib-purple-light: #f1e9fd;
  --aib-warning: #d48f0d;
  --aib-warning-light: #f1d195;
  --aib-dark: #1a1d21;
  --aib-text: #21252b;
  --aib-muted: #6b7280;
  --aib-bg: #f6f6f7;
  --aib-border: #e9e7e5;
  --aib-radius-lg: 20px;
  --aib-radius: 14px;
  --aib-radius-sm: 10px;
  --aib-shadow-lg: 0 20px 45px -20px rgba(20, 20, 20, .28);
  --aib-shadow: 0 10px 30px -14px rgba(20, 20, 20, .18);
  --aib-shadow-sm: 0 2px 12px rgba(20, 20, 20, .06);
}

body {
  background-color: var(--aib-bg);
  color: var(--aib-text);
}

a {
  color: var(--aib-primary);
}

a:hover {
  color: var(--aib-primary-dark);
}

/* ---------------------------- Navbar ---------------------------- */

.aib-navbar {
  border-bottom: 1px solid var(--aib-border);
}

.aib-navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--aib-dark) !important;
  font-size: 1.25rem;
}

.aib-navbar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-right: .5rem;
}

.aib-navbar .navbar-brand .brand-dot {
  color: var(--aib-primary);
}

.aib-navbar .nav-link {
  font-weight: 600;
  color: var(--aib-text) !important;
  position: relative;
  margin: 0 .35rem;
  padding-top: .6rem !important;
  padding-bottom: .6rem !important;
}

.aib-navbar .nav-link.text-dark {
  color: var(--aib-text) !important;
}

.aib-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .15rem;
  height: 2px;
  background: var(--aib-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.aib-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.aib-navbar .nav-link.btn-agence {
  background: transparent;
  color: var(--aib-primary) !important;
  border: 1px solid var(--aib-primary);
  border-radius: 999px;
  padding: .45rem 1.1rem !important;
  margin-left: .5rem;
  transition: background-color .15s ease, color .15s ease;
}

.aib-navbar .nav-link.btn-agence::after {
  display: none;
}

.aib-navbar .nav-link.btn-agence:hover {
  background: var(--aib-primary);
  color: #fff !important;
}

.aib-navbar .dropdown-menu {
  border: none;
  border-radius: var(--aib-radius-sm);
  box-shadow: var(--aib-shadow);
  padding: .5rem;
}

.aib-navbar .dropdown-item {
  border-radius: 8px;
  padding: .55rem .75rem;
  font-weight: 500;
}

.aib-navbar .dropdown-item:hover {
  background: var(--aib-primary-light);
  color: var(--aib-primary-dark);
}

/* ---------------------------- Hero ---------------------------- */

.aib-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  isolation: isolate;
}

.aib-hero-media {
  height: min(52vh, 460px);
  min-height: 300px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.aib-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 18, .35) 0%, rgba(15, 15, 18, .55) 55%, rgba(15, 15, 18, .78) 100%);
}

.aib-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.aib-hero-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  max-width: 880px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  margin: 0;
}

.aib-search-wrap {
  position: relative;
  z-index: 5;
  margin-top: -3.25rem;
  padding: 0 1rem;
}

.aib-search-card {
  background: #fff;
  border-radius: var(--aib-radius);
  box-shadow: var(--aib-shadow-lg);
  border: none;
  padding: 1.1rem;
}

.aib-search-card .form-select,
.aib-search-card .form-control {
  border-radius: var(--aib-radius-sm);
  border-color: var(--aib-border);
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.aib-search-card .form-select:focus,
.aib-search-card .form-control:focus {
  border-color: var(--aib-primary);
  box-shadow: 0 0 0 .2rem rgba(184, 55, 27, .15);
}

.btn-aib-primary {
  background: var(--aib-primary);
  border-color: var(--aib-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--aib-radius-sm);
  transition: background-color .15s ease, transform .15s ease;
}

.btn-aib-primary:hover {
  background: var(--aib-primary-dark);
  border-color: var(--aib-primary-dark);
  color: #fff;
}

/* ---------------------------- Intro / stats ---------------------------- */

.aib-intro {
  padding: 0.5rem 0 1.5rem;
  text-align: center;
}

.aib-intro-text {
  max-width: 780px;
  margin: 0 auto;
  color: var(--aib-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.aib-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 0.5rem;
  background: var(--aib-primary-light);
  color: var(--aib-primary-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .95rem;
}

.aib-stat-pill .aib-stat-number {
  font-size: 1.1rem;
  font-weight: 800;
}

.aib-search-summary {
  margin-top: .65rem;
  color: var(--aib-muted);
  font-size: .88rem;
}

.aib-search-summary strong {
  color: var(--aib-text);
}

.aib-search-summary a {
  margin-left: .75rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--aib-primary);
  text-decoration: none;
}

.aib-search-summary a:hover {
  color: var(--aib-primary-dark);
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .aib-intro {
    padding: 1.75rem 0 1rem;
  }

  .aib-intro-text {
    font-size: .88rem;
  }

  .aib-stat-pill {
    font-size: .82rem;
    padding: .4rem .85rem;
  }

  .aib-stat-pill .aib-stat-number {
    font-size: .95rem;
  }
}

/* ---------------------------- Stat cards (accueil) ---------------------------- */

.aib-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  max-width: 900px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.aib-stat-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border-radius: var(--aib-radius-sm);
  box-shadow: var(--aib-shadow-sm);
  padding: .9rem 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.aib-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--aib-shadow);
}

.aib-stat-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--aib-primary-light);
  color: var(--aib-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.aib-stat-card-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--aib-dark);
  line-height: 1.15;
}

.aib-stat-card-label {
  display: block;
  font-size: .76rem;
  color: var(--aib-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.aib-stat-card--villa .aib-stat-card-icon {
  background: var(--aib-primary-light);
  color: var(--aib-primary);
}

.aib-stat-card--villa .aib-stat-card-number {
  color: var(--aib-primary);
}

.aib-stat-card--appartement .aib-stat-card-icon {
  background: var(--aib-accent-light);
  color: var(--aib-accent);
}

.aib-stat-card--appartement .aib-stat-card-number {
  color: var(--aib-accent);
}

.aib-stat-card--terrain .aib-stat-card-icon {
  background: var(--aib-green-light);
  color: var(--aib-green);
}

.aib-stat-card--terrain .aib-stat-card-number {
  color: var(--aib-green);
}

.aib-stat-card--autre .aib-stat-card-icon {
  background: var(--aib-warning-light);
  color: var(--aib-warning);
}

.aib-stat-card--autre .aib-stat-card-number {
  color: var(--aib-warning);
}

@media (max-width: 767.98px) {
  .aib-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .aib-stat-card {
    padding: .75rem .85rem;
    gap: .6rem;
  }

  .aib-stat-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.05rem;
  }

  .aib-stat-card-number {
    font-size: 1.05rem;
  }
}

/* ---------------------------- Property cards ---------------------------- */

.aib-card {
  border: none;
  border-radius: var(--aib-radius);
  overflow: hidden;
  box-shadow: var(--aib-shadow-sm);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}

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

.aib-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.aib-card-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.aib-card:hover .aib-card-img-wrap img {
  transform: scale(1.06);
}

.aib-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.aib-badge-sale {
  background: var(--aib-primary);
}

.aib-badge-rent {
  background: var(--aib-accent);
}

.aib-card-body {
  padding: .7rem .8rem .85rem;
}

.aib-card-type {
  font-weight: 800;
  color: var(--aib-dark);
  font-size: .82rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aib-card-ref {
  color: var(--aib-muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.aib-price {
  color: var(--aib-primary);
  font-weight: 800;
  font-size: .88rem;
  margin-top: .25rem;
  display: block;
}

.aib-meta {
  color: var(--aib-muted);
  font-size: .74rem;
  margin-top: .2rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aib-meta i {
  color: var(--aib-primary);
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .aib-card-body {
    padding: .6rem .65rem .75rem;
  }

  .aib-card-type {
    font-size: .78rem;
  }

  .aib-price {
    font-size: .82rem;
  }

  .aib-meta {
    font-size: .7rem;
  }
}

.aib-empty-state {
  width: 100%;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--aib-muted);
}

.aib-empty-state i {
  font-size: 2.5rem;
  color: var(--aib-border);
  display: block;
  margin-bottom: .75rem;
}

/* ---------------------------- Pagination ---------------------------- */

#aib_pagination .pagination {
  gap: .25rem;
  row-gap: .4rem;
}

#aib_pagination .page-link {
  border: none;
  border-radius: 10px !important;
  color: var(--aib-text);
  font-weight: 600;
  margin: 0 2px;
}

#aib_pagination .page-item.active .page-link {
  background: var(--aib-primary);
  color: #fff;
}

#aib_pagination .page-item.disabled .page-link {
  color: var(--aib-border);
}

#aib_pagination .page-link:hover {
  background: var(--aib-primary-light);
  color: var(--aib-primary-dark);
}

@media (max-width: 575.98px) {
  #aib_pagination .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 .5rem;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---------------------------- Footer ---------------------------- */

.aib-footer {
  background: var(--aib-dark) !important;
  padding-top: 2.75rem;
}

.aib-footer h6 {
  color: #fff;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: .9rem;
}

.aib-footer p,
.aib-footer a,
.aib-footer strong {
  color: #a7abb1;
}

.aib-footer a:hover {
  color: #fff;
}

.aib-footer hr {
  border-color: rgba(255, 255, 255, .08);
}

/* ---------------------------- Auth pages ---------------------------- */

.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.auth-card {
  border: none;
  border-radius: var(--aib-radius-lg);
  box-shadow: var(--aib-shadow-lg);
  overflow: hidden;
}

.auth-card-header {
  background: var(--aib-dark);
  color: #fff;
  padding: 2.1rem 1.5rem 1.6rem;
  text-align: center;
}

.auth-card-header .auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .85rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.auth-card-header .auth-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card-header h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}

.auth-card-header p {
  color: #b7bac0;
  font-size: .9rem;
  margin: .3rem 0 0;
}

.auth-card-header--photo {
  background-size: cover;
  background-position: center;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-body {
  padding: 2rem 2rem 2.25rem;
}

.auth-card-body label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--aib-text);
}

.auth-card-body .form-control,
.auth-card-body .form-select {
  border-radius: var(--aib-radius-sm);
  border-color: var(--aib-border);
  padding: .6rem .85rem;
}

.auth-card-body .form-control:focus,
.auth-card-body .form-select:focus {
  border-color: var(--aib-primary);
  box-shadow: 0 0 0 .2rem rgba(184, 55, 27, .15);
}

.auth-card-body .input-group-text {
  background: #fff;
  border-color: var(--aib-border);
  border-radius: var(--aib-radius-sm);
  cursor: pointer;
}

.btn-auth-submit {
  background: var(--aib-primary);
  border-color: var(--aib-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--aib-radius-sm);
  padding: .65rem 1rem;
  width: 100%;
  transition: background-color .15s ease;
}

.btn-auth-submit:hover {
  background: var(--aib-primary-dark);
  border-color: var(--aib-primary-dark);
  color: #fff;
}

.auth-link {
  font-size: .88rem;
  font-weight: 600;
}

.auth-foot-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--aib-muted);
}

.aib-contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  background: var(--aib-bg);
  border-radius: var(--aib-radius-sm);
  padding: 1rem 1.25rem;
}

.aib-contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 0;
  font-size: .9rem;
  color: var(--aib-text);
}

.aib-contact-list li i {
  color: var(--aib-primary);
  width: 18px;
  text-align: center;
}

.aib-contact-list li strong {
  font-weight: 700;
  margin-right: .1rem;
}

@media (max-width: 576px) {
  .auth-card-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

/* ---------------------------- Property detail page ---------------------------- */

.aib-breadcrumb {
  font-size: .85rem;
  color: var(--aib-muted);
  margin-bottom: 1rem;
}

.aib-breadcrumb a {
  color: var(--aib-muted);
  text-decoration: none;
}

.aib-breadcrumb a:hover {
  color: var(--aib-primary);
}

.aib-breadcrumb i {
  font-size: .65rem;
  margin: 0 .4rem;
}

.aib-breadcrumb span {
  color: var(--aib-text);
  font-weight: 700;
}

.aib-gallery-main {
  position: relative;
  border-radius: var(--aib-radius);
  overflow: hidden;
  box-shadow: var(--aib-shadow-sm);
}

.aib-gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.aib-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .65rem;
  margin-top: .65rem;
}

.aib-gallery-thumb {
  border-radius: var(--aib-radius-sm);
  overflow: hidden;
  box-shadow: var(--aib-shadow-sm);
}

.aib-gallery-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.aib-gallery-thumb:hover img {
  transform: scale(1.08);
}

.aib-detail-card {
  background: #fff;
  border-radius: var(--aib-radius);
  box-shadow: var(--aib-shadow-sm);
  padding: 1.75rem;
}

.aib-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--aib-dark);
  margin: .25rem 0 .5rem;
}

.aib-price-box {
  background: var(--aib-primary-light);
  border-radius: var(--aib-radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  margin-top: .5rem;
}

.aib-price-box-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--aib-primary-dark);
}

.aib-price-box-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--aib-primary);
}

.aib-price-box-value small {
  font-size: .9rem;
  font-weight: 600;
  color: var(--aib-primary-dark);
}

.aib-subprice {
  background: var(--aib-bg);
  border: 1px solid var(--aib-border);
  border-radius: var(--aib-radius-sm);
  padding: .65rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  height: 100%;
}

.aib-subprice span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--aib-muted);
  font-weight: 700;
}

.aib-subprice strong {
  font-size: .95rem;
  color: var(--aib-text);
}

.aib-section-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--aib-dark);
  margin: 1.5rem 0 .85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--aib-border);
}

.aib-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}

.aib-feature {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--aib-bg);
  border-radius: var(--aib-radius-sm);
  padding: .6rem .75rem;
}

.aib-feature i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--aib-primary-light);
  color: var(--aib-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.aib-feature-label {
  display: block;
  font-size: .7rem;
  color: var(--aib-muted);
  font-weight: 600;
}

.aib-feature-value {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--aib-text);
}

.aib-description {
  color: var(--aib-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.btn-aib-cta {
  background: var(--aib-primary);
  border-color: var(--aib-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: .75rem 1.9rem;
  box-shadow: var(--aib-shadow-sm);
  transition: background-color .15s ease, transform .15s ease;
}

.btn-aib-cta:hover {
  background: var(--aib-primary-dark);
  border-color: var(--aib-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.modal-content {
  border: none;
  border-radius: var(--aib-radius);
  overflow: hidden;
  box-shadow: var(--aib-shadow-lg);
}

.modal-header {
  background: var(--aib-dark);
  color: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 1.5rem;
  font-size: .92rem;
}

.modal-body ul {
  padding-left: 1.1rem;
  margin-top: .75rem;
}

.modal-body li {
  margin-bottom: .35rem;
}

.modal-footer {
  border: none;
  padding: 0 1.5rem 1.5rem;
}

/* ---------------------------- Espace membre (pages "externe") ---------------------------- */

.aib-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  background: #fff;
  border-radius: var(--aib-radius);
  box-shadow: var(--aib-shadow-sm);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}

.aib-page-header-title {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.aib-page-header-title i {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--aib-primary-light);
  color: var(--aib-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.aib-page-header-title h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--aib-dark);
  margin: 0;
}

.aib-page-header-title span {
  display: block;
  font-size: .82rem;
  color: var(--aib-muted);
  font-weight: 500;
}

.aib-panel {
  background: #fff;
  border-radius: var(--aib-radius);
  box-shadow: var(--aib-shadow-sm);
  border: none;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.aib-panel .form-control,
.aib-panel .form-select {
  border-radius: var(--aib-radius-sm);
  border-color: var(--aib-border);
  padding: .55rem .8rem;
}

.aib-panel .form-control:focus,
.aib-panel .form-select:focus {
  border-color: var(--aib-primary);
  box-shadow: 0 0 0 .2rem rgba(184, 55, 27, .15);
}

.aib-panel label.form-label {
  font-weight: 600;
  font-size: .86rem;
  color: var(--aib-text);
}

.aib-panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--aib-dark);
  margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
  .aib-panel {
    padding: 1.1rem;
  }

  .aib-page-header {
    padding: .9rem 1rem;
  }
}

/* Tables clé/valeur (fiche détail) */

.aib-kv-table {
  margin-bottom: 0;
}

.aib-kv-table td {
  padding: .65rem .35rem;
  border-color: var(--aib-border);
  vertical-align: top;
  font-size: .88rem;
}

.aib-kv-table td:first-child {
  color: var(--aib-muted);
  font-weight: 600;
  width: 45%;
}

/* Photos (fiche détail) */

.aib-photo-thumb {
  border-radius: var(--aib-radius-sm);
  overflow: hidden;
  box-shadow: var(--aib-shadow-sm);
  display: block;
}

.aib-photo-thumb img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
}

.aib-photo-empty-thumb {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aib-bg);
  border: 1px dashed var(--aib-border);
  color: var(--aib-border);
  font-size: 1.4rem;
}

.aib-photo-empty {
  color: var(--aib-muted);
  font-size: .75rem;
  width: 96px;
}

/* Onglets (liste des biens) */

.aib-tabs {
  border-bottom-color: var(--aib-border);
}

.aib-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-weight: 700;
  font-size: .88rem;
  color: var(--aib-muted);
  padding: .65rem .25rem;
  margin-right: 1.5rem;
}

.aib-tabs .nav-link.active,
.aib-tabs .nav-link:hover {
  color: var(--aib-primary);
  background: transparent;
  border-bottom-color: var(--aib-primary);
}

/* Etapes du formulaire d'ajout de bien */

.aib-steps {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.aib-steps li {
  flex: 1;
  min-width: 160px;
  text-align: center;
  border-radius: var(--aib-radius-sm) !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
}

.aib-steps li.btn-danger {
  background: var(--aib-primary) !important;
  border-color: var(--aib-primary) !important;
  color: #fff !important;
}

.aib-steps li.btn-outline-danger {
  background: var(--aib-bg) !important;
  border-color: var(--aib-border) !important;
  color: var(--aib-muted) !important;
}

.aib-step-divider {
  border: none;
  border-top: 1px solid var(--aib-border);
  margin: 1.5rem 0;
}

.aib-step-title {
  color: var(--aib-dark);
  font-weight: 800;
}

.aib-step-subtitle {
  color: var(--aib-muted);
  font-size: .85rem;
  font-weight: 500;
}

/* Radio boutons stylés (choix du bailleur) */

.aib-radio-group {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.aib-radio-option {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.aib-radio-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.aib-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--aib-border);
  background: #fff;
  color: var(--aib-text);
  font-weight: 600;
  font-size: .88rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.aib-radio-option input:checked + .aib-radio-pill {
  background: var(--aib-primary);
  border-color: var(--aib-primary);
  color: #fff;
}

.aib-radio-option input:focus-visible + .aib-radio-pill {
  outline: 2px solid var(--aib-accent);
  outline-offset: 2px;
}

.aib-self-bailleur-box {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--aib-primary-light);
  color: var(--aib-primary-dark);
  border-radius: var(--aib-radius-sm);
  padding: .85rem 1rem;
  font-size: .9rem;
}

.aib-self-bailleur-box i {
  font-size: 1.4rem;
}
