/* ==========================================================================
   Design System : PacteNumérique.ca (pactenumerique.ca)
   Souveraineté Numérique & Confidentialité Zero-Knowledge
   ========================================================================== */

:root {
  /* Palette de couleurs */
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(225, 29, 72, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-red: #e11d48;
  --accent-red-hover: #f43f5e;
  --accent-red-glow: rgba(225, 29, 72, 0.25);

  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.2);

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);

  --gradient-maple: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
  --gradient-aurora: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);

  /* Typographie & Espacement */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px var(--accent-red-glow);
  --shadow-indigo: 0 0 30px var(--accent-indigo-glow);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(225, 29, 72, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Liens & Boutons */
a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-red-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

/* Barre de navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.maple-leaf {
  color: var(--accent-red);
  font-size: 1.4rem;
  animation: pulse-leaf 3s ease-in-out infinite;
}

@keyframes pulse-leaf {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-red-glow)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(225, 29, 72, 0.6)); }
}

.brand-suffix {
  color: var(--accent-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #fff;
}

.btn-lang {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-lang:hover {
  border-color: var(--accent-red);
  background: rgba(225, 29, 72, 0.1);
  transform: translateY(-1px);
}

/* Bannière d'invitation privée */
.invite-alert {
  max-width: 850px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(225, 29, 72, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.invite-badge {
  background: var(--accent-indigo);
  color: #fff;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
}

.invite-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.invite-text p {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Section Héro */
.hero-section {
  max-width: 1000px;
  margin: 3.5rem auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient-maple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Compteurs en temps réel */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.counter-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.counter-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.counter-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.counter-label {
  font-size: 0.825rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Formulaire d'engagement */
.form-section {
  max-width: 760px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.pact-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group-block {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

.form-group-block:focus-within {
  border-color: rgba(225, 29, 72, 0.4);
}

.block-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-glow);
  outline: none;
}

.input-help {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.45rem;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Choix de seuil de cercle */
.threshold-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.threshold-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.threshold-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.threshold-btn.active {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-red-glow);
}

.threshold-btn span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Bloc Push */
.push-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.push-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e0e7ff;
}

.push-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.btn-toggle-push {
  background: var(--accent-indigo);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-toggle-push:hover {
  background: #4f46e5;
  box-shadow: 0 0 15px var(--accent-indigo-glow);
}

.btn-toggle-push.active {
  background: var(--accent-emerald);
}

/* Bouton principal de soumission */
.btn-submit {
  width: 100%;
  background: var(--gradient-maple);
  color: #fff;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px var(--accent-red-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.legal-notice {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

/* Modal de succès (Lien d'invitation privé) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-dialog {
  transform: scale(1);
}

.modal-dialog h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-dialog p {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.invite-link-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.invite-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.btn-copy {
  background: var(--accent-red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--accent-red-hover);
}

.circle-progress-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-maple);
  width: 20%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-privacy-callout {
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-indigo);
  margin-bottom: 1.5rem;
}

.btn-modal-close {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Dashboard Territorial */
.dashboard-section {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.dash-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.province-list, .fsa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--gradient-aurora);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Écosystème Souverain */
.ecosystem-section {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: var(--shadow-indigo);
}

.eco-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.eco-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eco-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Puces de sélection Big Tech */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.network-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.network-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.network-chip.active {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.network-chip-icon {
  font-size: 1.15rem;
}

/* Boîte de recommandation souveraine dans le formulaire */
.recommendations-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.recom-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c7d2fe;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.recom-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.recom-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.recom-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

.recom-card.selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

.recom-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recom-card-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.recom-card-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  font-weight: 600;
}

/* Répertoire interactif des réseaux souverains */
.directory-section {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.9rem 1.25rem 0.9rem 2.85rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.1rem;
  pointer-events: none;
}

.filter-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-pill.active {
  background: var(--accent-indigo);
  color: #fff;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 12px var(--accent-indigo-glow);
}

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

.instance-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.instance-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.instance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.instance-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.instance-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.badge-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-tag.qc {
  background: rgba(225, 29, 72, 0.2);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.badge-tag.ca {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.instance-replaces {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.instance-replaces span {
  color: var(--accent-red-hover);
}

.instance-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.instance-meta {
  font-size: 0.775rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.instance-actions {
  display: flex;
  gap: 0.65rem;
}

.btn-instance-visit {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-instance-visit:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-instance-choose {
  background: var(--accent-indigo);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-instance-choose:hover {
  background: #4f46e5;
  box-shadow: 0 0 12px var(--accent-indigo-glow);
}

/* Pied de page */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: rgba(11, 15, 25, 0.95);
}

.footer p {
  margin-bottom: 0.5rem;
}

/* Toast de notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slide-toast 0.3s ease;
}

@keyframes slide-toast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-counters {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .threshold-options {
    grid-template-columns: 1fr;
  }
  .networks-grid {
    grid-template-columns: 1fr 1fr;
  }
  .instances-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

