/* ═══════════════════════════════════════════════
   Nexorvivens.org — Style
   TODO: charte graphique a definir avec Saphire
   ═══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* TODO: couleurs a definir avec Saphire */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: #14142a;
  --text-primary: #e8e8f0;
  --text-secondary: #9090a8;
  --text-muted: #606078;
  --accent: #6c5ce7;
  --accent-glow: #a29bfe;
  --accent-dim: #3d3580;
  --border: #1e1e3a;
  --success: #00cec9;

  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  --max-width: 1100px;
  --section-padding: 5rem 2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  color: var(--accent-glow);
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-glow);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--success);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--bg-secondary);
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 3rem auto;
}

/* ─── Header / Nav ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 1132px) {
  nav {
    padding: 1rem 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-glow);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  margin-left: auto;
  flex-shrink: 1;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

/* ─── Language Switcher ─── */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
}

.lang-current {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  transition: border-color 0.2s;
}

.lang-current:hover {
  border-color: var(--accent-dim);
}

#langFlag {
  font-size: 1rem;
}

#langCode {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  list-style: none;
  padding: 0.3rem 0;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown button:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}

/* ─── RTL support ─── */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .logo {
  margin-left: 1.5rem;
  margin-right: 0;
}

[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 1rem;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] blockquote {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 8px 0 0 8px;
}

[dir="rtl"] .pipe-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .pipe-arrow::after {
  transform: rotate(135deg);
}

[dir="rtl"] .feature-card,
[dir="rtl"] .pub-card,
[dir="rtl"] .os-card {
  text-align: right;
}

[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-info {
  text-align: right;
}

[dir="rtl"] footer {
  text-align: right;
}

[dir="rtl"] .lang-dropdown button {
  text-align: right;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent-glow), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Pulse animation (hero) ─── */
.hero-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.pulse-ring {
  position: relative;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-expand 4s ease-in-out infinite;
  opacity: 0.35;
  box-shadow: 0 0 60px rgba(108, 92, 231, 0.15), inset 0 0 60px rgba(108, 92, 231, 0.08);
}

.pulse-ring::before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  animation: pulse-outer 5s ease-in-out infinite;
  opacity: 0.2;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 1px solid var(--accent-glow);
  animation: pulse-expand 3s ease-in-out infinite reverse;
  opacity: 0.15;
}

.pulse-core {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-dim) 40%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
  box-shadow: 0 0 80px rgba(108, 92, 231, 0.3), 0 0 160px rgba(108, 92, 231, 0.1);
}

@keyframes pulse-expand {
  0%, 100% { transform: scale(0.9); opacity: 0.25; }
  50% { transform: scale(1.1); opacity: 0.4; }
}

@keyframes pulse-outer {
  0%, 100% { transform: scale(0.95); opacity: 0.1; }
  50% { transform: scale(1.08); opacity: 0.25; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

/* ─── Hero book badge (sticker style) ─── */
.hero-book-badge {
  position: absolute;
  top: calc(50% - 300px);
  left: calc(50% + 300px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 35% 35%, #33fff5, #00cec9 40%, #00a8a3 100%);
  color: #0a0a0f !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  border-radius: 50%;
  transform: rotate(-12deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: 3px solid #009e99;
  padding: 0.6rem;
}

.hero-book-badge::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 12px;
  width: 30px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none;
}

.hero-book-badge:hover {
  transform: rotate(-4deg) scale(1.08);
  box-shadow:
    0 4px 20px rgba(0, 206, 201, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  color: #0a0a0f !important;
}


@media (max-width: 960px) {
  .hero-book-badge {
    display: none;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-glow);
  border-color: var(--accent-dim);
}

.btn-secondary:hover {
  background: var(--accent-dim);
  color: white;
}

.btn-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ─── Etymology ─── */
.etymology {
  text-align: center;
}

.etymology-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.etym-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 160px;
}

.etym-root {
  font-size: 1.8rem;
  font-weight: 200;
  color: var(--accent-glow);
  font-family: var(--font-mono);
}

.etym-latin {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.etym-meaning {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.pronunciation {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.etym-translation {
  font-size: 1.2rem;
  color: var(--accent-glow);
  margin-top: 0.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.pillar-card h3 {
  color: var(--accent-glow);
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ─── Triadic ─── */
.triadic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.triadic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.triadic-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-glow);
}

.triadic-card h3 {
  margin-bottom: 0.25rem;
}

.triadic-name {
  color: var(--accent);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.75rem !important;
}

.triadic-card p:last-child {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-align: left;
}

/* ─── Pipeline ─── */
.pipeline {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pipe-step {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}

.pipe-arrow {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent-dim);
  position: relative;
}

.pipe-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border: solid var(--accent-dim);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-45deg);
}

/* ─── Features Grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

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

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--accent-glow);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ─── Publications ─── */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.publications-list::-webkit-scrollbar {
  width: 6px;
}
.publications-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.publications-list::-webkit-scrollbar-thumb {
  background: var(--accent, #6c5ce7);
  border-radius: 3px;
}
.publications-list {
  scrollbar-width: thin;
  scrollbar-color: var(--accent, #6c5ce7) rgba(255,255,255,0.05);
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.pub-type {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--accent-dim);
  color: var(--accent-glow);
  margin-bottom: 0.75rem;
}

.pub-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

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

.pub-meta {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  margin-bottom: 0 !important;
}

/* ─── Open Source ─── */
.open-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.os-card h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-glow);
}

.os-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

/* ─── Contact ─── */
.contact-info {
  margin-top: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-latin {
  font-size: 0.8rem !important;
  color: var(--accent-dim) !important;
}

/* ─── Tablet / narrow desktop ─── */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  .pipeline-row {
    gap: 0.15rem;
  }

  .pipe-step {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .pipe-arrow {
    width: 12px;
  }

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

  .open-source-grid {
    grid-template-columns: 1fr;
  }

  .hero-subtitle br {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ─── Rights page ─── */
.rights-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.rights-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-glow), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rights-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.rights-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rights-container {
  max-width: 850px;
}

.rights-article {
  color: var(--text-secondary);
  line-height: 1.85;
}

.rights-article h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.rights-article h3 {
  font-size: 1.1rem;
  color: var(--accent-glow);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.rights-article blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.rights-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.rights-article th {
  background: var(--bg-card);
  color: var(--accent-glow);
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid var(--accent-dim);
  font-weight: 500;
}

.rights-article td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.rights-article ol, .rights-article ul {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.rights-article li {
  margin-bottom: 0.5rem;
}

.rights-ref {
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
  margin-bottom: 0.5rem !important;
}

.rights-doc-header {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.rights-doc-label {
  font-size: 1rem;
  color: var(--accent-glow);
  font-style: italic;
  margin-bottom: 1rem;
}

.rights-doc-authors {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.rights-doc-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rights-section {
  margin-bottom: 2rem;
}

.rights-annexes {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.rights-license {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.rights-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* Signatures section */
.rights-signatures {
  text-align: center;
}

.signatures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 280px));
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .signatures-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}

.rights-signatures-formal hr {
  margin: 2rem 0 1.5rem;
}

.signature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.signature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-glow);
}

.signature-card h3 {
  margin-bottom: 0.5rem;
}

.signature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.consent-quote {
  max-width: 700px;
  margin: 2rem auto 0;
}

/* Active nav link */
.nav-active {
  color: var(--accent-glow) !important;
}

/* ─── Print styles ─── */
@media print {
  header, .rights-hero .rights-actions, .lang-switcher,
  .nav-toggle, footer, .rights-signatures { display: none; }

  .rights-hero { padding-top: 2rem; }

  body {
    background: white;
    color: #222;
    font-size: 11pt;
  }

  .rights-article { color: #333; }
  .rights-article h2 { color: #333; border-top-color: #ccc; }
  .rights-article h3 { color: #555; }
  .rights-article blockquote { background: #f5f5f5; border-left-color: #999; color: #444; }
  .rights-article table { border: 1px solid #ccc; }
  .rights-article th { background: #eee; color: #333; }
  .rights-article td { border-bottom-color: #ddd; }
  .rights-ref { color: #777 !important; }

  .rights-hero h1 {
    background: none;
    -webkit-text-fill-color: #222;
    color: #222;
  }

  .rights-subtitle { color: #555; }
  .hero-tagline { color: #666; }
  .rights-doc-header { border-bottom-color: #ccc; }
  .rights-doc-label { color: #555; }
  .rights-annexes { background: #fafafa; border-color: #ddd; }
  .rights-license { color: #888; border-top-color: #ccc; }
}

/* ─── Screenshots ─── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
}

/* ─── Lightbox ─── */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  cursor: zoom-out;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0, 128, 255, 0.15);
}

.screenshot-card h3 {
  padding: 1rem 1.5rem 0.5rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.screenshot-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── Book downloads ─── */
.book-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-small {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-small:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
