:root {
  --bg: #0b0a08;
  --surface: rgba(26, 23, 18, 0.72);
  --gold: #c9a24b;
  --gold-light: #e8c97a;
  --text: #f2ede1;
  --text-dim: #a89c87;
  --line: rgba(201, 162, 75, 0.2);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  overflow-x: hidden;
}

/* Même photo de fond que l'accueil, assombrie pour garder le texte lisible */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(11, 10, 8, 0.93) 0%, rgba(11, 10, 8, 0.84) 50%, rgba(11, 10, 8, 0.6) 100%),
    url('/poster.jpg') 78% center / cover no-repeat;
}

@media (max-width: 860px) {
  body::before {
    background:
      linear-gradient(rgba(11, 10, 8, 0.86), rgba(11, 10, 8, 0.86)),
      url('/poster.jpg') 70% center / cover no-repeat;
  }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

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

.g-toc,
.g-cta,
.g-card {
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

/* ---------- Topbar ---------- */

.g-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6vw;
  background: rgba(11, 10, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
}

.g-brand {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.03em;
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
}

.g-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.g-nav a {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.g-nav a:hover {
  color: var(--gold-light);
}

.g-pill {
  border: 1px solid rgba(201, 162, 75, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Layout ---------- */

.g-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 6vw 80px;
}

.g-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.g-crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--gold);
}

.g-crumbs a {
  color: var(--text-dim);
  text-decoration: none;
}

.g-crumbs a:hover {
  color: var(--gold-light);
}

.g-crumbs [aria-current] {
  color: var(--text);
}

.g-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.g-kicker a {
  text-decoration: none;
}

/* ---------- Article ---------- */

.g-article,
.g-head {
  max-width: 720px;
}

.g-head-wide {
  max-width: 820px;
  margin-bottom: 48px;
}

.g-head h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.01em;
}

.g-lede {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text-dim);
}

.g-meta {
  margin: 20px 0 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.g-toc {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.g-toc p {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.g-toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 15px;
}

.g-toc a {
  color: var(--text);
  text-decoration: none;
}

.g-toc a:hover {
  color: var(--gold-light);
}

.g-body {
  margin-top: 32px;
}

.g-body h2 {
  margin: 48px 0 16px;
  font-size: clamp(24px, 3vw, 30px);
}

.g-body h3 {
  margin: 32px 0 10px;
  font-size: 21px;
}

.g-body p,
.g-body ul,
.g-body ol {
  margin: 0 0 18px;
}

.g-body ul,
.g-body ol {
  padding-left: 22px;
}

.g-body li {
  margin-bottom: 8px;
}

.g-body li::marker {
  color: var(--gold);
}

.g-body strong {
  color: var(--text);
  font-weight: 600;
}

.g-body a {
  text-decoration-color: rgba(232, 201, 122, 0.45);
  text-underline-offset: 3px;
}

.g-body a:hover {
  text-decoration-color: var(--gold-light);
}

.g-tip {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 75, 0.08);
  border-radius: 0 12px 12px 0;
}

.g-tip p {
  margin: 0;
}

/* ---------- CTA ---------- */

.g-cta {
  margin: 56px 0 0;
  padding: 36px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 20px;
}

.g-cta p {
  margin: 0 0 14px;
  color: var(--text-dim);
}

.g-cta .g-kicker {
  color: var(--gold-light);
}

.g-cta-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text) !important;
}

.g-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.g-btn:hover {
  background: var(--text);
}

/* ---------- Cards ---------- */

.g-related {
  margin-top: 72px;
}

.g-related h2 {
  margin: 0 0 24px;
  font-size: 28px;
}

.g-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.g-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.g-card-cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.g-card strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.g-card-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.g-card-more {
  font-size: 13px;
  color: var(--gold-light);
}

.g-back {
  margin-top: 24px;
}

.g-catlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-catlinks a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}

.g-catlinks a:hover {
  border-color: var(--gold-light);
}

/* ---------- Guide home ---------- */

.g-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.g-section-head h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.g-section-head h2 a {
  color: var(--text);
  text-decoration: none;
}

.g-section-head h2 a:hover {
  color: var(--gold-light);
}

.g-section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

.g-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-list li {
  border-bottom: 1px solid rgba(201, 162, 75, 0.12);
}

.g-list a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.g-list a:hover {
  color: var(--gold-light);
}

.g-list a::after {
  content: ' →';
  color: var(--gold);
}

/* ---------- Footer ---------- */

.g-footer {
  padding: 56px 6vw 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.g-footer-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 24px;
  font-size: 14px;
}

.g-footer-cats a {
  color: var(--text-dim);
  text-decoration: none;
}

.g-footer-cats a:hover {
  color: var(--gold-light);
}

.g-nap {
  font-style: normal;
  font-size: 13px;
  color: var(--text-dim);
}

.g-nap strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold-light);
}

.g-footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

.g-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.35);
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .g-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .g-cta {
    padding: 28px 24px;
  }

  .g-topbar {
    padding: 16px 5vw;
  }

  .g-nav {
    gap: 12px;
  }

  .g-nav a {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .g-pill {
    padding: 7px 12px;
  }
}

@media (max-width: 420px) {
  .g-brand {
    font-size: 16px;
  }

  .g-nav .g-pill {
    display: none;
  }
}
