:root {
  --bg-primary:    #0a0f1a;
  --bg-secondary:  #0d1520;
  --bg-card:       #131f2e;
  --border:        #1e2a3a;
  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --accent:        #38bdf8;
  --accent-dark:   #0ea5e9;
  --accent-bg:     #0ea5e911;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   Navigation
   ═══════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-logo {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════
   Hero
   ═══════════════════════════════════════ */

.hero {
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 0.5px solid var(--border);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.accent {
  color: var(--accent);
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   Sections
   ═══════════════════════════════════════ */

.section {
  padding: 4rem 2rem;
  border-bottom: 0.5px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════
   Grids
   ═══════════════════════════════════════ */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ═══════════════════════════════════════
   Cards
   ═══════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.card-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.8;
}

/* App icons */

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.app-icon-tankly {
  background: linear-gradient(135deg, #1e40af, #0ea5e9);
}

.app-icon-aquazen {
  background: linear-gradient(135deg, #065f46, #059669);
}

/* Pills */

.pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-active {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
}

.pill-soon {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

/* Value cards (À propos) */

.card-value {
  text-align: center;
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════
   Page Hero (sub-pages)
   ═══════════════════════════════════════ */

.page-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 0.5px solid var(--border);
}

.page-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.app-icon-lg {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* ═══════════════════════════════════════
   Features list
   ═══════════════════════════════════════ */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pill-success {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
}

.pill-premium {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  vertical-align: middle;
}

.card-link-block {
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}

.card-link-block:hover {
  border-color: var(--accent);
}

.card-link-block h3 {
  color: var(--accent);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   Legal pages
   ═══════════════════════════════════════ */

.legal h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.legal p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal ul {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal th,
.legal td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

.legal th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}

.legal td {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Contact form
   ═══════════════════════════════════════ */

.contact-email-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-form-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  border: none;
}

/* ═══════════════════════════════════════
   Contact
   ═══════════════════════════════════════ */

#contact h2 {
  margin-bottom: 1.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  background: var(--accent-bg);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 8px;
  transition: background 0.2s;
}

.contact-email:hover {
  background: rgba(14, 165, 233, 0.15);
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */

.footer {
  padding: 1.5rem 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-sep {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   Responsive (≤768px)
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero {
    padding: 3rem 1.25rem 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 1.5rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
