/* Cultiz - Guides editoriaux (/guides & /guides/*)
   S'appuie sur les variables officielles de /style.css (zero couleur hors charte). */

.gd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.gd-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gd-breadcrumb li + li::before {
  content: "›";
  color: rgba(245, 197, 66, 0.65);
  font-weight: 700;
}
.gd-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.gd-breadcrumb a:hover {
  color: var(--gold);
}

.gd-hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(245, 237, 228, 0.08);
}
@media (min-width: 900px) {
  .gd-hero {
    padding: 48px 0 38px;
  }
}
.gd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.gd-meta-info {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.gd-hero h1 {
  font-size: clamp(1.85rem, 4.3vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 48rem;
}
.gd-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 45rem;
  margin: 0 0 22px;
  line-height: 1.55;
}
.gd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Grille article + barre latérale Sommaire */
.gd-body-section {
  padding: 32px 0 56px;
}
.gd-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 980px) {
  .gd-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
  }
}

.gd-sidebar {
  display: grid;
  gap: 18px;
}
@media (min-width: 980px) {
  .gd-sidebar {
    position: sticky;
    top: 84px;
  }
}

.gd-toc {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 22px;
  padding: 20px 20px 18px;
}
.gd-toc-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.gd-toc ol {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 7px;
  font-size: 0.93rem;
}
.gd-toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}
.gd-toc a:hover {
  color: var(--gold);
}

.gd-toc-mobile {
  margin-bottom: 24px;
}
@media (min-width: 980px) {
  .gd-toc-mobile {
    display: none;
  }
}
.gd-toc-desktop {
  display: none;
}
@media (min-width: 980px) {
  .gd-toc-desktop {
    display: block;
  }
}

.gd-side-cta {
  background: linear-gradient(155deg, rgba(245, 197, 66, 0.16), var(--surface) 68%);
  border: 1px solid rgba(245, 197, 66, 0.42);
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 10px;
}
.gd-side-cta h3 {
  font-size: 1.12rem;
  line-height: 1.22;
}
.gd-side-cta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.gd-score-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg-deep);
  border: 1px solid var(--surface-3);
  font-size: 0.88rem;
  font-weight: 700;
}
.gd-score-pill strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Contenu éditorial */
.gd-article {
  min-width: 0;
}
.gd-article h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  color: var(--ink);
  margin: 42px 0 14px;
  scroll-margin-top: 86px;
}
.gd-article h2:first-child {
  margin-top: 0;
}
.gd-article h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 26px 0 8px;
}
.gd-article p {
  color: rgba(245, 237, 228, 0.93);
  margin: 0 0 1em;
}
.gd-article ul,
.gd-article ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.gd-article li {
  margin-bottom: 0.45em;
  color: rgba(245, 237, 228, 0.92);
}

/* Tableaux comparatifs responsives (zéro débordement horizontal sur mobile) */
.gd-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  border: 1px solid var(--surface-3);
  background: var(--surface);
  margin: 20px 0 28px;
}
.gd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.gd-table th,
.gd-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(245, 237, 228, 0.08);
  vertical-align: top;
}
.gd-table th {
  background: var(--bg-deep);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.gd-table tbody tr:last-child td {
  border-bottom: 0;
}
.gd-table tbody tr:nth-child(even) {
  background: rgba(17, 10, 26, 0.28);
}
.gd-table td strong {
  color: var(--ink);
}

/* Fiches jeux / règles (Clusters A & B) */
.gd-game-grid {
  display: grid;
  gap: 16px;
  margin: 20px 0 28px;
}
.gd-game-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 22px;
  padding: 22px 20px;
}
@media (min-width: 640px) {
  .gd-game-card {
    padding: 24px 26px;
  }
}
.gd-game-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.gd-game-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 900;
  font-size: 1rem;
}
.gd-game-card h3 {
  margin: 0;
  font-size: 1.22rem;
  color: var(--ink);
  flex: 1;
  min-width: 190px;
}
.gd-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.gd-game-tags li {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--surface-3);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.gd-game-card p:last-child {
  margin-bottom: 0;
}
.gd-tip {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(245, 197, 66, 0.09);
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--ink);
}

/* Mini-cartes interactives « T'as la réf ? » */
.gd-ref-card {
  position: relative;
  margin: 24px 0;
  padding: 22px 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid rgba(245, 197, 66, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}
@media (min-width: 640px) {
  .gd-ref-card {
    padding: 26px 24px;
  }
}
.gd-ref-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.gd-ref-prompt {
  font-family: var(--font-quote);
  font-size: clamp(1.18rem, 2.8vw, 1.48rem);
  line-height: 1.36;
  color: var(--ink);
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--bg-deep);
  border: 1px solid var(--surface-3);
  border-radius: 18px;
}
.gd-ref-choices {
  display: grid;
  gap: 9px;
}
@media (min-width: 600px) {
  .gd-ref-choices {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gd-ref-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  background: var(--bg-deep);
  color: var(--ink);
  border: 1.5px solid var(--surface-3);
  border-radius: 15px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 150ms ease, background-color 150ms ease;
}
.gd-ref-choice:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--surface);
}
.gd-ref-choice:active:not(:disabled) {
  transform: scale(0.98);
}
.gd-ref-choice:disabled {
  cursor: default;
}
.gd-ref-choice.is-correct {
  background: var(--good) !important;
  color: var(--on-gold) !important;
  border-color: var(--good) !important;
}
.gd-ref-choice.is-wrong {
  background: var(--bad) !important;
  color: var(--on-gold) !important;
  border-color: var(--bad) !important;
}
.gd-ref-choice.is-dim {
  opacity: 0.52;
}
.gd-ref-peek {
  margin-top: 10px;
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.gd-ref-peek:hover {
  color: var(--gold);
}
.gd-ref-reveal {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--bg-deep);
  border: 1.5px solid rgba(245, 197, 66, 0.48);
  font-size: 0.93rem;
}
.gd-ref-reveal.is-good {
  border-color: rgba(74, 222, 128, 0.6);
}
.gd-ref-reveal.is-bad {
  border-color: rgba(248, 113, 113, 0.6);
}
.gd-ref-verdict {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}
.gd-ref-reveal.is-good .gd-ref-verdict {
  color: var(--good);
}
.gd-ref-reveal.is-bad .gd-ref-verdict {
  color: var(--bad);
}
.gd-ref-answer {
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.gd-ref-context {
  margin: 0 0 10px !important;
  color: var(--muted) !important;
  font-size: 0.9rem;
}

/* Anthologies de répliques (Cluster C + Noël 50 répliques) */
.gd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  margin: 18px 0 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
}
.gd-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gd-pill-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--surface-3);
  background: var(--bg-deep);
  color: var(--ink);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}
.gd-pill-btn:hover {
  border-color: var(--gold);
}
.gd-pill-btn[aria-pressed="true"],
.gd-pill-btn.is-active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}
.gd-blindtest-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 197, 66, 0.55);
  background: rgba(245, 197, 66, 0.14);
  color: var(--gold);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}
.gd-blindtest-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--on-gold);
}

.gd-quote-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 28px;
}
.gd-quote-item {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 18px;
  padding: 16px 18px;
}
.gd-quote-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gd-quote-num {
  flex: none;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.gd-copy-btn {
  flex: none;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--surface-3);
  background: var(--bg-deep);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.gd-copy-btn:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.gd-quote-text {
  font-family: var(--font-quote);
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
  line-height: 1.38;
  color: var(--ink);
  margin: 8px 0 10px !important;
}
.gd-quote-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 0.9rem;
}
.gd-quote-work {
  font-weight: 800;
  color: var(--gold);
}
.gd-quote-speaker {
  color: var(--ink);
  font-weight: 600;
}
.gd-quote-note {
  width: 100%;
  margin: 4px 0 0 !important;
  font-size: 0.87rem;
  color: var(--muted) !important;
}

/* Mode Blind Test actif : masque la réponse jusqu'au clic */
.gd-blindtest-active .gd-quote-item:not(.is-revealed) .gd-quote-answer {
  display: none;
}
.gd-reveal-inline-btn {
  display: none;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(245, 197, 66, 0.55);
  background: var(--bg-deep);
  color: var(--gold);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.gd-blindtest-active .gd-quote-item:not(.is-revealed) .gd-reveal-inline-btn {
  display: inline-flex;
}

/* Générateur de gages (Guide #10) */
.gd-gage-widget {
  margin: 22px 0 30px;
  padding: 24px 20px;
  border-radius: 24px;
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1.5px solid rgba(245, 197, 66, 0.45);
  text-align: center;
}
.gd-gage-display {
  margin: 16px auto;
  padding: 20px 18px;
  max-width: 36rem;
  min-height: 96px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--surface-3);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}

/* Encarts de conversion & maillage interne */
.gd-callout {
  margin: 28px 0;
  padding: 22px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.14), var(--surface) 70%);
  border: 1px solid rgba(245, 197, 66, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gd-callout-text {
  max-width: 32rem;
}
.gd-callout-text h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1.2rem;
}
.gd-callout-text p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.gd-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hub /guides */
.gd-hub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.gd-search-input {
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--surface-3);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  width: min(100%, 290px);
}
.gd-search-input:focus {
  outline: none;
  border-color: var(--gold);
}
.gd-hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-card);
  transition: border-color 150ms ease, transform 150ms ease;
}
.gd-hub-card:hover {
  border-color: rgba(245, 197, 66, 0.45);
}
.gd-hub-card h3 {
  font-size: 1.18rem;
  line-height: 1.25;
}
.gd-hub-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.gd-hub-card h3 a:hover {
  color: var(--gold);
}
.gd-hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}
.gd-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 237, 228, 0.06);
  font-size: 0.85rem;
  color: var(--muted);
}
