/* ================================================================
   LE MONDE DES GABBARDONS — Global Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #04101f;
  --color-bg-surface: #091626;
  --color-bg-elevated: #0f2137;
  --color-bg-card: rgba(9, 22, 38, 0.85);
  --color-text: #efe7d6;
  --color-text-muted: #b8b0a0;
  --color-text-dim: #8a8274;
  --color-gold: #D4A017;
  --color-gold-light: #dfc06a;
  --color-gold-dark: #8b7333;
  --color-gold-glow: rgba(201, 168, 76, 0.15);
  --color-border: rgba(201, 168, 76, 0.15);
  --color-border-gold: rgba(201, 168, 76, 0.35);
  --color-overlay: rgba(4, 16, 31, 0.7);
  --color-link: #dfc06a;
  --color-link-hover: #f0d680;
  --font-primary: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 8rem;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg) url('../assets/site-bg-nebula.webp') center center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-gold);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: var(--spacing-md); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 600; margin-bottom: var(--spacing-sm); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; margin-bottom: var(--spacing-sm); }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

#main-content p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#main-content .page-header p,
#main-content .hero-content p,
#main-content .text-center,
#main-content .isbn-entry,
#main-content .book-isbn,
#main-content .contact-info p {
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section--lg {
  padding: var(--spacing-2xl) 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-sm);
  background: var(--color-gold);
  color: var(--color-bg);
  padding: var(--spacing-xs) var(--spacing-sm);
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
  color: var(--color-bg);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(4, 16, 31, 0.95) 0%, rgba(4, 16, 31, 0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  padding-left: var(--spacing-sm);
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo {
  margin-right: auto;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-xs);
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: var(--spacing-sm);
  padding-left: var(--spacing-sm);
  border-left: 1px solid var(--color-border-gold);
}

.lang-switcher a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
}

.lang-switcher a:hover {
  color: var(--color-gold-light);
}

.lang-switcher a.active {
  color: var(--color-gold);
  background: var(--color-gold-glow);
}

.lang-separator {
  color: var(--color-text-dim);
  font-size: 0.75rem;
  user-select: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-gold);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .header-logo img {
    height: 48px;
  }

  .menu-toggle {
    display: block;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(4, 16, 31, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    transition: right var(--transition);
    border-left: 1px solid var(--color-border-gold);
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .header-nav.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border-gold);
  }
}

@media (max-width: 480px) {
  .header-logo img {
    height: 40px;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--color-bg) 0%, #020a14 100%);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 70px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

.footer-nav h4,
.footer-links-col h4 {
  color: var(--color-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.footer-nav ul,
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-links-col li {
  margin-bottom: 0.4rem;
}

.footer-nav a,
.footer-links-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-links-col a:hover {
  color: var(--color-gold-light);
}

/* Social Icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--spacing-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-copyright {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-legal a {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-logo img {
    height: 55px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-logo img {
    height: 45px;
  }
}

/* ================================================================
   HERO SECTION (Home)
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: -2%;
  background: var(--color-bg) url('../assets/Font-Website-LMDG.webp') center center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(4, 16, 31, 0.3) 0%, rgba(4, 16, 31, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--spacing-lg) var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-line {
  display: block;
}

.hero-title-subtitle {
  font-style: italic;
  font-weight: 500;
  font-size: 0.55em;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.hero-author {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ================================================================
   PAGE HEADER (Inner Pages)
   ================================================================ */
.page-header {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-lg);
  text-align: center;
  background: linear-gradient(180deg, rgba(4, 16, 31, 1) 0%, rgba(9, 22, 38, 0.95) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-header[style*="--banner"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--banner) center center / cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: var(--spacing-xs);
}

.page-header .page-subtitle {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1.15rem;
}

.page-header .page-accroche {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: var(--spacing-sm);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content-section {
  padding: var(--spacing-xl) 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--color-border);
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }
.text-italic { font-style: italic; }

/* Gold decorative separator */
.gold-separator {
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: var(--spacing-md) auto;
  border: none;
}

.gold-separator--left {
  margin-left: 0;
}

/* ================================================================
   BOOK SECTION
   ================================================================ */
.book-hero {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.book-cover {
  border-radius: 4px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--color-gold-glow);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.book-meta-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.book-isbn {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
}

@media (max-width: 768px) {
  .book-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ================================================================
   BUY PAGE — Retailer Cards
   ================================================================ */
.buy-section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-weight: var(--font-weight-semibold);
}

.buy-section-title + .text-muted {
  font-weight: var(--font-weight-semibold);
}

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.retailer-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.retailer-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px var(--color-gold-glow);
  color: var(--color-text);
}

.retailer-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.retailer-icon img {
  vertical-align: middle;
}

.retailer-info {
  flex: 1;
}

.retailer-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
}

.retailer-format {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
}

.retailer-arrow {
  color: var(--color-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.isbn-block {
  text-align: center;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-top: var(--spacing-lg);
}

.isbn-block h3 {
  margin-bottom: var(--spacing-sm);
}

.isbn-entry {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  font-weight: var(--font-weight-semibold);
}

/* ================================================================
   UNIVERSE PAGE — Media Blocks
   ================================================================ */
.universe-intro {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  text-align: center;
}

.universe-media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.universe-media-block:nth-child(even) {
  direction: rtl;
}

.universe-media-block:nth-child(even) > * {
  direction: ltr;
}

.universe-media-block + .universe-media-block {
  border-top: 1px solid var(--color-border);
}

.universe-media-video {
  width: 100%;
}

.youtube-standard {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.youtube-standard iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-short {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding-bottom: 177.78%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.youtube-short iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.universe-media-copy h3 {
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
  .universe-media-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .universe-media-block:nth-child(even) {
    direction: ltr;
  }

  .youtube-short {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ================================================================
   UNIVERSE SHORTS CAROUSEL
   ================================================================ */
.universe-shorts {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.universe-shorts h2 {
  margin-bottom: var(--spacing-lg);
}

.universe-shorts-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 50px;
}

.universe-shorts-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.universe-shorts-viewport::-webkit-scrollbar {
  display: none;
}

.universe-shorts-track {
  display: flex;
  gap: var(--spacing-md);
}

.universe-short-slide {
  flex: 0 0 calc((100% - var(--spacing-md) * 2) / 3);
  min-width: 0;
  scroll-snap-align: start;
  transition: opacity var(--transition);
}

.universe-short-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border-gold);
  background: var(--color-bg-surface);
}

.universe-short-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.universe-shorts-prev,
.universe-shorts-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(4, 16, 31, 0.7);
  border: 1px solid var(--color-border-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 2;
}

.universe-shorts-prev { left: 0; }
.universe-shorts-next { right: 0; }

.universe-shorts-prev:hover,
.universe-shorts-next:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.universe-shorts-prev:focus-visible,
.universe-shorts-next:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.universe-shorts-prev:disabled,
.universe-shorts-next:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.universe-shorts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-md);
}

.universe-shorts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-dim);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.universe-shorts-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
}

.universe-shorts-dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.universe-shorts-counter {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-family: var(--font-primary);
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}

@media (max-width: 1024px) {
  .universe-short-slide {
    flex: 0 0 calc((100% - var(--spacing-md)) / 2);
  }
}

@media (max-width: 600px) {
  .universe-short-slide {
    flex: 0 0 90%;
  }
  .universe-shorts-wrapper {
    padding: 0 12px;
  }
  .universe-shorts-prev,
  .universe-shorts-next {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
  }
  .universe-shorts-prev { left: -2px; }
  .universe-shorts-next { right: -2px; }
}

/* ================================================================
   AUTHOR PAGE
   ================================================================ */
.author-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.author-portrait {
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.author-links a {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.author-links a:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

@media (max-width: 768px) {
  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-portrait {
    max-width: 250px;
    margin: 0 auto;
  }

  .author-links {
    justify-content: center;
  }
}

/* ================================================================
   NEWS PAGE
   ================================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.news-card {
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
}

.news-date {
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
}

.news-card h3 {
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.news-card p {
  color: var(--color-text-muted);
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-info {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.contact-email {
  font-size: 1.15rem;
  color: var(--color-gold);
}

.brevo-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.brevo-wrapper iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border: 0;
  overflow: hidden;
}

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: var(--spacing-md);
  padding-top: 0;
}

.legal-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-content a {
  color: var(--color-gold);
}

.legal-content ul {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.3rem;
}

/* ================================================================
   HOME SECTIONS (Teasers)
   ================================================================ */
.home-teaser {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.home-teaser + .home-teaser {
  border-top: 1px solid var(--color-border);
}

.home-teaser p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-link {
  display: inline-block;
  margin-top: var(--spacing-sm);
  padding: 0.6rem 2rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.cta-link:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ================================================================
   HERO — Additional Elements
   ================================================================ */
.hero-accroche {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--color-text);
  font-style: italic;
  max-width: 650px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.6;
}

.hero-cta-secondary {
  margin-left: var(--spacing-sm);
  background: transparent;
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
}

.hero-cta-secondary:hover {
  background: var(--color-text-muted);
  color: var(--color-bg);
  border-color: var(--color-text-muted);
}

.hero-frc-logo {
  display: block;
  margin: var(--spacing-md) auto;
  width: 56px;
  height: auto;
  opacity: 0.85;
}

.jo-capybara {
  display: block;
  margin: var(--spacing-lg) auto;
  max-width: 180px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .hero-cta-secondary {
    margin-left: 0;
    margin-top: var(--spacing-sm);
  }
}

/* ================================================================
   HOME — Intro & Singularités
   ================================================================ */
.home-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text);
}

.home-singularites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.singularite-block {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
  text-align: left;
}

.singularite-block[style*="--bg"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg) center center / cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.singularite-block h3 {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  color: var(--color-gold);
  margin-bottom: var(--spacing-xs);
}

.singularite-block p {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.home-transition {
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 700px;
  margin: var(--spacing-md) auto 0;
}

@media (max-width: 768px) {
  .home-singularites {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   BUY — Intro
   ================================================================ */
.buy-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: var(--font-weight-semibold);
}

/* ================================================================
   BOOK — Synopsis Short
   ================================================================ */
.book-synopsis-short {
  font-style: italic;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-content {
  padding-top: var(--header-height);
}

/* SVG Icon inline */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* ================================================================
   RESPONSIVE FINE-TUNING
   ================================================================ */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
  }
}

/* ================================================================
   RESPONSIVE — Mobile Asset Swaps (max-width: 600px)
   ================================================================ */
@media (max-width: 600px) {

  /* --- Default body background: nebula → phone nebula --- */
  body {
    background-image: url('../assets/site_phone-bg-nebula.webp') !important;
    background-size: cover;
    background-position: center center;
  }

  /* --- Page-specific body backgrounds --- */
  body[data-page="author"] {
    background-image: url('../assets/Font_Website_Phone_Author_Page.webp') !important;
    background-size: cover;
    background-position: center top;
  }

  body[data-page="buy"] {
    background-image: url('../assets/Font_Website_Phone_Order_Page.webp') !important;
    background-size: cover;
    background-position: center top;
  }

  body[data-page="book"] {
    background-image: url('../assets/LMDG_Picture_Phone_1.webp') !important;
    background-size: cover;
    background-position: center center;
  }

  body[data-page="universe"] {
    background-image: url('../assets/LMDG_Picture_Phone_1.webp') !important;
    background-size: cover;
    background-position: center center;
  }

  /* --- Hero background (home page) --- */
  .hero-bg {
    background-image: url('../assets/Font-Website_Phone_LMDG.webp');
    background-size: cover;
    background-position: center center;
  }

  /* --- Page header banners → phone versions --- */
  .page-header[style*="--banner-phone"]::before {
    background-image: var(--banner-phone);
    background-size: cover;
    background-position: center center;
  }

  /* --- Singularite blocks → phone versions --- */
  .singularite-block[style*="--bg-phone"]::before {
    background-image: var(--bg-phone);
    background-size: cover;
    background-position: center center;
  }
}

/* ================================================================
   RESPONSIVE — Tablet adjustments (601–1024px)
   ================================================================ */
@media (min-width: 601px) and (max-width: 1024px) {

  /* Banners: keep desktop by default; override only if cropping is severe */
  .page-header {
    padding: calc(var(--header-height) + var(--spacing-lg)) 0 var(--spacing-md);
  }
}
