/* =========================================================
   Variables & Reset
========================================================= */
:root {
  --accent:        #e8500a;
  --accent-dark:   #c44008;
  --accent-light:  #fff1eb;
  --black:         #111;
  --grey-dark:     #444;
  --grey-mid:      #888;
  --grey-light:    #ddd;
  --grey-bg:       #f5f5f5;
  --white:         #fff;
  --radius:        2px;
  --font: "Courier New", Courier, monospace;
  --font-body: system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 18px;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--white);
}

body {
  font-family: var(--font-body);
  color: var(--black);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: -.02em;
}


/* =========================================================
   Layout global
========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 40px 0 64px;
}

.content > h1:first-child {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 8px;
  line-height: 1.05;
}

.content > p:first-of-type {
  font-size: 1rem;
  color: var(--grey-dark);
  margin: 0 0 40px;
  max-width: 600px;
}


/* =========================================================
   Header
========================================================= */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--white);
  border-bottom: 1px solid var(--black);
}

.site-logo a { display: block; }

.site-logo img {
  display: block;
  height: 72px;
  width: auto;
}

/* Nav groupée */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.nav-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.site-nav a {
  font-weight: bold;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 0;
  color: var(--grey-mid);
  transition: color .15s;
  border: none;
  background: none;
}

.site-nav a:hover { color: var(--black); }

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Langues verticales droite */
.site-lang {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding-top: 2px;
  font-size: .8rem;
}

.site-lang a {
  font-weight: normal;
  color: var(--grey-mid);
  padding: 4px 0;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s;
}

.site-lang a:hover { color: var(--black); }

.lang-active {
  font-weight: bold;
  color: var(--accent);
  padding: 4px 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: bold;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Hamburger — caché desktop */
.nav-toggle { display: none; }


/* =========================================================
   Footer
========================================================= */
.site-footer {
  border-top: 1px solid var(--black);
  margin-top: auto;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .8rem;
  color: var(--grey-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer a {
  font-weight: bold;
  color: var(--grey-mid);
  transition: color .15s;
}

.site-footer a:hover { color: var(--accent); }


/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  padding: 7px 16px;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
}
.btn-secondary:hover { background: var(--grey-bg); }


/* =========================================================
   Home — recherche + filtres
========================================================= */
.home-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 32px;
}

.home-search-wrap { position: relative; }

#festival-search {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: none;
  border-bottom: 2px solid var(--black);
  font-family: var(--font);
  font-size: 1.1rem;
  background: transparent;
  transition: border-color .15s;
  outline: none;
}

#festival-search:focus { border-color: var(--accent); }

#festival-search::placeholder { color: var(--grey-mid); }

.home-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--grey-mid);
  font-size: .85rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 4px 14px;
  border: 1px solid var(--grey-light);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: all .15s;
}

.filter-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.home-count {
  font-size: .8rem;
  color: var(--grey-mid);
  margin: 0;
  min-height: 1.2em;
  letter-spacing: .04em;
}

.home-db-link {
  margin-top: 48px;
  font-size: .8rem;
  color: var(--grey-mid);
  letter-spacing: .04em;
}

.home-db-link a {
  color: var(--grey-mid);
  font-weight: normal;
  border-bottom: 1px solid var(--grey-light);
  transition: color .15s, border-color .15s;
}

.home-db-link a:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}


/* =========================================================
   Festival grid & cards
========================================================= */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  border: 1px solid var(--grey-light);
  margin-top: 0;
}

.festival-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .15s;
  background: var(--white);
  border: none;
  border-radius: 0;
}

.festival-card:hover { background: var(--grey-bg); }

.festival-card.no-prog { opacity: .55; }
.festival-card.no-prog:hover { opacity: .8; }

.festival-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.festival-card-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.festival-card-name a:hover { color: var(--accent); }

.festival-country {
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-mid);
}

.festival-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .8rem;
  color: var(--grey-mid);
}

.festival-date {
  font-weight: bold;
  color: var(--grey-dark);
}

.festival-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.badge-no-prog {
  font-size: .7rem;
  color: var(--grey-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* =========================================================
   Festival page
========================================================= */
.breadcrumb {
  font-size: .75rem;
  margin-bottom: 32px;
  color: var(--grey-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.breadcrumb a { color: inherit; transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { margin: 0 8px; }

.festival-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--grey-dark);
  margin-bottom: 16px;
  font-size: .85rem;
  letter-spacing: .03em;
}

.festival-info .festival-date {
  font-weight: bold;
  color: var(--black);
}

.festival-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.no-data {
  color: var(--grey-mid);
  font-style: italic;
}

/* Day tabs */
.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--grey-light);
}

.day-tab {
  padding: 8px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: all .15s;
  margin-bottom: -1px;
}

.day-tab:hover { color: var(--black); }

.day-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Programme en liste texte */
.program-flow {
  font-size: 1rem;
  line-height: 2;
  max-width: 760px;
}

.program-flow .prog-artist {
  display: inline;
}

.program-flow .prog-artist a {
  color: var(--black);
  transition: color .15s;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}

.program-flow .prog-artist a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.program-flow .prog-sep {
  color: var(--grey-light);
  margin: 0 6px;
  font-weight: normal;
  user-select: none;
}

.program-flow .prog-day-label {
  display: block;
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 8px;
}

.program-flow .prog-day-label:first-child {
  margin-top: 0;
}

/* Garder l'ancien .program-grid pour compatibilité */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  border: 1px solid var(--grey-light);
}

.artist-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .15s;
  background: var(--white);
}

.artist-card:hover { background: var(--grey-bg); }

.artist-card a {
  font-weight: bold;
  font-size: .9rem;
  transition: color .15s;
}

.artist-card a:hover { color: var(--accent); }

.artist-card > span:not(.artist-day) {
  font-weight: bold;
  font-size: .9rem;
}

.artist-day {
  font-size: .7rem;
  color: var(--grey-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* =========================================================
   Festicheck tool
========================================================= */
.festicheck-tool {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}

.festicheck-search-wrap { position: relative; }

#artist-search {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid var(--black);
  font-family: var(--font);
  font-size: 1.1rem;
  background: transparent;
  outline: none;
  transition: border-color .15s;
}

#artist-search:focus { border-color: var(--accent); }
#artist-search::placeholder { color: var(--grey-mid); }

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--black);
  border-top: none;
  background: var(--white);
  z-index: 100;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
}

.suggestions-list li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: .9rem;
  border-bottom: 1px solid var(--grey-light);
  transition: background .1s;
}

.suggestions-list li:last-child { border-bottom: none; }
.suggestions-list li:hover { background: var(--accent-light); }

.selected-label {
  margin: 0 0 8px;
  font-size: .7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey-mid);
}

.selected-artists {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.artist-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: bold;
  color: var(--accent-dark);
}

.artist-tag button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  color: var(--accent-dark);
  font-family: var(--font);
  transition: color .15s;
}

.artist-tag button:hover { color: var(--black); }

.festicheck-options { display: flex; gap: 16px; }

.option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  cursor: pointer;
  color: var(--grey-dark);
}

.festicheck-actions { display: flex; gap: 12px; }

.festicheck-results { margin-top: 16px; }

.result-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--grey-light);
}

.result-card:first-child { border-top: 1px solid var(--grey-light); }

.result-card h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}

.result-meta {
  font-size: .8rem;
  color: var(--grey-mid);
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.result-match {
  font-weight: bold;
  font-size: .8rem;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.result-artists {
  margin: 0 0 16px;
  padding-left: 16px;
  font-size: .875rem;
  color: var(--grey-dark);
}

.result-artists li { margin-bottom: 4px; }

.result-links { display: flex; flex-wrap: wrap; gap: 8px; }

.notice, .loading { color: var(--grey-mid); font-style: italic; font-size: .9rem; }
.error { color: #c00; font-style: italic; font-size: .9rem; }


/* =========================================================
   Random page
========================================================= */
.random-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  border: 1px solid var(--grey-light);
  margin: 32px 0 48px;
}

.stat-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  transition: background .15s;
}

.stat-card:hover { background: var(--grey-bg); }

.stat-card--accent {
  background: var(--accent-light);
}

.stat-card--accent:hover {
  background: #ffe0d0;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1;
  color: var(--black);
  letter-spacing: -.03em;
}

.stat-card--accent .stat-number { color: var(--accent); }

.stat-label {
  font-size: .75rem;
  color: var(--grey-mid);
  line-height: 1.4;
  letter-spacing: .03em;
}

.stats-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-top: 16px;
}

.stats-table th {
  text-align: left;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey-mid);
  padding: 10px 12px;
  border-bottom: 1px solid var(--black);
}

.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: middle;
}

.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: var(--grey-bg); }

.stats-bar-wrap {
  display: inline-block;
  width: 80px;
  height: 4px;
  background: var(--grey-light);
  border-radius: 2px;
  margin-left: 12px;
  vertical-align: middle;
}

.stats-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  min-width: 2px;
}

.stats-tier-artists {
  font-size: .8rem;
  color: var(--grey-dark);
  line-height: 1.8;
}

.stats-tier-artists a {
  color: var(--grey-dark);
  font-weight: normal;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.stats-tier-artists a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* =========================================================
   Festival — cartes sections cocon
========================================================= */
.festival-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.festival-section-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--black);
  transition: border-color .15s, box-shadow .15s;
}

.festival-section-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.festival-section-card-title {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: -.01em;
}

.festival-section-card-excerpt {
  font-size: .85rem;
  color: var(--grey-mid);
  line-height: 1.5;
  flex: 1;
}

.festival-section-card-cta {
  font-size: .75rem;
  color: var(--accent);
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Page section dédiée */
.festival-section-content {
  margin: 32px 0;
  line-height: 1.7;
  max-width: 720px;
}

.festival-section-nav {
  margin: 40px 0 24px;
  padding: 20px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
}

.festival-section-nav p {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-mid);
  margin: 0 0 12px;
}

.festival-section-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.festival-section-nav ul a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--grey-light);
  border-radius: 99px;
  font-size: .85rem;
  color: var(--black);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.festival-section-nav ul a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.festival-section-back {
  margin: 24px 0 40px;
  font-size: .9rem;
}

.festival-section-back a {
  color: var(--grey-mid);
  text-decoration: none;
  transition: color .15s;
}

.festival-section-back a:hover { color: var(--black); }

.cal-item-display-name {
  font-size: .78rem;
  color: var(--grey-mid);
  font-style: italic;
  margin-top: 2px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--grey-mid);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--grey-mid);
  text-decoration: none;
  transition: color .15s;
}

.breadcrumb a:hover { color: var(--black); }


/* =========================================================
   Pages alphabétiques
========================================================= */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 24px 0 32px;
}

.alpha-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: bold;
  letter-spacing: .04em;
  cursor: pointer;
  color: var(--grey-mid);
  transition: all .15s;
}

.alpha-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.alpha-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.alpha-hint {
  color: var(--grey-mid);
  font-style: italic;
  font-size: .875rem;
}

.alpha-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: bold;
  color: var(--accent);
  margin: 0 0 24px;
  line-height: 1;
  letter-spacing: -.03em;
}

/* Liste artistes en texte continu */
.alpha-flow {
  font-size: 1rem;
  line-height: 2.2;
  max-width: 860px;
  margin-bottom: 40px;
}

.alpha-flow .flow-artist {
  display: inline;
}

.alpha-flow .flow-artist a {
  color: var(--black);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  font-weight: bold;
}

.alpha-flow .flow-artist a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.alpha-flow .flow-artist .flow-count {
  font-size: .7rem;
  color: var(--grey-mid);
  font-weight: normal;
  vertical-align: super;
  margin-left: 2px;
}

.alpha-flow .flow-sep {
  color: var(--grey-light);
  margin: 0 8px;
  font-weight: normal;
  user-select: none;
}

/* Garder l'ancienne alpha-list pour festivals */
.alpha-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 24px;
  margin-bottom: 32px;
}

.alpha-list li {
  font-size: .9rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--grey-light);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.alpha-count {
  font-size: .7rem;
  color: var(--grey-mid);
}

.alpha-list--festivals { grid-template-columns: 1fr; gap: 0; }

.alpha-festival-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-light);
}

.alpha-festival-item:last-child { border-bottom: none; }

.alpha-festival-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: .95rem;
}

.alpha-festival-name a:hover { color: var(--accent); }

.badge-prog {
  font-size: .65rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.alpha-festival-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--grey-mid);
}

.festival-country {
  font-size: .65rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-mid);
}


/* =========================================================
   Page artiste
========================================================= */
.artist-meta {
  color: var(--grey-mid);
  font-size: .85rem;
  margin: 0 0 32px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.artist-festivals-list {
  margin-top: 8px;
}

/* Nav pays sur /festivals */
.country-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
}

.country-nav-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--grey-mid);
  margin-right: 4px;
}

.country-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--grey-light);
  font-size: .8rem;
  color: var(--grey-dark);
  transition: border-color .15s, color .15s;
}

.country-tag:hover {
  border-color: var(--black);
  color: var(--black);
}

.country-count {
  font-size: .7rem;
  color: var(--grey-mid);
}

.cal-item--artist {
  grid-template-columns: 1fr auto;
}

.cal-item--artist .cal-item-dates {
  display: none;
}

.artist-fest-count {
  font-size: .75rem;
  color: var(--grey-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}


/* =========================================================
   Entity header (artiste + festival)
========================================================= */
.entity-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.entity-img-wrap { flex-shrink: 0; }

.entity-img {
  width: 288px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.entity-img--festival {
  width: 288px;
  height: 160px;
}

.entity-header-body {
  flex: 1;
  min-width: 0;
}

.entity-header-body h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.entity-bio {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--grey-dark);
  margin-bottom: 32px;
  max-width: 680px;
}

.entity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Festival sections */
.festival-sections {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: 1px solid var(--grey-light);
  padding-top: 40px;
}

.festival-section h2 {
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin: 0 0 16px;
}

.festival-section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--grey-dark);
  max-width: 680px;
}


/* =========================================================
   Responsive
========================================================= */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .container { padding: 0 20px; }

  .site-header {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 10px 0;
  }

  .site-logo { grid-column: 1; grid-row: 1; }
  .site-logo img { height: 44px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: 1px solid var(--black);
    border-radius: var(--radius);
    cursor: pointer;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 4px;
    border-top: 1px solid var(--grey-light);
    margin-top: 10px;
  }

  .site-nav.is-open { display: flex; }

  .nav-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    border-bottom: 1px solid var(--grey-light);
    padding: 8px 0;
  }

  .nav-group:last-child { border-bottom: none; }

  .site-nav a {
    padding: 2px 0;
    font-size: .9rem;
    opacity: 1;
    border-bottom: none;
  }

  .site-lang {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0 4px;
    gap: 16px;
    grid-column: 1 / -1;
    display: flex;
  }

  .site-nav.is-open ~ .site-lang { display: flex; }

  .content > h1:first-child { font-size: 2rem; }

  .entity-header { flex-direction: column; }
  .entity-img    { width: 100%; height: 200px; }
  .entity-img--festival { width: 100%; height: 180px; }

  .festival-grid  { grid-template-columns: 1fr; }
  .program-grid   { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .stats-bar-wrap { display: none; }
  .alpha-btn      { width: 30px; height: 30px; font-size: .75rem; }
  .alpha-flow     { font-size: .9rem; line-height: 2; }
}

@media (max-width: 400px) {
  .festival-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; }
}


/* =========================================================
   Calendrier
========================================================= */
.cal-month {
  margin-bottom: 48px;
}

.cal-month-title {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-light);
}

.cal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cal-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-light);
  transition: background .15s;
}

.cal-item.cal-item--has-thumb {
  grid-template-columns: auto 80px 1fr auto;
}

.cal-item-thumb img {
  display: block;
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cal-item:first-child { border-top: 1px solid var(--grey-light); }

.cal-item--no-prog { opacity: .6; }

.cal-date {
  font-size: .8rem;
  font-family: var(--font);
  font-weight: bold;
  color: var(--grey-dark);
  white-space: nowrap;
  min-width: 120px;
}

.cal-date--text {
  color: var(--grey-mid);
  font-weight: normal;
}

.cal-item-name {
  font-weight: bold;
  font-size: 1rem;
}

.cal-item-name a:hover { color: var(--accent); }

.cal-item-meta {
  display: flex;
  gap: 12px;
  font-size: .78rem;
  color: var(--grey-mid);
  margin-top: 3px;
}

.cal-item-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-sm {
  padding: 4px 12px;
  font-size: .7rem;
}

@media (max-width: 640px) {
  .cal-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .cal-item--has-thumb { grid-template-columns: 1fr auto; }
  .cal-date { grid-column: 1; font-size: .75rem; }
  .cal-item-body { grid-column: 1; }
  .cal-item-thumb { display: none; }
  .cal-item-links { grid-column: 2; grid-row: 1 / 3; flex-direction: column; }
}
