/* =======================================================================
   NEXORYA — Legal pages shared stylesheet
   Used by: privacy.html, conditions-utilisation.html, politique-cookies.html,
            mentions-legales.html
   ======================================================================= */

:root {
  --bg: #0a0a0f;
  --bg-2: #07070c;
  --violet: #7a26fb;
  --violet-2: #8b5cf6;
  --cyan: #06b6d4;
  --magenta: #e100ff;
  --white: #ffffff;
  --text: rgba(255,255,255,0.92);
  --text-mute: rgba(255,255,255,0.65);
  --text-dim: rgba(255,255,255,0.45);
  --glass-border: rgba(255,255,255,0.14);
  --heading: 'Anton', sans-serif;
  --body: 'Geist', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; overflow-x: hidden; line-height: 1.65; }
::selection { background: rgba(139,92,246,0.4); color: white; }
a {
  color: #a78bfa;
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,0.25);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}
a:hover { color: #c4b5fd; border-bottom-color: rgba(196,181,253,0.6); }
code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(139,92,246,0.10);
  border: 1px solid rgba(139,92,246,0.22);
  color: #d4c5ff;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  pointer-events: none;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  position: relative;
}
.nav__logo::before {
  content: '';
  position: absolute;
  inset: -22px -32px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.22) 0%, rgba(122,38,251,0.10) 35%, transparent 65%);
  filter: blur(16px);
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}
.nav__logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.5)) drop-shadow(0 0 28px rgba(122,38,251,0.25));
}
.nav__back {
  pointer-events: auto;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.nav__back:hover {
  color: white;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

/* ===== GALAXY (subtle, reading page) ===== */
.galaxy {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}
.galaxy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 15%, rgba(122, 38, 251, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 25% 80%, rgba(6, 182, 212, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 80% 50%, rgba(225, 0, 255, 0.07) 0%, transparent 55%);
}
.galaxy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(6, 182, 212, 0.012) 2px, rgba(6, 182, 212, 0.012) 4px);
  opacity: 0.4;
}
.stars { position: absolute; inset: 0; }
.stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.55; }
}

/* ===== STAGE ===== */
.stage {
  position: relative;
  z-index: 10;
  padding: 120px 24px 80px;
  display: flex;
  justify-content: center;
}

/* ===== GLASS CARD ===== */
.glass {
  position: relative;
  width: min(860px, 100%);
  border-radius: 28px;
  padding: 64px 64px 56px;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.06) 0%, rgba(6, 182, 212, 0.03) 50%, rgba(225, 0, 255, 0.04) 100%),
    rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1.5px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 0 80px rgba(139, 92, 246, 0.16),
    0 40px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: glass-in 0.8s cubic-bezier(.2,.9,.25,1) both;
  contain: layout paint;
}
@keyframes glass-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.glass::after {
  content: '';
  position: absolute;
  top: -30%; left: -10%; width: 120%; height: 160%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.glass > * { position: relative; z-index: 2; }

/* ===== HEADER ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.30);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 180, 255, 0.95);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--heading);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: white;
  text-transform: uppercase;
}
h1 .grad {
  background: linear-gradient(115deg, #ffffff 0%, #c7caff 30%, #8b5cf6 55%, #06b6d4 80%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.updated {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.03em;
  margin: 0 0 40px;
}

/* ===== TOC ===== */
.toc {
  margin: 0 0 48px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.toc__title {
  font-family: var(--heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.toc ol {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  counter-reset: toc;
}
.toc li { counter-increment: toc; font-size: 13.5px; line-height: 1.45; }
.toc li::before {
  content: counter(toc, decimal-leading-zero) '.';
  color: var(--violet-2);
  font-family: var(--heading);
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.toc a { color: var(--text-mute); border-bottom: none; transition: color 0.2s ease; }
.toc a:hover { color: white; }

/* ===== CONTENT ===== */
.content p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 16px;
}
.content p strong { color: #fff; font-weight: 600; }

.content h2 {
  font-family: var(--heading);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-shadow: 0 0 14px rgba(139,92,246,0.35);
  scroll-margin-top: 100px;
}
.content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.content h2 .num {
  display: inline-block;
  font-size: 0.7em;
  color: var(--violet-2);
  letter-spacing: 0.06em;
  margin-right: 14px;
  opacity: 0.85;
}
.content h3 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin: 28px 0 12px;
  letter-spacing: 0.01em;
}
.content ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}
.content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
}
.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
}
.content ul li strong { color: #fff; font-weight: 600; }

/* ===== TABLE (cookie list) ===== */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 13.5px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  overflow: hidden;
}
.cookie-table th, .cookie-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
.cookie-table th {
  background: rgba(139,92,246,0.08);
  font-family: var(--heading);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table td code {
  font-size: 12px;
  white-space: nowrap;
}

/* ===== CONTACT CARD ===== */
.contact-card {
  margin: 20px 0 0;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(6,182,212,0.05) 100%);
  border: 1.5px solid rgba(139,92,246,0.22);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.75;
}
.contact-card strong {
  color: #fff;
  font-family: var(--heading);
  letter-spacing: 0.02em;
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}

/* ===== FINE PRINT ===== */
.fine-print {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ===== SIGNATURE FOOTER ===== */
.signature {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.signature__brand { display: inline-flex; align-items: center; gap: 10px; }
.signature__brand img {
  height: 22px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.5)) drop-shadow(0 0 22px rgba(122,38,251,0.25));
  opacity: 0.85;
}
.signature a { color: var(--text-dim); border-bottom-color: rgba(255,255,255,0.15); }
.signature a:hover { color: var(--text); border-bottom-color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 18px 22px; }
  .nav__logo img { height: 36px; }
  .stage { padding: 110px 14px 60px; }
  .glass { padding: 40px 24px 32px; border-radius: 22px; }
  h1 { font-size: clamp(32px, 9vw, 48px); }
  .toc ol { grid-template-columns: 1fr; gap: 8px; }
  .content h2 { font-size: 20px; margin: 40px 0 16px; padding-top: 24px; }
  .content h2 .num { display: block; margin-bottom: 4px; font-size: 0.85em; margin-right: 0; }
  .content p, .content ul li { font-size: 15px; }
  .cookie-table { font-size: 12.5px; }
  .cookie-table th, .cookie-table td { padding: 10px 8px; }
  .signature { flex-direction: column; text-align: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .stars span { display: none; }
}
