/* ==========================================================================
   REFONTE V2 — Direction "Sombre & Premium" (fond bleu nuit, accents dorés)
   Charge APRES style.css : surcharge propre, thème d'origine intact en dessous.
   ========================================================================== */

:root {
  /* Palette V4 — rouge/orange, bleu, blanc (inspiration FasoEvent) */
  --rd-ink: #15224a;
  --rd-ink-2: #1c2c5c;
  --rd-ink-3: #24366e;
  --rd-gold: #e8452c;
  --rd-gold-light: #ff7a45;
  --rd-gold-soft: rgba(232, 69, 44, 0.12);
  --rd-blue: #2452e8;
  --rd-paper: #f7f8fb;
  --rd-line: #e7e9f2;
  --rd-ivory: #ffffff;
  --rd-radius: 20px;

  /* Surcharge des polices + couleur d'accent du thème d'origine */
  --heading-font: 'Fraunces', serif;
  --base-font: 'Inter', sans-serif;
  --primary-color: #e8452c;
  --heading-color: #15224a;
}

body {
  font-family: var(--base-font);
}

h1, h2, h3, h4, h5, h6,
.section-title h2, .event-title, .rd-ticket-card h3 {
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
}

/* ---------- Préchargeur & loader — anneau doré fluide (façon iOS) ---------- */
.rd-preloader {
  background: radial-gradient(circle at 50% 40%, var(--rd-ink-3), var(--rd-ink)) !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-spinner-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--rd-gold-light) 340deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: rd-spin 0.85s linear infinite;
}

.rd-spinner-ring--sm {
  width: 34px;
  height: 34px;
}

@keyframes rd-spin {
  to { transform: rotate(360deg); }
}

.request-loader img {
  display: none !important;
}

.request-loader {
  display: none;
  align-items: center;
  justify-content: center;
}

.request-loader.show {
  display: flex !important;
}

/* ---------- Entête (hero) ---------- */
.hero-section.rd-hero {
  position: relative;
  display: block;
  padding-top: 76px;
  padding-bottom: 0;
  overflow: hidden;
  background-color: var(--rd-ink);
}

.hero-section.rd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(255, 122, 69, 0.28) 0%, rgba(255, 122, 69, 0) 60%),
    linear-gradient(165deg, rgba(21, 34, 74, 0.92) 0%, rgba(21, 34, 74, 0.74) 45%, rgba(21, 34, 74, 0.55) 100%);
  z-index: 1;
}

.hero-section.rd-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rd-gold-light), transparent);
  z-index: 2;
  opacity: .5;
}

.rd-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.rd-hero .rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rd-gold-soft);
  border: 1px solid rgba(232, 200, 119, 0.45);
  color: var(--rd-gold-light);
  font-family: var(--base-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.rd-hero h1 {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.14;
  color: #fdfcf9;
}

.rd-hero .hero-content p {
  font-family: var(--base-font);
  color: rgba(251, 250, 247, 0.68);
  font-size: 16px;
}

.rd-hero .event-search {
  background: rgba(251, 250, 247, 0.97);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.rd-hero .event-search .search-item {
  flex: 1 1 220px;
  border-radius: 10px;
  font-family: var(--base-font);
}

.rd-hero .event-search .theme-btn {
  border-radius: 10px;
  padding-left: 32px;
  padding-right: 32px;
  background: linear-gradient(135deg, var(--rd-gold-light), var(--rd-gold));
  border-color: transparent;
  color: #14100a;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
}

.rd-hero .event-search .theme-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(184, 134, 43, 0.4);
}

/* ---------- Bande "Top Événements" ---------- */
.rd-top-events {
  position: relative;
  z-index: 2;
  padding-top: 50px;
}

.rd-top-events .rd-top-events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.rd-top-events .rd-kicker {
  display: block;
  font-family: var(--base-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rd-gold-light);
  margin-bottom: 6px;
}

.rd-top-events .rd-top-events-head h2 {
  color: #fdfcf9;
  font-size: 28px;
  margin: 0;
}

.rd-top-events .rd-see-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--base-font);
  color: #fdfcf9;
  background: transparent;
  border: 1px solid rgba(232, 200, 119, 0.5);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease;
}

.rd-top-events .rd-see-all:hover {
  background: var(--rd-gold-soft);
  border-color: var(--rd-gold-light);
  color: #fdfcf9;
}

.rd-events-swiper {
  padding-bottom: 34px !important;
}

.rd-events-swiper .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Carte événement */
.rd-ticket-card {
  position: relative;
  background: var(--rd-ivory);
  border-radius: var(--rd-radius);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease;
}

.rd-ticket-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.rd-ticket-card .rd-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--rd-ink-2);
}

.rd-ticket-card .rd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rd-ticket-card:hover .rd-thumb img {
  transform: scale(1.08);
}

.rd-ticket-card .rd-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 13, 22, 0.75) 0%, rgba(10, 13, 22, 0) 42%);
  pointer-events: none;
}

/* Badge date — repensé : médaillon rond façon sceau */
.rd-date-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(10, 13, 22, 0.55);
  border: 1px solid rgba(232, 200, 119, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fdfcf9;
  line-height: 1;
}

.rd-date-chip .rd-day {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
}

.rd-date-chip .rd-month {
  font-family: var(--base-font);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--rd-gold-light);
  margin-top: 2px;
}

.rd-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 13, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fdfcf9;
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease;
}

.rd-fav-btn.bg-success {
  background: var(--rd-gold);
  border-color: var(--rd-gold);
  color: #14100a;
}

/* Chip heure — repensé en pastille discrète en bas de visuel */
.rd-time-chip {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #fdfcf9;
  font-family: var(--base-font);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}

.rd-time-chip i {
  color: var(--rd-gold-light);
  font-size: 10px;
}

.rd-countdown-pill {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  background: var(--rd-gold);
  color: #14100a;
  font-family: var(--base-font);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.rd-ticket-card .rd-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rd-ticket-card .rd-cat {
  font-family: var(--base-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--rd-gold);
}

.rd-ticket-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
}

.rd-ticket-card h3 a {
  color: var(--rd-ink);
}

.rd-ticket-card .rd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--base-font);
  font-size: 13px;
  color: #767a8c;
}

.rd-ticket-card .rd-meta i {
  color: var(--rd-gold);
}

.rd-ticket-card .rd-divider {
  border-top: 1px dashed var(--rd-line);
  margin-top: 4px;
}

.rd-ticket-card .rd-footer-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}

.rd-ticket-card .rd-price {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--rd-ink);
  font-size: 17px;
}

.rd-ticket-card .rd-price .rd-price-from {
  font-family: var(--base-font);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9a9fae;
  display: block;
  letter-spacing: 0.4px;
}

.rd-ticket-card .rd-price .rd-free {
  color: #1c8a58;
}

.rd-ticket-card .rd-more-btn {
  font-family: var(--base-font);
  font-size: 13px;
  font-weight: 700;
  color: #fdfcf9;
  background: var(--rd-ink);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}

.rd-ticket-card .rd-more-btn:hover {
  background: var(--rd-gold);
  color: #14100a;
  transform: translateY(-1px);
}

/* Barre de progression du défilement automatique (effet fluide) */
.rd-autoplay-track {
  position: relative;
  z-index: 2;
  max-width: 220px;
  height: 2px;
  margin: 30px auto 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.rd-autoplay-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--rd-gold), var(--rd-gold-light));
  border-radius: 2px;
}

.rd-events-swiper .swiper-pagination {
  display: none;
}

.rd-empty-events {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  padding: 30px 0 70px;
  text-align: center;
}

/* ==========================================================================
   Responsive — adapté à tous les formats
   ========================================================================== */
@media (max-width: 1199px) {
  .rd-hero h1 { font-size: 38px; }
}

@media (max-width: 991px) {
  .hero-section.rd-hero { padding-top: 58px; }
  .rd-hero h1 { font-size: 32px; }
  .rd-top-events { padding-top: 40px; }
}

@media (max-width: 767px) {
  .rd-hero .event-search { flex-direction: column; padding: 10px; }
  .rd-hero .event-search .search-item { width: 100%; padding: 10px 12px; }
  .rd-hero .event-search .theme-btn { width: 100%; margin-top: 8px; }
  .rd-top-events .rd-top-events-head { flex-direction: column; align-items: flex-start; }
  .rd-hero h1 { font-size: 27px; }
}

@media (max-width: 575px) {
  .hero-section.rd-hero { padding-top: 46px; }
  .rd-hero .rd-eyebrow { font-size: 11px; padding: 5px 12px; }
  .rd-hero h1 { font-size: 23px; }
  .rd-ticket-card h3 { font-size: 15.5px; }
  .rd-date-chip { width: 46px; height: 46px; }
  .rd-date-chip .rd-day { font-size: 15px; }
}

/* ==========================================================================
   REFONTE V3 — Habillage global : arrondis partout + en-tête + filtres
   Objectif : que CHAQUE page (pas seulement l'accueil) porte la nouvelle
   identité sombre/dorée, avec des formes arrondies plutôt que carrées.
   ========================================================================== */

/* ---------- Arrondis systématiques ---------- */
.theme-btn,
.menu-btn,
button.btn,
a.btn,
.btn,
input[type="submit"],
input[type="button"] {
  border-radius: 999px !important;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select,
.form-control,
.nice-select,
.select2-container .select2-selection--single {
  border-radius: 12px !important;
}

.widget,
.event-item,
.card,
.dropdown-menu,
.modal-content,
.checkout-box,
.testimonial-item,
.blog-item,
.faq-item {
  border-radius: 16px !important;
}

.event-search-button,
.current-location {
  border-radius: 50% !important;
}

img {
  border-radius: 4px;
}

/* ---------- En-tête ---------- */
.rd-header {
  background: #fdfcf9;
  box-shadow: 0 2px 24px rgba(10, 13, 22, 0.08);
  position: relative;
  z-index: 50;
}

.rd-header .navigation > li > a {
  font-family: var(--base-font);
  font-weight: 600;
  color: var(--rd-ink);
  transition: color .2s ease;
}

.rd-header .navigation > li > a:hover,
.rd-header .navigation > li.current > a {
  color: var(--rd-gold) !important;
}

.rd-header .menu-btn {
  font-family: var(--base-font);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 22px;
  border: 1px solid var(--rd-gold);
  color: var(--rd-gold);
  background: transparent;
  transition: background .2s ease, color .2s ease;
}

.rd-header .menu-btn:hover {
  background: var(--rd-gold);
  color: #fff;
}

.rd-header .dropdown-menu {
  border: 1px solid var(--rd-line);
  box-shadow: 0 18px 40px rgba(10, 13, 22, 0.16);
  padding: 8px;
}

.rd-header .dropdown-menu .dropdown-item {
  border-radius: 10px;
  font-family: var(--base-font);
  padding: 9px 14px;
}

.rd-header .dropdown-menu .dropdown-item:hover {
  background: var(--rd-gold-soft);
  color: var(--rd-ink);
}

.rd-header .navigation ul {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 13, 22, 0.16);
}

/* Menu mobile — cartes arrondies au lieu des rangées carrées */
@media (max-width: 1199px) {
  .rd-header .navigation {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(10, 13, 22, 0.1);
  }

  .rd-header .navigation > li {
    border-radius: 0;
  }

  .rd-header .navigation > li > a {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* ---------- Bandeau de page (breadcrumb) ---------- */
.rd-page-title {
  position: relative;
  background-color: var(--rd-ink);
}

.rd-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(10, 13, 22, 0.92), rgba(10, 13, 22, 0.72));
}

.rd-page-title .container {
  position: relative;
  z-index: 1;
}

.rd-page-title .title {
  color: #fdfcf9;
  font-family: var(--heading-font);
  font-weight: 600;
}

.rd-page-title .breadcrumb {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 200, 119, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  justify-content: center;
}

.rd-page-title .breadcrumb-item,
.rd-page-title .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--base-font);
  font-size: 13px;
}

.rd-page-title .breadcrumb-item.active {
  color: var(--rd-gold-light);
}

.rd-page-title .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Filtres / sidebar événements ---------- */
.rd-sidebar .widget {
  background: #fff;
  border: 1px solid var(--rd-line);
  box-shadow: 0 10px 26px rgba(10, 13, 22, 0.06);
  padding: 20px;
  margin-bottom: 22px;
}

.rd-sidebar .widget-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--rd-ink);
  font-size: 16px;
  margin-bottom: 14px;
}

.rd-sidebar input[type="text"],
.rd-sidebar select {
  border: 1px solid var(--rd-line) !important;
}

.rd-sidebar input[type="text"]:focus,
.rd-sidebar select:focus {
  border-color: var(--rd-gold) !important;
  box-shadow: 0 0 0 3px var(--rd-gold-soft) !important;
}

.rd-sidebar .event-search-button {
  background: var(--rd-ink) !important;
  color: #fff !important;
}

.rd-sidebar .theme-btn {
  background: linear-gradient(135deg, var(--rd-gold-light), var(--rd-gold)) !important;
  border: none !important;
  color: #14100a !important;
  font-weight: 700;
}

.rd-sidebar .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--rd-gold) !important;
  border-color: var(--rd-gold) !important;
}

/* ==========================================================================
   REFONTE V4 — Icône de menu en étoile animée
   ========================================================================== */
.navbar-toggle {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.navbar-toggle .rd-menu-star {
  font-size: 22px;
  color: var(--rd-gold);
  animation: rd-star-pulse 2.4s ease-in-out infinite;
  transition: transform .2s ease;
}

.navbar-toggle:hover .rd-menu-star {
  transform: scale(1.2) rotate(15deg);
}

@keyframes rd-star-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); color: var(--rd-gold); }
  50% { transform: scale(1.18) rotate(20deg); color: var(--rd-blue); }
}

/* ==========================================================================
   REFONTE V5 — Pastilles de catégories sous la recherche
   ========================================================================== */
.rd-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}

.rd-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fdfcf9;
  font-family: var(--base-font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.rd-cat-pill i {
  font-size: 11px;
  color: var(--rd-gold-light);
}

.rd-cat-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  color: #fdfcf9;
}

.rd-cat-pill--active,
.rd-cat-pill--active:hover {
  background: linear-gradient(135deg, var(--rd-gold-light), var(--rd-gold));
  border-color: transparent;
  color: #ffffff;
}

.rd-cat-pill--active i {
  color: #ffffff;
}

@media (max-width: 575px) {
  .rd-cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .rd-cat-pills::-webkit-scrollbar {
    display: none;
  }
}
