/* ==========================================================
   RIVE JAZZY app.css (Optimisé)
   ========================================================== */

/* ==========================================================
   1) THÈME & VARIABLES
   ========================================================== */
:root {
  /* --- PALETTE --- */
  --brand: #2b70b5;
  --brand-accent: #3279a9;
  --brand-dark: #1a4a7a;
  --gold: #f7ae46;

  --text: #191a22;
  --text-light: #e8e9f3;
  --text-muted: #6c757d;

  /* --- ÉTATS --- */ 
  --ok: #198754;
  --warn: #e7a100;
  --danger: #c7363e;

  /* --- BACKGROUNDS --- */
  --bg-body: #f4f8fb;
  --bg-paper: #fff;
  --bg-footer: #fff;
  --bg-overlay: rgba(15, 17, 48, 0.85);

  /* --- UI --- */
  --grad-brand: linear-gradient(0deg, rgba(61, 124, 167, 1) 0%, rgba(72, 130, 160, 1) 35%, rgba(42, 118, 180, 1) 100%);
  --grad-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);

  --border-light: rgba(0, 0, 0, 0.08);
  --border-radius-base: 12px;

  /* --- TRANSITIONS & OMBRES --- */
  --trans-fast: 0.2s ease;
  --trans-base: 0.3s ease;
  --trans-slow: 0.5s ease;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-base: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);

  /* --- NAV --- */
  --nav-icon-size: 44px;
  --nav-icon-color: #fff;
  --nav-icon-hover-bg: rgba(255, 255, 255, 0.15);
  --topbar-h: 80px;

  /* --- ADMIN --- */
  --rj-primary: #3d7ca7;
  --rj-bg-subtle: #f0f7fa;
  --rj-card-hover: #eaf4f9;

  color-scheme: light dark;
}

/* Dark mode tokens */
[data-bs-theme="dark"] {
  --brand: #6baaf7;
  --brand-accent: #5aa8cf;
  --text: #e8e9f3;

  --bg-body: #0b1120;
  --bg-paper: #162035;
  --bg-footer: #212529;

  --gold: #ebdca0;
  --border-light: rgba(255, 255, 255, 0.12);

  --rj-bg-subtle: #111826;
  --rj-card-hover: rgba(255, 255, 255, 0.05);

  /* Bootstrap tokens */
  --bs-body-bg: var(--bg-body);
  --bs-body-color: var(--text);
  --bs-card-bg: var(--bg-paper);
  --bs-border-color: var(--border-light);
  --bs-link-color: #a3cfff;
  --bs-link-hover-color: var(--gold);
  --bs-emphasis-color: var(--gold);
  --bs-secondary-color: var(--text-muted);
  --rj-bg-subtle: rgba(255, 255, 255, 0.05);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   2) RESET, BASE & TYPO
   ========================================================== */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-body);
  color: var(--text);
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  line-height: 1.5;
}

/* Typo */
h1 {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}
a:hover { color: var(--gold); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Layout padding lié au header */
body { padding-top: var(--topbar-h); }
body:has(.topbar--overlay) { padding-top: 0; }

/* ==========================================================
   3) UTILITAIRES GÉNÉRAUX
   ========================================================== */
.container { max-width: 1100px; margin: 32px auto; padding: 0 16px; }

.font-comfortaa { font-family: 'Comfortaa', sans-serif; }
.ls-1, .text-ls-1 { letter-spacing: 1px; }
.text-ls-2 { letter-spacing: 2px; }

.text-xs { font-size: 0.75rem; }
.icon-sm { font-size: 0.8em; }
.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }

body.no-scroll { overflow: hidden !important; height: 100vh; touch-action: none; }
.backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.z-over { z-index: 5 !important; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1) !important; }

/* Délais d'animation regroupés */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Ligne de séparation conservée selon la dernière occurrence */
.separator-line {
  width: 30px;
  height: 2px;
  margin-top: 10px;
}

/* ==========================================================
   4) ADMIN — HEADER & FIL D’ARIANE
   ========================================================== */
.admin-page-header {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border-light);
}
[data-bs-theme="dark"] .admin-page-header {
  background: var(--bg-body);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb-truncate {
  max-width: 150px;
  display: inline-block;
  vertical-align: bottom;
}

/* ==========================================================
   5) COMPOSANTS PARTAGÉS (CARDS, IMAGES, HOVERS)
   ========================================================== */
.concert-card, .scene-card, .place-card, .venue-next-card,
.musician-card-item, .press-card, .download-card,
.transport-card, .contact-card, .bento-card, .weather-card {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-base);
  color: var(--text);
  overflow: hidden;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

[data-bs-theme="dark"] .concert-card,
[data-bs-theme="dark"] .musician-card-item {
  box-shadow: var(--shadow-sm);
}

.concert-card:hover, .scene-card:hover, .place-card:hover,
.venue-next-card:hover, .musician-card-item:hover, .press-card:hover,
.transport-card:hover, .download-card:hover, .bento-card:hover, .weather-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

/* Images (zoom) */
.concert-thumb, .scene-img, .place-img, .venue-next-img, .press-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.press-img {
  display: block;
  position: static;
  height: 220px;
}

.concert-card:hover .concert-thumb,
.scene-card:hover .scene-img,
.place-card:hover .place-img,
.venue-next-card:hover .venue-next-img,
.press-card:hover .press-img {
  transform: scale(1.05);
}

/* Wrappers */
.concert-thumb-wrapper, .scene-img-wrapper, .place-img-wrapper, .venue-next-img-wrapper, .press-img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-dark);
  width: 100%;
}
.concert-thumb-wrapper { aspect-ratio: 3 / 2; }
.scene-img-wrapper, .place-img-wrapper { padding-top: 60%; }
.venue-next-img-wrapper { height: 180px; }
.press-img-wrapper { min-height: 150px; cursor: zoom-in; }

/* Titres */
.card-title, .scene-title, .place-title, .musician-title, .venue-next-title {
  color: var(--brand);
  font-weight: 700;
  transition: color var(--trans-fast);
}
[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .scene-title,
[data-bs-theme="dark"] .place-title,
[data-bs-theme="dark"] .musician-title,
[data-bs-theme="dark"] .venue-next-title { color: #fff !important; }

.musician-card-item:hover .musician-title { color: var(--gold); }
.place-title-card {
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 0.5px;
}

/* Badges */
.concert-badge, .scene-badge, .place-badge, .venue-dist-badge {
  position: absolute;
  z-index: 2;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 5px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.concert-badge { bottom: 12px; left: 12px; background-color: #e8e9f3; color: var(--brand); }
.scene-badge, .venue-dist-badge { top: 12px; right: 12px; background: var(--bg-overlay); backdrop-filter: blur(4px); color: #fff; }
.place-badge { top: 12px; left: 12px; background: rgba(255, 255, 255, 0.9); color: var(--brand); }

[data-bs-theme="dark"] .concert-badge {
  background-color: var(--brand);
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* Variante card concert style (musicians) */
.musician-card-concert-style {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.musician-card-concert-style:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.musician-card-concert-style .card-img-top {
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.musician-card-concert-style:hover .card-img-top { transform: scale(1.05); }

/* ==========================================================
   6) TOPBAR (HEADER)
   ========================================================== */
.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 2200;
  background: #fff;
  color: var(--brand-accent);
  transition: top 0.3s ease-in-out, transform var(--trans-base), background-color var(--trans-base), box-shadow var(--trans-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  will-change: transform;
}

.topbar__rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: var(--topbar-h);
  padding: 0 20px;
  position: relative;
  z-index: 2150;
}

.topbar__group { display: flex; align-items: center; gap: 1rem; flex: 1; }
.topbar__group.left { justify-content: flex-start; }
.topbar__group.right { justify-content: flex-end; }

.topbar--hidden { transform: translateY(-100%); pointer-events: none; }


/* État: drawer ouvert  */
.topbar.has-open-drawer,
.topbar.topbar--compact.has-open-drawer,
.topbar.topbar--overlay.has-open-drawer {
  background: transparent !important; /* <--- MAGIE: La barre devient transparente ! */
  border-bottom: none !important;     /* On enlève la bordure éventuelle */
  color: #fff !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
  pointer-events: auto;
  backdrop-filter: none !important;
}

.topbar.has-open-drawer .icon-btn,
.topbar.topbar--compact.has-open-drawer .icon-btn,
.topbar.topbar--overlay.has-open-drawer .icon-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: transparent !important;
}

.topbar.has-open-drawer .brand,
.topbar.topbar--compact.has-open-drawer .brand,
.topbar.topbar--overlay.has-open-drawer .brand {
  color: #fff !important;
}

.topbar.has-open-drawer .topbar__rail { min-height: var(--topbar-h) !important; }

/* Compact */
.topbar--compact {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-accent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  --nav-icon-color: var(--brand-accent);
}
[data-bs-theme="dark"] .topbar--compact {
  background: rgba(21, 27, 46, 0.95);
  color: #fff;
  --nav-icon-color: #fff;
}
.topbar--compact .topbar__rail { min-height: 60px; }
.topbar--compact .brand .logo-svg { width: 140px; }

/* Overlay */
.topbar--overlay {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  --nav-icon-color: #fff;
  color: #fff !important; /* <--- C'est cette ligne qui rend le logo blanc ! */
}


.topbar--overlay.topbar--compact {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  --nav-icon-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
.topbar--overlay.topbar--compact .icon-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: transparent;
}
.topbar--overlay.topbar--compact .icon-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #fff !important;
}
.topbar--overlay.topbar--compact .brand { color: #fff !important; }

/* Logo & boutons */
.brand { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.brand .logo-svg { width: 150px; height: auto; transition: width 0.3s ease; fill: currentColor; }

.icon-btn {
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--nav-icon-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.icon-btn:hover { background: #fff; color: var(--brand); border-color: #fff; transform: scale(1.05); }

.topbar--compact .icon-btn { border-color: rgba(57, 43, 88, 0.2); color: var(--brand); }
.topbar--compact .icon-btn:hover { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .topbar--compact .icon-btn { border-color: rgba(255, 255, 255, 0.3); color: #fff; }

.rj-avatar-text { font-weight: 700; font-size: 14px; text-transform: uppercase; }

/* ==========================================================
   7) DRAWERS, MENUS & LANG
   ========================================================== */
.drawer {
  /* 1. On intègre ton image avec un léger voile sombre (gradient) pour que le texte blanc reste bien lisible */
  background-color: #3b4e76; /* Couleur de secours */
  background-image: 
    linear-gradient(rgba(30, 40, 70, 0.3), rgba(70, 50, 100, 0.5)), 
    url('img/hero/hero_nav.webp');
  background-size: cover;
  background-position: center bottom; /* "bottom" permet de toujours bien voir les fonds marins en bas */
  
  /* 2. On fait prendre tout l'écran au menu (pour passer sous la Topbar) */
  position: fixed;
  top: 0; /* Au lieu de var(--topbar-h) */
  left: 0; right: 0;
  height: 100vh; /* Au lieu de calc(...) */
  padding-top: var(--topbar-h); /* On ajoute du padding pour que le texte du menu ne se cogne pas au logo */
  
  /* Reste des paramètres originaux */
  color: #fff;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2100;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  transition: opacity var(--trans-base), top 0.3s ease-in-out, visibility 0s linear 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
  overflow-y: auto;
  transition: opacity var(--trans-base), visibility 0s;
}



.lang-bubble i {
    font-size: 1.2rem;
}

/* Optionnel : un petit badge pour l'avatar */
.rj-avatar-text {
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Comfortaa', sans-serif;
}

/* ==========================================================
   MENU PRINCIPAL (1 Colonne centré sur Mobile / Grille sur PC)
   ========================================================== */
.menu-sections {
  max-width: 1400px;
  margin: 0 auto;
  /* Sur mobile : 1 seule colonne, texte centré */
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px; /* Espace réduit entre les gros blocs (rubriques) */
  padding: 20px 20px 100px 20px;
  text-align: center;
}

/* Affichage Tablette (optionnel, on passe en 2 colonnes alignées à gauche) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .menu-sections {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    gap: 30px;
  }
  .menu-sections:not(.has-account) .menu-group:nth-child(3) {
    grid-column: span 2;
  }
}

/* Affichage Bureau (Desktop) */
@media (min-width: 992px) {
  .menu-sections {
    grid-template-columns: repeat(3, 1fr);
    padding: 60px 40px 80px;
    gap: 40px;
    text-align: left;
  }
  .menu-sections.has-account { 
    grid-template-columns: repeat(4, 1fr); 
  }
}

/* --- Titres des rubriques --- */
.menu-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px; /* Espace réduit sous le titre */
  border-bottom: 1px solid rgba(242, 216, 142, 0.3);
  display: inline-block; /* La bordure prend juste la largeur du texte au centre */
  padding-bottom: 4px;
}

@media (min-width: 576px) { 
  .menu-title { 
    display: block; /* Sur grand écran, la ligne prend toute la largeur de la colonne */
  } 
}

@media (min-width: 992px) { 
  .menu-title { 
    font-size: 14px; 
    letter-spacing: 2px;
    margin-bottom: 24px; 
  } 
}

/* --- Liens --- */
.menu-links { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.menu-links li { 
  margin-bottom: 0px; /* L'espace entre les liens est géré par le padding du lien (pour le tactile) */
}

.menu-links a {
  font-size: 16px; /* Taille de police agréable sur mobile */
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  padding: 6px 15px; /* Rapproche visuellement les liens tout en gardant une zone cliquable */
  transition: transform var(--trans-fast), color var(--trans-fast);
}

.menu-links a:hover { 
  color: var(--gold); 
}

/* Animation au survol (différente selon si c'est centré ou aligné à gauche) */
@media (max-width: 575.98px) {
  .menu-links a:hover { 
    transform: translateY(-2px); /* Sur mobile (centré), on soulève légèrement */
  }
}

@media (min-width: 576px) {
  .menu-links a:hover { 
    transform: translateX(5px); /* Sur tablette/PC (à gauche), on décale vers la droite */
  }
}

@media (min-width: 992px) { 
  .menu-links li { 
    margin-bottom: 12px; 
  } 
  .menu-links a { 
    font-size: 28px; 
    padding: 0; /* On retire le padding sur Desktop car les textes sont gros */
  } 
  .menu-links a:hover { 
    transform: translateX(10px); 
  }
}

/* Admin mini grid (drawer) */
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 15px; }
.admin-card-mini {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 5px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  transition: all 0.2s;
}
.admin-card-mini:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  color: var(--gold);
  border-color: var(--gold);
}
.admin-card-mini i { font-size: 1.2rem; margin-bottom: 8px; color: var(--gold); }
.admin-card-mini span { font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
.admin-card-full { grid-column: span 2; background: rgba(255, 255, 255, 0.1); }

/* Lang popover */
.lang-popover {
  position: fixed;
  top: 75px !important;
  left: 20px;
  z-index: 2200;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--trans-base) cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lang-popover.is-open { visibility: visible; opacity: 1; transform: translateY(0); }

.lang-list { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lang-bubble {
  display: grid;
  place-items: center;
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all var(--trans-fast);
}
.lang-bubble:hover { background: var(--gold); color: var(--brand); transform: scale(1.1); }

/* ==========================================================
   POSITIONNEMENT SPÉCIFIQUE DU POPOVER UTILISATEUR
   ========================================================== */
.lang-popover.user-popover {
  left: auto !important; /* Annule le left: 20px du lang-popover */
  right: 75px; /* Se place exactement sous l'avatar (à gauche du hamburger) */
}

/* Ajustement automatique pour les petits écrans (icônes plus rapprochées) */
@media (max-width: 640px) {
  .lang-popover.user-popover {
    right: 60px;
  }
}
@media (max-width: 380px) {
  .lang-popover.user-popover {
    right: 50px;
  }
}

/* Search drawer */
#searchpanel { display: flex; align-items: center; justify-content: center; }
#searchpanel .drawer__list { width: 100%; max-width: 800px; padding: 2rem; }

.search-input-modern {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 1rem 0;
  width: 100%;
  transition: border-color var(--trans-base);
  box-shadow: none !important;
}
.search-input-modern:focus { border-bottom-color: var(--gold); outline: none; }
.search-input-modern::placeholder { color: rgba(255, 255, 255, 0.3); font-weight: 300; }

.btn-search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}
.btn-search-submit:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }

.search-quick-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideUp 0.5s ease forwards 0.2s;
}
.search-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--trans-fast);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}
.search-tag:hover { background: var(--gold); color: var(--brand); border-color: var(--gold); transform: translateY(-2px); }
.search-tag i { margin-right: 0.5rem; }

.search-label-small {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}
    /* Cards Styles */
    .search-result-card {
        transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
        border: 1px solid var(--border-light);
        background: var(--bg-paper);
    }
    .search-result-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-base);
        border-color: var(--gold);
        background: #fff;
        z-index: 10;
    }
    .search-result-img-wrapper {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        background-color: var(--bg-body);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .search-result-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .search-result-icon {
        font-size: 2rem;
        color: var(--text-muted);
    }
    
    /* Filters Styles */
    .search-filter-btn {
        border-radius: 50rem;
        padding: 0.5rem 1.25rem;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.2s;
        border: 1px solid transparent;
        color: var(--text-muted);
        background: transparent;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
    }
    .search-filter-btn:hover {
        background: var(--bg-body);
        color: var(--brand);
    }
    .search-filter-btn.active {
        background: linear-gradient(90deg, #d0766a 0%, #e3b467 100%);
        color: #fff;
        box-shadow: 0 4px 10px rgba(208, 118, 106, 0.4);
    }
    .search-filter-badge {
        background: rgba(255,255,255,0.2);
        color: inherit;
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
        border-radius: 10px;
        margin-left: 8px;
    }
    .search-filter-btn:not(.active) .search-filter-badge {
        background: var(--bg-body);
        color: var(--text-muted);
        border: 1px solid var(--border-light);
    }

    @media (max-width: 576px) {
        .search-result-img-wrapper { width: 80px; height: 80px; }
    }


/* ==========================================================
   8) AUTH & LOGIN
   ========================================================== */
.rj-auth-page {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  position: relative;
  background: var(--grad-brand);
  z-index: 1;
}
.rj-auth-page .login-wrapper { position: relative; z-index: 10; width: 100%; }

.login-wrapper { max-width: 400px; margin: 0 auto; animation: fadeInUp 0.4s ease-out; }

.rj-login-icon {
  width: 80px; height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.rj-input-group {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.rj-form-control {
  background-color: transparent !important;
  border: none;
  border-radius: 0;
  color: #fff !important;
  height: 60px;
}
.rj-form-control:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
  border-color: transparent;
}
.rj-form-control + .rj-form-control {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Labels flottants */
.form-floating > label { color: rgba(255, 255, 255, 0.5); padding-left: 1rem; }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--gold);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}


/* ==========================================================
   BOUTONS UNIFIÉS (DÉGRADÉ SAUMON -> OR)
   ========================================================== */
.btn-primary, .btn-gold {
  background: linear-gradient(90deg, #d0766a 0%, #e3b467 100%) !important;
  color: #fff !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-gold:hover {
  background: linear-gradient(90deg, #c2695d 0%, #d6a557 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(208, 118, 106, 0.4) !important;
  color: #fff !important;
}

/* Boutons avec contour (ex: le bouton "LE PROGRAMME" du Hero) */
.btn-outline-primary {
  color: #d0766a !important;
  border-color: #d0766a !important;
}
.btn-outline-primary:hover {
  background: linear-gradient(90deg, #d0766a 0%, #e3b467 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}


.separator-text {
  position: relative;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  height: 0.1px;
  margin-top: 2rem;
}
.separator-text span {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  background-color: #261f38;
}

.text-gold { color: var(--gold) !important; }
.bg-drawer-blur { background-color: transparent; backdrop-filter: blur(10px); }

/* Autofill */
.rj-form-control:-webkit-autofill,
.rj-form-control:-webkit-autofill:hover,
.rj-form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px #2c224a inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Signup */
.auth-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 1.5rem 0 0.5rem 0.5rem;
  font-weight: 700;
  opacity: 0.9;
}
.rj-file-upload {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.rj-file-upload:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 255, 255, 0.1); }

/* Tel input (intl-tel-input) */
.iti { width: 100%; display: block; }
.iti__tel-input {
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  width: 100%;
  height: 60px;
  padding-left: 90px !important;
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}
.iti__dropdown-content {
  background-color: var(--brand);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1050 !important;
}
.iti__country:hover,
.iti__country--highlight { background-color: rgba(255, 255, 255, 0.1); }
.iti__selected-country { background-color: transparent !important; padding-left: 12px; }
.iti__arrow { border-top-color: rgba(255, 255, 255, 0.5); }

.label-phone-fixed {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  padding-left: 90px;
  padding-top: 0.7rem;
  pointer-events: none;
  transform-origin: 0 0;
  transform: scale(0.85) translateX(0.15rem);
  color: var(--gold);
  opacity: 1;
  z-index: 5;
}

#phoneInput:not(.iti-loaded) { visibility: hidden; }

/* ==========================================================
   9) HERO & ALERTS
   ========================================================== */
.hero {
  padding: 120px 20px 60px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at center top, var(--brand-accent), var(--brand));
}

.hero--image {
  position: relative;
  margin-top: calc(-1 * var(--topbar-h));
  padding-top: calc(140px + var(--topbar-h));
  padding-bottom: 80px;
  min-height: 75vh;
  contain: paint;
  background-image: var(--hero-bg, linear-gradient(to bottom, var(--brand), var(--brand-dark)));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero--image .container { position: relative; z-index: 2; }

/* Bandeaux globaux */
.rj-alert-bar {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 3000;
  height: 40px; 
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: top 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.rj-alert-info    { background-color: var(--brand); color: #fff; }
.rj-alert-warning { background-color: var(--gold);  color: var(--brand-dark); }
.rj-alert-danger  { background-color: var(--danger); color: #fff; }

.rj-alert-live {
    background: linear-gradient(90deg, #c7363e, #8e1e24) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.rj-alert-icon { flex-shrink: 0; margin-right: 1rem; font-size: 1.2rem; }
.rj-alert-bar .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }

/* Marquee */
.rj-marquee-wrapper {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}
.rj-marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: rj-scroll-left 25s linear infinite;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 40px;
}
.rj-alert-bar:hover .rj-marquee-content { animation-play-state: paused; }

@keyframes rj-scroll-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================
   10) BLOCS PAGE & COMPOSANTS SPÉCIFIQUES
   ========================================================== */
/* Infos */
.glass-info-box {
  background: rgba(21, 27, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.concert-date-box {
  min-width: 65px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  background-color: var(--bs-white);
  line-height: 1;
}

/* Lieux & scènes */
.venue-header, .place-header {
  position: relative;
  padding: 4rem 0;
  background-color: var(--bg-paper);
  border-bottom: 1px solid var(--border-light);
}
.venue-header {
  background-color: var(--brand);
  color: #fff;
  overflow: hidden;
}
.venue-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: blur(10px);
  transform: scale(1.1);
  pointer-events: none;
}
.venue-main-img, .place-main-photo, .concert-hero-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.scene-body, .place-body, .venue-next-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.scene-meta, .place-meta {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.btn-scene-arrow {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-scene-arrow i { transition: transform 0.2s; }
.scene-card:hover .btn-scene-arrow i { transform: translateX(5px); }

/* Timeline */
.timeline-concert {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-light);
  padding-bottom: 2rem;
}
.timeline-concert:last-child { border-left-color: transparent; }
.timeline-dot {
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-light);
  transition: background-color 0.3s;
}
.timeline-dot.active { background-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 174, 70, 0.3); }
.timeline-concert.is-past .timeline-dot { background-color: var(--border-light); }
.timeline-concert.is-past h3 a { color: var(--text-muted); }

/* History nav pills */
.history-nav-section { margin-top: -3rem; position: relative; z-index: 10; padding-bottom: 3rem; }
.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-paper);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
[data-bs-theme="dark"] .history-pill { background: var(--bg-paper); border-color: rgba(255, 255, 255, 0.1); }
.history-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  color: var(--brand);
  border-color: var(--gold);
}
.history-pill i { color: var(--gold); font-size: 1.2rem; transition: color 0.2s; }
.history-pill:hover i { color: var(--brand); }

/* Histoire (zig-zag) */
.history-number {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}
.history-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Posters */
.poster-year-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1.2;
}
.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  cursor: zoom-in;
  background: var(--bg-paper);
  aspect-ratio: 2 / 3;
}
.poster-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.poster-card:hover .poster-img { transform: scale(1.03); }

/* Météo */
.weather-hero {
  background: radial-gradient(circle at center, var(--brand-accent), var(--brand-dark));
  color: white;
  padding: 4rem 0 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.weather-icon-lg { font-size: 4.5rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.display-temp { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 3.5rem; letter-spacing: -2px; }
.weather-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.weather-metric i { font-size: 1.2rem; margin-bottom: 0.25rem; opacity: 0.7; }
.forecast-row { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--border-light); }
.forecast-row:last-child { border-bottom: 0; }
.forecast-day { width: 100px; font-weight: 700; text-transform: capitalize; }
.forecast-icon { font-size: 1.5rem; width: 40px; text-align: center; }
.forecast-temp { font-family: 'Comfortaa', sans-serif; font-weight: 700; text-align: right; }

/* Listes lieux */
.place-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.place-item:hover { transform: translateX(5px); border-color: var(--gold); }
.place-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-body);
  border-radius: 8px;
  color: var(--brand);
  flex-shrink: 0;
  font-size: 1.2rem;
}
.place-thumb {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
}
.place-socials-mini {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.place-card:hover .place-socials-mini { opacity: 1; }

/* Contact */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.contact-row:hover { transform: translateX(5px); color: var(--text); }
div.contact-row:hover { transform: none; }

.contact-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bg-body);
  color: var(--brand);
  border-radius: 50%;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}
a.contact-row:hover .contact-icon { background-color: var(--brand); color: #fff; border-color: var(--brand); }
.contact-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: #6c757d; margin-bottom: 2px; }
.contact-value { font-weight: 700; font-size: 1rem; color: var(--text); word-break: break-word; line-height: 1.2; }

/* Social buttons */
.social-buttons-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}
.social-btn-round {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text);
  background: var(--bg-body);
  transition: all 0.2s;
  font-size: 1.1rem;
}
.social-btn-round:hover { transform: translateY(-3px); background: var(--brand); color: #fff; border-color: var(--brand); }
.social-btn-round.insta:hover { background: #E1306C; border-color: #E1306C; }
.social-btn-round.fb:hover { background: #1877F2; border-color: #1877F2; }

/* Nearby venue */
.nearby-venue-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-body);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid transparent;
}
.nearby-venue-item:hover {
  background: var(--bg-paper);
  color: var(--brand);
  border-color: var(--gold);
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.venue-next-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; margin-bottom: 0.5rem; }
.venue-next-title { margin-bottom: 1rem; }

/* Musiciens (liste) */
.rj-musician-list-item { border-left: 3px solid var(--gold); background: rgba(0, 0, 0, 0.02); transition: background 0.2s; }
.rj-musician-list-item:hover { background: rgba(0, 0, 0, 0.05); }
.rj-shadow-filter { filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8)); }
.musician-avatar, .musician_avatar {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--bg-body);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.musician-card-item:hover .musician_avatar,
.musician-card-item:hover .musician-avatar { border-color: var(--gold); }

.rj-section-title { color: var(--brand) !important; text-transform: uppercase; }
[data-bs-theme="dark"] .rj-section-title { color: #ffffff !important; }
.rj-venue-truncate { max-width: 250px; }

/* Transports */
.transport-card { align-items: center; text-align: center; padding: 2rem; }
.transport-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--border-color, var(--brand)); }
.transport-icon-wrapper {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-body);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--border-color);
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s;
}
.transport-card:hover .transport-icon-wrapper { background: var(--border-color); color: #fff; }
.transport-title { margin-bottom: 1rem; color: var(--brand); }
[data-bs-theme="dark"] .transport-title { color: #fff; }
.transport-btn {
  margin-top: auto;
  color: var(--border-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.transport-btn:hover { text-decoration: underline; }
.mode-bike { --border-color: var(--ok); }
.mode-train { --border-color: #dc3545; }
.mode-boat { --border-color: #0dcaf0; }
.mode-car { --border-color: #6c757d; }

/* Masonry / filtres */
.filters-bar {
  position: relative;
  z-index: 10;
  background: var(--bg-paper);
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}
.rj-masonry { column-count: 3; column-gap: 0.35rem; }
.rj-masonry-item { break-inside: avoid; margin-bottom: 0.35rem; }
@media (min-width: 768px) {
  .rj-masonry { column-gap: 1.5rem; }
  .rj-masonry-item { margin-bottom: 1.5rem; }
}

.btn-like-float, .btn-like-float-sm { z-index: 10; }
.btn-like-float { width: 36px; height: 36px; }
.btn-like-float-sm { width: 32px; height: 32px; }
.rj-select-wrapper { min-width: 140px; }
@media (max-width: 576px) { .rj-select-wrapper { min-width: 100%; } }
.rj-list-img { object-fit: cover; width: 100%; height: 100%; }

/* Galeries */
.photo-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.2s;
}
.photo-card:hover { transform: translateY(-3px); z-index: 2; }
.photo-card img { width: 100%; height: auto; opacity: 0.9; transition: opacity 0.3s, transform 0.5s; }
.photo-card:hover img { opacity: 1; transform: scale(1.02); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-overlay);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
  pointer-events: none;
}
.photo-card:hover .photo-overlay { opacity: 1; }

/* ==========================================================
   11) MAPS & LIGHTBOX
   ========================================================== */
.map-frame, #festivalMap {
  width: 100%;
  height: 500px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #e9ecef;
  z-index: 1;
}
.map-venue-detail { height: 350px; width: 100%; border-radius: 12px; z-index: 1; background: #e9ecef; }

.custom-marker-pin {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border: 3px solid #fff;
}
.custom-marker-pin i { font-size: 20px; }
.pin-venue { background-color: var(--brand); }
.pin-place { background-color: var(--gold); }
.pin-wc { background-color: #0dcaf0; border: 2px solid #fff; }
.pin-place-small { transform: scale(0.8); }

.leaflet-popup-content-wrapper { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.map-popup-content { text-align: center; min-width: 160px; padding: 5px; }
.popup-title { font-size: 1rem; display: block; margin-bottom: 4px; line-height: 1.2; font-weight: 700; color: var(--brand); }
.legend-icon-venue { color: var(--brand); }
.legend-icon-place { color: var(--gold); }
.legend-icon-wc { color: #0dcaf0; }

.modal-backdrop { z-index: 2990 !important; }
#rjLightbox, #galleryModal { z-index: 3000 !important; }

#rjLightbox .modal-content { background-color: transparent; border: none; box-shadow: none; }
.rj-lightbox-body { padding: 0; background-color: #000; overflow: hidden; }
.rj-lightbox-wrapper { position: relative; display: inline-block; max-width: 100%; margin: auto; }
.rj-lightbox-img { max-height: 98vh; max-width: 100%; width: auto; object-fit: contain; display: block; }
.rj-lightbox-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 3rem 1.5rem 1.5rem;
  background: var(--grad-overlay);
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }
#rjLightbox .btn-close { top: 10px; right: 10px; padding: 1rem; opacity: 0.8; z-index: 3020; }
#rjLightbox .btn-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1055;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.2s;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(0, 0, 0, 0.6); color: #fff; }
.lightbox-nav.prev { left: 0; border-radius: 0 10px 10px 0; }
.lightbox-nav.next { right: 0; border-radius: 10px 0 0 10px; }

/* ==========================================================
   12) FOOTER
   ========================================================== */
.footer-surface { background: transparent; padding: 10px 0 48px 0; position: relative; z-index: 20; }

#site-footer {
  display: block;
  position: relative;
  z-index: 10;
  margin-top: 0;
  background-image: url('img/footer_33.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--bg-footer);
  color: #fff;
  border: 0;
}

.partner-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}
@media (min-width: 768px) { .partner-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (min-width: 1200px) { .partner-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.partner:hover { transform: translateY(-5px); }

/* Résolution Conflit Logos:
   On cible les images pour qu'elles s'adaptent selon l'endroit où elles se trouvent 
   (Footer VS Cards) */
.partner-logo-img {
  max-width: 100%;
  height: auto;
  transition: all var(--trans-base);
  display: block;
}

/* Variante : Dans le footer (logos blancs) */
#site-footer .partner-logo-img {
  max-height: 65px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
#site-footer .partner:hover .partner-logo-img { 
  filter: none; 
  opacity: 1; 
  transform: scale(1.1); 
}

/* Variante : Dans la page partenaire (logos couleur) */
.partner-card .partner-logo-img {
  max-height: 60px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.partner-card:hover .partner-logo-img { 
  transform: scale(1.05); 
}

.footer-toolbar {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}
.rj-minilogo { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }

.rj-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.rj-social__btn:hover { background: #fff; color: #151b41; border-color: #fff; transform: translateY(-3px); }

.btn-back-top, .rj-backtotop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2c78b3;
  color: #151b41;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2000;
  font-size: 1.25rem;
  text-decoration: none;
}
.btn-back-top:hover, .rj-backtotop:hover { background: #fff; color: #151b41; transform: translateY(-3px); }
.btn-back-top.is-visible, .rj-backtotop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ==========================================================
   13) ADMIN DASHBOARD & UI
   ========================================================== */
.dashboard-header {
  background: var(--bg-paper);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.user-badge-lg {
  width: 56px; height: 56px; font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.25);
}

.bento-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.bento-card { padding: 1.25rem; justify-content: space-between; height: 100%; transition: transform 0.2s, box-shadow 0.2s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); background: var(--rj-card-hover); color: inherit; }
.bento-span-2 { grid-column: span 1; }
@media (min-width: 768px) { .bento-span-2 { grid-column: span 2; } }

.icon-square {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.theme-primary { background: rgba(57, 43, 88, 0.1); color: var(--brand); }
.theme-success { background: rgba(25, 135, 84, 0.1); color: #198754; }
.theme-warning { background: rgba(255, 193, 7, 0.1); color: #997404; }
.theme-danger  { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.theme-info    { background: rgba(13, 202, 240, 0.1); color: #0aa2c0; }
.theme-dark    { background: rgba(33, 37, 41, 0.1); color: #212529; }
.theme-indigo  { background: rgba(102, 16, 242, 0.1); color: #6610f2; }
.theme-secondary { background: rgba(108, 117, 125, 0.1); color: #6c757d; }

.stat-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: 10rem;
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.stat-pill.active { background: #dc3545; color: white; border: none; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: #adb5bd;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.rj-style-badge { letter-spacing: 0.5px; }

/* Modale auth */
#favAuthModal { z-index: 3000 !important; }
.rj-modal-content { background-color: var(--bg-paper); color: var(--text); border: 1px solid var(--border-light); }
.rj-modal-header { background-color: var(--gold); color: var(--brand); }
.rj-modal-header .btn-close { filter: none; opacity: 0.5; }
.rj-modal-header .btn-close:hover { opacity: 1; }
.rj-btn-outline { color: var(--text); border-color: var(--border-light); }
.rj-btn-outline:hover { background-color: var(--brand); color: #fff; border-color: var(--brand); }

/* ==========================================================
   14) PAGE LIVE (IMMERSIVE)
   ========================================================== */
.live-section {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background-color: var(--bg-body);
  padding-top: 80px;
}
.live-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4) blur(2px);
  transform: scale(1.05);
}
.live-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
}
.live-content { position: relative; z-index: 2; width: 100%; max-width: 1000px; padding-bottom: 2rem; }

.live-artist-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
  color: #fff;
}
.live-style-tag {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.live-musicians { font-size: 1.1rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.9); }
.live-musicians .list-inline-item:not(:last-child) { margin-right: 1.5rem; position: relative; }
.live-musicians .list-inline-item:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -1rem;
  color: var(--gold);
  opacity: 0.7;
}

.live-combined-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.pill-status {
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}
.is-live .pill-status { background-color: var(--danger); box-shadow: 0 0 15px rgba(220, 53, 69, 0.5); }
.is-soon .pill-status { background-color: var(--gold); color: #000; box-shadow: 0 0 15px rgba(247, 174, 70, 0.5); }
.pill-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.3); margin: 0 1rem; }
.pill-venue {
  padding-right: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.live-empty-state {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.live-empty-icon { font-size: 5rem; color: var(--text-muted); opacity: 0.3; margin-bottom: 1.5rem; }
.live-description-limit { max-width: 700px; }

/* ==========================================================
   15) MUSICIANS — CARD DÉDIÉE + LISTE CONCERTS
   ========================================================== */
.musician-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 1.5rem;
}
[data-bs-theme="dark"] .musician-card { background: rgba(255, 255, 255, 0.03); }

.musician-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.musician-thumb-wrapper {
  width: 100px; height: 100px;
  margin: 0 auto 1rem;
  position: relative;
  flex-shrink: 0;
}
.musician-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  background-color: var(--brand-dark);
  border: 1px solid var(--border-light);
}

.concert-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}
.concert-item { margin-bottom: 0.5rem; font-size: 0.85rem; line-height: 1.25; }
.concert-info { min-width: 0; }
.concert-year {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.8rem;
  display: inline-block;
  width: 36px;
  flex-shrink: 0;
}
.concert-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}
.concert-link:hover { color: var(--gold); text-decoration: underline; }
[data-bs-theme="dark"] .concert-link { color: var(--text-light); }
[data-bs-theme="dark"] .concert-link:hover { color: var(--gold); }

.inst-badge {
  font-size: 0.7em;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-bs-theme="dark"] .inst-badge { background: rgba(255, 255, 255, 0.1); color: var(--text-light); }

.filter-bar {
  position: relative;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

@media (max-width: 575px) {
  .musician-card { padding: 0.75rem; }
  .musician-thumb-wrapper { width: 70px; height: 70px; margin-bottom: 0.5rem; }
  .musician-name { font-size: 1rem; }
  .concert-item { font-size: 0.75rem; }
  .concert-year { width: 32px; font-size: 0.75rem; }
}


[data-bs-theme="dark"] .rj-section-title {
    color: var(--bs-body-color) !important;
    border-bottom-color: rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: var(--bs-body-color) !important;
}

/* Assure que les musiciens ressortent bien sur le fond gris clair des listes */
[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================
   16) ADMIN — TABLES, TABS, PAGINATION, MEDIA
   ========================================================== */
.rj-avatar-table { width: 40px; height: 40px; }
.rj-avatar-edit { width: 120px; height: 120px; object-fit: cover; }

.pagination-circle .page-link {
  width: 36px; height: 36px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50% !important;
  margin: 0 3px;
  border: 0;
}

.rj-social-addon { width: 40px; justify-content: center; background: #f8f9fa; border: 0; }

.nav-tabs .nav-link {
  border: 0; font-weight: bold; color: var(--text-muted); text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 1px;
}
.nav-tabs .nav-link.active {
  background: transparent; color: var(--brand); border-bottom: 3px solid var(--brand);
}

.status-dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  cursor: help; margin-right: 10px; flex-shrink: 0;
}
.bg-dot-invalid { background-color: #dc3545; }
.bg-dot-valid { background-color: #198754; }

.musician-row:hover { background-color: #fdfdfd !important; }

.rj-venue-thumb, .rj-place-thumb { width: 80px; height: 50px; }
.rj-col-img { width: 100px; }
.rj-input-npa { max-width: 90px; }
.rj-input-no { max-width: 80px; }
.rj-role-badge { font-size: 0.7rem; letter-spacing: 0.5px; }
.rj-role-help { font-size: 0.75rem; }
.rj-msg-preview { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rj-press-img { width: 80px; height: 50px; object-fit: cover; }
.rj-col-preview { width: 100px; }
.rj-press-preview { max-width: 100%; height: auto; border-radius: 8px; }

.download-info { flex-grow: 1; }
.download-name { font-weight: 700; line-height: 1.2; }
.download-meta { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

.press-img-compact { height: 180px; position: relative; overflow: hidden; }

.download-card {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem;
  background: var(--bg-paper); border: 1px solid var(--border-light);
  border-radius: var(--border-radius-base); text-decoration: none; color: inherit;
  transition: all var(--trans-base);
}
.download-card:hover { border-color: var(--gold); transform: translateX(5px); box-shadow: var(--shadow-base); }
.download-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 1.25rem;
}

.rj-card-dashed { border: 2px dashed #dee2e6 !important; background: #f8f9fa; }

.rj-media-grid .card { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.rj-media-grid .card:hover { transform: translateY(-4px); box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important; }

.rj-media-card { transition: transform 0.2s ease, box-shadow 0.2s ease; border-radius: 16px; overflow: hidden; background: #fff; }
.rj-media-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important; }

.rj-img-container { position: relative; overflow: hidden; }
.rj-img-fit { object-fit: cover; width: 100%; height: 100%; min-height: 180px; transition: transform 0.5s ease; }
.rj-media-card:hover .rj-img-fit { transform: scale(1.05); }

.rj-media-actions { z-index: 10; }
.rj-btn-action { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); }

.rj-media-credit, .rj-media-credit-text { font-size: 0.7rem; letter-spacing: 0.02em; }
.rj-badge-concert { font-size: 0.7rem; max-width: 100%; }

.rj-concert-badge {
  font-size: 0.65rem; background: rgba(13, 202, 240, 0.08) !important;
  color: #087990 !important; border: 1px solid rgba(13, 202, 240, 0.2);
}
.rj-concert-meta { font-size: 0.75rem; color: var(--bs-primary); }

.filter-btn.active { background-color: var(--bs-primary) !important; color: white !important; }
#noResults i { opacity: 0.25; }

/* ==========================================================
   16b) PARTNER CARDS (page partenaires)
   ========================================================== */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff !important;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-base);
  padding: 1.25rem;
  text-decoration: none;
  transition: all var(--trans-base);
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--gold);
}

[data-bs-theme="dark"] .partner-card { background-color: rgba(255, 255, 255, 0.95) !important; }

/* ==========================================================
   17) ANIMATIONS
   ========================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-red {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-live {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.fade-in-item { animation: fadeInUp 0.5s ease forwards; }
.animate-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }

/* L'animation `.animate-pulse` utilise la dernière version prévue */
.animate-pulse { animation: pulse-live 2s infinite ease-in-out; }

/* ==========================================================
   18) RESPONSIVE (GLOBAL)
   ========================================================== */
@media (max-width: 640px) {
  .icon-btn { width: 40px; height: 40px; }
  .brand .logo-svg { width: 150px; }
  .topbar__rail { padding: 0 10px; gap: 0.5rem; }
}
@media (max-width: 380px) {
  .icon-btn { width: 36px; height: 36px; }
  .brand .logo-svg { width: 130px; }
}


/* ==========================================================
   19) PAGE ACCUEIL (HOME) & PARALLAX
   ========================================================== */

/* --- Configuration Hero & Logo --- */
body:has(.hero--immersive),
.page-home { 
    padding-top: 0 !important; 
}

.hero--immersive {
    height: 100vh; 
    height: 100svh;
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* Actif sur desktop */
}

/* On désactive le fixed sur mobile (tablettes et smartphones) */
@media (max-width: 1024px) {
    .hero--immersive { background-attachment: scroll; }
}

/* Conteneur principal qui définit la hauteur du Hero */
.hero-parallax-container {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    clip-path: inset(0); /* Crée la fenêtre de visualisation */
}

/* L'image elle-même, fixée au viewport (Utilise une variable CSS pour le PHP) */
.hero-parallax-media {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-position: center;
    background-size: cover;
    z-index: -1;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), var(--hero-bg-img, none);
}

.hero-parallax-content {
    position: relative; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.hero-parallax-content .container { pointer-events: auto; }

.home-logo-container {
    max-width: 650px;
    margin: -100px auto 3rem auto; /* Remonte le bloc de 50px */
    width: 100%;
    position: relative;
    z-index: 10;
}
.home-logo-container svg { width: 100%; height: auto; display: block; }

.logo-home-logic {
    opacity: 0; transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease !important;
    pointer-events: none;
}
.topbar.scrolled .logo-home-logic, 
.topbar.has-open-drawer .logo-home-logic {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}

/* --- UI Components Accueil --- */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: white; animation: bounce 2s infinite; font-size: 2rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.badge.bg-gold {
    background-color: var(--gold) !important;
    color: var(--brand) !important;
    text-transform: uppercase; font-weight: 800;
}

/* --- Harmonisation des Galeries & Scroll Horizontal --- */
.rj-custom-gallery-wrapper, 
.rj-gallery-container { position: relative; padding: 0 60px !important; margin-bottom: 3rem; }
.gallery-section { padding-top: 5rem; padding-bottom: 12rem; }

.rj-gallery-subtitle {
    font-size: 0.75rem; letter-spacing: 2px; font-weight: 700;
    color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem;
}

.rj-carousel-nav {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 45px !important; height: 45px !important;
    background-color: #ffffff !important; border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 20; padding: 0; cursor: pointer; transition: all 0.2s ease; opacity: 1 !important;
}
.rj-carousel-nav:hover { background-color: #f8f9fa !important; transform: translateY(-50%) scale(1.1); }
.rj-nav-left, .carousel-control-prev.rj-carousel-nav { left: 5px !important; }
.rj-nav-right, .carousel-control-next.rj-carousel-nav { right: 5px !important; }
.rj-carousel-nav i { color: var(--brand) !important; font-size: 1.2rem; line-height: 0; }

.rj-gallery-item { display: flex; flex-direction: column; text-align: center; cursor: pointer; transition: transform 0.3s ease; }
.rj-gallery-item:hover { transform: translateY(-5px); }

.rj-gallery-img-wrapper {
    position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; 
    border-radius: 12px; background-color: #111; margin-bottom: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.rj-gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rj-gallery-item:hover img { transform: scale(1.1); }
.rj-gallery-label { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); line-height: 1.2; padding: 0 5px; }

/* Scroll Horizontal (Musiciens & Galerie mobile) */
.musician-scroll-container,
#gScroll {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
    gap: 20px; padding: 20px 0; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.musician-scroll-container::-webkit-scrollbar, #gScroll::-webkit-scrollbar { display: none; }

.musician-item-wrapper, .rj-gallery-item-container { flex: 0 0 180px; width: 180px; }
.musician-item-wrapper { display: flex; flex-direction: column; align-items: center; text-decoration: none; }

#gScroll .col-6, #gScroll .col-md-4, #gScroll .col-lg-2 { width: auto !important; flex: none !important; padding: 0 !important; }

.musician-photo-frame {
    position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; 
    border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.musician-item-wrapper:hover .musician-photo-frame { transform: translateY(-5px); }
.musician-vignette-img { width: 100%; height: 100%; object-fit: cover; }

.rj-badge-upcoming {
    z-index: 5; position: absolute; top: 15px; right: -35px; width: 130px;
    background-color: rgba(255, 255, 255, 0.95); color: var(--brand);
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: -1px;
    padding: 4px 0; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: rotate(45deg); pointer-events: none;
}
.musician-vignette-name {
    font-size: 0.9rem; font-weight: 700; color: var(--brand); text-transform: uppercase; 
    text-align: center; line-height: 1.2; margin-top: 12px;
}

.btn-close-lightbox {
    position: absolute; top: 1.5rem; right: 1.5rem; z-index: 1060; filter: drop-shadow(0 0 5px rgba(0,0,0,0.8));
}

/* --- Animations SVG Logo Home --- */
.st1 {
    fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1200; stroke-dashoffset: 1200;
    animation: drawPath 2.5s ease-in-out forwards, blinkOnce 0.6s ease-in-out 2.7s, fillFinal 0.5s ease-in forwards 3.3s;
}
.st0 { fill: #fff; opacity: 0; animation: fadeInText 1.5s ease-out forwards 3.5s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes blinkOnce { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes fillFinal { to { fill: #fff; stroke-width: 0; } }
@keyframes fadeInText { to { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
    .st1, .st0 { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; fill: #fff !important; }
}

/* --- Responsive Home --- */
@media (max-width: 768px) {
    .rj-custom-gallery-wrapper, .rj-gallery-container { padding: 0 45px !important; }
    .rj-carousel-nav { width: 35px !important; height: 35px !important; }
    .rj-carousel-nav i { font-size: 1rem; }
    .gallery-section { padding-bottom: 8rem; }
    
    /* Forcer une seule ligne défilante sur smartphone pour la Galerie */
    .rj-gallery-container .row {
        display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
        gap: 15px; scroll-behavior: smooth; scrollbar-width: none;
    }
    .rj-gallery-container .row::-webkit-scrollbar { display: none; }
    .rj-gallery-container .col-6 { flex: 0 0 140px !important; width: 140px !important; }
}

@media (max-width: 575.98px) {
    .hero-parallax-content .btn {
        width: auto !important; min-width: 200px; margin-left: auto; margin-right: auto;
        display: inline-flex; justify-content: center; padding-left: 1.5rem; padding-right: 1.5rem;
    }
    .home-logo-container svg { max-width: 85%; height: auto; margin: 0 auto; }
}
/* ==========================================================
   20) CORRECTION ICÔNES (TOPBAR STANDARD / PAGES BLANCHES)
   ========================================================== */

/* Quand la topbar est sur son fond blanc par défaut (ni overlay, ni menu ouvert),
   on force les icônes en bleu pour qu'elles soient visibles. */
.topbar:not(.topbar--overlay):not(.has-open-drawer) .icon-btn {
    color: var(--brand) !important;
    border-color: rgba(57, 43, 88, 0.2) !important;
}

.topbar:not(.topbar--overlay):not(.has-open-drawer) .icon-btn:hover {
    background: var(--brand) !important;
    color: #fff !important;
}

/* Bonus : Support du Dark Mode pour les pages d'administration */
[data-bs-theme="dark"] .topbar:not(.topbar--overlay):not(.has-open-drawer) {
    background: var(--bg-paper) !important; /* Passe la barre en bleu nuit */
}

[data-bs-theme="dark"] .topbar:not(.topbar--overlay):not(.has-open-drawer) .icon-btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-bs-theme="dark"] .topbar:not(.topbar--overlay):not(.has-open-drawer) .icon-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================
   DARK MODE : CORRECTIFS DE CONTRASTE GÉNÉRAUX
   ========================================================== */
[data-bs-theme="dark"] {
    /* 1. Neutralisation du texte noir forcé */
    .text-dark, 
    .text-black {
        color: var(--bs-body-color) !important;
    }

    /* 2. Adaptation des fonds clairs forcés (ex: cartes musiciens ou billets) */
    .bg-light,
    .bg-white,
    .bg-body-secondary {
        background-color: var(--rj-bg-subtle) !important;
        color: var(--bs-body-color) !important;
    }

    /* 3. Correction des bordures de listes et tableaux */
    .border, 
    .border-top, 
    .border-bottom, 
    .list-group-item {
        border-color: var(--border-light) !important;
    }

    /* 4. Titres de sections (Rive Jazzy spécifique) */
    .rj-section-title {
        color: var(--bs-body-color) !important;
    }

    /* 5. Liens dans les listes (Espace membre / Concerts) */
    a.text-dark:hover {
        color: var(--gold) !important;
    }
}