:root {
  --bg: #0f172a;            /* bleu nuit */
  --card: #111827;          /* gris très foncé */
  --text: #e5e7eb;          /* gris clair */
  --muted: #9ca3af;         /* gris */
  --accent: #38bdf8;        /* bleu industriel */
  --border: #1f2937;
  --background: #020617;    /* fond principal */
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #020617, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

header {
  margin-bottom: 4rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 700px;
}

section {
  margin-bottom: 3.5rem;
}

section h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.muted {
  color: var(--muted);
}

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

ul {
  list-style: none;
}

ul li::before {
  content: "▸";
  color: var(--accent);
  margin-right: 0.5rem;
}

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

footer p {
  margin-bottom: 0.5rem;
}

.legal-links {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-links button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.legal-links button:hover {
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  max-width: 640px;
  width: 100%;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0 0.2rem 0.5rem;
}

.modal-close:hover {
  color: var(--accent);
}

.modal h4 {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.modal p,
.modal li {
  font-size: 0.9rem;
}

.modal ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.modal ul li::before {
  content: none;
}

.cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background 0.2s ease;
}

.cta:hover {
  background: rgba(56, 189, 248, 0.1);
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
}


