@import url('../faction-quiz/faction-quiz.css');
@import url('../article-back/article-back.css');

/* === article-content (BEM) === */
/* Article content — texte à gauche, image à droite (layout 2025 enrichi) */

.article-content {
  --ac-ink: #120e0c;
  --ac-accent: #9a3412;
  --ac-accent-2: #c2410c;
  --ac-muted: #2a241e;
  --ac-soft: #5c5348;
  --ac-bg: #fff6eb;
  --ac-font-display: "IM Fell English", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ac-font-body: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --ac-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  max-width: 900px;
  margin: 0 auto;
  color: var(--ac-ink);
}

.article-content__badge {
  display: block;
  margin: 0 auto 0.9rem;
  width: fit-content;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef;
  font-family: var(--ac-font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-content__intro {
  margin: 0 0 1.75rem;
  text-align: center;
  font-family: var(--ac-font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ac-ink);
}

.article-content__intro strong {
  color: var(--ac-accent);
  font-weight: 700;
  font-style: normal;
}

.article-content__intro em {
  color: var(--ac-accent-2);
  font-style: italic;
}

.article-content__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}

.article-content__text {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  font-family: var(--ac-font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ac-muted);
}

.article-content__text p {
  margin: 0 0 1.05rem;
}

.article-content__text p:last-child {
  margin-bottom: 0;
}

.article-content__text p:first-child {
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--ac-ink);
}

.article-content__text p.is-emphasis {
  font-size: 1.28rem;
  font-style: italic;
  color: var(--ac-accent);
  border-left: 3px solid var(--ac-accent);
  padding-left: 0.9rem;
  margin: 1.25rem 0;
}

.article-content__text p.is-callout {
  font-family: var(--ac-font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff8ef;
  background: linear-gradient(135deg, #9a3412, #b45309);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.article-content__text strong {
  color: var(--ac-accent);
  font-weight: 800;
}

.article-content__text em {
  color: var(--ac-soft);
  font-style: italic;
  font-size: 1.05em;
}

.article-content__text .article-content__mark {
  background: linear-gradient(transparent 60%, rgba(194, 65, 12, 0.22) 60%);
  font-weight: 700;
  color: var(--ac-ink);
}

.article-content__media {
  flex: 1 1 100%;
  width: 100%;
  max-width: 720px;
  margin: 0.75rem auto 1.75rem;
  order: 0;
  text-align: center;
}

.article-content__media-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 4px solid var(--ac-accent, #9a3412);
  box-shadow: 0 16px 40px rgba(18, 14, 12, 0.45);
  object-fit: contain;
}

.article-content__gallery {
  margin-top: 2.5rem;
  text-align: center;
}

.article-content__gallery-title {
  margin: 0 0 1rem;
  font-family: var(--ac-font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--ac-ink);
}

.article-content__gallery-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.article-content__gallery-img {
  width: 220px;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border: 3px solid #d6c7b4;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(20, 17, 15, 0.14);
}

.article-content__credits {
  margin: 0.75rem 0 0;
  font-family: var(--ac-font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--ac-soft);
}

.article-content__links {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background: var(--ac-bg);
  border-left: 4px solid var(--ac-accent);
  font-family: var(--ac-font-ui);
  font-size: 1.02rem;
}

.article-content__links-title {
  margin: 0 0 0.65rem;
  color: var(--ac-accent);
  font-weight: 800;
  font-size: 1.05rem;
}

.article-content__links ul {
  margin: 0;
  padding-left: 1.2rem;
}

.article-content__links a {
  color: var(--ac-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ac-accent-2);
  text-underline-offset: 3px;
}

.article-content__links a:hover {
  color: var(--ac-accent);
}

@media (max-width: 720px) {
  .article-content__row {
    flex-wrap: wrap;
  }

  .article-content__text {
    flex: 1 1 100%;
    order: 1;
  }

  .article-content__media {
    flex: 1 1 100%;
    width: 100%;
    order: 0;
  }

  .article-content__media-img {
    max-width: 100%;
    margin: 0 auto;
  }

  .article-content__gallery-img {
    width: 160px;
    height: 160px;
  }
}

/* Chiffres = même police que le texte (évite Noto/Apple Color Emoji) */
html,
body,
.tm-page,
.uk-article,
.article-content {
  font-variant-emoji: text;
  font-variant-numeric: lining-nums;
}

/* Emojis en couleur uniquement sur les spans dédiés — pas sur tout le page */
.article-content span[style*="Color Emoji"],
.uk-article span[style*="Color Emoji"],
.tm-page span[style*="Color Emoji"] {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", emoji, sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant-emoji: emoji;
}

/* === /article-content === */

/* === concert-video (BEM) === */
/* Encart vidéo YouTube — articles concerts */

.concert-video {
  --cv-ink: #120e0c;
  --cv-accent: #9a3412;
  --cv-bg: #fff6eb;

  margin: 2rem 0 1.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 12px;
  background: var(--cv-bg);
  border-left: 4px solid var(--cv-accent);
  color: var(--cv-ink);
}

.concert-video__title {
  margin: 0 0 0.9rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cv-accent);
}

.concert-video__player {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: #120e0c;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.concert-video__play {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: #120e0c;
}

.concert-video__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concert-video__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(154, 52, 18, 0.92);
  color: #fff8ef;
  font-size: 1.75rem;
  line-height: 4.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.concert-video__play:hover .concert-video__play-icon,
.concert-video__play:focus-visible .concert-video__play-icon {
  background: #c2410c;
  transform: translate(-50%, -50%) scale(1.06);
}

.concert-video__play:focus-visible {
  outline: 3px solid #fdba74;
  outline-offset: 3px;
}

.concert-video__iframe,
.concert-video iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 280px;
  border: 0;
  background: #000;
}

.concert-video--playing .concert-video__player {
  background: #000;
}

.concert-video__caption {
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #2a241e;
  text-align: center;
}

.concert-video__link {
  color: var(--cv-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c2410c;
  text-underline-offset: 3px;
}

/* === /concert-video === */


.uk-section-secondary {
    color: #fff;
}

/* Accueil : masquer uniquement les secondary sans preserve-color (ex. remerciements).
   Le compte à rebours (.uk-light), Devenir et Univers (.uk-preserve-color) restent visibles. */
.tm-page:has(.section-top-home) .uk-section-secondary:not(.uk-preserve-color) {
    display: none;
}
.secondary-headline{
    color: #fff!important;
}
.tm-page:has(.section-top-home) .uk-section:has(> .uk-container h2.secondary-headline + div a[href="/le-festival"]) {
  padding-bottom: 0.65rem !important;
  margin-bottom: 0 !important;
}
.tm-page:has(.section-top-home) .uk-section:has(> .uk-container h2.secondary-headline + div a[href="/le-festival"]) .uk-margin,
.tm-page:has(.section-top-home) .uk-section:has(> .uk-container h2.secondary-headline + div a[href="/le-festival"]) .uk-margin-top {
  margin-bottom: 0.35rem !important;
}

/* Accueil : réduire l’espace sous le bouton « Le festival » (grilles vides + padding) */
.tm-page:has(.section-top-home) .section-secondary.uk-section-secondary {
  margin-bottom: 0 !important;
}
.tm-page:has(.section-top-home) .section-secondary .uk-section {
  padding-top: 1.25rem !important;
  padding-bottom: 0.15rem !important;
  margin-bottom: 0 !important;
}
.tm-page:has(.section-top-home) .section-secondary [id="page#5"].uk-margin,
.tm-page:has(.section-top-home) .section-secondary a[href="/le-festival"].uk-button {
  margin-bottom: 0 !important;
  margin-top: 0.35rem !important;
}
/* Lignes builder vides (whitespace ≠ :empty) */
.tm-page:has(.section-top-home) .section-secondary .uk-grid.uk-grid-margin:not(:has(.secondary-headline)):not(:has(.uk-button)):not(:has(img)):not(:has(iframe)) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Accueil : moins d’espace au-dessus de « Devenir bénévoles… » */
.tm-page:has(.section-top-home) .uk-section-secondary.uk-preserve-color:has([id="page#6"]) > .uk-section {
  padding-top: 0.85rem !important;
  padding-bottom: 1.5rem !important;
}
.tm-page:has(.section-top-home) .uk-section-secondary.uk-preserve-color:has([id="page#6"]) > .uk-section > .uk-container > .uk-grid:first-child {
  margin-top: 0 !important;
}
.tm-page:has(.section-top-home) .uk-section-secondary.uk-preserve-color:has([id="page#6"]) hr {
  margin-top: 0 !important;
  margin-bottom: 0.65rem !important;
}
.tm-page:has(.section-top-home) .uk-section-secondary.uk-preserve-color:has([id="page#6"]) .secondary-headline {
  margin-top: 0 !important;
}
.texte-intro-page{
   font-size: 24px;
}
.page-titre{
    font-size: 36px;
}
.section-top-home h1 span{
	font-size: 60px;
	display: block;
	margin-top: 30px;
}
.section-top-home-text {
	font-size: 50px;
	line-height: 1;
	text-align: right;
}

/* Accueil hero : texte très lisible sur l’affiche */
.section-top-home h1,
.section-top-home h1 strong,
.section-top-home .section-top-home-text,
.section-top-home .section-top-home-text strong,
.section-top-home .section-top-home-text p,
.section-top-home [id="page#0"],
.section-top-home [id="page#1"],
.section-top-home [id="page#1"] p,
.section-top-home [id="page#1"] strong,
.section-top-home [id="page#2"],
.section-top-home [id="page#2"] p {
	color: #fff8ef !important;
	text-shadow:
		0 0 2px #120e0c,
		0 0 6px rgba(18, 14, 12, 0.95),
		0 2px 4px rgba(18, 14, 12, 0.9),
		0 4px 18px rgba(18, 14, 12, 0.75),
		1px 1px 0 rgba(18, 14, 12, 0.85),
		-1px -1px 0 rgba(18, 14, 12, 0.55),
		1px -1px 0 rgba(18, 14, 12, 0.55),
		-1px 1px 0 rgba(18, 14, 12, 0.55) !important;
	-webkit-text-stroke: 0.4px rgba(18, 14, 12, 0.35);
}

.section-top-home [id="page#0"],
.section-top-home [id="page#1"],
.section-top-home [id="page#2"] {
	padding: 0.35rem 0.55rem;
	border-radius: 10px;
	background: rgba(18, 14, 12, 0.28);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/****Responsive***/
@media (max-width: 960px) {
	.faction-line {
		margin-bottom: 60px;
	}
}
@media (max-width: 640px) {
	h1,
	.uk-h1 {
		font-size: clamp(1.6rem, 8vw, 2.4rem);
		line-height: 1.2;
	}
	h2,
	.uk-h2 {
		font-size: clamp(1.35rem, 6.5vw, 2rem);
	}
	.texte-intro-page {
		font-size: 1.05rem;
	}
	.uk-navbar-container {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.section-top-home .uk-section,
	.section-top-home.uk-section,
	.section-top-home [class*="uk-background"] {
		min-height: 0 !important;
		min-height: 72vh !important;
	}
	.section-top-home .uk-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.section-top-home .uk-grid > * {
		width: 100% !important;
		max-width: 100%;
	}
	.section-top-home h1 {
		text-align: center;
		font-size: clamp(1.5rem, 7.5vw, 2rem);
	}
	.section-top-home h1 span {
		font-size: clamp(1.85rem, 9vw, 2.5rem);
		margin-top: 0.4rem;
	}
	.section-top-home-text {
		font-size: clamp(1.35rem, 6.5vw, 1.85rem) !important;
		text-align: center !important;
		line-height: 1.25;
	}
	.section-top-home .uk-text-lead,
	.section-top-home [style*="text-align: right"],
	.section-top-home [style*="text-align:right"] {
		text-align: center !important;
	}
}

/* === listing-cards (BEM) === */
/* Listing cards — hauteur égale (actualités, concerts, auteurs, etc.) */

.listing-cards,
.tm-page .uk-grid[class*="uk-child-width-1-2"],
.tm-page .uk-grid[class*="uk-child-width-1-3"],
.tm-page .uk-grid[class*="uk-child-width-1-4"] {
  align-items: stretch;
}

.tm-page .uk-grid[class*="uk-child-width-1-2"] > *,
.tm-page .uk-grid[class*="uk-child-width-1-3"] > *,
.tm-page .uk-grid[class*="uk-child-width-1-4"] > * {
  display: flex;
  flex-direction: column;
}

.tm-page .uk-grid[class*="uk-child-width-1-2"] > * > .uk-card,
.tm-page .uk-grid[class*="uk-child-width-1-3"] > * > .uk-card,
.tm-page .uk-grid[class*="uk-child-width-1-4"] > * > .uk-card,
.tm-page .uk-grid[class*="uk-child-width-1-2"] > * > a.uk-card,
.tm-page .uk-grid[class*="uk-child-width-1-3"] > * > a.uk-card,
.tm-page .uk-grid[class*="uk-child-width-1-4"] > * > a.uk-card {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tm-page .uk-card.uk-link-toggle .uk-card-body,
.tm-page .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Images au même format pour aligner les titres */
.tm-page .uk-card.uk-link-toggle .uk-card-media-top,
.tm-page .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-media-top {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex: 0 0 auto;
}

.tm-page .uk-card.uk-link-toggle .uk-card-media-top img,
.tm-page .uk-card.uk-link-toggle .uk-card-media-top picture,
.tm-page .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-media-top img,
.tm-page .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-media-top picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tm-page .uk-card.uk-link-toggle .uk-card-media-top img,
.tm-page .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-media-top img {
  object-fit: cover;
  object-position: center;
}

/* === /listing-cards === */

/* === programme-page === */
.programme-page {
  --programme-accent: #9a3412;
  --programme-accent-hover: #7c2d12;
  --programme-ink: #1c1917;
  --programme-muted: #57534e;
  --programme-line: rgba(28, 25, 23, 0.12);
  --programme-paper: #faf7f2;
  box-sizing: border-box;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem 0 2.5rem;
  color: var(--programme-ink);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

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

.programme-page__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 40rem;
}

.programme-page__lead {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--programme-muted);
}

.programme-page__download {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--programme-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.programme-page__download:hover,
.programme-page__download:focus {
  background: var(--programme-accent-hover);
  color: #fff !important;
}

.programme-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}

.programme-page__qr-slot {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
}

.programme-page__qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  background: var(--programme-paper);
  border: 1px dashed var(--programme-line);
  color: var(--programme-muted);
}

.programme-page__qr-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.programme-page__qr-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.programme-page__qr-link {
  display: block;
  width: min(220px, 70vw);
  margin: 0 auto;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.programme-page__qr-link:hover,
.programme-page__qr-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 14, 12, 0.16);
  outline: none;
}

.programme-page__qr {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 0.4rem;
  border: 1px solid var(--programme-line);
  border-radius: 12px;
}

.programme-page__viewer {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #000;
  background: #000;
  overflow: hidden;
}

.programme-page__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--programme-line);
  background: #fff;
}

.programme-page__nav-btn {
  appearance: none;
  border: 1px solid var(--programme-line);
  background: #fff;
  color: var(--programme-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  line-height: 1.2;
}

.programme-page__nav-btn:hover,
.programme-page__nav-btn:focus {
  border-color: var(--programme-accent);
  color: var(--programme-accent);
}

.programme-page__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--programme-line);
  color: var(--programme-muted);
}

.programme-page__nav-status {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--programme-muted);
  letter-spacing: 0.02em;
}

.programme-page__stage {
  margin: 0;
  padding: 0.85rem;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.programme-page__page {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--programme-line);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  object-fit: contain;
}

@media (max-width: 640px) {
  .programme-page {
    padding-bottom: 1.5rem;
    max-width: 100%;
  }

  .programme-page__qr-slot {
    width: 128px;
    height: 128px;
    flex-basis: 128px;
  }

  .programme-page__nav {
    flex-wrap: wrap;
  }

  .programme-page__nav-status {
    order: -1;
    flex: 1 1 100%;
    margin-bottom: 0.25rem;
  }

  .programme-page__stage {
    padding: 0.4rem;
  }

  .programme-page__page {
    width: 100%;
    max-width: 100%;
  }

  .programme-page__download {
    max-width: 100%;
  }
}

.uk-panel:has(> .programme-page),
.uk-panel:has(.programme-page) {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* === /programme-page === */

/* === mobile-layout === */
.tm-page,
.tm-page .uk-container,
.tm-main {
  max-width: 100%;
}

.tm-page img,
.tm-main img,
.uk-article img,
.uk-panel img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: clip;
  }

  .tm-page,
  .tm-main,
  .uk-article,
  .uk-panel {
    overflow-x: clip;
  }

  .uk-article table,
  .tm-main table,
  .uk-panel table,
  .tm-page article table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .uk-article table tbody,
  .uk-article table tr,
  .tm-main table tbody,
  .tm-main table tr,
  .uk-panel table tbody,
  .uk-panel table tr,
  .tm-page article table tbody,
  .tm-page article table tr {
    display: block !important;
    width: 100% !important;
  }

  .uk-article table td,
  .uk-article table th,
  .tm-main table td,
  .tm-main table th,
  .uk-panel table td,
  .uk-panel table th,
  .tm-page article table td,
  .tm-page article table th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .uk-article table tr td:last-child,
  .tm-main table tr td:last-child {
    margin-top: 1rem;
  }

  .uk-article table img,
  .tm-main table img,
  .uk-panel table img,
  .tm-page article table img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .uk-article img.left,
  .uk-article img.right,
  .tm-main img.left,
  .tm-main img.right,
  .uk-panel img.left,
  .uk-panel img.right {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 1rem !important;
  }

  .uk-article-title,
  .uk-h1.uk-article-title {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .uk-article [style*="max-width:900px"],
  .uk-article [style*="max-width: 900px"],
  .tm-main [style*="max-width:900px"],
  .tm-main [style*="max-width: 900px"] {
    max-width: 100% !important;
  }
}
/* === /mobile-layout === */

/* === footer-wikipedia === */
/* Logo officiel (masque) teinté avec currentColor = or des autres icônes */
footer a.uk-icon-link[href*="wikipedia.org"],
.uk-section-primary a.uk-icon-link[href*="wikipedia.org"] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  vertical-align: middle;
}

footer a.uk-icon-link[href*="wikipedia.org"]::after,
.uk-section-primary a.uk-icon-link[href*="wikipedia.org"]::after {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  background-color: transparent;
  background-image: url("/images/archives-old-edition/Site/logos/wikipedia.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-mask: none;
  mask: none;
  pointer-events: none;
  filter: none;
  opacity: 1;
}

footer a.uk-icon-link[href*="wikipedia.org"] > *,
.uk-section-primary a.uk-icon-link[href*="wikipedia.org"] > * {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}
/* === /footer-wikipedia === */

/* YouTube footer: même teinte que FB / Twitter / Instagram (héritage du footer) */
footer a.uk-icon-link[href*="youtube.com"],
.uk-section-primary a.uk-icon-link[href*="youtube.com"] {
  color: inherit !important;
}

footer a.uk-icon-link[href*="youtube.com"] svg,
.uk-section-primary a.uk-icon-link[href*="youtube.com"] svg,
footer a.uk-icon-link[href*="youtube.com"] svg *,
.uk-section-primary a.uk-icon-link[href*="youtube.com"] svg * {
  color: inherit !important;
  fill: currentColor !important;
}

/* === article-images-dedupe === */
/* Listing (grille) : image extraite YOOtheme seule — masquer imgs du contenu */
.uk-grid[class*="uk-child-width"] .uk-article [property="text"] img,
.uk-grid[class*="uk-child-width"] .uk-article .article-content__media,
.uk-grid[class*="uk-child-width"] .uk-article .article-content__media-img {
  display: none !important;
}

/* Page article seule : masquer l’image auto YOOtheme (garder celle du contenu) */
#tm-main > .uk-container > article.uk-article > [property="image"] {
  display: none !important;
}
/* === /article-images-dedupe === */

/* === listing-article-cards === */
.uk-grid[class*="uk-child-width"] > * > article.uk-article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0 0 0.4rem;
  background: rgba(255, 248, 239, 0.88);
  border: 1px solid #2a241e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article:hover {
  transform: translateY(-1px);
  border-color: #120e0c;
  box-shadow: none;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article > [property="image"] {
  order: 0;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(26, 23, 20, 0.06);
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article > [property="image"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article .uk-article-title {
  order: 1;
  margin: 0.4rem 0.5rem 0.25rem !important;
  padding: 0 0.1rem;
  font-size: clamp(0.88rem, 1.4vw, 1.05rem) !important;
  font-family: "IM Fell English", Georgia, serif !important;
  font-weight: 400 !important;
  line-height: 1.2;
  text-align: center;
  color: #9a3412;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article .uk-article-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"] {
  order: 2;
  margin: 0 0.65rem 0.5rem !important;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #5c5348;
  text-align: center;
  /* Texte teaser entier — retour à la ligne naturel */
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Cards : masquer bio / médias / réseaux (visible sur la page article) */
.uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"] .listing-article__detail,
.uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"] .concert-article__detail {
  display: none !important;
}

/* Actualités & cartes sans teaser structuré : pas de texte sur la card */
.uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"]:not(:has(.listing-article__detail)):not(:has(.concert-article__detail)) {
  display: none !important;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"] p,
.uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"] div:not(.listing-article__detail):not(.concert-article__detail) {
  margin-top: 0;
  margin-bottom: 0.35em;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article .uk-card-badge,
.uk-grid[class*="uk-child-width"] > * > article.uk-article nav,
.uk-grid[class*="uk-child-width"] > * > article.uk-article .uk-grid-margin {
  display: none !important;
}

/* Masquer les petits liens « Actualités » (tags) sur cards et bas d’articles */
.uk-article a[property="keywords"][href*="/tags/tag/"],
.uk-article a[property="keywords"][href*="component/tags"],
.uk-article p:has(> a[property="keywords"]),
.uk-article .uk-text-center:has(> a[property="keywords"]) {
  display: none !important;
}

.uk-grid[class*="uk-child-width"] > * > article.uk-article .listing-article-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}
/* === /listing-article-cards === */

/* === article-reseaux (BEM) === */
.article-reseaux {
  margin-top: 2.5rem;
  padding: 1.125rem 1.25rem;
  border-radius: 12px;
  background: #fff6eb;
  border-left: 4px solid #9a3412;
  font-size: 0.9375rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #120e0c;
  text-align: left;
}

.article-reseaux__title {
  margin: 0 0 0.625rem;
  color: #9a3412;
  font-size: 1rem;
  font-weight: 700;
}

.article-reseaux__note {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2a241e;
}

.article-reseaux__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.article-reseaux__item {
  margin: 0.4rem 0;
  line-height: 1.45;
}

.article-reseaux__emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", emoji, sans-serif;
  font-style: normal;
  font-weight: normal;
  font-variant-emoji: emoji;
}

.article-reseaux__link {
  color: #120e0c;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c2410c;
  text-underline-offset: 2px;
}

.article-reseaux__link:hover,
.article-reseaux__link:focus-visible {
  color: #9a3412;
}

.article-reseaux__extra {
  color: #5c5348;
  font-weight: 500;
}
/* === /article-reseaux === */

/* === goodies-vitrine (BEM) — 3 lignes, rotations, lightbox === */
.goodies-page {
  max-width: 52rem;
  margin: 0 auto;
}

.goodies-page__lede {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.45;
  color: #2a241e;
}

.goodies-vitrine {
  margin: 0;
  padding: 0.35rem 0 0.5rem;
}

.goodies-vitrine__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  margin: 0;
  padding: 0.75rem 0.35rem 0.5rem;
  list-style: none;
}

.goodies-vitrine__item {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.goodies-vitrine__item:nth-child(odd) .goodies-vitrine__frame {
  transform: rotate(-4deg);
}

.goodies-vitrine__item:nth-child(even) .goodies-vitrine__frame {
  transform: rotate(4deg);
}

.goodies-vitrine__zoom {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.goodies-vitrine__zoom:hover .goodies-vitrine__frame,
.goodies-vitrine__zoom:focus-visible .goodies-vitrine__frame {
  transform: rotate(0deg) scale(1.05);
}

.goodies-vitrine__frame {
  display: block;
  width: 7.25rem;
  height: 7.25rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: #fff6eb;
  border: 2px solid #9a3412;
  box-shadow: 0 8px 18px rgba(18, 14, 12, 0.14);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.goodies-vitrine__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goodies-vitrine__caption {
  margin: 0;
  max-width: 9rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: #9a3412;
}

.goodies-vitrine__desc {
  margin: 0.2rem 0 0;
  max-width: 9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #5c5348;
}

/* dernière ligne (items 9–11) centrée */
.goodies-vitrine__item:nth-child(9) {
  grid-column: 2;
}

@media (max-width: 720px) {
  .goodies-vitrine__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goodies-vitrine__item:nth-child(9) {
    grid-column: auto;
  }

  .goodies-vitrine__frame {
    width: 6.4rem;
    height: 6.4rem;
  }
}

@media (max-width: 480px) {
  .goodies-vitrine__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.goodies-lightbox,
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 14, 12, 0.78);
}

.goodies-lightbox[hidden],
.site-lightbox[hidden] {
  display: none !important;
}

.goodies-lightbox__dialog,
.site-lightbox__dialog {
  position: relative;
  max-width: min(920px, 96vw);
  max-height: 92vh;
  margin: 0;
  padding: 0.75rem;
  border: 0;
  border-radius: 14px;
  background: #fff8ef;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.goodies-lightbox__image,
.site-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 4.5rem);
  margin: 0 auto;
  object-fit: contain;
}

.goodies-lightbox__caption,
.site-lightbox__caption {
  margin: 0.65rem 0 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #9a3412;
}

.goodies-lightbox__close,
.site-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #9a3412;
  color: #fff8ef;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
/* === /goodies-vitrine === */

/* === editions-panel / editions-videos (BEM) === */
.editions-panel {
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  color: #120e0c;
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
  text-align: left;
}

.editions-panel__title {
  margin: 0 0 0.5rem;
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #9a3412;
  font-weight: 400;
  text-align: center;
}

.editions-panel__meta {
  margin: 0 0 0.75rem;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #5c5348;
  text-align: center;
}

.editions-panel__text {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.editions-panel__source {
  display: none !important;
}

.editions-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 0.25rem;
  justify-content: center;
}

.editions-videos__item {
  flex: 1 1 420px;
  width: 100%;
  max-width: 520px;
}

.editions-videos__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #120e0c;
  box-shadow: 0 8px 20px rgba(18, 14, 12, 0.2);
}

.editions-videos__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ancien plugin youtube éventuel */
.uk-switcher iframe[src*="youtube"],
.editions-panel ~ p iframe[src*="youtube"],
article iframe[src*="youtube.com/embed"] {
  max-width: 520px !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
}
/* === /editions-panel === */

/* === aventure-vivante (BEM) === */
.aventure-vivante {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  color: #120e0c;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.aventure-vivante__badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.aventure-vivante__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #9a3412;
  font-weight: 800;
}

.aventure-vivante__lede {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
}

.aventure-vivante__panel {
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 246, 235, 0.95), rgba(255, 248, 239, 0.88)),
    #fff8ef;
  border: 1px solid rgba(154, 52, 18, 0.22);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(18, 14, 12, 0.1);
  font-size: 1.05rem;
  line-height: 1.65;
}

.aventure-vivante__panel p {
  margin: 0 0 0.9rem;
}

.aventure-vivante__cta {
  margin: 0 !important;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(154, 52, 18, 0.1);
  color: #9a3412;
  font-weight: 700;
  text-align: center;
}

.aventure-vivante__emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji, sans-serif;
}

.aventure-vivante__edition {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.35rem 1.4rem;
  border-left: 4px solid #9a3412;
  background:
    linear-gradient(160deg, rgba(194, 65, 12, 0.12), transparent 42%),
    #fff6eb;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 28px rgba(18, 14, 12, 0.08);
  text-align: left;
}

.aventure-vivante__edition-badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #9a3412;
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aventure-vivante__edition-title {
  margin: 0 0 0.35rem;
  color: #9a3412;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

.aventure-vivante__edition-lead {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #3f3a34;
}

.aventure-vivante__edition p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.aventure-vivante__link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none !important;
}

.aventure-vivante__link:hover,
.aventure-vivante__link:focus-visible {
  filter: brightness(1.08);
  color: #fff8ef !important;
}
/* === /aventure-vivante === */

/* === devenir-benevole (BEM) === */
.devenir-benevole {
  max-width: 60rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.devenir-benevole__badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.devenir-benevole__title {
  margin: 0 0 0.75rem;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
}

.devenir-benevole__intro,
.devenir-benevole__text {
  margin: 0 auto 1rem;
  max-width: 54rem;
  line-height: 1.6;
  text-align: left;
}

.devenir-benevole__association {
  margin: 1.25rem auto 1.5rem;
  max-width: 54rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  background: #fff6eb;
  border-left: 4px solid #9a3412;
  border-radius: 0 12px 12px 0;
}

.devenir-benevole__association-title {
  margin: 0 0 0.55rem;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
}

.devenir-benevole__association p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.devenir-benevole__association p:last-child {
  margin-bottom: 0;
}

.devenir-benevole__poles {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.45rem;
}

.devenir-benevole__poles-item {
  margin: 0;
}

.devenir-benevole__pole {
  display: block;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.95);
  border: 1px solid rgba(154, 52, 18, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #9a3412 !important;
  text-align: center;
  text-decoration: none !important;
}

.devenir-benevole__pole:hover,
.devenir-benevole__pole:focus-visible {
  background: #9a3412;
  color: #fff8ef !important;
}

.devenir-benevole__poles-detail {
  max-width: 60rem;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
  align-items: stretch;
}
@media (max-width: 960px) {
  .devenir-benevole__poles-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .devenir-benevole__poles-detail {
    grid-template-columns: 1fr;
  }
}

.pole-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid rgba(154, 52, 18, 0.14);
  box-shadow: none;
  height: 100%;
}

.pole-card__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  flex: 0 0 auto;
}

.pole-card__photo {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  background: #f3e7d6;
}

.pole-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.pole-card__title {
  margin: 0 0 0.3rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
}

.pole-card__link {
  color: #9a3412 !important;
  text-decoration: none !important;
}

.pole-card__link:hover,
.pole-card__link:focus-visible {
  text-decoration: underline !important;
}

.pole-card__text {
  margin: 0 0 0.45rem;
  line-height: 1.4;
  color: #3f3a34;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.pole-card__more {
  margin: auto 0 0;
  padding-top: 0.35rem;
}

.pole-card__more-link {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
}

@media (min-width: 720px) {
  .pole-card__photo {
    height: 78px;
  }
}

.devenir-benevole__figure {
  margin: 1rem auto 1.25rem;
  max-width: 280px;
}

.devenir-benevole__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(18, 14, 12, 0.16);
}

.devenir-benevole__cta-wrap {
  margin: 1.25rem 0 0;
}

.devenir-benevole__cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
}

.devenir-benevole__cta:hover,
.devenir-benevole__cta:focus-visible {
  filter: brightness(1.08);
  color: #fff8ef !important;
}
/* === /devenir-benevole === */

/* === plan-festival (BEM) === */
.plan-festival {
  max-width: min(1200px, 100%);
  margin: 0 auto 2rem;
  text-align: center;
}

.plan-festival__badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.plan-festival__title {
  margin: 0 0 0.65rem;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
}

.plan-festival__intro {
  margin: 0 auto 1rem;
  max-width: 40rem;
}

.plan-festival__actions {
  margin: 0 0 1rem;
}

.plan-festival__download {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
}

.plan-festival__viewer {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(154, 52, 18, 0.2);
  background: #fff8ef;
  box-shadow: 0 12px 32px rgba(18, 14, 12, 0.12);
}

.plan-festival__object {
  display: block;
  width: 100%;
  min-height: min(92vh, 1100px);
  height: 92vh;
  border: 0;
}

.plan-festival__fallback {
  margin: 0;
  padding: 1.25rem;
}
/* === /plan-festival === */

/* === contact-page (BEM) === */
.contact-page {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.contact-page__badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-page__title {
  margin: 0 0 0.55rem;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-page__intro {
  margin: 0 0 1.25rem;
  color: #5c5348;
  line-height: 1.55;
}

.pratique-page__contact-cta {
  margin: 1.25rem 0 0;
  text-align: center;
}

.pratique-page__contact-link {
  font-weight: 700;
  color: #9a3412 !important;
}

.pratique-page {
  max-width: 54rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.pratique-page h2,
.pratique-page__title {
  margin: 0 auto 0.85rem;
  text-align: center;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
}

.pratique-page > p {
  margin: 0 auto 1.15rem;
  max-width: 42rem;
  text-align: center;
  color: #5c5348;
  line-height: 1.55;
}
/* === /contact-page === */

/* === se-loger (BEM) === */
.se-loger {
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.se-loger__title {
  margin: 0 0 0.65rem;
  text-align: center;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
}

.se-loger__intro {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  text-align: center;
  line-height: 1.6;
}

.se-loger__section {
  margin: 0 0 1.75rem;
}

.se-loger__section-title {
  margin: 0 0 0.85rem;
  text-align: center;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
}

.se-loger__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem;
  align-items: stretch;
}
.se-loger-card__cat {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
  opacity: 0.85;
}
@media (max-width: 720px) {
  .se-loger__grid {
    grid-template-columns: 1fr !important;
  }
}

.se-loger-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border-radius: 8px;
  background: #fff8ef;
  border: 1px solid rgba(154, 52, 18, 0.14);
  box-shadow: none;
  overflow: hidden;
}

.se-loger-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 84px;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #fff6eb, #f3e7d6);
}

.se-loger-card__image {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 100%;
  max-height: 68px;
  object-fit: contain;
  object-position: center;
}

.se-loger-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.65rem 0.75rem 0.8rem;
}

.se-loger-card__title {
  margin: 0 0 0.4rem;
  min-height: 2.4em;
  color: #9a3412;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  line-height: 1.25;
}

.se-loger-card__text {
  margin: 0 0 0.65rem;
  flex: 1 1 auto;
  color: #3f3a34;
  font-size: 0.88rem;
  line-height: 1.4;
}

.se-loger-card__actions {
  margin: 0;
  margin-top: auto;
}

.se-loger-card__link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
}
/* === /se-loger === */

/* Masquer navigation Précédent / Suivant articles */
.uk-pagination.uk-margin-medium,
nav[aria-label="TPL_YOOTHEME_PAGINATION"] {
  display: none !important;
}

/* === contact-form (BEM) === */

.contact-form {
  --contact-form-ink: #1a1714;
  --contact-form-muted: #5c5348;
  --contact-form-accent: #c1842a;
  --contact-form-line: rgba(26, 23, 20, 0.14);
  --contact-form-bg: rgba(255, 248, 239, 0.92);
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 1.5rem 1.35rem 1.75rem;
  background: var(--contact-form-bg);
  border: 1px solid var(--contact-form-line);
  border-radius: 14px;
  color: var(--contact-form-ink);
}

.contact-form__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

.contact-form__intro {
  margin: 0 0 1.25rem;
  color: var(--contact-form-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.contact-form__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-form__label-req {
  color: var(--contact-form-accent);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--contact-form-line);
  border-radius: 8px;
  background: #fff;
  color: var(--contact-form-ink);
  font: inherit;
}

.contact-form__textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: 2px solid rgba(193, 132, 42, 0.45);
  border-color: var(--contact-form-accent);
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  margin-top: 1.1rem;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c1842a);
  color: #fff8ef;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form__submit:hover {
  filter: brightness(1.05);
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-form__status {
  margin: 1rem 0 0;
  min-height: 0;
  padding: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  border-radius: 10px;
  border: 0 solid transparent;
  transition: padding 0.15s ease, background 0.15s ease;
}

.contact-form__status:not(:empty) {
  padding: 0.85rem 1rem;
  border-width: 1px;
}

.contact-form__status--pending {
  color: #5c5348;
  background: #fff6eb;
  border-color: rgba(193, 132, 42, 0.35);
}

.contact-form__status--ok {
  color: #1f5c2e;
  background: #e8f6ec;
  border-color: rgba(47, 107, 58, 0.4);
}

.contact-form__status--err {
  color: #7a1f0c;
  background: #fdece6;
  border-color: rgba(154, 52, 18, 0.4);
}

.pratique-page__plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem auto 1.75rem;
  max-width: min(900px, 100%);
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem 0;
  overflow: visible;
}

.pratique-page__plan-zoom {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  flex: 1 1 280px;
  max-width: min(420px, 100%);
  cursor: zoom-in;
}

.pratique-page__plan-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(18, 14, 12, 0.18);
}

.pratique-page__plans > p {
  margin: 0;
  flex: 1 1 280px;
  max-width: min(420px, 100%);
}

.contact-form__pole-email {
  display: inline;
  margin-left: 0.35rem;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--contact-form-muted, #5c5348);
  word-break: break-all;
}

.contact-form__pole-email:not([hidden])::before {
  content: "— ";
}

.footer-contact-link,
footer .footer-contact-link,
footer a.footer-contact-link {
  display: inline-flex !important;
  margin-top: 0.5rem;
}

.footer-contact {
  margin: 0.65rem 0 0;
  text-align: center;
}

.footer-contact__link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
  border: 1px solid rgba(255, 248, 239, 0.25);
}

.footer-contact__link:hover,
.footer-contact__link:focus-visible {
  filter: brightness(1.08);
  color: #fff8ef !important;
}

/* Footer — moins d’espace au-dessus du copyright */
footer .footer-contact-wrap.uk-margin-small {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

footer .uk-margin:has([uk-totop]) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  min-height: 0;
}

footer .uk-panel.uk-text-small.uk-text-primary.uk-margin {
  margin-top: 0 !important;
  margin-bottom: 0.2rem !important;
  padding-top: 0 !important;
}

footer .uk-panel.uk-text-small.uk-text-primary.uk-margin > p {
  display: none;
}

footer .uk-panel.uk-text-small.uk-text-primary.uk-margin > h4 {
  margin: 0 !important;
  line-height: 1.35;
}

/* Réduire encore l’espace au-dessus du copyright (grilles / sections footer) */
footer .uk-section,
footer .uk-container > .uk-grid,
footer .tm-grid-expand {
  margin-top: 0 !important;
}

footer .uk-grid.uk-grid-margin,
footer .uk-grid-margin {
  margin-top: 0.35rem !important;
}

footer .uk-section-primary,
footer [class*="uk-section"] {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Plan festival — même style que le programme, plus large (paysage) */
.programme-page.plan-festival-doc {
  max-width: min(1100px, 100%);
}

.programme-page__badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.programme-page__title {
  margin: 0 0 0.65rem;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
}

.devenir-marchand {
  max-width: 60rem;
  margin: 0 auto 2rem;
  width: 100%;
}

.devenir-marchand__title,
.devenir-marchand__badge {
  max-width: none;
}

.commercants-list {
  max-width: 60rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .pratique-page__plan-zoom,
  .pratique-page__plans > p {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.devenir-marchand__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  text-align: center;
}

.devenir-marchand__title {
  margin: 0 0 0.75rem;
  font-family: "IM Fell English", Georgia, serif;
  color: #9a3412;
}

.devenir-marchand__intro {
  margin: 0 auto 1rem;
  max-width: 42rem;
  width: 100%;
}

.devenir-marchand__rules {
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  width: 100%;
  padding: 1rem 1.15rem;
  background: #fff6eb;
  border-left: 4px solid #9a3412;
  border-radius: 0 12px 12px 0;
  line-height: 1.6;
}

.devenir-marchand__rules p {
  margin: 0 0 0.75rem;
}

.devenir-marchand__rules p:last-child {
  margin-bottom: 0;
}

.devenir-marchand__cta-wrap {
  margin: 1.25rem 0 1.75rem;
  text-align: center;
}

a.devenir-marchand__cta,
.devenir-marchand__cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
}

a.devenir-marchand__cta:hover,
a.devenir-marchand__cta:focus-visible,
.devenir-marchand__cta:hover,
.devenir-marchand__cta:focus-visible {
  filter: brightness(1.08);
  color: #fff8ef !important;
}

.commercants-list {
  margin: 1.5rem auto 2rem;
  max-width: 48rem;
  width: 100%;
}

.commercants-list__title {
  margin: 0 0 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  color: #9a3412;
}

.commercants-list__label {
  display: block;
  margin: 0 0 0.35rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #5c5348;
}

.commercants-list__count {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #5c5348;
}

.commercants-list__search-wrap {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 0.85rem;
}

.commercants-list__search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 2.4rem 0.55rem 0.85rem;
  border: 1px solid rgba(154, 52, 18, 0.35);
  border-radius: 10px;
  font-size: 1rem;
  background: #fff8ef;
}

/* Évite le double « × » (natif + bouton custom) */
.commercants-list__search::-webkit-search-cancel-button,
.commercants-list__search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.commercants-list__clear {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a3412;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.commercants-list__clear:hover,
.commercants-list__clear:focus-visible {
  background: rgba(154, 52, 18, 0.12);
  outline: none;
}

.commercants-list__clear[hidden] {
  display: none !important;
}

.commercants-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem 0.75rem;
}

.commercants-list__item {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.65);
  border: 1px solid rgba(154, 52, 18, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

.commercants-list__item[hidden] {
  display: none !important;
}

.commercants-list__link {
  color: #9a3412 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.commercants-list__link:hover,
.commercants-list__link:focus-visible {
  text-decoration: underline !important;
}

.commercants-list__name {
  color: #3f3a34;
  font-weight: 600;
}

.commercants-list__empty {
  margin: 0.5rem 0 0;
  color: #5c5348;
  font-style: italic;
}

.commercants-list__empty[hidden] {
  display: none !important;
}

/* === /contact-form === */


/* === page-title (titres unifiés = police header) === */
.page-title,
.programme-page__title,
.devenir-marchand__title,
.devenir-benevole__title,
.se-loger__title,
.contact-page__title,
.pratique-page h2,
.pratique-page__title,
.festival-page__subtitle,
.univers-page__subtitle,
.partenaires-page__subtitle,
.rue-des-jeux-page__subtitle,
.conferences-page__subtitle,
.festival-section .uk-heading-medium,
.festival-section h1,
.festival-section .uk-h1,
.festival-section .page-header h1,
.festival-section .tm-page-title,
.uk-article > h1.uk-h1,
.uk-article > .uk-h1 {
  margin: 0 auto 1rem;
  text-align: center;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

.contact-page {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.contact-page__intro {
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  text-align: center;
  color: #5c5348;
  line-height: 1.55;
}

.contact-page .contact-form {
  text-align: left;
}

.devenir-marchand {
  max-width: 60rem;
  margin: 0 auto 2rem;
}

.devenir-marchand__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 1rem;
  text-align: center;
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: #9a3412;
}

.devenir-marchand__intro,
.devenir-marchand__rules,
.commercants-list__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.devenir-marchand__intro,
.devenir-marchand__rules {
  max-width: 54rem;
  text-align: left;
}

.devenir-marchand__rules {
  text-align: left;
}

.commercants-list {
  max-width: 60rem;
}

.commercants-list__title {
  text-align: center;
}

.commercants-list__search-wrap,
.commercants-list__label,
.commercants-list__count {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.commercants-list__label,
.commercants-list__count {
  text-align: center;
}

.devenir-benevole {
  max-width: 60rem;
  margin: 0 auto 2rem;
}

.devenir-benevole__intro,
.devenir-benevole__association,
.devenir-benevole__text {
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
}

.devenir-benevole__association-title,
.devenir-benevole__intro {
  text-align: center;
}

.devenir-benevole__figure {
  display: none !important;
}

/* Festival / Univers pages */
.festival-page,
.univers-page {
  max-width: 52rem;
  margin: 0 auto 2rem;
}

.festival-page__lead,
.univers-page__lead {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.festival-page p,
.univers-page p {
  line-height: 1.65;
}

.festival-page__subtitle,
.univers-page__subtitle {
  margin: 1.75rem 0 0.85rem;
}

.festival-page__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.festival-page__photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 14, 12, 0.12);
}

.univers-page__factions {
  text-align: center;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem;
  background: #fff6eb;
  border-radius: 14px;
  border: 1px solid rgba(154, 52, 18, 0.14);
}

.univers-page__factions-img {
  display: block;
  max-width: min(420px, 100%);
  height: auto;
  margin: 0 auto 0.85rem;
}

.univers-page__factions-q {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #9a3412;
}

.univers-page__factions-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #fff8ef !important;
  background: linear-gradient(135deg, #9a3412, #c2410c);
  text-decoration: none !important;
}

.univers-page__theme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.univers-page__theme {
  margin: 0;
  text-align: center;
}

.univers-page__theme-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.univers-page__theme-label {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #9a3412;
}

.festival-section .page-header,
.festival-section .uk-article-title {
  text-align: center;
}


/* Masquer le titre Joomla doublon quand .page-title est présent */
.uk-article:has(.page-title) > .uk-h1,
.uk-article:has(.page-title) > h1.uk-article-title,
.uk-article:has(.festival-page) > .uk-h1,
.uk-article:has(.univers-page) > .uk-h1,
.uk-article:has(.devenir-marchand) > .uk-h1,
.uk-article:has(.devenir-benevole) > .uk-h1,
.uk-article:has(.se-loger) > .uk-h1,
.uk-article:has(.contact-page) > .uk-h1,
.uk-article:has(.programme-page) > .uk-h1 {
  display: none !important;
}

/* Titre pages sections Festival (blog/catégorie) */
.festival-section .tm-page-title,
.festival-section .uk-heading-medium,
.festival-section .page-header h1,
body.festival-section h1.uk-article-title {
  text-align: center;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, serif;
  font-weight: 400;
}


/* === partenaires-page (BEM) === */
.partenaires-page {
  max-width: 56rem;
  margin: 0 auto 2rem;
}
.partenaires-page__lead {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  line-height: 1.55;
  color: #5c5348;
}
.partenaires-page__subtitle {
  margin: 2rem auto 0.75rem;
}
.partenaires-page__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.partenaires-page__item { margin: 0; }
.partenaires-page__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  height: 100%;
  padding: 0.75rem 0.5rem;
  text-decoration: none !important;
  color: inherit;
  background: rgba(255, 248, 239, 0.9);
  border: 1px solid rgba(26, 23, 20, 0.1);
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partenaires-page__link:hover,
.partenaires-page__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(18, 14, 12, 0.12);
}
.partenaires-page__link--nolink { cursor: default; }
.partenaires-page__logo {
  display: block;
  width: 100%;
  max-width: 7.5rem;
  height: 4.5rem;
  object-fit: contain;
}
.partenaires-page__name {
  font-family: "IM Fell English", Georgia, serif;
  font-size: 0.95rem;
  text-align: center;
  color: #9a3412;
  line-height: 1.25;
}
/* === /partenaires-page === */

/* === rue-des-jeux-page / conferences-page / pole-page === */
.rue-des-jeux-page,
.conferences-page,
.pole-page,
.editions-page {
  max-width: 52rem;
  margin: 0 auto 2rem;
}
.rue-des-jeux-page__lead,
.conferences-page__lead {
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.rue-des-jeux-page__text,
.conferences-page__text,
.pole-page__text {
  line-height: 1.65;
  margin: 0 0 0.85rem;
}
.rue-des-jeux-page__list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.rue-des-jeux-page__item { margin: 0.35rem 0; }
.rue-des-jeux-page__closing {
  text-align: center;
  margin: 1.25rem 0 1.75rem;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.15rem;
}
.rue-des-jeux-page__partners-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.85rem;
}
.rue-des-jeux-page__partner {
  margin: 0;
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 248, 239, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(26, 23, 20, 0.1);
}
.rue-des-jeux-page__partner-logo {
  display: block;
  width: 100%;
  max-width: 6.5rem;
  height: 4rem;
  object-fit: contain;
  margin: 0 auto 0.35rem;
}
.rue-des-jeux-page__partner-name {
  font-family: "IM Fell English", Georgia, serif;
  color: #9a3412;
  font-size: 0.95rem;
}
.conferences-page__programme {
  --conf-sky: #0b3d5c;
  --conf-air: #1d6a9a;
  --conf-mist: #d9eef8;
  --conf-cloud: #f4fbff;
  --conf-ink: #102433;
  --conf-muted: #3d5a6c;
  margin: 1.75rem auto 0;
  padding: 1.35rem 1rem 1.15rem;
  text-align: left;
  color: var(--conf-ink);
  background:
    radial-gradient(ellipse 80% 55% at 15% 0%, rgba(125, 211, 252, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(186, 230, 253, 0.55), transparent 50%),
    linear-gradient(180deg, #e8f6fd 0%, var(--conf-cloud) 45%, #fff 100%);
  border: 1px solid rgba(29, 106, 154, 0.22);
  border-top: 5px solid var(--conf-air);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(11, 61, 92, 0.12);
  position: relative;
  overflow: hidden;
}
.conferences-page__programme::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
  pointer-events: none;
}
.conferences-page__subtitle {
  position: relative;
  text-align: center;
  margin: 0 0 0.35rem;
  color: var(--conf-sky);
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}
.conferences-page__subtitle::after {
  content: "Cycle des éléments · L’Air";
  display: block;
  margin-top: 0.35rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--conf-air);
}
.conferences-page__table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(29, 106, 154, 0.15);
}
.conferences-page__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.conferences-page__table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.conferences-page__table th,
.conferences-page__table td {
  border: 1px solid rgba(29, 106, 154, 0.18);
  padding: 0.8rem 0.75rem;
  vertical-align: top;
}
.conferences-page__table thead th {
  background: linear-gradient(135deg, #0b3d5c, #1d6a9a);
  color: #f4fbff;
  text-align: center;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.conferences-page__table tbody th[scope="row"] {
  width: 7.5rem;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #dff3fb, #cfeaf6);
  font-weight: 700;
  color: var(--conf-sky);
}
.conferences-page__table tbody tr:nth-child(even) td {
  background: rgba(217, 238, 248, 0.35);
}
.conferences-page__speaker {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--conf-sky);
  line-height: 1.35;
}
.conferences-page__org {
  font-weight: 500;
  color: var(--conf-muted);
}
.conferences-page__talk {
  margin: 0;
  line-height: 1.45;
  color: #243846;
}
.conferences-page__final-cell {
  text-align: center;
  vertical-align: middle;
  background:
    radial-gradient(circle at 50% 40%, rgba(125, 211, 252, 0.45), transparent 65%),
    #e8f6fd !important;
}
.conferences-page__final {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1.15rem;
  border: 2px dashed rgba(29, 106, 154, 0.55);
  border-radius: 999px;
  color: var(--conf-sky);
  background: rgba(255, 255, 255, 0.75);
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.conferences-page__note {
  position: relative;
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--conf-muted);
  font-style: italic;
}
@media (max-width: 640px) {
  .conferences-page__programme {
    padding: 1rem 0.65rem 0.85rem;
  }
  .conferences-page__table {
    font-size: 0.88rem;
    min-width: 32rem;
  }
}
.pole-page__figure {
  margin: 0 auto 1.25rem;
  max-width: 22rem;
}
.pole-page__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(18, 14, 12, 0.12);
}
.pole-page__text { max-width: 46rem; margin: 0 auto; }

.pole-page__back {
  margin: 0 0 1rem;
  text-align: center;
}

.pole-page__back-link {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 52, 18, 0.35);
  background: #fff8ef;
  color: #9a3412 !important;
  text-decoration: none !important;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1rem;
}

.pole-page__back-link:hover,
.pole-page__back-link:focus-visible {
  background: #9a3412;
  color: #fff8ef !important;
  border-color: #9a3412;
}

/* Univers factions cards */
.univers-page__faction-list {
  list-style: none;
  margin: 0.75rem 0 1.15rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.6rem;
}
.univers-page__faction {
  margin: 0;
  padding: 0.5rem;
  background: rgba(255, 248, 239, 0.88);
  border: 1px solid rgba(26, 23, 20, 0.1);
  border-radius: 8px;
  text-align: center;
  box-shadow: none;
}
.univers-page__faction-img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}
.univers-page__faction-name {
  margin: 0 0 0.25rem;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.05rem;
  color: #9a3412;
  font-weight: 400;
}
.univers-page__faction-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #5c5348;
  text-align: left;
}
.univers-page__text { line-height: 1.65; margin: 0 0 0.75rem; }
.univers-page__courants,
.univers-page__gris { margin-bottom: 1rem; }

/* Cards plus compactes — pages menu Festival */
.festival-section .uk-grid[class*="uk-child-width"] {
  margin-left: -8px !important;
}

.festival-section .uk-grid[class*="uk-child-width"] > * {
  padding-left: 8px !important;
  margin-top: 8px !important;
}

.festival-section .uk-card .uk-card-body,
.festival-section .uk-card.uk-card-body {
  padding: 0.45rem 0.55rem !important;
}

.festival-section .uk-card .uk-card-title,
.festival-section .uk-card .el-title,
.festival-section .uk-article-title {
  font-size: clamp(0.82rem, 1.25vw, 0.98rem) !important;
  line-height: 1.2 !important;
  margin: 0.3rem 0.4rem 0.2rem !important;
}

.festival-section .uk-grid[class*="uk-child-width"] > * > article.uk-article {
  padding: 0 0 0.3rem;
  border-radius: 14px;
}

.festival-section .uk-grid[class*="uk-child-width"] > * > article.uk-article .uk-article-title {
  margin: 0.3rem 0.4rem 0.2rem !important;
  font-size: clamp(0.82rem, 1.25vw, 0.98rem) !important;
}

.festival-section .uk-grid[class*="uk-child-width"] > * > article.uk-article > [property="image"],
.festival-section .uk-card.uk-link-toggle .uk-card-media-top,
.festival-section .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-media-top {
  aspect-ratio: 3 / 2;
}

.festival-section .uk-grid[class*="uk-child-width"] > * > article.uk-article [property="text"] {
  margin: 0 0.45rem 0.35rem !important;
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Cards plus compactes (toutes grilles + uk-card YOOtheme) */
.tm-page .uk-grid[class*="uk-child-width"] {
  margin-left: -12px !important;
}

.tm-page .uk-grid[class*="uk-child-width"] > * {
  padding-left: 12px !important;
  margin-top: 12px !important;
}

.tm-page .uk-card {
  border-radius: 14px !important;
  box-shadow: none !important;
}

.tm-page .uk-card .uk-card-body,
.tm-page .uk-card.uk-card-body {
  padding: 0.65rem 0.75rem !important;
}

.tm-page .uk-card .uk-card-title,
.tm-page .uk-card .el-title {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem) !important;
  line-height: 1.25 !important;
  margin: 0 0 0.35rem !important;
}

.tm-page .uk-card .el-content,
.tm-page .uk-card .uk-panel {
  font-size: 0.9rem;
  line-height: 1.4;
}

.tm-page .uk-card.uk-link-toggle .uk-card-media-top,
.tm-page .uk-grid[class*="uk-child-width"] > * > .uk-card > .uk-card-media-top {
  aspect-ratio: 4 / 3;
}

.festival-section.tm-main .uk-grid,
body.festival-section .uk-grid {
  margin-left: -10px !important;
}
.festival-section .uk-grid > *,
body.festival-section .uk-grid > * {
  padding-left: 10px !important;
}

/* Pole cards on benevole: slightly smaller */
.devenir-benevole .pole-card__photo {
  height: 72px;
  max-height: 72px;
  object-fit: cover;
}

.uk-article:has(.partenaires-page) > .uk-h1,
.uk-article:has(.rue-des-jeux-page) > .uk-h1,
.uk-article:has(.conferences-page) > .uk-h1,
.uk-article:has(.pole-page) > .uk-h1,
.uk-article:has(.editions-page) > .uk-h1 {
  display: none !important;
}


/* Éditions humour + lightbox cursor */
.editions-panel__humour {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(194, 65, 12, 0.08);
  border: 1px dashed rgba(154, 52, 18, 0.35);
  color: #5c5348;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}
.uk-switcher .el-image,
.uk-switcher img.el-image {
  cursor: zoom-in;
}

/* Pole page gallery */
.pole-page__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 auto 1.25rem;
  max-width: 42rem;
}
.pole-page__shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(26, 23, 20, 0.1);
}
.pole-page__shot-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
@media (max-width: 560px) {
  .pole-page__gallery { grid-template-columns: 1fr; }
  .pole-page__shot-img { height: 180px; }
}

/* Univers factions clickable + theme modal */
.univers-page__faction-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}
.univers-page__faction-link:hover .univers-page__faction-name,
.univers-page__faction-link:focus-visible .univers-page__faction-name {
  text-decoration: underline;
}
.univers-page__theme-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
}
.univers-page__theme-btn:hover .univers-page__theme-label,
.univers-page__theme-btn:focus-visible .univers-page__theme-label {
  text-decoration: underline;
}
.theme-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 14, 12, 0.55);
}
.theme-modal[hidden] { display: none !important; }
.theme-modal__dialog {
  position: relative;
  width: min(32rem, 100%);
  max-height: 85vh;
  overflow: auto;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid rgba(154, 52, 18, 0.2);
  box-shadow: 0 18px 48px rgba(18, 14, 12, 0.28);
}
.theme-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  border: 0;
  background: #9a3412;
  color: #fff8ef;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.theme-modal__title {
  margin: 0 0 0.75rem;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #9a3412;
  text-align: center;
}
.theme-modal__text {
  margin: 0;
  line-height: 1.6;
  color: #2a241e;
}

.faction-page {
  max-width: 46rem;
  margin: 0 auto 2rem;
}
.faction-page__figure {
  margin: 0 auto 1rem;
  max-width: 22rem;
}
.faction-page__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #2a241e;
}
.faction-page__text {
  color: #2a241e;
  line-height: 1.65;
}
.faction-page__lead {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #9a3412;
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
}
.faction-page__text p {
  margin: 0 0 0.9rem;
}
.faction-page__traits {
  list-style: none;
  margin: 1.1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(42, 36, 30, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 239, 0.9);
}
.faction-page__trait {
  margin: 0.35rem 0;
  padding-left: 0;
  line-height: 1.45;
}
.faction-page__trait + .faction-page__trait {
  border-top: 1px solid rgba(42, 36, 30, 0.1);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
}
.faction-page__closing {
  margin: 1rem 0 0;
  font-style: italic;
  color: #5c5348;
}
.faction-page__video {
  margin: 1.75rem 0 0.5rem;
}
.faction-page__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #120e0c;
  border-radius: 14px;
  border: 1px solid #2a241e;
}
.faction-page__video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.faction-page__back {
  text-align: center;
  margin-top: 1.5rem;
}
.faction-page__back-link {
  color: #9a3412 !important;
  font-family: "IM Fell English", Georgia, serif;
}

.rue-des-jeux-page__partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}
.rue-des-jeux-page__partner-link:hover .rue-des-jeux-page__partner-name {
  text-decoration: underline;
}

.uk-article:has(.conferences-page) > .uk-h1,
.uk-article:has(.rue-des-jeux-page) > .uk-h1,
.uk-article:has(.faction-page) > .uk-h1 {
  display: none !important;
}

/* Masquer titres Joomla Rue des jeux / Conférences */
body[class*="la-rue-des-jeux"] .uk-article > .uk-h1,
body[class*="les-conferences"] .uk-article > .uk-h1,
.uk-article:has(.rue-des-jeux-page) > h1,
.uk-article:has(.conferences-page) > h1,
.uk-article:has(.rue-des-jeux-page) .uk-article-title,
.uk-article:has(.conferences-page) .uk-article-title {
  display: none !important;
}

.uk-article:has(.conferences-page) h1.uk-text-center,
.uk-article:has(.rue-des-jeux-page) h1.uk-text-center,
.uk-article:has(.conferences-page) > h1,
.uk-article:has(.rue-des-jeux-page) > h1 {
  display: none !important;
}

/* Titres injectés par le builder YOOtheme (article) */
.uk-width-2-3\@m:has(.conferences-page) > h1,
.uk-width-2-3\@m:has(.rue-des-jeux-page) > h1,
.uk-width-1-1:has(.conferences-page) > h1,
.uk-width-1-1:has(.rue-des-jeux-page) > h1,
.uk-container:has(.conferences-page) h1.uk-text-center:first-of-type,
.uk-container:has(.rue-des-jeux-page) h1.uk-text-center:first-of-type {
  display: none !important;
}

/* === editions-passees scroll UI === */
.uk-width-auto\@m:has(.el-nav.uk-tab-left) {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  max-height: min(70vh, 34rem);
  overflow: hidden;
}

.uk-width-auto\@m .el-nav.uk-tab-left {
  display: block;
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #9a3412 #f3e7d6;
}

.uk-width-auto\@m .el-nav.uk-tab-left::-webkit-scrollbar {
  width: 8px;
}

.uk-width-auto\@m .el-nav.uk-tab-left::-webkit-scrollbar-track {
  background: #f3e7d6;
  border-radius: 999px;
}

.uk-width-auto\@m .el-nav.uk-tab-left::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9a3412, #c2410c);
  border-radius: 999px;
}

#js-0.uk-switcher {
  max-height: min(92vh, 58rem);
  min-height: min(70vh, 44rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.55rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #9a3412 #fff6eb;
}

#js-0.uk-switcher::-webkit-scrollbar {
  width: 10px;
}

#js-0.uk-switcher::-webkit-scrollbar-track {
  background: #fff6eb;
  border-radius: 999px;
  border: 1px solid rgba(154, 52, 18, 0.12);
}

#js-0.uk-switcher::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9a3412, #c2410c);
  border-radius: 999px;
  border: 2px solid #fff6eb;
}
/* === /editions-passees scroll UI === */
