/* =========================================================
   SCORPX Design — Mentions Légales
   ========================================================= */

:root {
  --black: #0a0a0a;
  --black-2: #111216;
  --anthracite: #1a1d24;
  --anthracite-2: #232730;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --gold-soft: #c8a233;
  --gold-light: #f1c95c;
  --text: #ececec;
  --text-soft: #b8b8b8;
  --text-mute: #8a8a8a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 50px -25px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 0 1px var(--line-strong), 0 20px 60px -20px rgba(212,175,55,0.25);

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--black);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(212,175,55,0.05), transparent 55%),
    linear-gradient(180deg, #0b0b0e 0%, #0a0a0a 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
}
a:hover { color: var(--gold-light); }

::selection { background: var(--gold); color: #111; }


.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10,10,10,0.75);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.logo span {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  margin-left: 4px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: all .25s ease;
}
.nav-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px -5px rgba(212,175,55,0.4);
}


.hero {
  text-align: center;
  padding: 90px 0 60px;
  position: relative;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 0%, #d4af37 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .lead {
  max-width: 720px;
  margin: 28px auto 18px;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.hero .updated {
  font-size: 0.85rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.hero .updated span { color: var(--gold); font-weight: 500; }


.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}


.toc {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, var(--anthracite), var(--black-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.toc h2 {
  font-family: var(--font-serif);
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
  padding: 9px 10px 9px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all .22s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--gold-soft);
  opacity: 0.7;
  width: 22px;
}
.toc a:hover {
  color: var(--gold-light);
  background: rgba(212,175,55,0.05);
  border-left-color: var(--line-strong);
}
.toc a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.toc a.active::before { opacity: 1; }


.content { display: grid; gap: 28px; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--anthracite) 0%, var(--black-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow-card);
  transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
  opacity: 0;
  transform: translateY(20px);
}
.card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 38px; right: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}
.card h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.card h2::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--gold);
  flex-shrink: 0;
  transform: translateY(-3px);
}
.card p {
  margin: 0 0 14px;
  color: var(--text-soft);
}
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--text); font-weight: 600; }


.info-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.info-list li {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-left: 2px solid var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.info-list li strong {
  color: var(--gold);
  font-weight: 500;
  margin-right: 6px;
  letter-spacing: 0.02em;
}


.card a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: all .25s ease;
}
.card a:hover {
  border-bottom-color: var(--gold-light);
  color: var(--gold-light);
}


.btn-secondary {
  margin-top: 16px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-secondary:hover {
  background: var(--gold);
  color: #111;
  box-shadow: 0 0 24px -4px rgba(212,175,55,0.6);
}
#cookie-info {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(212,175,55,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.93rem;
}
.hidden { display: none; }


.contact-card {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(212,175,55,0.10), transparent 70%),
    linear-gradient(180deg, var(--anthracite-2), var(--black-2));
}
.contact-info {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.contact-info > div {
  padding: 20px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .25s ease, transform .25s ease;
}
.contact-info > div:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-info p {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.55;
}


#back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--anthracite);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 60;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover {
  background: var(--gold);
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 0 28px -4px rgba(212,175,55,0.6);
}


.site-footer {
  margin-top: 40px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  text-align: center;
  color: var(--text-mute);
  font-size: 0.88rem;
}
.site-footer p { margin: 4px 0; }
.footer-meta {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}


::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-soft), var(--anthracite-2));
  border-radius: 10px;
  border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }


@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .card { padding: 28px 24px; }
  .card::before { left: 24px; right: 24px; }
  .hero { padding: 60px 0 40px; }
}
@media (max-width: 520px) {
  .header-inner { height: 64px; }
  .logo { font-size: 1.25rem; }
  .nav-link { padding: 6px 14px; font-size: 0.82rem; }
  .card h2 { font-size: 1.3rem; }
  .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}
