/*
Theme Name: Golem Blog
Theme URI: https://rallye-golem-dor.fr/blog/
Author: Association Golem d'Or
Author URI: https://rallye-golem-dor.fr/association/
Description: Thème WordPress du blog du Rallye du Golem d'Or. Réplique fidèle de la charte graphique du site statique (noir, or, damier, Cinzel + Outfit). SEO intégré (balises meta, Open Graph, JSON-LD, sitemaps, fil d'Ariane) et classement automatique des articles par catégorie. Aucun plugin SEO requis.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golem-blog
Tags: blog, one-column, custom-colors, custom-logo, editor-style, featured-images, translation-ready, accessibility-ready
*/

/* ═══════════════════════════════════════════════════════════════════
   RALLYE DU GOLEM D'OR — Design System (port CSS natif)
   Aligné sur src/app/globals.css du site statique Next.js.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Polices auto-hébergées (identiques au site statique) ───────── */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Métriques de repli : évite tout CLS pendant le chargement des polices
   (valeurs reprises telles quelles du build Next.js) */
@font-face {
  font-family: "Cinzel Fallback";
  src: local("Times New Roman");
  ascent-override: 71.31%;
  descent-override: 27.18%;
  line-gap-override: 0%;
  size-adjust: 136.86%;
}
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial");
  ascent-override: 100.18%;
  descent-override: 26.05%;
  line-gap-override: 0%;
  size-adjust: 99.82%;
}

/* ─── Jetons de design ──────────────────────────────────────────── */

:root {
  --background: #0e0e0e;
  --foreground: #f5f0e8;
  --gold: #d4a847;
  --gold-light: #f0d078;
  --gold-dark: #9a7b2e;
  --gold-glow: rgba(212, 168, 71, 0.3);
  --noir: #0e0e0e;
  --noir-light: #1a1a1a;
  --noir-mid: #252525;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --rouge: #c0392b;
  --rose: #e84393;
  --marron: #7b5b3a;
  --beige: #c8b896;
  --jaune: #f1c40f;
  --vert: #27ae60;
  --gris: #7f8c8d;
  --bleu: #2980b9;

  --font-heading: "Cinzel", "Cinzel Fallback", serif;
  --font-body: "Outfit", "Outfit Fallback", system-ui, sans-serif;

  --container: 80rem; /* max-w-7xl */
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset minimal ─────────────────────────────────────────────── */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  background: var(--noir);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.15;
}

img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--gold);
  color: var(--noir);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--noir);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ─── Utilitaires partagés ──────────────────────────────────────── */

.g-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.g-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--noir);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
}
.g-skip-link:focus {
  left: 0;
}

/* Effet shimmer doré (titres) */
.g-shimmer {
  background: linear-gradient(
    110deg,
    var(--gold-dark) 0%,
    var(--gold-light) 40%,
    var(--gold) 50%,
    var(--gold-light) 60%,
    var(--gold-dark) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gShimmer 4s ease-in-out infinite;
}

@keyframes gShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Damier animé (motif signature) */
.g-damier {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.g-damier__layer {
  position: absolute;
  inset: 0;
  background-size: 28px 28px;
  animation: gDamierFade 84s ease-in-out infinite;
}

@keyframes gDamierFade {
  0%,
  100% {
    opacity: 1;
  }
  15% {
    opacity: 1;
  }
  22% {
    opacity: 0;
  }
  93% {
    opacity: 0;
  }
}

.g-damier__layer--gold {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(212, 168, 71, 0.06) 0% 50%
  );
  animation-delay: 0s;
}
.g-damier__layer--rose {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(232, 67, 147, 0.06) 0% 50%
  );
  animation-delay: -72s;
}
.g-damier__layer--jaune {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(241, 196, 15, 0.06) 0% 50%
  );
  animation-delay: -60s;
}
.g-damier__layer--vert {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(39, 174, 96, 0.06) 0% 50%
  );
  animation-delay: -48s;
}
.g-damier__layer--rouge {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(192, 57, 43, 0.06) 0% 50%
  );
  animation-delay: -36s;
}
.g-damier__layer--marron {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(123, 91, 58, 0.06) 0% 50%
  );
  animation-delay: -24s;
}
.g-damier__layer--beige {
  background-image: repeating-conic-gradient(
    transparent 0% 25%,
    rgba(200, 184, 150, 0.06) 0% 50%
  );
  animation-delay: -12s;
}

/* Séparateurs (identiques à DamierDivider) */
.g-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0.25rem;
}
.g-divider__line {
  height: 1px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 168, 71, 0.2),
    transparent
  );
}

.g-divider--colored {
  padding-block: 0.5rem;
}
.g-divider--colored .g-divider__line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rouge),
    var(--rose),
    var(--jaune),
    var(--gold),
    var(--vert),
    var(--marron),
    var(--beige),
    transparent
  );
  opacity: 0.3;
}

.g-divider--thick {
  padding-block: 1.5rem;
}
.g-divider--thick .g-divider__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.g-divider--thick .g-divider__rule {
  height: 1px;
  flex: 1;
}
.g-divider--thick .g-divider__rule--l {
  background: linear-gradient(to right, transparent, rgba(212, 168, 71, 0.2));
}
.g-divider--thick .g-divider__rule--r {
  background: linear-gradient(to left, transparent, rgba(212, 168, 71, 0.2));
}
.g-divider--thick .g-divider__dot {
  display: inline-block;
  transform: rotate(45deg);
  background: rgba(212, 168, 71, 0.4);
  width: 0.375rem;
  height: 0.375rem;
}
.g-divider--thick .g-divider__dot--big {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(212, 168, 71, 0.6);
}

/* Carte « aventure » */
.g-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--noir-light);
  border: 1px solid rgba(212, 168, 71, 0.15);
  transition: border-color 0.4s var(--ease-smooth),
    box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.g-card:hover,
.g-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 71, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.g-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.6;
  transition: opacity 0.3s;
  background: var(--gold);
  z-index: 2;
}
.g-card:hover .g-card__accent {
  opacity: 1;
}

/* Boutons / CTA */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  border: 0;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s,
    transform 0.5s, color 0.5s;
}

.g-btn--primary {
  background: var(--gold);
  color: var(--noir);
}
.g-btn--primary:hover {
  background: var(--gold-light);
  box-shadow: 0 20px 25px -5px rgba(212, 168, 71, 0.2),
    0 8px 10px -6px rgba(212, 168, 71, 0.2);
  transform: scale(1.05);
}

.g-btn--secondary {
  background: transparent;
  border: 2px solid rgba(212, 168, 71, 0.4);
  color: var(--cream);
}
.g-btn--secondary:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 71, 0.05);
  transform: scale(1.05);
}

.g-btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.g-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Sections */
.g-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background: var(--noir);
  color: var(--cream);
}
.g-section--accent {
  background: var(--noir-light);
}
.g-section--tight {
  padding-block: 3.5rem;
}

.g-section__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.g-section__head {
  margin-bottom: 4rem;
  text-align: center;
}

.g-section__title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.g-section__subtitle {
  margin: 1.5rem auto 0;
  max-width: 48rem;
  font-size: 1.25rem;
  line-height: 1.625;
  color: rgba(245, 240, 232, 0.45);
}

/* Étiquette majuscule dorée */
.g-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 168, 71, 0.7);
}

@media (min-width: 640px) {
  .g-section {
    padding: 7rem 2.5rem;
  }
  .g-section--tight {
    padding-block: 4.5rem;
  }
  .g-section__title {
    font-size: 3rem;
  }
  .g-section__subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .g-section {
    padding: 9rem 4rem;
  }
  .g-section--tight {
    padding-block: 5rem;
  }
  .g-section__title {
    font-size: 3.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BARRE DE PROGRESSION DE LECTURE
   ═══════════════════════════════════════════════════════════════════ */

.g-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.g-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-light)
  );
  transform-origin: left center;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════
   EN-TÊTE
   ═══════════════════════════════════════════════════════════════════ */

.g-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.9);
  color: var(--cream);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(212, 168, 71, 0.1);
}

.g-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.75rem 1rem;
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.g-brand__logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3));
}

.g-brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.g-nav {
  display: none;
}

.g-nav__link {
  position: relative;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.7);
  transition: color 0.3s;
}
.g-nav__link:hover,
.g-nav__link:focus-visible {
  color: var(--cream);
}

.g-nav__link[aria-current="page"] {
  color: var(--cream);
}

.g-nav__underline {
  position: absolute;
  bottom: 0.125rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s;
}
.g-nav__link:hover .g-nav__underline,
.g-nav__link:focus-visible .g-nav__underline,
.g-nav__link[aria-current="page"] .g-nav__underline {
  transform: scaleX(1);
}

.g-burger {
  position: relative;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  background: transparent;
  border: 0;
  color: rgba(245, 240, 232, 0.8);
  cursor: pointer;
  transition: color 0.2s;
}
.g-burger:hover {
  color: var(--gold);
}
.g-burger svg {
  width: 1.5rem;
  height: 1.5rem;
}
.g-burger__close {
  display: none;
}
.g-burger[aria-expanded="true"] .g-burger__open {
  display: none;
}
.g-burger[aria-expanded="true"] .g-burger__close {
  display: block;
}

.g-nav-mobile {
  border-top: 1px solid rgba(212, 168, 71, 0.1);
  background: var(--noir-light);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}
.g-nav-mobile[hidden] {
  display: none;
}

.g-nav-mobile__list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.g-nav-mobile__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.8);
  transition: background-color 0.2s, color 0.2s;
}
.g-nav-mobile__link:hover,
.g-nav-mobile__link[aria-current="page"] {
  background: var(--noir-mid);
  color: var(--cream);
}

.g-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .g-header__inner {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .g-header__inner {
    padding-inline: 2rem;
  }
}

/* La navigation complète compte dix entrées : elle ne tient sur une ligne
   qu'à partir de 1280 px. En dessous, on conserve le menu déroulant plutôt
   que de laisser les libellés se chevaucher. */
@media (min-width: 1280px) {
  .g-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }
  .g-nav__link {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
  .g-nav__underline {
    left: 0.625rem;
    right: 0.625rem;
  }
  .g-burger,
  .g-nav-mobile {
    display: none !important;
  }
}

@media (min-width: 1440px) {
  .g-nav__link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  .g-nav__underline {
    left: 0.75rem;
    right: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */

.g-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--noir);
  color: var(--cream);
  min-height: 58vh;
}

.g-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.g-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.5),
    rgba(14, 14, 14, 0.2),
    rgba(14, 14, 14, 0.9)
  );
}

.g-hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--noir), transparent);
}

.g-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 5rem 1.5rem;
  text-align: center;
}

.g-hero__title {
  margin-inline: auto;
  max-width: 64rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.25));
}

.g-hero__subtitle {
  margin: 2rem auto 0;
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(245, 240, 232, 0.5);
}

@media (min-width: 640px) {
  .g-hero__inner {
    padding: 7rem 2.5rem;
  }
  .g-hero__title {
    font-size: 3.75rem;
  }
  .g-hero__subtitle {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .g-hero__inner {
    padding: 8rem 4rem;
  }
  .g-hero__title {
    font-size: 4.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FIL D'ARIANE
   ═══════════════════════════════════════════════════════════════════ */

.g-breadcrumbs {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.4);
}

.g-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.g-breadcrumbs__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g-breadcrumbs a {
  color: rgba(245, 240, 232, 0.55);
  transition: color 0.2s;
}
.g-breadcrumbs a:hover {
  color: var(--gold);
}

.g-breadcrumbs__sep {
  color: rgba(212, 168, 71, 0.4);
}

.g-breadcrumbs [aria-current="page"] {
  color: rgba(245, 240, 232, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════
   GRILLE D'ARTICLES
   ═══════════════════════════════════════════════════════════════════ */

.g-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .g-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .g-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.g-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.g-post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--noir-mid);
}

.g-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth), opacity 0.4s;
  opacity: 0.85;
}
.g-post-card:hover .g-post-card__media img {
  transform: scale(1.05);
  opacity: 1;
}

.g-post-card__media--empty {
  display: grid;
  place-items: center;
  background-image: repeating-conic-gradient(
    var(--noir-light) 0% 25%,
    rgba(212, 168, 71, 0.07) 0% 50%
  );
  background-size: 24px 24px;
}
.g-post-card__media--empty span {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(212, 168, 71, 0.35);
}

.g-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.5rem;
}

.g-post-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
}
.g-post-card:hover .g-post-card__title {
  color: var(--gold-light);
}

.g-post-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(245, 240, 232, 0.6);
  flex: 1;
}

/* Lien de carte : l'ancre porte le titre (texte d'ancre utile au SEO et
   aux lecteurs d'écran) et son ::after couvre toute la carte. */
.g-post-card__link {
  color: inherit;
}
.g-post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.g-post-card__link:focus-visible {
  outline: none;
}
.g-post-card:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.g-post-card__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.35);
  padding-top: 0.25rem;
}

/* Article mis en avant (1er de la liste) */
.g-featured {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .g-featured {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
  .g-featured .g-post-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 22rem;
  }
  .g-featured .g-post-card__body {
    padding: 2.5rem;
    justify-content: center;
  }
  .g-featured .g-post-card__title {
    font-size: 1.875rem;
  }
  .g-featured .g-post-card__excerpt {
    font-size: 1rem;
  }
}

/* Badge de catégorie */
.g-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.3);
  background: rgba(212, 168, 71, 0.08);
  padding: 0.25rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  position: relative;
  z-index: 4;
  transition: background-color 0.3s, border-color 0.3s;
}
.g-cat-badge:hover {
  background: rgba(212, 168, 71, 0.16);
}
.g-cat-badge__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════
   FILTRE PAR CATÉGORIE (rubriques)
   ═══════════════════════════════════════════════════════════════════ */

.g-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 3rem;
}

.g-cats__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.18);
  background: var(--noir-light);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.7);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s,
    transform 0.3s;
}
.g-cats__item:hover {
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
}
.g-cats__item[aria-current="page"] {
  border-color: var(--gold);
  background: rgba(212, 168, 71, 0.1);
  color: var(--cream);
}
.g-cats__count {
  font-size: 0.6875rem;
  color: rgba(245, 240, 232, 0.35);
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE (single)
   ═══════════════════════════════════════════════════════════════════ */

.g-article-header {
  position: relative;
  overflow: hidden;
  background: var(--noir);
  padding: 3rem 1.5rem 0;
}

.g-article-header__inner {
  position: relative;
  z-index: 10;
  max-width: 52rem;
  margin-inline: auto;
}

.g-article-title {
  margin-top: 1.25rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--cream);
}

.g-article-lede {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.55);
}

.g-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.4);
}
.g-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.g-post-meta svg {
  width: 0.9rem;
  height: 0.9rem;
  color: rgba(212, 168, 71, 0.6);
}
.g-post-meta a {
  color: rgba(245, 240, 232, 0.55);
}
.g-post-meta a:hover {
  color: var(--gold);
}

.g-article-figure {
  position: relative;
  margin: 2.5rem auto 0;
  max-width: 64rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 71, 0.15);
}
.g-article-figure img {
  width: 100%;
}
.g-article-figure figcaption {
  padding: 0.75rem 1rem;
  background: var(--noir-light);
  font-size: 0.75rem;
  text-align: center;
  color: rgba(245, 240, 232, 0.4);
}

@media (min-width: 640px) {
  .g-article-header {
    padding: 4rem 2.5rem 0;
  }
  .g-article-title {
    font-size: 2.75rem;
  }
  .g-article-lede {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .g-article-title {
    font-size: 3.25rem;
  }
}

/* Disposition article + sommaire */
.g-article-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 1100px) {
  .g-article-layout {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 4rem;
  }
  .g-article-layout__aside {
    order: 2;
  }
}

.g-article-body {
  max-width: 44rem;
  margin-inline: auto;
  width: 100%;
}

/* ─── Typographie du contenu rédactionnel ───────────────────────── */

.g-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.82);
}

.g-prose > * + * {
  margin-top: 1.5rem;
}

.g-prose h2 {
  position: relative;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-top: 1.75rem;
  font-size: 1.75rem;
  color: var(--cream);
  scroll-margin-top: 6rem;
}
.g-prose h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
}

.g-prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3125rem;
  color: var(--cream);
  scroll-margin-top: 6rem;
}

.g-prose h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(212, 168, 71, 0.85);
  scroll-margin-top: 6rem;
}

.g-prose p {
  margin-block: 0;
}

.g-prose strong,
.g-prose b {
  color: var(--cream);
  font-weight: 600;
}

.g-prose em {
  color: var(--cream-dark);
}

.g-prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 71, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.g-prose a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.g-prose ul,
.g-prose ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.g-prose ul {
  list-style: none;
}
.g-prose ul > li {
  position: relative;
  padding-left: 0.5rem;
}
.g-prose ul > li::before {
  content: "✦";
  position: absolute;
  left: -1.25rem;
  color: var(--gold);
  font-size: 0.8em;
  top: 0.15em;
}
.g-prose ol {
  list-style: decimal;
}
.g-prose ol > li::marker {
  color: var(--gold);
  font-weight: 700;
}
.g-prose li > ul,
.g-prose li > ol {
  margin-top: 0.625rem;
}

.g-prose blockquote {
  border-left: 2px solid var(--gold);
  background: rgba(212, 168, 71, 0.04);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1.125rem;
  color: var(--cream-dark);
}
.g-prose blockquote p + p {
  margin-top: 0.75rem;
}
.g-prose blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: normal;
  color: rgba(245, 240, 232, 0.4);
}

.g-prose figure {
  margin-inline: 0;
}
.g-prose img,
.g-prose video,
.g-prose iframe {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 168, 71, 0.12);
}
.g-prose figcaption {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(245, 240, 232, 0.4);
}

.g-prose hr {
  border: 0;
  height: 1px;
  margin-block: 3rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 168, 71, 0.3),
    transparent
  );
}

.g-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--noir-mid);
  border: 1px solid rgba(212, 168, 71, 0.12);
  border-radius: 0.3rem;
  padding: 0.15em 0.4em;
  color: var(--gold-light);
}

.g-prose pre {
  background: var(--noir-mid);
  border: 1px solid rgba(212, 168, 71, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}
.g-prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cream-dark);
}

.g-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}
.g-prose th,
.g-prose td {
  border: 1px solid rgba(212, 168, 71, 0.15);
  padding: 0.75rem 1rem;
  text-align: left;
}
.g-prose th {
  background: var(--noir-mid);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(212, 168, 71, 0.9);
}

.g-prose .wp-caption,
.g-prose .wp-block-image {
  max-width: 100%;
}
.g-prose .alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.g-prose .alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.g-prose .aligncenter {
  margin-inline: auto;
}
.g-prose .wp-block-embed__wrapper {
  position: relative;
}
.g-prose .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}
.g-prose .wp-block-embed.wp-has-aspect-ratio iframe {
  width: 100%;
  height: 100%;
}

/* Encadré « à retenir » réutilisable en éditeur (classe CSS additionnelle) */
.g-prose .g-callout {
  border: 1px solid rgba(212, 168, 71, 0.25);
  background: var(--noir-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.g-prose .g-callout > :first-child {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SOMMAIRE (table of contents)
   ═══════════════════════════════════════════════════════════════════ */

.g-toc {
  position: relative;
}

@media (min-width: 1100px) {
  .g-toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

.g-toc__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 168, 71, 0.7);
  margin-bottom: 1rem;
}

.g-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-left: 1px solid rgba(212, 168, 71, 0.15);
}

.g-toc__link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(245, 240, 232, 0.5);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.g-toc__link:hover {
  color: var(--cream);
}
.g-toc__link--h3 {
  padding-left: 1.5rem;
  font-size: 0.78125rem;
}
.g-toc__link.is-active {
  color: var(--gold-light);
  border-left-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════
   PARTAGE / AUTEUR / ARTICLES LIÉS / TAGS
   ═══════════════════════════════════════════════════════════════════ */

.g-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 168, 71, 0.12);
}
.g-share__label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 168, 71, 0.7);
}
.g-share__link {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.25);
  color: rgba(245, 240, 232, 0.6);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s,
    transform 0.3s;
  background: transparent;
  cursor: pointer;
}
.g-share__link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 71, 0.08);
  transform: translateY(-2px);
}
.g-share__link svg {
  width: 1rem;
  height: 1rem;
}

.g-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.g-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.18);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.6);
  transition: border-color 0.3s, color 0.3s;
}
.g-tag:hover {
  border-color: var(--gold);
  color: var(--cream);
}
.g-tag::before {
  content: "#";
  color: rgba(212, 168, 71, 0.7);
  margin-right: 0.2rem;
}

.g-author {
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--noir-light);
  border: 1px solid rgba(212, 168, 71, 0.15);
}
.g-author__avatar {
  border-radius: 9999px;
  flex-shrink: 0;
  border: 1px solid rgba(212, 168, 71, 0.3);
}
.g-author__name {
  font-size: 1rem;
  color: var(--cream);
}
.g-author__role {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(212, 168, 71, 0.7);
}
.g-author__bio {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.6);
}

/* Navigation article précédent / suivant */
.g-postnav {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .g-postnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.g-postnav__item {
  display: block;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--noir-light);
  border: 1px solid rgba(212, 168, 71, 0.15);
  transition: border-color 0.3s, transform 0.3s;
}
.g-postnav__item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.g-postnav__dir {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(212, 168, 71, 0.7);
}
.g-postnav__title {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.4;
}
.g-postnav__item--next {
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════ */

.g-pagination {
  margin-top: 4rem;
}
.g-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.g-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.18);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.65);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.g-pagination a.page-numbers:hover {
  border-color: var(--gold);
  color: var(--cream);
}
.g-pagination .page-numbers.current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--noir);
}
.g-pagination .page-numbers.dots {
  border-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA VERS LE SITE PRINCIPAL
   ═══════════════════════════════════════════════════════════════════ */

.g-cta-site {
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--noir-light);
  border: 1px solid rgba(212, 168, 71, 0.2);
  text-align: center;
}
.g-cta-site__title {
  font-size: 1.5rem;
  color: var(--cream);
}
.g-cta-site__text {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.6);
}
.g-cta-site__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.g-cta-site__stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--rouge),
    var(--rose),
    var(--jaune),
    var(--vert),
    var(--marron),
    var(--beige),
    var(--gris),
    var(--gold)
  );
  background-size: 200% 100%;
  animation: gShimmer 6s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   RECHERCHE
   ═══════════════════════════════════════════════════════════════════ */

.g-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
}
.g-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.25);
  background: var(--noir-light);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--cream);
}
.g-search-form input[type="search"]::placeholder {
  color: rgba(232, 224, 208, 0.35);
}
.g-search-form input[type="search"]:focus {
  border-color: var(--gold);
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════
   COMMENTAIRES
   ═══════════════════════════════════════════════════════════════════ */

.g-comments {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(212, 168, 71, 0.12);
}
.g-comments__title {
  font-size: 1.375rem;
  color: var(--cream);
  margin-bottom: 2rem;
}
.g-comments .comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.g-comments .comment-list ol.children {
  margin-top: 1.5rem;
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid rgba(212, 168, 71, 0.12);
  padding-left: 1.5rem;
}
.g-comments .comment-body {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--noir-light);
  border: 1px solid rgba(212, 168, 71, 0.12);
}
.g-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--cream);
}
.g-comments .comment-author img {
  border-radius: 9999px;
}
.g-comments .comment-metadata {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.35);
}
.g-comments .comment-content {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.75);
}
.g-comments .comment-content > * + * {
  margin-top: 0.75rem;
}
.g-comments .reply {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
}
.g-comments .reply a {
  color: var(--gold);
}

.g-comment-form {
  margin-top: 2.5rem;
}
.g-comment-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(212, 168, 71, 0.75);
  margin-bottom: 0.4rem;
}
.g-comment-form input[type="text"],
.g-comment-form input[type="email"],
.g-comment-form input[type="url"],
.g-comment-form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 168, 71, 0.2);
  background: var(--noir-light);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--cream);
}
.g-comment-form textarea {
  min-height: 9rem;
  resize: vertical;
}
.g-comment-form input:focus,
.g-comment-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.g-comment-form p {
  margin-bottom: 1.25rem;
}
.g-comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
}
.g-comment-form .comment-form-cookies-consent label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.55);
  margin: 0;
}
.g-comment-form .submit,
.g-comment-form input[type="submit"] {
  border-radius: 9999px;
  background: var(--gold);
  color: var(--noir);
  font-weight: 700;
  padding: 0.85rem 2.25rem;
  border: 0;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
.g-comment-form .submit:hover,
.g-comment-form input[type="submit"]:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}
.g-comment-form .comment-notes,
.g-comment-form .logged-in-as {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════
   ÉTAT VIDE / 404
   ═══════════════════════════════════════════════════════════════════ */

.g-empty {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}
.g-empty__mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(212, 168, 71, 0.4);
}
.g-empty__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: var(--cream);
}
.g-empty__text {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.55);
}
.g-empty__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   PIED DE PAGE
   ═══════════════════════════════════════════════════════════════════ */

.g-footer {
  position: relative;
  background: var(--noir);
  color: var(--cream);
  margin-top: auto;
}

.g-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 3.5rem 1rem;
}

.g-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .g-footer__inner {
    padding-inline: 1.5rem;
  }
}
@media (min-width: 768px) {
  .g-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .g-footer__inner {
    padding-inline: 2rem;
  }
}

.g-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}
.g-footer__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}
.g-footer__tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(245, 240, 232, 0.4);
}
.g-footer__dots {
  margin-top: 1rem;
  display: flex;
  gap: 0.375rem;
}
.g-footer__dots span {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  opacity: 0.6;
}

.g-footer__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 168, 71, 0.7);
  margin-bottom: 1rem;
}

.g-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.g-footer__list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 240, 232, 0.5);
  transition: color 0.2s;
}
.g-footer__list a:hover {
  color: var(--cream);
}
.g-footer__list a .g-dot {
  height: 0.375rem;
  width: 0.375rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.g-footer__list a:hover .g-dot {
  opacity: 1;
}

/* Réseaux sociaux */
.g-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.g-social a {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 168, 71, 0.25);
  color: rgba(245, 240, 232, 0.55);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s,
    transform 0.3s;
}

.g-social a:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 71, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}

.g-social svg {
  width: 1rem;
  height: 1rem;
}

.g-footer__legal {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.g-footer__legal a {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.3);
  transition: color 0.2s;
}
.g-footer__legal a:hover {
  color: var(--gold);
}

.g-footer__mail {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.5);
  transition: color 0.2s;
}
.g-footer__mail:hover {
  color: var(--gold);
}

.g-footer__bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(212, 168, 71, 0.1);
  padding-top: 1.5rem;
}
.g-footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   PRÉFÉRENCES D'ACCESSIBILITÉ
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .g-shimmer {
    -webkit-text-fill-color: initial;
    color: var(--gold);
    background: none;
  }
  .g-card:hover {
    transform: none;
  }
}

@media print {
  .g-header,
  .g-footer,
  .g-toc,
  .g-share,
  .g-cta-site,
  .g-postnav,
  .g-progress,
  .g-comments {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .g-prose {
    color: #000;
  }
}
