/* ============================================================
   Oberheim OB-12 Community Archive — luxury dark/gold theme
   No external CDN dependencies. Latin subset fonts self-hosted.
   ============================================================ */

@import url('./files/_fonts/fonts.css');

:root {
  --bg-deep:       #0a0a0c;
  --bg-panel:      #131318;
  --bg-card:       #1a1a20;
  --bg-card-hover: #1f1f26;
  --border:        #2a2a32;
  --border-strong: #3a3a44;
  --gold:          #d4af6a;
  --gold-bright:   #e8c878;
  --gold-deep:     #a88044;
  --gold-line:     rgba(212, 175, 106, 0.35);
  --text:          #d8d2c2;
  --text-soft:     #aea893;
  --text-mute:     #8a8674;
  --text-faint:    #5e5b50;
  --serif:         "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display:       "Cinzel", Georgia, serif;
  --cursive:       "Pinyon Script", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background-color: #08070a;
  background-image: url('./files/_assets/fond.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

main, footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

/* -------- HEADER (logo + nav) -------- */

header {
  padding: 3rem 1rem 1.5rem;
  text-align: center;
  position: relative;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  position: relative;
  transform: rotate(45deg);
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #1a1a20 0%, #0d0d12 100%);
  box-shadow: 0 0 0 6px var(--bg-deep), 0 0 0 7px var(--gold-line), 0 8px 30px rgba(0,0,0,0.6);
}

.brand-mark .brand-text {
  transform: rotate(-45deg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
}

.brand-mark .brand-text .dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: var(--gold-bright);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.06em 0.18em;
}

header h1.site-title {
  margin: 1.5rem auto 0.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  max-width: none;
}

header .subtitle-cursive {
  font-family: var(--cursive);
  font-size: 2rem;
  color: var(--gold-bright);
  margin: 0.25rem auto 0;
  line-height: 1;
  max-width: none;
}

header .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-soft);
  margin: 1rem auto 0;
  max-width: 60ch;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

header .lang-switch {
  max-width: none;
}

.lang-switch {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.lang-switch a, .lang-switch strong {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch strong {
  color: var(--gold-bright);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.lang-switch a {
  color: var(--text-mute);
}

.lang-switch a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-line);
}

/* -------- DECORATIVE DIVIDERS -------- */

.divider {
  display: block;
  margin: 3rem auto;
  text-align: center;
  position: relative;
  height: 2rem;
  color: var(--gold);
}

.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 35px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 0 0.6rem;
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

.divider::before, .divider::after {
  z-index: 0;
}

.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  opacity: 0.7;
}

/* -------- HERO -------- */

.hero {
  margin: 1rem auto 2rem;
  padding: 0 1.5rem;
  max-width: 1280px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero-caption {
  text-align: center;
  font-style: italic;
  color: var(--text-mute);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.intro-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem auto;
  max-width: 1080px;
  padding: 0 1.5rem;
}

.intro-image {
  width: 100%;
  border: 1px solid var(--gold-line);
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.intro-text h2 {
  font-family: var(--cursive);
  font-size: 2.6rem;
  color: var(--gold-bright);
  margin: 0;
  line-height: 1;
  font-weight: 400;
  border: 0;
  text-transform: none;
  letter-spacing: 0;
}

.intro-text h2 + .h2-sub {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0.2rem 0 1rem;
  text-transform: uppercase;
}

.intro-text p {
  font-family: var(--serif);
  text-align: justify;
  margin: 0.75rem 0;
  color: var(--text);
}

.intro-text p strong {
  color: var(--gold-bright);
  font-weight: 600;
}

/* -------- BANDEAU PHOTO ENTRE SECTIONS -------- */

.section-banner {
  position: relative;
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  filter: brightness(0.85);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* -------- TABLE OF CONTENTS -------- */

nav.toc {
  margin: 3rem auto;
  padding: 1.5rem 2rem;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(20,20,28,0.5), rgba(13,13,18,0.5));
  max-width: 760px;
}

nav.toc h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  border: 0;
  padding: 0;
  text-align: center;
}

nav.toc ol {
  margin: 0;
  padding-left: 1.5rem;
  columns: 2;
  column-gap: 3rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  nav.toc ol { columns: 1; }
}

nav.toc li { margin: 0.35rem 0; color: var(--text-soft); }

nav.toc li::marker { color: var(--gold-deep); }

nav.toc a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

nav.toc a:hover {
  color: var(--gold-bright);
}

/* -------- SECTIONS -------- */

section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border: 0;
  text-align: center;
  position: relative;
  scroll-margin-top: 1rem;
}

section h2::before, section h2::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 50px;
  height: 1px;
  background: var(--gold-line);
  margin: 0 1.2rem 0.2em;
}

section h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 2rem 0 0.8rem;
}

section > p {
  max-width: 75ch;
  margin: 0.8rem auto;
  text-align: justify;
  font-size: 1.02rem;
  color: var(--text);
}

p, ul, ol { max-width: 75ch; }

a { color: var(--gold-bright); }

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

code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-card);
  color: var(--gold-bright);
  padding: 0.1em 0.4em;
  border: 1px solid var(--border);
  border-radius: 2px;
}

ul, ol {
  color: var(--text);
  max-width: 75ch;
  margin: 1rem auto;
  padding-left: 1.6em;
}

ul li, ol li {
  margin: 0.4rem 0;
}

ol li::marker, ul li::marker { color: var(--gold-deep); }

/* -------- ELEGANT LIST (gold-marker definition-like) -------- */

ul.elegant-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem;
  max-width: 75ch;
}

ul.elegant-list > li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2.5rem;
  margin: 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.12);
}

ul.elegant-list > li:last-child { border-bottom: 0; }

ul.elegant-list > li::before {
  content: "\2756";
  position: absolute;
  left: 0.6rem;
  top: 1rem;
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
}

ul.elegant-list > li > strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
}

ul.elegant-list > li > strong code {
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
}

/* -------- TABLES (file downloads) -------- */

.table-wrap {
  margin: 1rem 0 2rem;
  border: 1px solid var(--gold-line);
  background: rgba(13,13,18,0.55);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif);
  font-size: 1.02rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: rgba(212, 175, 106, 0.08);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  white-space: nowrap;
}

tbody tr:hover {
  background: rgba(212, 175, 106, 0.04);
}

tbody tr:last-child td { border-bottom: 0; }

td.file { white-space: nowrap; }

td.file a {
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-bright);
  border-bottom: 1px dotted var(--gold-line);
  transition: border-color 0.15s, color 0.15s;
}

td.file a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

td.meta {
  white-space: nowrap;
  color: var(--text-mute);
  font-size: 0.92rem;
  font-style: italic;
}

td.size {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-mute);
  white-space: nowrap;
  font-size: 0.95rem;
}

td a {
  color: var(--gold-bright);
}

td a:hover { color: var(--gold); }

/* -------- TAGS -------- */

.tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 1px;
  margin: 0.1rem 0.15rem 0.1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: transparent;
  color: var(--text-mute);
  vertical-align: middle;
}

.tag-rare { color: var(--gold-bright); border-color: var(--gold); }
.tag-new  { color: #a3d6a7; border-color: #5e9462; }
.tag-big  { color: #d49aa7; border-color: #944e60; }

/* -------- VIDEO CARDS -------- */

.video-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.25rem;
  background: rgba(13,13,18,0.55);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.video-card:hover { border-color: var(--gold-line); }

.video-card .video-meta h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--gold-bright);
  line-height: 1.3;
}

.video-card .video-meta h3 a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-line);
}

.video-card .video-meta h3 a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.video-card .video-date {
  color: var(--text-mute);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
  font-style: italic;
}

.video-card .video-desc {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
  background: #000;
}

@media (max-width: 800px) {
  .video-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* -------- CALLOUT -------- */

.callout {
  background: rgba(212, 175, 106, 0.06);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
}

.callout strong { color: var(--gold-bright); font-style: normal; }

/* -------- FOOTER -------- */

footer {
  margin-top: 5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--gold-line);
  font-size: 0.95rem;
  color: var(--text-soft);
  text-align: center;
}

footer p {
  max-width: 70ch;
  margin: 1rem auto;
  text-align: justify;
}

footer p:first-child, footer p:last-child {
  text-align: center;
}

footer strong { color: var(--gold-bright); }

footer .lang-switch {
  margin-top: 1.5rem;
}

/* -------- MOBILE -------- */

@media (max-width: 800px) {
  body { font-size: 16px; }
  header { padding: 2rem 1rem 1rem; }
  header h1.site-title { font-size: 1.05rem; letter-spacing: 0.25em; }
  header .subtitle-cursive { font-size: 1.6rem; }
  .brand-mark { width: 90px; height: 90px; }
  .brand-mark .brand-text { font-size: 1.2rem; }
  section h2 { font-size: 1.05rem; letter-spacing: 0.2em; }
  section h2::before, section h2::after { width: 20px; margin: 0 0.6rem 0.2em; }
  .intro-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .intro-text h2 { font-size: 2rem; }
  th, td { padding: 0.5rem 0.7rem; font-size: 0.92rem; }
}
