/* =========================================================
   PAGE — APPARTEMENT / INFO (histoire + dashboard stats)
   ========================================================= */
@import url('CSSPlongeeAccueil.css');

/* Réinitialise les styles Accueil-spécifiques sur cette page */
main > section:first-of-type { text-align: left; padding: 0; }
main > section h1 {
  background: linear-gradient(135deg, #fff 0%, #8fd6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

/* --------- Histoire (section narrative) --------- */
main > section:first-of-type {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}
main > section:first-of-type::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

main > section:first-of-type p {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 1rem;
}
main > section:first-of-type p:first-of-type::first-letter {
  font-family: 'Syne', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(34,211,238,0.4);
}

/* --------- Dashboard stats --------- */
.dashboard-stats {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.dashboard-stats h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,0.3), transparent 40%, rgba(94,234,212,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(34,211,238,0.25), transparent 65%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.stat-card:hover::before,
.stat-card:hover::after { opacity: 1; }

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.stat-value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
