/* ==========================================================================
   Saint-Gratien FC — Design system
   Palette extraite du blason du club (bordeaux / or / crème / rouge croix)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Couleurs de marque (issues du logo) */
  --maroon-950: #3a0f10;
  --maroon-900: #4f1414;
  --maroon-800: #6c1a1a;
  --maroon-700: #801818;   /* bordeaux principal du blason */
  --maroon-600: #952222;

  --gold-600: #d08830;
  --gold-500: #f0a030;     /* or principal du blason */
  --gold-400: #f4b658;
  --gold-300: #f8d28e;
  --gold-100: #fdf0da;

  --red-600: #c02828;      /* rouge de la croix */
  --red-500: #d63a3a;

  --cream-100: #fbf7ee;
  --cream-200: #f3ecd8;    /* crème du blason */

  --ink-900: #201412;
  --ink-700: #4a3a36;
  --white: #ffffff;

  /* Rôles sémantiques */
  --color-bg: var(--cream-100);
  --color-surface: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-700);
  --color-primary: var(--maroon-700);
  --color-primary-dark: var(--maroon-900);
  --color-accent: var(--gold-500);
  --color-accent-dark: var(--gold-600);
  --color-danger: var(--red-600);

  /* Typo */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Métriques */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 84px;

  --shadow-sm: 0 2px 10px rgba(58, 15, 16, 0.08);
  --shadow-md: 0 10px 30px rgba(58, 15, 16, 0.14);
  --shadow-lg: 0 20px 50px rgba(58, 15, 16, 0.22);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-primary);
  text-wrap: pretty;
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold-500); color: var(--maroon-900);
  padding: 10px 16px; z-index: 999; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--radius-sm); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(58, 15, 16, .05);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-danger);
  animation: eyebrow-pulse 2.4s ease-out infinite;
}
@keyframes eyebrow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 40, 40, .45); }
  70% { box-shadow: 0 0 0 6px rgba(192, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 40, 40, 0); }
}

/* ---------- Focus (accessibility + polish) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: .3em;
}
.section-sub {
  color: var(--color-text-muted);
  max-width: 620px;
  font-size: 1.05rem;
}
.section-head {
  margin-bottom: 42px;
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .section-sub { margin-inline: auto; }

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-surface { background: var(--color-surface); }
.bg-cream { background: var(--cream-100); }
.bg-maroon {
  background: linear-gradient(160deg, var(--maroon-800), var(--maroon-950));
  color: var(--cream-100);
}
.bg-maroon h2, .bg-maroon h3, .photo-section h2, .photo-section h3 { color: var(--gold-400); }
.bg-maroon .section-sub, .photo-section .section-sub { color: rgba(251, 247, 238, 0.78); }

/* ---------- Photo section (background photograph + overlay content) ---------- */
.photo-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--cream-100);
}
.photo-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(58,15,16,.93), rgba(79,20,20,.86) 55%, rgba(58,15,16,.93));
}
.photo-section .container { position: relative; z-index: 2; }
.photo-section p { color: rgba(251, 247, 238, 0.85); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary {
  background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-position: 150% 0;
  background-color: var(--gold-500);
  color: var(--maroon-950);
  box-shadow: var(--shadow-sm);
  transition: background-position .6s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn-primary:hover { background-position: -50% 0; background-color: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; border-color: rgba(251,247,238,.55); color: var(--cream-100);
}
.btn-outline:hover { background: rgba(251,247,238,.12); border-color: var(--cream-100); }
.btn-dark {
  background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 220% 100%;
  background-position: 150% 0;
  background-color: var(--maroon-800);
  color: var(--cream-100);
  transition: background-position .6s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn-dark:hover { background-position: -50% 0; background-color: var(--maroon-900); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 18px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(58, 15, 16, 0.92);
  border-bottom: 1px solid rgba(240, 160, 48, 0.25);
  transition: box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); height: 68px; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; }
.brand-name {
  font-family: var(--font-display);
  color: var(--cream-100);
  line-height: 1.1;
}
.brand-name strong { display: block; font-size: 1.05rem; letter-spacing: .03em; color: var(--white); }
.brand-name span { display: block; font-size: .68rem; letter-spacing: .12em; color: var(--gold-400); text-transform: uppercase; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.85);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: rgba(240, 160, 48, 0.16);
  color: var(--gold-400);
}
.header-actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: rgba(240,160,48,.14);
  border-radius: var(--radius-sm);
  position: relative; cursor: pointer;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold-400);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--maroon-950);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; padding: 24px; gap: 4px; }
  .main-nav a { padding: 16px; font-size: 1rem; }
  .header-actions .btn-primary { display: none; }
  .main-nav .nav-cta { display: block; margin-top: 16px; }
}
@media (min-width: 881px) {
  .main-nav .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--maroon-700) 0%, var(--maroon-900) 55%, var(--maroon-950) 100%);
  color: var(--cream-100);
  padding: 90px 0 110px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(240,160,48,.05) 0 5px, transparent 5px 40px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -10%; top: -20%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(240,160,48,.18), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-crest {
  display: flex; justify-content: center;
}
.hero-crest img {
  width: min(360px, 80%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: .4em;
  text-shadow: 0 2px 28px rgba(0,0,0,.28);
}
.hero h1 em {
  font-style: normal; color: var(--gold-400);
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(251,247,238,.85);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-crest { order: -1; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative; z-index: 2;
}
.stat { text-align: center; border-left: 1px solid rgba(240,160,48,.25); }
.stat:first-child { border-left: none; }
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold-400);
}
.stat span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(251,247,238,.7); }
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-media::before {
  content: ''; position: absolute; inset: 0; opacity: .1;
  background-image: repeating-linear-gradient(45deg, var(--gold-400) 0 2px, transparent 2px 26px);
}
.card-media .icon-illustration, .lightbox-media .icon-illustration {
  position: relative; z-index: 1; width: 30%; height: 30%; min-width: 52px; min-height: 52px;
  color: var(--gold-300); opacity: .9;
  transition: transform .4s var(--ease);
}
.card:hover .card-media .icon-illustration { transform: scale(1.08); }
.card-media .tag, .lightbox-media .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold-500); color: var(--maroon-950);
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-accent-dark); font-weight: 600; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0; }
.card-body p { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 0; flex: 1; }
.card-link { margin-top: 10px; font-family: var(--font-display); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary); }
.card-link::after { content: ' →'; }

/* ---------- Photo frame (illustrative photography) ---------- */
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Match card ---------- */
.match-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  display: grid; gap: 18px;
}
.match-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted);
}
.match-meta .comp { color: var(--color-primary); font-weight: 600; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; text-align: center; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; }
.match-team .crest {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--cream-200); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold-300);
  font-family: var(--font-display); color: var(--maroon-700);
}
.match-score { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-primary); }
.match-score .sep { color: var(--color-text-muted); font-size: 1rem; margin: 0 4px; }
.match-vs { font-family: var(--font-display); color: var(--color-text-muted); font-size: 1.1rem; }
.match-footer { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--color-text-muted); border-top: 1px dashed var(--cream-200); padding-top: 14px; }
.badge-result {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.badge-win { background: #e3f3e3; color: #1c7a30; }
.badge-draw { background: var(--gold-100); color: var(--gold-600); }
.badge-loss { background: #fbe2e2; color: var(--color-danger); }

/* ---------- Tables (calendrier/classement) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; font-size: .92rem; }
thead th {
  background: var(--maroon-800); color: var(--gold-300);
  font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-size: .78rem;
}
tbody tr:nth-child(even) { background: var(--cream-100); }
tbody tr:hover { background: var(--gold-100); }

/* ---------- Timeline (histoire du club) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 3px solid var(--gold-300); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -41px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-500); border: 3px solid var(--color-surface); box-shadow: 0 0 0 3px var(--gold-300);
}
.timeline-item .year { font-family: var(--font-display); color: var(--color-primary); font-size: 1.1rem; }

/* ---------- People / staff cards ---------- */
.person {
  text-align: center; background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 28px 20px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.person .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--maroon-950);
}
.person h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person .role { color: var(--color-accent-dark); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold-500), var(--gold-600));
  color: var(--maroon-950);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-banner h3 { color: var(--maroon-950); margin-bottom: 6px; }
.cta-banner p { color: var(--maroon-900); margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--cream-200); border-radius: var(--radius-sm);
  padding: 13px 16px; font: inherit; background: var(--white); color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Practical info list ---------- */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(155deg, var(--gold-100), var(--cream-200)); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(208,136,48,.18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-item .icon svg { width: 21px; height: 21px; }
.info-item:hover .icon { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(208,136,48,.32), var(--shadow-sm); }
.info-item h4 { margin-bottom: 2px; font-size: 1rem; text-transform: none; color: var(--color-text); font-family: var(--font-body); font-weight: 700; }
.info-item p { color: var(--color-text-muted); margin-bottom: 0; font-size: .92rem; }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--maroon-700), var(--maroon-950));
  color: var(--cream-100);
  padding: 76px 0 64px;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(240,160,48,.05) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute; left: -8%; top: -35%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(240,160,48,.16), transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.page-header p { color: rgba(251,247,238,.8); max-width: 560px; margin-inline: auto; margin-bottom: 0; }

/* ---------- Filters (actualités) ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--cream-200);
  background: var(--white); color: var(--color-text-muted); cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-400); color: var(--color-primary); }
.filter-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-950); color: rgba(251,247,238,.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(240,160,48,.18); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
.site-footer h4 { color: var(--gold-400); font-size: .82rem; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul a { position: relative; display: inline-block; width: fit-content; transition: color .2s var(--ease); }
.site-footer ul a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold-400); transition: width .25s var(--ease);
}
.site-footer ul a:hover::after { width: 100%; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(240,160,48,.14);
  display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease);
}
.social-row a:hover { background: var(--gold-500); color: var(--maroon-950); }
.newsletter { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input {
  flex: 1; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(240,160,48,.3);
  background: rgba(255,255,255,.06); color: var(--white);
}
.newsletter input::placeholder { color: rgba(251,247,238,.5); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 24px 0; font-size: .82rem; color: rgba(251,247,238,.55);
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Article lightbox (zoom au clic) ---------- */
article.card { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(32, 20, 18, .72); backdrop-filter: blur(2px); }
.lightbox-panel {
  position: relative; z-index: 1;
  background: var(--color-surface); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.94); transition: transform .25s var(--ease);
}
.lightbox.is-open .lightbox-panel { transform: scale(1); }
.lightbox-media {
  position: relative; overflow: hidden; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  display: flex; align-items: center; justify-content: center;
}
.lightbox-media::before {
  content: ''; position: absolute; inset: 0; opacity: .1;
  background-image: repeating-linear-gradient(45deg, var(--gold-400) 0 2px, transparent 2px 26px);
}
.lightbox-media svg { position: relative; z-index: 1; width: 84px; height: 84px; color: var(--gold-300); opacity: .9; }
.lightbox-body { padding: 26px 28px 30px; }
.lightbox-body h3 { margin: 8px 0 12px; font-size: 1.35rem; }
.lightbox-body p { color: var(--color-text-muted); margin-bottom: 0; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--maroon-800);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox-close:hover { background: var(--gold-100); }
