/* Design inspiré de tarif_elec – thème sombre, Outfit + JetBrains Mono */

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-input: #0d1321;
  --accent-electric: #00d4ff;
  --accent-volt: #facc15;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2d3a52;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glow-electric: 0 0 20px rgba(0, 212, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 212, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(250, 204, 21, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Layout */
/* Layout application : sidebar gauche (menu en colonne) */
.app-body-with-sidebar {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}
.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.sidebar-brand {
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-volt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}
.sidebar-link {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-link:hover {
  color: var(--accent-electric);
  background: rgba(0, 212, 255, 0.08);
}
.sidebar-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.sidebar-footer .sidebar-link {
  padding: 0.25rem 0;
  font-size: 0.85rem;
}
.sidebar-user {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-main-wrap .app-main {
  flex: 1;
}

@media (max-width: 768px) {
  .app-body-with-sidebar {
    flex-direction: column;
  }
  .app-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    gap: 0.25rem;
  }
  .sidebar-brand {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-bottom: none;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
    overflow: visible;
    flex: 1;
  }
  .sidebar-nav .sidebar-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  .sidebar-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
  }
  .sidebar-footer .sidebar-user {
    margin-bottom: 0;
  }
}

.app-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.app-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.app-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.app-nav a:hover {
  color: var(--accent-electric);
}

.app-nav .nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-volt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  font-size: 0.875rem;
}

.app-nav .nav-links a {
  white-space: nowrap;
}

/* Dropdown "Plus" – pas d'espace entre le bouton et le menu pour garder le survol */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  user-select: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--accent-electric);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding: 0.35rem 0 0.5rem 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-electric);
}

@media (max-width: 1100px) {
  .app-nav-inner {
    padding: 0 1rem;
  }
  .app-nav .nav-links {
    gap: 0.5rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .app-nav .nav-links::-webkit-scrollbar {
    height: 4px;
  }
}

.app-nav .nav-user {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.app-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 600px) {
  .app-main {
    padding: 1rem;
  }
}

.app-footer {
  margin-top: auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.app-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer site vitrine (Phase 1) */
.app-footer-vitrine .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.app-footer-vitrine .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.app-footer-vitrine .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.app-footer-vitrine .footer-links a:hover {
  color: var(--accent-electric);
}
.app-footer-vitrine .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.app-footer-vitrine .footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}
.app-footer-vitrine .footer-legal a:hover {
  color: var(--accent-electric);
}
.app-footer-vitrine .footer-copy {
  margin: 0;
  font-size: 0.75rem;
}
.vitrine-legal .fonctionnalites-section {
  margin-bottom: 1.75rem;
}
.nav-cta {
  color: var(--accent-electric) !important;
  font-weight: 600;
}

/* Pages vitrine (contenu principal) */
.vitrine-page {
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.vitrine-intro {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.fonctionnalites-section {
  margin-bottom: 2rem;
}
.fonctionnalites-section .detail-section-title {
  margin-bottom: 0.5rem;
}
.fonctionnalites-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Page Fonctionnalités – grille de cartes avec icônes */
.fonctionnalites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.fonctionnalites-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fonctionnalites-card:hover {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}
.fonctionnalites-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--accent-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.f-icon {
  display: block;
  background: var(--accent-electric);
}
.f-icon-building {
  width: 24px;
  height: 20px;
  border-radius: 4px 4px 2px 2px;
}
.f-icon-users {
  width: 26px;
  height: 14px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 0 0 var(--accent-electric);
}
.f-icon-file-contract {
  width: 20px;
  height: 26px;
  border-radius: 2px;
  background: transparent;
  border: 2px solid var(--accent-electric);
}
.f-icon-receipt {
  width: 22px;
  height: 28px;
  border-radius: 2px;
  border-left: 3px solid var(--accent-electric);
  background: transparent;
}
.f-icon-chart-pie {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-electric) 50%, transparent 50%);
}
.f-icon-clipboard-list {
  width: 22px;
  height: 26px;
  border-radius: 2px;
  background: transparent;
  border: 2px solid var(--accent-electric);
  box-shadow: 0 -8px 0 -2px var(--accent-electric);
}
.f-icon-euro {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent-electric);
}
.f-icon-dashboard {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent-electric);
  box-shadow: 0 6px 0 0 var(--accent-electric);
}
.fonctionnalites-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.fonctionnalites-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Page Tarifs (site vitrine) */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 420px;
}
.tarif-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.tarif-card-featured {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}
.tarif-card-header {
  margin-bottom: 1rem;
}
.tarif-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tarif-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.tarif-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-electric);
  font-family: "JetBrains Mono", monospace;
}
.tarif-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.tarif-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.tarif-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.tarif-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.tarif-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-electric);
}
.tarif-cta {
  margin-bottom: 1rem;
}
.tarif-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Page Contact (site vitrine) */
.contact-email-section {
  margin-bottom: 2rem;
}
.contact-email-link {
  color: var(--accent-electric);
  font-weight: 500;
}
.contact-email-link:hover {
  text-decoration: underline;
}
.contact-alert-success {
  background: var(--accent-green);
  color: var(--bg-primary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.contact-form-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Page FAQ (site vitrine) */
.faq-list {
  margin: 2rem 0;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item:hover {
  border-color: var(--accent-electric);
}
.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-electric);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  content: "−";
}
.faq-answer {
  padding: 0 1.25rem 1rem;
}
.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Landing (Phase 12 – accueil public) */
.landing-wrap {
  width: 100%;
}
.landing-hero {
  padding: 2rem 0;
}
.landing-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.landing-hero-text {
  text-align: left;
}
.landing-hero-text .landing-hero-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.landing-hero-text .landing-hero-desc {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.landing-hero-text .landing-hero-actions {
  justify-content: flex-start;
}
.landing-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.hero-visual-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 20px;
  border: 2px solid var(--accent-electric);
  box-shadow: var(--glow-electric);
}
@media (max-width: 768px) {
  .landing-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .landing-hero-text { text-align: center; }
  .landing-hero-text .landing-hero-title,
  .landing-hero-text .landing-hero-desc { text-align: center; margin-left: auto; margin-right: auto; }
  .landing-hero-text .landing-hero-actions { justify-content: center; }
  .landing-hero-visual { min-height: 160px; }
  .hero-visual-img { width: 160px; height: 160px; }
}
.landing-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
  max-width: 720px;
}
.landing-hero-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 2rem;
  line-height: 1.6;
}
.landing-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.landing-section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.landing-section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.landing-section {
  margin: 2rem 0;
}
.landing-features {
  margin-top: 3rem;
}
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto 1.5rem;
}
.landing-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-feature-card:hover {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}
.landing-feature-title {
  font-weight: 600;
  font-size: 1rem;
}
.landing-feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.landing-features-cta {
  text-align: center;
  margin-bottom: 1rem;
}
.landing-cta-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.landing-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-step:hover {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}
.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-electric);
  color: var(--bg-primary);
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1rem;
}
.landing-step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.landing-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.landing-step-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}
@media (max-width: 768px) {
  .landing-steps {
    grid-template-columns: 1fr;
  }
}

/* Container (pages sans nav : login, setup) */
.page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.page-container-inner {
  width: 100%;
  max-width: 420px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title .icon {
  font-size: 1.5rem;
}

/* Data table (Phase 11 – utilisateurs) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.data-table tbody tr:hover {
  background: var(--bg-input);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
}

.form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  font-family: "Outfit", sans-serif;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-electric), #0099cc);
  color: white;
  box-shadow: var(--glow-electric);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--accent-electric);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Toggle Oui / Non (dépendances bien) */
.toggle-oui-non-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.toggle-oui-non-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-oui-non-item .toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 12rem;
  flex-shrink: 0;
}

.toggle-buttons {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-input);
}

.toggle-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-input);
  color: var(--text-muted);
}

.toggle-btn.toggle-non {
  color: var(--text-secondary);
}

.toggle-btn.toggle-oui {
  color: var(--text-muted);
}

.toggle-btn.toggle-non.active {
  background: var(--border);
  color: var(--text-primary);
}

.toggle-btn.toggle-oui.active {
  background: var(--accent-green);
  color: white;
}

.toggle-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Désactiver l'accès : Oui = rouge quand actif */
.toggle-oui-non-item.toggle-desactiver .toggle-btn.toggle-oui.active {
  background: var(--accent-red);
}

/* Badge statut accès locataire */
.badge-acces {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.badge-acces.badge-activer {
  background: var(--accent-green);
  color: white;
}
.badge-acces.badge-desactive {
  background: var(--accent-red);
  color: white;
}

/* Page headings */
.page-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent-electric);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.page-back:hover {
  text-decoration: underline;
}

.page-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Grid list (biens) */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filters-row label {
  margin-bottom: 0;
}

.filters-row select {
  width: auto;
  min-width: 180px;
}

.biens-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bien-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.bien-card:hover {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}

.bien-card-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-electric);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bien-card-ref {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.bien-card-address {
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--text-primary);
}

.bien-card-city {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.bien-card-surface {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: "JetBrains Mono", monospace;
}

/* Locataires list (same grid as biens) */
.locataires-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.locataire-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.locataire-card:hover {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}

.locataire-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.locataire-card-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.locataire-card-tel {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Detail sections */
.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.detail-dl {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Coordonnées locataire : une ligne par élément (email, téléphone, date de naissance) */
.detail-section-coordonnees .detail-dl {
  grid-template-columns: 1fr;
}

.detail-dl dt {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-dl dd {
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 0.95rem;
}

.empty-state a {
  color: var(--accent-electric);
  text-decoration: none;
}

.empty-state a:hover {
  text-decoration: underline;
}

/* Alert / error */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Dashboard quick links */
.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-bottom: 1.5rem;
}

.dashboard-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  border-color: var(--accent-electric);
  box-shadow: var(--glow-electric);
}

.dashboard-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.dashboard-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.dashboard-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-electric);
}

/* Form sections (bien form) */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Footer note */
.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border-radius: 8px;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
