:root {
  --dark-blue: #2a2a2e;
  --yellow: #fcbb00;
  --red-vente: #f15a29;
  --orange-syndic: #d84000;
  --green-gestion: #259059;
  --purple-location: #5e5c66;
  --light-grey: #fafafa;
  --grey: #8d8d8d;
}

* {
  font-family: "Avenir", "Futura", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--dark-blue);
}

header.site-header {
  background: var(--dark-blue);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 44px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-actions a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.header-actions a:hover {
  color: var(--yellow);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.btn-solid {
  background: var(--orange-syndic);
  color: #fff;
  border-color: var(--orange-syndic);
}

.btn-solid:hover {
  background: #fff;
  color: var(--orange-syndic);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--dark-blue);
}

/* Hero */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42, 42, 46, 0.80), rgba(42, 42, 46, 0.35));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: 600px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 500px;
  margin: 0 0 1.5rem;
}

/* Metiers grid */
.metiers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.metiers-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--dark-blue);
}

.metiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metier-card {
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metier-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.metier-card p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

.metier-location { background: var(--purple-location); }
.metier-gestion { background: var(--green-gestion); }
.metier-syndic { background: var(--orange-syndic); }
.metier-vente { background: var(--red-vente); }

/* MyCitya promo band */
.snexi-band {
  background: var(--light-grey);
  padding: 3rem 2rem;
}

.snexi-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.snexi-band img {
  height: 120px;
  flex-shrink: 0;
}

.snexi-band-text h2 {
  color: var(--dark-blue);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.snexi-band-text p {
  color: #4b5563;
  margin: 0 0 1rem;
}

/* Stats band */
.stats-band {
  background: var(--dark-blue);
  color: #fff;
  padding: 2.5rem 2rem;
}

.stats-grid-home {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats-grid-home .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
}

.stats-grid-home .label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

footer.site-footer {
  background: var(--dark-blue);
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Login page (Okta-branded, minimal, MyCitya style) */
.okta-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-blue), #23262a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.okta-login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  width: 400px;
  text-align: center;
}

.okta-login-card img {
  height: 90px;
  margin-bottom: 1.5rem;
}

.okta-login-card h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--dark-blue);
}

.okta-login-card .btn-solid {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

/* Dashboard */
.dashboard-header {
  background: var(--dark-blue);
  color: #fff;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header .brand img {
  height: 36px;
}

.dashboard-header .user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.dashboard-body {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.welcome-card {
  background: var(--light-grey);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.welcome-card h2 {
  color: var(--dark-blue);
  margin: 0 0 0.25rem;
}

.profile-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.tab-proprietaire { background: var(--green-gestion); }
.tab-locataire { background: var(--purple-location); }
.tab-copropriétaire { background: var(--orange-syndic); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
}

.stat-card .label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

table.docs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

table.docs-table th {
  background: var(--light-grey);
  color: var(--dark-blue);
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

table.docs-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-a-jour { background: #d1fae5; color: #065f46; }
.badge-attente { background: #fef3c7; color: #92400e; }
.badge-nouveau { background: #dbeafe; color: #1e40af; }


/* Landing: modèle snexi.fr */
header.site-header-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent); }
.site-header-overlay .header-inner { max-width: none; height: 90px; padding: 0 1.5rem; }
.header-left { display: flex; align-items: center; gap: 1.5rem; }
.header-left a { color: #fff; text-decoration: none; font-size: 1rem; }
.header-left a.brand img { height: 64px; }
.header-icons { gap: 1.75rem; }
.header-icons a { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-weight: 400; font-size: 1rem; }
.header-icons svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-icons svg.fill { fill: var(--orange-syndic); stroke: none; }
.hero-full { height: auto; min-height: 860px; padding: 130px 0 70px; }
.hero-full .overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.15)); }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-center h1 { max-width: none; font-size: 2.6rem; line-height: 1.35; text-shadow: 0 2px 10px rgba(0,0,0,0.6); margin-bottom: 2.5rem; }
.hero-center h1 .accent { color: var(--orange-syndic); }
.quote-card { width: 100%; max-width: 1150px; background: rgba(255,255,255,0.88); border: 1px solid var(--orange-syndic); text-align: left; }
.quote-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.quote-tabs span { padding: 0.9rem; text-align: center; font-weight: 700; font-size: 0.95rem; background: #fff; color: var(--orange-syndic); }
.quote-tabs span.active { background: var(--orange-syndic); color: #fff; }
.quote-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 1.25rem; }
.quote-form .field { grid-column: span 2; background: #fff; border: 1px solid #e4e4e4; border-radius: 4px; padding: 0.8rem 1rem; color: #2a2a2e; font-size: 0.95rem; }
.quote-form .field.span-2 { grid-column: span 3; }
.quote-form .field.muted { color: #8d8d8d; }
.quote-actions { text-align: center; padding: 0.5rem 0 1.75rem; }
.quote-actions .btn { border-radius: 6px; padding: 0.7rem 2rem; }
.logo-box { background: var(--dark-blue); border-radius: 12px; padding: 1rem 1.5rem; flex-shrink: 0; }
.logo-box img { height: 90px; }
.header-icons a { white-space: nowrap; }
.header-icons sup { font-size: 0.6em; margin-left: 1px; }

.header-icons .oracio-icon { width: 26px; height: 26px; }
.stats-cards { max-width: 1560px; margin: 0 auto; padding: 1.5rem 1.5rem 2.5rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.stat-box { padding: 1.75rem 1rem; text-align: center; color: #fff; box-shadow: 0 6px 14px rgba(0,0,0,0.15); display: flex; flex-direction: column; justify-content: center; min-height: 140px; }
.stat-box.dark { background: #000; }
.stat-box.orange { background: var(--orange-syndic); }
.stat-box .big { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-box .pre { font-size: 0.85rem; }
.stat-box .sub { font-size: 0.85rem; margin-top: 0.4rem; line-height: 1.5; }
@media (max-width: 900px) { .stats-cards { grid-template-columns: 1fr 1fr; } }
