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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-card-hover: #22222f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b80;
  --accent: #f5a623;
  --accent-hover: #e6951a;
  --accent-glow: rgba(245, 166, 35, 0.15);
  --border: #2a2a3a;
  --border-light: #3a3a4a;
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Pages */
.page {
  display: none;
  padding-top: 64px;
}

.page.active {
  display: block;
  animation: pageIn 0.4s ease-out;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease-out forwards;
}
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
.fade-in-d4 { animation-delay: 0.4s; }
.fade-in-d5 { animation-delay: 0.5s; }

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

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Hero Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 320px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.card-name {
  font-weight: 600;
  display: block;
}

.card-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.rating-display {
  margin-bottom: 16px;
}

.rating-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.rating-bar {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f5d623);
  border-radius: 4px;
  transition: width 1s ease;
}

.rating-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.card-tags {
  display: flex;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.tag-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

/* Features */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Dispositifs */
.dispositifs-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dispositif-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.dispositif-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dispositif-coming {
  opacity: 0.7;
}

.dispositif-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.coming-badge {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent);
}

.dispositif-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.dispositif-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.dispositif-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.dispositif-features {
  list-style: none;
  margin-bottom: 20px;
}

.dispositif-features li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dispositif-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.status-soon {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-section h3 {
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-section li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Developer Page */
.developer-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
}

.developer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.developer-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-primary);
}

.developer-profile {
  padding: 0 40px 40px;
  text-align: center;
  margin-top: -50px;
}

.developer-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.developer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-name {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.developer-username {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.developer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge-tooltip {
  position: relative;
  cursor: pointer;
}

.badge-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.badge-img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
}

.tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
  z-index: 10;
  box-shadow: var(--shadow);
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}

.badge-tooltip:hover .tooltip-text {
  opacity: 1;
}

.developer-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-style: italic;
}

.developer-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.developer-connections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.connection {
  padding: 6px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Add Page */
.add-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 24px;
}

.add-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.add-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.add-card h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.add-card > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.cgu-checkbox-group {
  text-align: left;
  margin-bottom: 28px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-label input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: "✓";
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
}

.inline-link:hover {
  text-decoration: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-right span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    max-width: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .dispositifs-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }
}
