@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Cinzel:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap");

/* =========================================================
   Palette Bordeaux
   Bordeaux profond #5a1824 · Or #c9960c
   Fond parchemin chaud #f5f0e8
   Ambiance : historique, dramatique, chaleureux, grave
   Même structure que Classique (héro sombre) mais en rouge
   vin plutôt qu'en bleu nuit.
   ========================================================= */

:root {
  --primary-color: #5a1824;
  --primary-color-strong: #7a2838;
  --primary-color-hover: #3e1018;

  --secondary-color: #c9960c;
  --secondary-color-strong: #dba820;

  --background-color: #f5f0e8;
  --background-color-muted: #ede5d3;

  --ternary-color: #1a2a42;
  --ternary-color-strong: #2c4470;
  --ternary-color-hover: #0f1c30;

  --text-color: #1e0c0e;
  --text-color-strong: #130608;
  --text-color-muted: #5c4248;
  --text-color-subtle: #7a6068;
  --text-color-inverse: #f5f0e8;
  --text-color-inverse-muted: #e6d8d0;

  --menu-background-color: #5a1824;
  --menu-color: rgba(245, 240, 232, 0.5);
  --menu-link-color: white;
  --menu-link-hover-color: var(--background-color);
  --menu-link-active-color: var(--background-color);
  --menu-border-color: rgba(201, 150, 12, 0.2);
  --menu-divider-color: rgba(201, 150, 12, 0.15);
  --menu-link-hover-background: rgba(201, 150, 12, 0.08);
  --menu-link-active-background: rgba(201, 150, 12, 0.06);
  --menu-panel-background: rgba(18, 4, 8, 0.98);
  --menu-panel-border-color: rgba(201, 150, 12, 0.25);
  --menu-panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --menu-panel-text-color: rgba(245, 240, 232, 0.82);
  --menu-panel-option-hover-background: rgba(201, 150, 12, 0.12);

  --mobile-menu-border-color: rgba(201, 150, 12, 0.3);
  --mobile-menu-link-border-color: rgba(201, 150, 12, 0.15);

  --mobile-search-background: rgba(255, 255, 255, 0.08);
  --mobile-search-border-color: rgba(201, 150, 12, 0.3);
  --mobile-search-placeholder-color: rgba(245, 240, 232, 0.4);

  --overlay-input-background: rgba(245, 240, 232, 0.08);
  --overlay-input-placeholder-color: rgba(245, 240, 232, 0.4);

  --focus-ring-color: rgba(201, 150, 12, 0.2);

  /* Hero home (map de fond) — texte clair sur scrim sombre */
  --surface-hero-home-accent: var(--secondary-color-strong);
  --surface-hero-home-border: var(--primary-color);
  --surface-hero-home-foreground: rgba(245, 240, 232, 0.88);
  --surface-hero-home-foreground-muted: rgba(245, 240, 232, 0.68);
  --surface-hero-home-foreground-strong: #f5f0e8;

  --surface-hero-background: #5a1824;
  --surface-hero-border: #c9960c;
  --surface-hero-accent: #dba820;
  --surface-hero-foreground: rgba(245, 240, 232, 0.78);
  --surface-hero-foreground-muted: rgba(245, 240, 232, 0.55);
  --surface-hero-foreground-strong: #f5f0e8;
  --surface-hero-foreground-mobile: rgba(245, 240, 232, 0.85);
  --surface-hero-foreground-muted-mobile: rgba(245, 240, 232, 0.6);
  --surface-hero-link: rgba(245, 240, 232, 0.65);
  --surface-hero-link-mobile: rgba(245, 240, 232, 0.7);
  --surface-hero-link-active-background: rgba(201, 150, 12, 0.12);
  --surface-hero-watermark: rgba(201, 150, 12, 0.06);
  --surface-hero-stripe: rgba(201, 150, 12, 0.03);
  --surface-hero-stats-border: rgba(201, 150, 12, 0.2);

  --surface-primary-foreground: #ead0d4;
  --surface-primary-foreground-muted: #e0c0c6;
  --surface-primary-foreground-strong: #c89aa0;
  --surface-primary-background: #5a1824;
  --surface-primary-background-muted: #7a2838;
  --surface-primary-background-alt: #3e1018;
  --surface-primary-border: var(--surface-primary-foreground-muted);
  --surface-primary-accent: var(--secondary-color);
  --surface-primary-link: var(--surface-primary-accent);
  --surface-primary-link-hover: var(--surface-primary-foreground-strong);

  --surface-secondary-foreground: var(--text-color);
  --surface-secondary-foreground-muted: var(--text-color-muted);
  --surface-secondary-foreground-strong: var(--text-color-strong);
  --surface-secondary-background: var(--background-color);
  --surface-secondary-background-muted: var(--background-color-muted);
  --surface-secondary-background-alt: #3e1018;
  --surface-secondary-border: var(--surface-secondary-foreground-muted);
  --surface-secondary-accent: var(--secondary-color);
  --surface-secondary-link: var(--surface-secondary-accent);
  --surface-secondary-link-hover: var(--surface-secondary-foreground-strong);

  --surface-tertiary-foreground: var(--text-color);
  --surface-tertiary-foreground-muted: #8a6068;
  --surface-tertiary-foreground-strong: black;
  --surface-tertiary-background: #ede5d3;
  --surface-tertiary-background-muted: #7a2838;
  --surface-tertiary-background-alt: #3e1018;
  --surface-tertiary-border: var(--surface-tertiary-foreground-muted);
  --surface-tertiary-accent: var(--secondary-color);
  --surface-tertiary-link: var(--surface-tertiary-accent);
  --surface-tertiary-link-hover: var(--surface-tertiary-foreground-strong);

  --surface-quaternary-foreground: rgba(245, 240, 232, 0.7);
  --surface-quaternary-foreground-muted: #e0c0c6;
  --surface-quaternary-foreground-strong: black;
  --surface-quaternary-background: #8c2030;
  --surface-quaternary-background-muted: #7a2838;
  --surface-quaternary-background-alt: #3e1018;
  --surface-quaternary-link: rgba(245, 240, 232, 0.7);
  --surface-quaternary-border: var(--surface-quaternary-foreground-muted);
  --surface-quaternary-accent: var(--secondary-color);
  --surface-quaternary-link-hover: var(--surface-quaternary-foreground-strong);

  /* Quinary — fond clair/parchemin pour les sections Thèmes & Balades */
  --surface-quinary-foreground: #1e0c0e;
  --surface-quinary-foreground-muted: #5c4248;
  --surface-quinary-foreground-strong: #5a1824;
  --surface-quinary-background: #f5f0e8;
  --surface-quinary-background-muted: #ede5d3;
  --surface-quinary-background-alt: #e8d0d4;
  --surface-quinary-border: rgba(90, 24, 36, 0.2);
  --surface-quinary-accent: var(--secondary-color);
  --surface-quinary-link: #5a1824;
  --surface-quinary-link-hover: #3e1018;

  --surface-senary-foreground: #f5f0e8;
  --surface-senary-foreground-muted: #e6d8d0;
  --surface-senary-foreground-strong: black;
  --surface-senary-background: #1a0810;
  --surface-senary-background-muted: #4e1a26;
  --surface-senary-background-alt: #3a1018;
  --surface-senary-border: var(--surface-senary-foreground-muted);
  --surface-senary-accent: var(--secondary-color);
  --surface-senary-link: var(--surface-senary-accent);
  --surface-senary-link-hover: var(--surface-senary-foreground-strong);

  --surface-footer-background: #3a1420;
  --surface-footer-foreground: rgba(245, 240, 232, 0.78);
  --surface-footer-foreground-muted: rgba(245, 240, 232, 0.65);
  --surface-footer-foreground-strong: #f5f0e8;
  --surface-footer-border: rgba(201, 150, 12, 0.3);
  --surface-footer-link: rgba(245, 240, 232, 0.78);
  --surface-footer-link-hover: #f5f0e8;
  --surface-footer-accent: var(--secondary-color);

  --footer-background-color: #3a1420;
  --footer-color: rgba(245, 240, 232, 0.78);
  --footer-border-color: rgba(201, 150, 12, 0.3);
  --footer-link-color: rgba(245, 240, 232, 0.78);
  --footer-link-hover-color: var(--background-color);
  --footer-bottom-link-color: rgba(245, 240, 232, 0.65);

  --scrim-strong: rgba(22, 4, 8, 0.96);
  --scrim-medium: rgba(22, 4, 8, 0.88);
  --scrim-soft: rgba(22, 4, 8, 0.3);
  --scrim-faint: rgba(22, 4, 8, 0.2);
  --scrim-top-strong: rgba(22, 4, 8, 0.95);
  --scrim-top-medium: rgba(22, 4, 8, 0.35);

  --glass-panel-background: rgba(18, 4, 8, 0.9);
  --glass-panel-background-strong: rgba(18, 4, 8, 0.96);
  --glass-panel-background-soft: rgba(18, 4, 8, 0.85);
  --glass-panel-border: rgba(201, 150, 12, 0.2);
  --glass-panel-border-strong: rgba(201, 150, 12, 0.35);
  --glass-panel-text-strong: rgba(245, 240, 232, 0.9);
  --glass-panel-text-muted: rgba(245, 240, 232, 0.65);
  --glass-panel-text-faint: rgba(245, 240, 232, 0.52);
  --glass-panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);

  --hero-map-min-height: 92vh;

  --type-personnage: var(--secondary-color);
  --type-evenement: var(--primary-color);
  --type-lieu: #7a2838;
  --type-adresse: var(--text-color-muted);
  --type-theme: #6b2010;

  --badge-bg-personnage: rgba(201, 150, 12, 0.12);
  --badge-text-personnage: #6b5008;
  --badge-bg-evenement: rgba(90, 24, 36, 0.08);
  --badge-text-evenement: #5a1824;
  --badge-bg-lieu: rgba(122, 40, 56, 0.08);
  --badge-text-lieu: #5a1824;
  --badge-bg-adresse: rgba(92, 66, 72, 0.08);
  --badge-text-adresse: var(--text-color-muted);
  --badge-bg-theme: rgba(107, 32, 16, 0.08);
  --badge-text-theme: var(--type-theme);

  --bib-type-guide-text: #8a6f08;
  --bib-type-revue-bg: rgba(107, 32, 16, 0.12);
  --bib-type-revue-text: #7a2010;
  --bib-tag-bg: rgba(200, 184, 154, 0.25);
  --bib-tag-hover-bg: rgba(201, 150, 12, 0.15);
  --bib-tag-period-bg: rgba(90, 24, 36, 0.08);
  --bib-tag-period-hover-bg: rgba(90, 24, 36, 0.15);

  --tag-date-bg: rgba(107, 80, 88, 0.25);
  --tag-date-border: rgba(107, 80, 88, 0.4);
  --tag-date-text: rgba(245, 240, 232, 0.65);
  --tag-date-hover-bg: rgba(107, 80, 88, 0.4);

  --tag-arrond-bg: rgba(26, 42, 66, 0.4);
  --tag-arrond-border: rgba(26, 42, 66, 0.55);
  --tag-arrond-hover-bg: rgba(26, 42, 66, 0.6);

  --tag-arr-bg: rgba(160, 120, 20, 0.12);
  --tag-arr-text: #4a3a08;

  --tag-epoque-bg-strong: rgba(90, 24, 36, 0.45);
  --tag-epoque-border: rgba(90, 24, 36, 0.6);
  --tag-epoque-hover-bg: rgba(90, 24, 36, 0.65);
  --tag-epoque: #5a1824;
  --tag-epoque-bg: rgba(90, 24, 36, 0.18);
  --tag-epoque-text: #3e1018;

  --tag-theme-bg-strong: rgba(107, 32, 16, 0.35);
  --tag-theme-border: rgba(107, 32, 16, 0.5);
  --tag-theme-hover-bg: rgba(107, 32, 16, 0.55);
  --tag-theme: #6b2010;
  --tag-theme-bg: rgba(140, 32, 16, 0.12);
  --tag-theme-text: #6a1510;

  --tag-quartier-bg-strong: rgba(26, 42, 66, 0.3);
  --tag-quartier-border: rgba(26, 42, 66, 0.45);
  --tag-quartier-hover-bg: rgba(26, 42, 66, 0.5);
  --tag-quartier: #1a2a42;
  --tag-quartier-light: #2a4a72;
  --tag-quartier-bg: rgba(26, 42, 66, 0.1);
  --tag-quartier-text: #1a2a42;

  --tag-lieu-bg: rgba(58, 48, 52, 0.3);
  --tag-voie-bg:      rgba(92,82,70,0.22);
  --tag-lieu-border: rgba(58, 48, 52, 0.45);
  --tag-lieu-hover-bg: rgba(58, 48, 52, 0.5);
  --tag-lieu: #3a3035;

  --pin-residence: #8c2030;
  --pin-oeuvre: #c9960c;
  --pin-memoire: #4a7ab5;
  --pin-social: #2e7d52;

  --shadow-card-1: 0 4px 16px rgba(90, 24, 36, 0.1);
  --shadow-card-2: 0 6px 20px rgba(90, 24, 36, 0.1);
  --shadow-dropdown: 0 6px 20px rgba(90, 24, 36, 0.12);

  /* Card overlay tints — balades featured cards & walk-card badges */
  --overlay-card-strong: rgba(90, 24, 36, 0.92);
  --overlay-card-mid:    rgba(90, 24, 36, 0.5);
  --overlay-card-faint:  rgba(90, 24, 36, 0.15);
  --overlay-card-soft:   rgba(90, 24, 36, 0.3);
  --overlay-card-badge:  rgba(90, 24, 36, 0.85);

  /* Balade featured card — homepage & listing overlays */
  --balade-featured-gradient:  linear-gradient(160deg, #5a1824 0%, #1a0608 60%);
  --balade-overlay-strong:     rgba(26, 4, 8, 0.98);
  --balade-overlay-mid:        rgba(26, 4, 8, 0.7);
  --balade-overlay-faint:      rgba(26, 4, 8, 0.2);
  --balade-mini-bg:            rgba(90, 24, 36, 0.06);
  --balade-mini-border:        rgba(90, 24, 36, 0.2);
  --balade-mini-hover-bg:      rgba(201, 150, 12, 0.12);
  --balade-mini-border-hover:  rgba(201, 150, 12, 0.5);
  --balade-icon-bg:            rgba(90, 24, 36, 0.9);

}

/* ========== BORDEAUX-SPECIFIC OVERRIDES ========== */

/* Homepage hero title */
.hero-title em {
  font-size: 1.08em;
}

/* 1. Calendar area — larger fonts, improved contrast */
.cal-day-name {
  font-size: 0.92rem;
}

.cal-day-num {
  font-size: 1.15rem;
}

.today-event-title {
  font-size: 0.92rem;
}

.calendar-label {
  font-size: 0.92rem;
}

.today-event-year {
  font-size: 1.05rem;
}

/* Hero on index pages — burgundy background, no watermark, aligned width */
.surface-hero {
  padding: 3rem max(4rem, calc(50% - 590px)) 2.5rem;
}

/* Ce fichier est chargé APRÈS style.css : sans ce bloc, la règle ci-dessus
   écrase le padding mobile compact de style.css (revue mobile 2026-07) */
@media (max-width: 600px) {
  .surface-hero {
    padding: 1.75rem 1.2rem 1.4rem;
  }
}

.surface-hero::after {
  display: none;
}

.surface-hero::before {
  display: none;
}

.surface-hero .jump-link {
  color: rgba(245, 240, 232, 0.7);
  border-color: rgba(201, 150, 12, 0.3);
}

.surface-hero .jump-link:hover,
.surface-hero .jump-link.active {
  color: #f5f0e8;
  background: var(--surface-hero-link-active-background);
  border-color: rgba(201, 150, 12, 0.6);
}

/* Arrondissement hero — burgundy-tinted overlay instead of blue */
.arr-hero-overlay {
  background:
    linear-gradient(
      to right,
      rgba(58, 16, 24, 0.94) 0%,
      rgba(58, 16, 24, 0.65) 50%,
      rgba(58, 16, 24, 0.2) 100%
    ),
    linear-gradient(
      to top,
      rgba(58, 16, 24, 0.97) 0%,
      rgba(58, 16, 24, 0.35) 40%,
      transparent 70%
    );
}

/* 2. Explore axes bar — stronger text contrast */
.axis-name {
  font-size: 0.92rem;
  color: #f5f0e8;
}

.axis-count {
  font-size: 0.92rem;
  color: #dba820;
}

/* 3. Explorer Paris sur la carte — larger text, better contrast */
.explorer-hp-text p {
  font-size: 1.08rem;
  color: #3e2228;
}

.explorer-hp-text .section-title {
  font-size: 2rem;
}

/* 4. Remove diagonal hatching lines from spotlight burgundy background */
.spotlight-wrap::before {
  display: none;
}

/* 5. Thèmes du site — larger descriptive text */
.tf-desc {
  font-size: 1.0rem;
}

.tf-count {
  font-size: 0.9rem;
}

.tf-name {
  font-size: 1.05rem;
}

/* 6. Balades section — dark background for contrast */
.balades-hp.surface-quinary {
  background: #3a1018;
  border-top-color: rgba(201, 150, 12, 0.3);
}

.balades-hp .section-title {
  color: #f5f0e8;
}

.balades-hp .section-link {
  color: #dba820;
}

.balades-hp .section-rule {
  background: linear-gradient(to right, rgba(201, 150, 12, 0.6), transparent);
}

.balades-hp .balade-mini {
  background: rgba(245, 240, 232, 0.05);
  border-color: rgba(201, 150, 12, 0.2);
}

.balades-hp .balade-mini:hover {
  background: rgba(201, 150, 12, 0.12);
  border-color: rgba(201, 150, 12, 0.5);
}

.balades-hp .balade-mini-title {
  color: #f5f0e8;
}

.balades-hp .balade-mini-meta {
  color: rgba(245, 240, 232, 0.6);
}

/* Balade thumbnail vignettes instead of circle icons */
.balades-hp .balade-mini-icon {
  border-radius: 4px;
  overflow: hidden;
  background: rgba(90, 24, 36, 0.6);
  border-color: rgba(201, 150, 12, 0.4);
}

.balades-hp .balade-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(20%) contrast(1.1);
}

/* Balade CTA rows — prominent action items */
.balades-hp .balade-cta {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(201, 150, 12, 0.35);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  flex: 1;
  background: rgba(201, 150, 12, 0.08);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.balades-hp .balade-cta:hover {
  background: rgba(201, 150, 12, 0.18);
  border-color: rgba(201, 150, 12, 0.6);
}

.balades-hp .balade-cta-icon {
  font-size: 1.2rem;
  color: #c9960c;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 150, 12, 0.12);
  border: 1px solid rgba(201, 150, 12, 0.4);
  border-radius: 4px;
}

.balades-hp .balade-cta .balade-mini-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.balades-hp .balade-cta .balade-mini-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dba820;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balades-hp .balade-cta .balade-mini-meta {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.55);
}

/* ── Fiche row overrides ── */
/* Title: navy (#1a2a42 = blue-deep); hover: crimson */
.fr-title                       { color: var(--ternary-color); }
.fr:hover .fr-title,
.fr:hover .fr-title a           { color: #B8281C; }

/* Address: crimson */
.fr-addr                        { color: #B8281C; }
.fr-addr:hover                  { color: #8C1E14; }

/* People label: dark stone; links: crimson; sep: muted */
.fr-people .lbl,
.fr-people .label               { color: var(--text-color-muted); }
.fr-people a                    { color: #B8281C; }
.fr-people .sep                 { color: var(--text-color-subtle); }

/* View fiche + more: crimson */
.fr-viewfiche                   { color: #B8281C; }
.fr-more                        { color: #B8281C; }

/* Accordion toggle: navy; hover: crimson */
.fr-toggle                      { color: var(--ternary-color-strong); }
.fr-toggle:hover                { color: #B8281C; }

/* ── Personnage timeline overrides ── */
/* Event title: navy; hover: crimson */
.timeline-event-link            { color: var(--ternary-color); }
.timeline-event-link:hover      { color: #B8281C; }
/* Event description: inherits var(--text-color) — near-black body text, correct in all themes */
