/* ============================================
   COMPOSANTS RÉUTILISABLES - JARDIN ÉLECTRONIQUE
   ============================================ */

/* === ACCESSIBILITY ENHANCEMENTS === */
/* Focus visible pour tous les éléments interactifs (WCAG 2.4.7) */
*:focus-visible {
  outline: 2px solid #7CFC00;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Amélioration des focus states pour la navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details:focus-visible summary {
  outline: 2px solid #7CFC00;
  outline-offset: 2px;
}

/* Ne pas supprimer le outline au focus (seulement au click) */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to main content link (pour navigation clavier) */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #7CFC00;
  color: #112217;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 4px 0;
  transition: top 0.2s ease;
}

.skip-to-main:focus {
  top: 0;
  outline: 2px solid #112217;
  outline-offset: 2px;
}

/* Amélioration du contraste pour les textes sur fond sombre (accessibilité) */
.text-white\/50 {
  color: rgba(255, 255, 255, 0.65);
}
.text-white\/60 {
  color: rgba(255, 255, 255, 0.75);
}
.text-white\/70 {
  color: rgba(255, 255, 255, 0.85);
}
.text-white\/80 {
  color: rgba(255, 255, 255, 0.9);
}
.text-white\/90 {
  color: rgba(255, 255, 255, 0.95);
}

/* === SCROLLBAR HIDDEN === */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Panel doux (bloc Story - carte Signature, ref. Enfant_Info event) */
.bg-panelSoft {
  background-color: rgba(0, 0, 0, 0.25);
}

/* === ICONS === */
.icon-spotify {
  fill: currentColor;
}
.icon-soundcloud {
  fill: currentColor;
}

/* === FOND GLOBAL UNI + HALOS === */
body {
  background-color: #020617; /* fond de base très sombre */
  color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, rgba(216, 180, 254, 0.20), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(74, 222, 128, 0.18), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(244, 114, 182, 0.20), transparent 55%);
  filter: blur(18px);
}

/* === HALO AUTOUR DES BLOCS (CARTES) === */
.halo-card {
  position: relative;
  overflow: hidden;
}

.halo-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.45), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.40), transparent 60%);
  opacity: 0.7;
  filter: blur(26px);
  z-index: -1;
}

/* === SECTION CONTAINER === */
.section-container {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .section-container {
    padding: 2rem;
  }
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(10px);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === BOUTON CTA PRIMAIRE === */
.btn-primary {
  display: inline-flex;
  min-width: 84px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  background-color: #7CFC00;
  color: #112217;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.015em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary:hover {
  background-color: #9EFF33;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 25px var(--btn-glow, rgba(124, 252, 0, 0.35));
}

.btn-primary:focus {
  outline: none;
  ring: 2px;
  ring-color: #7CFC00;
  ring-offset: 2px;
  ring-offset-color: #0A0A0A;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.6);
}

@media (min-width: 768px) {
  .btn-primary {
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 1rem;
  }
}

/* === BOUTON CTA SECONDAIRE === */
.btn-secondary {
  display: inline-flex;
  min-width: 84px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  background-color: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.015em;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(55, 65, 81, 0.8);
}

.btn-secondary:focus {
  outline: none;
  ring: 2px;
  ring-color: white;
  ring-offset: 2px;
  ring-offset-color: #0A0A0A;
}

@media (min-width: 768px) {
  .btn-secondary {
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 1rem;
  }
}

/* === CARD ÉVÉNEMENT === */
.card-event {
  position: relative;
  overflow: hidden;
  border-radius: 1.125rem;
  background: #0a0a0a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* État événement terminé (liste / page evenements) */
.card-event--past {
  position: relative;
}
.card-event--past::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  pointer-events: none;
  z-index: 5;
}
.card-event-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-event-cover {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0; /* Empêche la réduction de taille */
}

.card-event-cover img,
.card-event-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Force la taille exacte */
  min-width: 100%;
  min-height: 100%;
}

.card-event-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.card-event-body {
  padding: 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex: 1; /* Prend tout l'espace disponible */
  min-height: 0; /* Permet au flex de fonctionner correctement */
}

@media (min-width: 1024px) {
  .card-event-body {
    padding: 1.125rem;
  }
}

.card-event-title {
  font-weight: 800;
  line-height: 1.15;
  margin: 6px 0 4px;
  font-size: clamp(18px, 2.6vw, 22px);
}

.card-event-meta {
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 10px;
}

.card-event-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-event-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-event-cta {
  display: flex;
  gap: 10px;
  margin-top: auto; /* Pousse les boutons en bas de la carte */
  padding-top: 12px; /* Espacement au-dessus des boutons */
}

.card-event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.card-event-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.card-event-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.card-event-btn--solid {
  color: #fff;
  background: var(--je-accent, #7C3AED);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.card-event-btn--solid:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Grille page « Tous les événements » (page-evenements) */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (min-width: 1280px) {
  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.event-grid .card-event {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-event-excerpt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 0.25rem;
  flex: 1;
  min-height: 0;
}

.card-event-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.card-event-cover--empty .card-event-cover-placeholder {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  user-select: none;
}

/* === CARD ARTISTE === */
.card-artist {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.card-artist:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card-artist-header {
  padding: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.card-artist-name {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: normal;
}

.card-artist-genre {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: normal;
  line-height: normal;
}

.card-artist-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.card-artist-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.card-artist-social a:hover {
  color: #7CFC00;
}

.card-artist-image {
  width: 100%;
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card-artist-spotify {
  margin-top: auto;
}

/* === DROPDOWN MENU === */
.dropdown-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  width: 420px;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  transition: background-color 0.2s ease;
}

.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .mobile-menu {
    display: block;
  }
}

.mobile-menu.hidden {
  display: none;
}

/* === CARET ANIMATION === */
details[open] .caret {
  transform: rotate(180deg);
}

.caret {
  transition: transform 0.3s ease;
}

/* ============================================
   SYSTÈME DE THÈMES POUR PAGES D'ÉVÉNEMENTS
   ============================================ */

/* Variables CSS par défaut (thème vert) */
:root {
  --theme-primary: #7CFC00;
  --theme-primary-dark: #5FC000;
  --theme-primary-light: #9EFF33;
  --theme-accent: #7CFC00;
  --theme-bg-overlay: rgba(0, 0, 0, 0.6);
  --theme-text-primary: #FFFFFF;
  --theme-text-secondary: rgba(255, 255, 255, 0.75);
  --theme-font-display: "Space Grotesk", sans-serif;
  --theme-font-body: "Space Grotesk", sans-serif;
}

/* Application globale de la typo Space Grotesk */
html,
body {
  font-family: var(--theme-font-body, "Space Grotesk"), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Titres + CTA importants en Space Grotesk display */
h1,
h2,
h3,
h4,
.btn-primary,
.je-btn,
.je-title,
.je-card h3,
.je-events h2,
.je-lineup-wrap h2,
.je-lineup-wrap h3,
.je-single-event h1 {
  font-family: var(--theme-font-display, "Space Grotesk"), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   Line-up — onglets tribus (sans bandeau : pilules sur le fond page + filet bas)
   -------------------------------------------------------------------------- */
.je-lineup-tribes {
  overflow: visible;
}

.je-lineup-tribes-tabs {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  /* Zone pour ombres / focus ; overflow-x coupe tout ce qui dépasse sans ça */
  padding: 1rem 0.85rem 1.25rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .je-lineup-tribes-tabs {
    padding: 1.1rem 1rem 1.35rem;
  }
}

.je-lineup-tribe-tab {
  margin: 5px;
  padding: 0.85rem 1.1rem;
  /* 2px fixe : contour actif = bordure (pas box-shadow), évite la coupe par overflow */
  border: 2px solid transparent;
  border-radius: 0.9rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (min-width: 640px) {
  .je-lineup-tribe-tab {
    padding: 1rem 1.4rem;
    border-radius: 1.05rem;
  }
}

.je-lineup-tribe-tab:focus-visible {
  outline: 2px solid var(--je-tab-accent, #7cfc00);
  outline-offset: 2px;
}

.je-lineup-tribe-tab__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .je-lineup-tribe-tab__icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.85rem;
  }
}

.je-lineup-tribe-tab__img {
  width: 2.125rem;
  height: 2.125rem;
  max-width: 2.125rem;
  max-height: 2.125rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .je-lineup-tribe-tab__img {
    width: 2.5rem;
    height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
  }
}

.je-lineup-tribe-tab__label {
  font-family: var(--theme-font-display, "Space Grotesk"), system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .je-lineup-tribe-tab__label {
    font-size: 1.125rem;
  }
}

.je-lineup-tribe-tab.is-active .je-lineup-tribe-tab__label {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.je-lineup-tribe-tab:not(.is-active):hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.je-lineup-tribe-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--je-tab-accent, #7cfc00);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.je-lineup-tribe-tab.is-active .je-lineup-tribe-tab__icon {
  border-color: var(--je-tab-accent, #7cfc00);
  background: rgba(255, 255, 255, 0.12);
  /* pas d’ombre externe : serait coupée comme l’anneau du bouton */
}

/* Thème Violet (Jardin d'hiver) */
.theme-purple {
  --theme-primary: #7C3AED;
  --theme-primary-dark: #5B21B6;
  --theme-primary-light: #9D7AFF;
  --theme-accent: #7C3AED;
  --theme-bg-overlay: rgba(124, 58, 237, 0.15);
}

/* Thème Vert (Eden Open Air) */
.theme-green {
  --theme-primary: #009E3A;
  --theme-primary-dark: #007A2D;
  --theme-primary-light: #00C84A;
  --theme-accent: #009E3A;
  --theme-bg-overlay: rgba(0, 158, 58, 0.15);
}

/* Thème Orange (Festival Plein Air) */
.theme-orange {
  --theme-primary: #F59E0B;
  --theme-primary-dark: #D97706;
  --theme-primary-light: #FBBF24;
  --theme-accent: #F59E0B;
  --theme-bg-overlay: rgba(245, 158, 11, 0.15);
}

/* Thème Rose (Jardin Électronique) */
.theme-pink {
  --theme-primary: #F59EBB;
  --theme-primary-dark: #EC4899;
  --theme-primary-light: #F9A8D4;
  --theme-accent: #F59EBB;
  --theme-bg-overlay: rgba(245, 158, 187, 0.15);
}

/* Thème Bleu */
.theme-blue {
  --theme-primary: #3B82F6;
  --theme-primary-dark: #2563EB;
  --theme-primary-light: #60A5FA;
  --theme-accent: #3B82F6;
  --theme-bg-overlay: rgba(59, 130, 246, 0.15);
}

/* Thème Cyan */
.theme-cyan {
  --theme-primary: #06B6D4;
  --theme-primary-dark: #0891B2;
  --theme-primary-light: #22D3EE;
  --theme-accent: #06B6D4;
  --theme-bg-overlay: rgba(6, 182, 212, 0.15);
}

/* Application des variables de thème */
.theme-purple .btn-primary,
.theme-green .btn-primary,
.theme-orange .btn-primary,
.theme-pink .btn-primary,
.theme-blue .btn-primary,
.theme-cyan .btn-primary {
  background-color: var(--theme-primary);
  color: #112217;
}

.theme-purple .btn-primary:hover,
.theme-green .btn-primary:hover,
.theme-orange .btn-primary:hover,
.theme-pink .btn-primary:hover,
.theme-blue .btn-primary:hover,
.theme-cyan .btn-primary:hover {
  background-color: var(--theme-primary-light);
}

.theme-purple .text-primary,
.theme-green .text-primary,
.theme-orange .text-primary,
.theme-pink .text-primary,
.theme-blue .text-primary,
.theme-cyan .text-primary {
  color: var(--theme-primary);
}

.theme-purple [class*="border-primary"],
.theme-green [class*="border-primary"],
.theme-orange [class*="border-primary"],
.theme-pink [class*="border-primary"],
.theme-blue [class*="border-primary"],
.theme-cyan [class*="border-primary"] {
  border-color: var(--theme-primary);
}

.theme-purple [class*="bg-primary"],
.theme-green [class*="bg-primary"],
.theme-orange [class*="bg-primary"],
.theme-pink [class*="bg-primary"],
.theme-blue [class*="bg-primary"],
.theme-cyan [class*="bg-primary"] {
  background-color: var(--theme-primary);
}

/* Overlay de fond avec couleur de thème */
.theme-purple .bg-overlay,
.theme-green .bg-overlay,
.theme-orange .bg-overlay,
.theme-pink .bg-overlay,
.theme-blue .bg-overlay,
.theme-cyan .bg-overlay {
  background-color: var(--theme-bg-overlay);
}

/* Focus states avec couleur de thème */
.theme-purple *:focus-visible,
.theme-green *:focus-visible,
.theme-orange *:focus-visible,
.theme-pink *:focus-visible,
.theme-blue *:focus-visible,
.theme-cyan *:focus-visible {
  outline-color: var(--theme-primary);
}

/* ============================================
   PAGES EVENT — tout en couleur de l'event (--je-accent)
   .je-single-event est le wrapper des pages /slug, /slug/adn/, etc.
   ============================================ */
.je-single-event {
  --theme-primary: var(--je-accent, #7CFC00);
  --theme-primary-light: var(--je-accent, #7CFC00);
  --theme-primary-dark: var(--je-accent, #7CFC00);
  --theme-accent: var(--je-accent, #7CFC00);
}

.je-single-event .btn-primary {
  background-color: var(--je-accent, #7CFC00);
  color: #112217;
}

.je-single-event .btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--je-accent, #7CFC00) 35%, transparent);
}

.je-single-event .btn-primary:focus,
.je-single-event .btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--je-accent, #7CFC00) 50%, transparent);
}

.je-single-event .btn-secondary:hover {
  border-color: color-mix(in srgb, var(--je-accent, #7CFC00) 40%, transparent);
  color: var(--je-accent, #7CFC00);
}

.je-single-event .btn-secondary:focus-visible {
  box-shadow: 0 0 0 2px var(--je-accent, #7CFC00);
}

.je-single-event .text-primary,
.je-single-event [class*="text-primary"] {
  color: var(--je-accent, #7CFC00);
}

.je-single-event [class*="border-primary"] {
  border-color: var(--je-accent, #7CFC00);
}

.je-single-event [class*="bg-primary"]:not(.btn-primary) {
  background-color: color-mix(in srgb, var(--je-accent, #7CFC00) 15%, transparent);
}

.je-single-event *:focus-visible {
  outline-color: var(--je-accent, #7CFC00);
}

.je-single-event input:focus,
.je-single-event select:focus,
.je-single-event textarea:focus,
.je-single-event [class*="focus:ring-primary"]:focus {
  --tw-ring-color: var(--je-accent, #7CFC00);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--je-accent, #7CFC00) 40%, transparent);
}

.je-single-event a:hover.text-white\/80,
.je-single-event a.hover\:text-primary:hover,
.je-single-event .hover\:text-primary:hover {
  color: var(--je-accent, #7CFC00);
}

.je-single-event .material-symbols-outlined.text-primary {
  color: var(--je-accent, #7CFC00);
}

.je-single-event .prose a {
  color: var(--je-accent, #7CFC00);
}

.je-single-event .section-container.halo-card::before {
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--je-accent, #7CFC00) 12%, transparent), transparent 70%);
}

.je-single-event .card-artist-social a:hover {
  color: var(--je-accent, #7CFC00);
}

/* Billetterie en contexte event : même logique */
.je-billetterie .btn-primary {
  background-color: var(--je-accent, #7CFC00);
}

.je-billetterie .btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--je-accent, #7CFC00) 35%, transparent);
}

.je-billetterie .text-primary,
.je-billetterie [class*="text-primary"] {
  color: var(--je-accent, #7CFC00);
}

.je-billetterie [class*="border-primary"] {
  border-color: var(--je-accent, #7CFC00);
}

.je-billetterie *:focus-visible {
  outline-color: var(--je-accent, #7CFC00);
}

/* Evite le chevauchement du texte de réassurance dans le hero billetterie mobile. */
.je-billetterie .je-event-hero-scroll {
  display: none !important;
}

/* Typographie personnalisée par thème */
.theme-purple {
  --theme-font-display: "Space Grotesk", sans-serif;
}

.theme-green {
  --theme-font-display: "Space Grotesk", sans-serif;
}

.theme-orange {
  --theme-font-display: "Space Grotesk", sans-serif;
}

.theme-pink {
  --theme-font-display: "Space Grotesk", sans-serif;
}

.theme-blue {
  --theme-font-display: "Space Grotesk", sans-serif;
}

.theme-cyan {
  --theme-font-display: "Space Grotesk", sans-serif;
}

/* ============================================
   NAV DROPDOWN (details/summary)
   ============================================ */

/* ============================================
   HOME — VARIANTE CARROUSEL "BOOKING CARDS"
   Inspirée de y-event-booking-card
   ============================================ */

/* Hero layout : texte + affiche alignés proprement sur desktop */
.je-hero-stage{
  position: relative;
  height: 100%;
  max-width: 1240px; /* centre visuellement le groupe texte+affiche */
  margin-left: auto;
  margin-right: auto;
}

/* Mobile : pousser les infos en bas du hero */
@media (max-width: 1023px){
  .je-hero-stage{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 72px;
  }
}

/* Sur mobile, remonter les flèches du hero pour éviter qu'elles chevauchent le texte */
@media (max-width: 767px){
  .je-hero-prev,
  .je-hero-next{
    top: 36% !important;
  }
}

@media (max-width: 400px){
  .je-hero-prev,
  .je-hero-next{
    top: 32% !important;
  }
}

.je-hero-row{
  display: block;
}

@media (min-width: 1024px){
  .je-hero-row{
    display: block; /* l'affiche est positionnée absolument, indépendante du texte */
  }
}

.je-hero-posterWrap{
  z-index: 25;
  display: none; /* cachée sur mobile */
}

@media (min-width: 1024px){
  .je-hero-swiper{
    --je-hero-poster-w: 320px;
    --je-hero-gutter: 64px;
    --je-hero-poster-top: clamp(96px, 12vh, 156px);
    --je-hero-poster-right: clamp(24px, 2.4vw, 72px);
    --je-hero-copy-nudge-y: 124px; /* positif = descend le bloc texte */
  }

  .je-hero-posterWrap{
    display: block;
    position: absolute;
    right: var(--je-hero-poster-right);
    top: var(--je-hero-poster-top);
    bottom: auto;
    transform: none;
    pointer-events: none;
  }
}

@media (min-width: 1280px){
  .je-hero-swiper{
    --je-hero-poster-w: 360px;
    --je-hero-gutter: 72px;
    --je-hero-poster-top: clamp(104px, 12vh, 172px);
    --je-hero-poster-right: clamp(32px, 2.6vw, 96px);
  }

  .je-hero-posterWrap{
    /* variables au-dessus */
  }
}

.je-hero-poster {
  width: var(--je-hero-poster-w, 300px);
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    0 0 0 1px color-mix(in srgb, var(--je-accent, #7CFC00) 18%, transparent);
  transform: translateZ(0);
}

@media (min-width: 1024px){
  .je-hero-copy{
    max-width: 820px;
    margin-left: 0;
    margin-right: 0;
    /* réserve l'espace de l'affiche pour éviter le chevauchement */
    padding-right: calc(var(--je-hero-poster-w) + var(--je-hero-gutter));
    transform: translateY(var(--je-hero-copy-nudge-y, 0px));
  }
}

@media (min-width: 1280px){
  .je-hero-copy{
    padding-right: calc(var(--je-hero-poster-w) + var(--je-hero-gutter));
  }
  .je-hero-swiper{
    --je-hero-copy-nudge-y: 140px;
  }
}

.je-hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Scroll indicator (bas du hero / header visible sur la home) */
.je-scroll-indicator{
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.je-scroll-indicator .scroll-indicator{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  user-select: none;
}

.je-scroll-indicator .scroll-mouse{
  width: 30px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}

.je-scroll-indicator .scroll-wheel{
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  animation: jeScrollWheel 1.2s ease-in-out infinite;
}

.je-scroll-indicator .scroll-text{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

@keyframes jeScrollWheel {
  0%   { transform: translateY(0); opacity: 0.95; }
  70%  { transform: translateY(12px); opacity: 0.25; }
  100% { transform: translateY(0); opacity: 0.95; }
}

@media (min-width: 768px){
  .je-scroll-indicator .scroll-text{ font-size: 13px; }
}


.je-booking .swiper {
  padding: 10px 12px 72px; /* plus d'espace sous les cards (pagination + ombres) */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.je-booking .swiper-slide {
  height: auto;
  display: flex;
}

.je-booking .swiper-slide > * {
  width: 100%;
}

.je-booking-card {
  --je-accent: #7CFC00;
  --je-bg: none;
  position: relative;
  width: 100%;
  /* Plus large, moins "étroit" */
  max-width: 620px;
  /* Hauteur contrôlée */
  height: 430px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  background: #0a0a0a;
  display: grid;
  /* Bandeau un peu moins haut */
  grid-template-rows: 66% 34%;
  transform: translateZ(0);
}

.je-booking-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--je-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}

.je-booking-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
}

.je-booking-top {
  position: relative;
  z-index: 2;
}

.je-booking-info {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-areas:
    "title title title"
    "meta meta meta"
    "actions actions actions";
  grid-template-columns: 1fr auto auto;
  gap: 10px 12px;
  align-items: center;
  padding: 14px 14px 12px;
}

.je-booking-info::before {
  content: "";
  position: absolute;
  top: -36%;
  left: -12%;
  width: 130%;
  height: 220%;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--je-accent) 70%, #000) 0%,
    color-mix(in srgb, var(--je-accent) 25%, #ffe44e) 55%,
    color-mix(in srgb, var(--je-accent) 70%, #000) 100%
  );
  transform: rotate(-8deg);
  border-top-right-radius: 90px;
  opacity: 0.95;
  z-index: -1;
}

.je-booking-title {
  grid-area: title;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  /* Laisse respirer mais évite les très gros débordements */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.je-booking-meta {
  grid-area: meta;
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.je-booking-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.01em;
  margin: 0;
  /* Permet de wrap sur 2 lignes si nécessaire */
  white-space: normal;
}

.je-booking-line .material-symbols-outlined {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}

.je-booking-actions {
  grid-area: actions;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.je-booking-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.92);
  color: #0a0a0a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  flex: 1 1 140px;
}

.je-booking-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.je-booking-action--ghost {
  background: rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.4);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.je-booking .swiper-button-next,
.je-booking .swiper-button-prev {
  color: #fff;
}

.je-booking .swiper-pagination-bullet {
  background: rgba(255,255,255,0.7);
  opacity: 1;
}

.je-booking .swiper-pagination-bullet-active {
  background: #fff;
}

@media (max-width: 420px) {
  .je-booking-info {
    grid-template-areas:
      "title title"
      "meta meta"
      "actions actions";
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .je-booking-card { height: 400px; }
}

@media (min-width: 1024px) {
  .je-booking-card { height: 450px; }
}

details.nav-dropdown {
  position: relative;
}

details.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

details.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

details.nav-dropdown[open] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  animation: je-fadeInDown 0.15s ease-out;
}

@keyframes je-fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================
   LIENS DE NAVIGATION
   ============================================ */

.je-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.22s ease, transform 0.22s ease;
}

/* Underline animée depuis le centre — couleur theme event (--je-nav-accent) ou vert par défaut */
.je-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: var(--je-nav-accent, #7CFC00);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.je-nav-link:hover {
  color: var(--je-nav-accent, #7CFC00);
  transform: translateY(-2px);
}

.je-nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.je-nav-link:focus-visible {
  outline: 2px solid var(--je-nav-accent, #7CFC00);
  outline-offset: 4px;
}

/* Lien actif (page courante) — couleur theme event */
.je-nav-link.is-active {
  color: var(--je-nav-accent, #7CFC00);
}

.je-nav-link.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   MENU MOBILE — LIENS
   ============================================ */

.je-mobile-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.875rem 0.75rem;
  border-radius: 0.75rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}

.je-mobile-nav-link:hover {
  color: var(--je-nav-accent, #fff);
  background-color: rgba(255, 255, 255, 0.06);
}

.je-mobile-nav-link.is-active {
  color: var(--je-nav-accent, #7CFC00);
  background-color: rgba(255, 255, 255, 0.08);
}

.je-mobile-nav-link.is-active:hover {
  color: var(--je-nav-accent, #7CFC00);
}

.je-mobile-nav-link:focus-visible {
  outline: 2px solid var(--je-nav-accent, #7CFC00);
  outline-offset: 2px;
}

/* ============================================
   ACCUEIL — Carrousel « Prochains événements »
   — Mobile : carrousel dans le header, fond = image page d’accueil (ACF), cf. .je-site-header-home
   — Section #prochains-evenements : < md uniquement (texte + ancre)
   ============================================ */

.je-events {
  position: relative;
  width: 100%;
}

/* Pas de cadre / ombre autour des slides — sauf carte accueil header (maquette). */
.je-events .je-card:not(.je-card--home-header),
.je-events .je-card:not(.je-card--home-header):hover {
  box-shadow: none;
}

.je-events .swiper {
  padding: 8px 12px 40px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Maquette : ~60 % visuel + ~40 % bloc sombre */
.je-card {
  --je-card-bg: #0d0d0f;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--je-card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  min-height: 452px;
}

.je-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.je-card-visual {
  position: relative;
  flex: 6 1 0;
  min-height: 238px;
  overflow: hidden;
}

.je-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Fondu : le bas de l’image finit en transparence totale (derniers ~12 % = 0 % d’opacité du masque). */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 32%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.12) 82%,
    transparent 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 32%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.12) 82%,
    transparent 88%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Header accueil : courbe de fondu alignée avec le haut du .je-card-body (même progression que le dégradé du corps). */
.je-card--home-header .je-card-img {
  /* Image pleine plus longtemps : le fondu ne commence que vers le bas (plus « tard »). */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.82) 62%,
    rgba(0, 0, 0, 0.45) 72%,
    rgba(0, 0, 0, 0.16) 84%,
    rgba(0, 0, 0, 0.03) 92%,
    transparent 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.82) 62%,
    rgba(0, 0, 0, 0.45) 72%,
    rgba(0, 0, 0, 0.16) 84%,
    rgba(0, 0, 0, 0.03) 92%,
    transparent 97%,
    transparent 100%
  );
}

.je-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Fondu long et progressif → jointure propre avec .je-card-body (même --je-card-bg) */
  background: linear-gradient(
    180deg,
    rgba(13, 13, 15, 0) 0%,
    rgba(13, 13, 15, 0) 15%,
    rgba(13, 13, 15, 0.06) 38%,
    rgba(13, 13, 15, 0.22) 52%,
    rgba(13, 13, 15, 0.48) 64%,
    rgba(13, 13, 15, 0.78) 76%,
    rgba(13, 13, 15, 0.95) 86%,
    var(--je-card-bg) 94%,
    var(--je-card-bg) 100%
  );
}

.je-card-visual-dates {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.45;
  pointer-events: none;
}

.je-card-visual-dates__main,
.je-card-visual-dates__city {
  display: block;
}

.je-card-visual-dates__city {
  margin-top: 0.15rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

@media (min-width: 640px) {
  .je-card-visual-dates {
    font-size: 0.68rem;
    top: 1.15rem;
  }
}

.je-cover-chip {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

@media (min-width: 640px) {
  .je-cover-chip {
    font-size: 0.65rem;
    padding: 0.55rem 1.1rem;
    bottom: 1.1rem;
  }
}

.je-card-body {
  flex: 4 1 0;
  min-height: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 20px 22px 22px;
  background: var(--je-card-bg);
  border-radius: 0 0 16px 16px;
  /* Évite le fin trait anti-alias entre flex items (photo / infos) */
  margin-top: -1px;
  padding-top: 21px;
}

.je-card .je-title {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.9vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.je-card .je-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 4px;
  flex-grow: 0;
}

.je-card .je-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.je-card .je-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.je-card .je-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.je-card .je-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.je-card .je-btn--solid {
  color: #fff;
  background: var(--je-accent, #e684a1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 22px var(--je-accent-glow, rgba(230, 132, 161, 0.45)),
    0 12px 36px var(--je-accent-glow, rgba(230, 132, 161, 0.35));
}

.je-card .je-btn--solid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 28px var(--je-accent-glow, rgba(230, 132, 161, 0.5)),
    0 16px 44px var(--je-accent-glow, rgba(230, 132, 161, 0.4));
}

.je-events .swiper-button-next,
.je-events .swiper-button-prev {
  color: #fff;
  z-index: 3;
}

.je-events .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.je-events .swiper-pagination-bullet-active {
  background: #fff;
}

.je-events .swiper-slide {
  height: auto;
  display: flex;
}

.je-events .swiper-slide > * {
  width: 100%;
}

/* Mobile / tablette : moins de vide sous les CTA et en bas de carte (flex + min-height) */
@media (max-width: 1023px) {
  .je-card {
    min-height: 372px;
  }

  .je-card-body {
    flex: 0 1 auto;
    padding: 17px 18px 12px;
  }

  .je-card .je-cta {
    margin-top: 12px;
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .je-card {
    min-height: 492px;
  }

  .je-card-body {
    padding: 23px 24px 26px;
  }
}

/* Accueil mobile : bloc dans <header> — maquette cartes « Prochains événements » */
.je-site-header-home {
  /* Au moins 1 viewport entier ; flex pour centrer le carrousel au milieu de la zone visible */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.je-site-header-home__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
  /* Réserve bas : pagination du swiper + icône scroll */
  padding-bottom: clamp(4.75rem, 14vh, 6.5rem);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Pas de filter sur le conteneur : filter + <video> sous WebKit = vidéo invisible / noire.
   Le flou est sur .je-site-header-home__bg-layer (image) uniquement. */

/* Calque image uniquement (flou + zoom) ; la vidéo (.je-site-header-home__bg-video) reste sans filter. */
.je-site-header-home__bg-layer {
  transform: scale(1.02);
  transform-origin: center center;
  filter: blur(4px);
  -webkit-filter: blur(4px);
}

.je-site-header-home__bg-video {
  transform: scale(1.02);
  transform-origin: center center;
}

.je-prochains-evenements-bg__img {
  transform: scale(1.03);
  transform-origin: center center;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  transition: filter 0.5s ease;
}

.je-site-header-home__scrim {
  /* Au-dessus de la vidéo fond mobile : un peu plus clair pour laisser passer l’image */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.22) 32%,
    rgba(7, 7, 12, 0.52) 68%,
    rgba(7, 7, 12, 0.72) 100%
  );
}

.je-site-header-home__scroll {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.je-site-header-home__scroll:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 999px;
}

.je-site-header-home__title {
  line-height: 1.2;
}

/* Carrousel header : bord à bord (seuls les safe-area iPhone restent gérés dans le HTML) */
/* Titre au-dessus du carrousel : plus grand, remonté, gauche alignée sur la vignette (Swiper centré, voir slidesPerView ~1.22 dans front-page.php) */
.je-site-header-home .je-events--header .je-events-header-kicker {
  margin-top: -1.75rem;
  margin-bottom: 1rem;
  padding-right: 1rem;
  padding-left: calc((100% - (100% / 1.22)) / 2);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

@media (min-width: 400px) {
  .je-site-header-home .je-events--header .je-events-header-kicker {
    font-size: 1.125rem;
  }
}

.je-site-header-home .je-events--header > .px-0 {
  padding-left: 0;
  padding-right: 0;
}

.je-site-header-home .je-events--header .swiper {
  position: relative;
  padding: 2px 0 32px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: none;
  mask-image: none;
}

.je-site-header-home .je-events--header .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.je-site-header-home .je-events--header .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background 0.2s ease;
}

.je-site-header-home .je-events--header .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 3px;
  background: #fff;
}

.je-site-header-home .je-events--header .swiper-button-next,
.je-site-header-home .je-events--header .swiper-button-prev {
  display: none !important;
}

/* Carte type maquette WhatsApp (≈ 60 % visuel + pilule glass + bloc titre / CTAs) */
.je-card.je-card--home-header {
  /* Évite d’étirer la carte à la hauteur du slide Swiper : réduit le vide sous les CTA */
  height: auto;
  align-self: flex-start;
}

.je-card--home-header {
  --je-card-bg: #0a0a0d;
  /* Même teinte que le bas du scrim et le corps (jonction image → infos). */
  --je-card-header-content-bg: #0a0a0d;
  /* Pilule flottante : depuis le bas de la carte (DOM après le body pour passer au-dessus du fondu). */
  --je-home-chip-bottom: clamp(11.75rem, 38%, 15rem);
  /* min-height seulement ≥ lg : sur mobile il forçait une bande vide sous les CTA */
  min-height: 0;
  border-radius: 16px;
  /* Carte opaque, on garde le fondu via le gradient du body/scrim. */
  background: var(--je-card-bg);
  border: none;
  outline: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 1024px) {
  .je-card--home-header {
    min-height: 28.5rem;
    --je-home-chip-bottom: clamp(13.4rem, 30%, 17rem);
  }

  .je-card--home-header .je-card-visual {
    flex: 0 0 58%;
    aspect-ratio: unset;
    max-height: min(52vh, 308px);
  }

  /* Le vide du min-height se place entre la meta et les CTA, pas sous les boutons */
  .je-card--home-header .je-card-body {
    flex: 1 1 auto;
  }

  .je-card--home-header .je-cta {
    margin-top: auto;
  }
}

.je-card--home-header:hover {
  transform: translateY(-2px);
  border: none;
  outline: none;
  box-shadow: none;
}

/* Forcer l’absence de cadre (ombre Swiper / focus / héritage .je-card). */
.je-site-header-home .je-events--header .swiper-slide {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

.je-site-header-home .je-events--header .je-card.je-card--home-header,
.je-site-header-home .je-events--header .je-card.je-card--home-header:hover,
.je-site-header-home .je-events--header .je-card.je-card--home-header:focus-within {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hauteur du visuel pilotée par min/max + ratio, pas par % du min-height de la carte (évite corps surdimensionné) */
.je-card--home-header .je-card-visual {
  flex: 0 0 auto;
  width: 100%;
  min-height: 14.75rem;
  max-height: min(52vh, 308px);
  aspect-ratio: 16 / 10;
  z-index: 1;
}

/* Lisibilité légère en haut / milieu uniquement : pas d’ombre sur le bas du visuel (image masquée + fond derrière). */
.je-card--home-header .je-card-scrim {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 13, 0) 0%,
    rgba(10, 10, 13, 0) 6%,
    rgba(10, 10, 13, 0.08) 26%,
    rgba(10, 10, 13, 0.1) 38%,
    rgba(10, 10, 13, 0.05) 48%,
    rgba(10, 10, 13, 0) 58%,
    rgba(10, 10, 13, 0) 100%
  );
}

.je-card--home-header .je-card-visual-dates {
  top: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

/* Enfant direct après .je-card-body : au-dessus du fondu (body en z-index 2). */
.je-card--home-header > .je-cover-chip--home-floating {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--je-home-chip-bottom);
  top: auto;
  z-index: 5; /* au-dessus du corps (z-index 2) : pilule hors du visuel */
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  backdrop-filter: blur(8px) saturate(1.06);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .je-card--home-header {
    --je-home-chip-bottom: clamp(9.65rem, 31vw, 12.65rem);
  }

  .je-site-header-home .je-card--home-header > .je-cover-chip--home-floating,
  .je-site-header-home .je-cover-chip--home-floating {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(8px) saturate(1.06) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.06) !important;
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;
  }
}

/* Logo « JARDIN électronique » centré sur le visuel */
.je-card-brand-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2.25rem 1rem 3.25rem;
  text-align: center;
  pointer-events: none;
}

.je-card-brand-mark__j {
  display: block;
  font-size: clamp(1.45rem, 6.5vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.25);
}

.je-card-brand-mark__e {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(0.8rem, 3.8vw, 1rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* Petits repères décoratifs dans les coins du visuel */
.je-card-visual-ornaments {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.je-card-visual-ornaments__d {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(167, 139, 250, 0.9);
  box-shadow:
    0 0 14px rgba(139, 92, 246, 0.7),
    0 0 28px rgba(124, 58, 237, 0.4);
  transform: rotate(45deg);
}

.je-card-visual-ornaments__d--tl {
  top: 12px;
  left: 12px;
}

.je-card-visual-ornaments__d--tr {
  top: 12px;
  right: 12px;
}

.je-card-visual-ornaments__d--bl {
  bottom: 52px;
  left: 12px;
}

.je-card-visual-ornaments__d--br {
  bottom: 52px;
  right: 12px;
}

/* flex-grow: 0 — sinon le bloc sombre mange toute la hauteur restante (min-height carte + 58 % visuel)
   et le vide apparaît SOUS les CTA avec le même fond #0a0a0d */
.je-card--home-header .je-card-body {
  flex: 0 1 auto;
  min-height: 0;
  position: relative;
  z-index: 2;
  border-radius: 0 0 16px 16px;
  margin-top: calc(-3.35rem - 1px);
  padding: calc(3.35rem + 1rem) 1.35rem 1.5rem;
  /* Même « pente » que le masque du bas de l’image : montée progressive vers --je-card-header-content-bg. */
  background: linear-gradient(
    180deg,
    rgba(10, 10, 13, 0) 0,
    rgba(10, 10, 13, 0) 0.35rem,
    rgba(10, 10, 13, 0.1) 1rem,
    rgba(10, 10, 13, 0.28) 1.55rem,
    rgba(10, 10, 13, 0.48) 2rem,
    rgba(10, 10, 13, 0.64) 2.4rem,
    var(--je-card-header-content-bg) 2.9rem,
    var(--je-card-header-content-bg) 100%
  );
}

.je-card--home-header .je-title {
  font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.je-card--home-header .je-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.je-card--home-header .je-cta {
  padding-top: 1.1rem;
  gap: 10px;
}

.je-card--home-header .je-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: 12px;
}

.je-card--home-header .je-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.je-card--home-header .je-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.je-card--home-header .je-btn--solid {
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 6px 24px var(--je-accent-glow, rgba(230, 132, 161, 0.5)),
    0 14px 40px var(--je-accent-glow, rgba(230, 132, 161, 0.35));
}

@media (max-width: 1023px) {
  .je-card--home-header .je-card-body {
    margin-top: calc(-3.1rem - 1px);
    padding: calc(3.1rem + 0.9rem) 1.15rem 1.25rem;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 13, 0) 0,
      rgba(10, 10, 13, 0) 0.3rem,
      rgba(10, 10, 13, 0.1) 0.95rem,
      rgba(10, 10, 13, 0.28) 1.45rem,
      rgba(10, 10, 13, 0.48) 1.85rem,
      rgba(10, 10, 13, 0.64) 2.2rem,
      var(--je-card-header-content-bg) 2.65rem,
      var(--je-card-header-content-bg) 100%
    );
  }

  .je-card--home-header .je-cta {
    padding-top: 0.65rem;
  }

  .je-site-header-home .je-events--header .swiper-slide {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Headers : un seul bandeau selon la largeur (évite doublon mobile + desktop)
   Si les classes Tailwind hidden/md:block ne sont pas toutes générées par le CDN,
   cette règle garantit qu’un seul #sticky-header OU #je-mobile-header est visible.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  #sticky-header {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (min-width: 768px) {
  #je-mobile-header {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
