/**
 * BBS Core Magazine N°01 — lecteur flip (cover bleed + intérieur papier)
 */
:root {
  --mag-gold: #C9A96E;
  --mag-gold2: #A8894A;
  --mag-ink: #f2eee6;
  --mag-ink2: #c8c2b6;
  --mag-muted: #9a9488;
  --mag-void: #050506;
  --mag-paper: #F7F3EB;
  --mag-paper-ink: #1a1917;
  --mag-paper-muted: #3d3a35;
}

.tech-mag-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  background: #0a0a0c;
  color: var(--mag-ink);
  overflow: hidden;
  margin: 0;
  height: 100%;
}
.tech-mag-body a { color: inherit; text-decoration: none; }

.tech-mag-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.55);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
}
.tech-mag-topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.tech-mag-topbar a:hover { color: var(--mag-gold); }

.tech-mag-book {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tech-mag-book::-webkit-scrollbar { display: none; }

.tech-mag-page {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.tech-mag-nav {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(201, 169, 110, 0.28);
  padding: 10px 16px;
}
.tech-mag-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  background: transparent;
  cursor: pointer;
  color: var(--mag-ink);
  font-size: 14px;
}
.tech-mag-nav button:hover {
  border-color: var(--mag-gold);
  color: var(--mag-gold);
}
.tech-mag-dots {
  display: flex;
  gap: 6px;
  margin: 0 10px;
  flex-wrap: wrap;
  max-width: 40vw;
  justify-content: center;
}
.tech-mag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(242, 238, 230, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
}
.tech-mag-dot.on { background: var(--mag-gold); }
.tech-mag-pg {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mag-muted);
  min-width: 48px;
  text-align: center;
}
.tech-mag-hint {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.4);
  pointer-events: none;
  transition: opacity 0.7s;
}
.tech-mag-hint.hide { opacity: 0; }

/* Cover */
.tech-mag-bleed {
  background: center / cover no-repeat;
}
.tech-mag-bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(5, 5, 6, 0.18) 0%, rgba(5, 5, 6, 0.58) 78%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.12), rgba(5, 5, 6, 0.55));
}
.tech-mag-bleed .tech-mag-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px clamp(28px, 5vw, 72px) 110px;
}
.tech-mag-brand {
  font-family: Cinzel, serif;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--mag-gold);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.tech-mag-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mag-gold);
  margin: 32px 0 16px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.tech-mag-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 7.2vw, 4.8rem);
  line-height: 0.98;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 12ch;
  margin: 0;
}
.tech-mag-title em {
  font-style: italic;
  color: var(--mag-gold);
  display: block;
  margin-top: 0.1em;
  font-size: 0.72em;
  max-width: 18ch;
}
.tech-mag-cover-line {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(247, 243, 235, 0.88);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.tech-mag-cover-meta {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.72);
  line-height: 1.85;
  text-align: right;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Paper folio */
.tech-mag-folio {
  background: var(--mag-paper);
  color: var(--mag-paper-ink);
  padding: clamp(72px, 10vh, 100px) clamp(22px, 5vw, 72px) 110px;
  overflow-y: auto;
  height: 100%;
}
.tech-mag-folio-inner { max-width: 720px; margin: 0 auto; }
.tech-mag-folio-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a756c;
  border-bottom: 1px solid rgba(26, 25, 23, 0.14);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.tech-mag-folio-meta strong { color: var(--mag-gold2); font-weight: 500; }
.tech-mag-folio h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 16ch;
}
.tech-mag-lede {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.45;
  font-style: italic;
  color: #3d3a35;
  max-width: 38ch;
  margin: 0 0 26px;
}
.tech-mag-folio p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--mag-paper-muted);
  margin: 0 0 1.2em;
}
.tech-mag-folio p strong {
  color: var(--mag-paper-ink);
  font-weight: 500;
}
.tech-mag-drop::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.8;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--mag-gold2);
}
.tech-mag-sign {
  margin-top: 26px;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mag-gold2);
}
.tech-mag-geo {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(26, 25, 23, 0.12);
}
.tech-mag-geo-label {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mag-gold2);
  margin: 0 0 14px !important;
}
.tech-mag-geo ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.tech-mag-geo a {
  font-size: 0.82rem;
  color: var(--mag-paper-muted);
  border-bottom: 1px solid rgba(168, 137, 74, 0.35);
}
.tech-mag-geo a:hover { color: var(--mag-gold2); }

/* Paths page */
.tech-mag-paths {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.tech-mag-paths li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 25, 23, 0.1);
}
.tech-mag-paths strong {
  display: block;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mag-gold2);
  margin-bottom: 8px;
  font-weight: 500;
}
.tech-mag-paths span {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--mag-paper-muted);
}

.tech-mag-cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-mag-cta {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid rgba(168, 137, 74, 0.45);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mag-gold2);
}
.tech-mag-cta:hover { border-color: var(--mag-gold2); background: rgba(168, 137, 74, 0.08); }
.tech-mag-cta--gold {
  background: rgba(168, 137, 74, 0.14);
  border-color: var(--mag-gold2);
}

@media (max-width: 640px) {
  .tech-mag-cover-meta { text-align: left; margin-top: 24px; }
}
