/* ═══════════════════════════════════════
   RÉVEIL IMMOBILIER — styles.css
   Design System: Brutalist / Teal-Yellow
═══════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hanken Grotesk', sans-serif;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #e2e2e2;
}

::-webkit-scrollbar-thumb {
  background: #146a5a;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffe600;
}

/* ── SPA pages ── */
.page {
  display: none !important;
}

.page.active {
  display: block !important;
}

/* ── Nav active link ── */
.nav-link.active-link {
  color: #ffe600 !important;
  border-bottom: 2px solid #ffe600;
}

/* ── Admin tabs ── */
.admin-tab {
  padding: 6px 14px;
  border: 2px solid transparent;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f9f9f9;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-tab:hover {
  border-color: #ffe600;
  color: #ffe600;
}

.admin-tab.admin-tab-active {
  background: #ffe600;
  color: #1a1c1c;
  border-color: #1a1c1c;
}

/* ── Admin panel visibility ── */
.admin-panel {
  display: none;
}

.admin-panel.active-panel {
  display: block;
}

/* ── Modal ── */
.ri-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.78);
}

.ri-modal-box {
  position: relative;
  background: #f9f9f9;
  border: 4px solid #1a1c1c;
  box-shadow: 12px 12px 0 0 #1a1c1c;
  padding: 32px;
  width: 100%;
  max-width: 600px;
}

.ri-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1a1c1c;
  transition: color 0.15s;
}

.ri-modal-close:hover {
  color: #146a5a;
}

/* ── Shared input styles ── */
.input-std {
  border: 2px solid #1a1c1c;
  padding: 12px 16px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  color: #1a1c1c;
  transition: border-color 0.15s;
  width: 100%;
}

.input-std:focus {
  outline: none;
  border-color: #146a5a;
}

.label-xs {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b4731;
}

/* ── Property card ── */
.property-card {
  border: 2px solid #1a1c1c;
  background: #ffffff;
  box-shadow: 4px 4px 0 0 #1a1c1c;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.property-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 #1a1c1c;
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.property-card:hover img {
  filter: grayscale(0%);
}

.property-card-badge {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border: 1.5px solid #1a1c1c;
}

.badge-vente {
  background: #ffe600;
  color: #201c00;
}

.badge-location {
  background: #a4f2dd;
  color: #00201a;
}

.badge-disponible {
  background: #a4f2dd;
  color: #00201a;
}

.badge-vendu {
  background: #1a1c1c;
  color: #ffe600;
}

.badge-loue {
  background: #146a5a;
  color: #ffffff;
}

.badge-compromis {
  background: #e2e2e2;
  color: #1a1c1c;
}

/* ── Realisation card ── */
.real-card {
  border: 2px solid #1a1c1c;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 #1a1c1c;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.real-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 #1a1c1c;
}

.real-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s, transform 0.4s;
}

.real-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* ── Fiche bien gallery ── */
.gallery-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: #ffe600;
}

/* ── Table rows ── */
.admin-tr:hover {
  background: #f3f3f4;
}

.admin-tr td {
  border-bottom: 1px solid #e2e2e2;
}

/* ── Toast ── */
#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

/* ── Mobile hero height ── */
@media (max-width: 640px) {
  section[style*="min-h"] {
    min-height: 60vh !important;
  }
}