/* ==========================================================================
   Rendevu — Unified Platform Stylesheet
   Brand look from main site (dark cacao + gold)
   Fonts: Anton (titles) + Poppins (body)
   ========================================================================== */

/* --------------------------------------------------
   Root Theme Variables
-------------------------------------------------- */
:root {
  /* Brand - Logo-aligned Theme */
  --brand-bg: #152238;
  /* Navy (matches logo blue arch) */
  --brand-bg-2: #0F1929;
  /* Darker Navy */
  --brand-light: #F1F5F9;
  /* Cloud Grey */
  --brand-text: #F8FAFC;
  /* White/Ice */
  --brand-text-dark: #1E293B;
  /* Slate 800 */
  --brand-gold: #FF2E79;
  /* Hot Pink (matches logo R and pink arch) */
  --brand-pink-light: #FF8FB1;
  /* Light Pink (logo gradient start) */
  --brand-blue: #2563EB;
  /* Royal Blue (logo blue arch) */
  --brand-blue-light: #93C5FD;
  /* Sky Blue (logo blue gradient start) */

  /* UI */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .12);
  --glass: rgba(0, 0, 0, .32);
  --radius: 4px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);

  /* Accents (status) */
  --ok: #22C55E;
  --warn: #EAB308;
  --danger: #EF4444;

  /* Typography */
  --font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Anton', Impact, 'Arial Black', sans-serif;
}

/* --------------------------------------------------
   Base
-------------------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* Même fond que le body (évite bandes blanches en rubber-band / certains WebViews). */
html:has(.mp-body) {
  background-color: var(--brand-bg);
}

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

html,
body {
  height: 100%;
}

body {
  overflow-x: clip;
  min-width: 0;
}

body.mp-body,
body.mp-has-fixed-header {
  font-family: var(--font-body);
  background: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Add padding to prevent fixed header from covering content */
body.mp-has-fixed-header {
  padding-top: var(--hdr-offset-mobile, var(--hdr-height-mobile));
}

@media (min-width: 1250px) {
  body.mp-has-fixed-header {
    padding-top: var(--hdr-offset-desktop, var(--hdr-height-desktop));
  }
}

/* If the homepage uses this class but needs to be transparent/overlay, 
   we might need to override it. But usually homepage uses a different class or specific hero styling. 
   If index.html uses mp-has-fixed-header, we can add a modifier .is-home to reset it.
*/
body.mp-has-fixed-header.is-home {
  padding-top: 0;
}

a {
  color: var(--brand-gold);
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

/* Media */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* --------------------------------------------------
   Page layout
-------------------------------------------------- */
.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width:768px) {
  .wrap {
    padding-inline: 3rem;
  }
}

/* --------------------------------------------------
   Breadcrumb Navigation (Admin)
-------------------------------------------------- */
.nav-bc {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-bc .wrap {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  /* Force single line */
  overflow-x: auto;
  /* Scroll horizontally on mobile */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

/* Hide scrollbar Chrome/Safari */
.nav-bc .wrap::-webkit-scrollbar {
  display: none;
}

@media (min-width:768px) {
  .nav-bc .wrap {
    padding: 0.75rem 3rem;
  }
}

.nav-bc .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  /* Removed min-height to prevent vertical stacking issues */
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  /* Don't shrink items */
}

.nav-bc .nav-link:hover {
  color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.03);
}

.nav-bc .sep {
  color: var(--line);
  font-size: 0.9rem;
  user-select: none;
  opacity: 0.6;
  flex-shrink: 0;
}

.nav-bc .you {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  /* (Removed min-height) */
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.mp-main {
  padding: 1.5rem 0 2.5rem;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width:768px) {
  .mp-main {
    padding: 2.25rem 0 3.25rem;
  }
}

/* Sections, tones & separators (match main site) */
.section-wrap {
  position: relative;
  isolation: isolate;
}

.section-wrap[data-tone="dark"] {
  background: var(--brand-bg);
}

.section-wrap[data-tone="darker"] {
  background: var(--brand-bg-2);
}

.section-wrap[data-tone="light"] {
  background: var(--brand-light);
  color: #282118;
}

.section-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 3rem 1.5rem;
}

@media (min-width:768px) {
  .section-inner {
    padding: 4rem 3rem;
  }
}

.sep-top {
  border-top: 1px solid var(--line);
}

.sep-bottom {
  border-bottom: 1px solid var(--line);
}

.elevate {
  background: var(--glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
}

/* --------------------------------------------------
   Typography
-------------------------------------------------- */
.hero-title,
.section-title,
.event-title,
.title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.section-title {
  font-size: clamp(2rem, 7vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: .6rem;
}

.section-title.section-underline::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: .6rem;
  margin-inline: auto;
  background: var(--brand-gold);
  border-radius: 9999px;
}

.hero-sub {
  color: rgba(255, 255, 255, .78);
}

/* Hero block — center content & match header container width */
.hero-block .section-inner {
  max-width: 80rem;
  /* Match header .wrap max-width */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-block .card {
  text-align: center;
  padding-inline: 0;
}

.hero-block .hero-title {
  margin-inline: auto;
}

.hero-block .hero-sub {
  margin-inline: auto;
}

.hero-block .hstack,
.hero-block .hero-actions {
  justify-content: center;
}

.hero-block .contact-cta {
  text-align: center;
}

.text-glow {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.muted {
  color: rgba(255, 255, 255, .7);
}

.small {
  font-size: .88rem;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */
.btn {
  --pad-x: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem var(--pad-x);
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}

.btn:hover {
  background: rgba(255, 255, 255, .06);
}

/* Keep primary buttons gold on hover/focus/active */
.btn-primary {
  background: linear-gradient(90deg, #FF2E79 0%, #2563EB 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #FF2E79 0%, #2563EB 100%);
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary:active {
  filter: brightness(0.98);
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-ghost:hover {
  background: rgba(255, 46, 121, .12);
}

.btn-accent {
  background: rgba(255, 46, 121, .18);
  border-color: var(--brand-gold);
  color: #fff;
}

.btn-solid-light {
  background: rgba(255, 255, 255, .10);
  border-color: var(--line);
  color: #fff;
}

.button-text-black {
  color: #fff !important;
}

/* for gold CTAs with black label */

/* Special generator button (admin/new_event) */
.btn-gen {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px dashed var(--line);
  color: #fff;
  cursor: pointer;
}

.btn-gen__icon {
  font-size: 1rem;
}

/* --------------------------------------------------
   Cards & surfaces
-------------------------------------------------- */
.card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: none;
}

.card-narrow {
  max-width: 560px;
  margin-inline: auto;
}

/* (Duplicate nav-bc removed) */

.subnav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}

.subnav-link:hover {
  background: rgba(255, 255, 255, .06);
}

.subnav-link.is-active {
  border-color: var(--brand-gold);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--brand-gold);
}

/* --------------------------------------------------
   Events grid (home + admin)
-------------------------------------------------- */
.events-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.event-card {
  background: rgba(0, 0, 0, .24);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  border-color: var(--line-strong);
}

.event-card--free {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.22), 0 10px 36px rgba(0, 0, 0, .28);
}

.event-card--free:hover {
  border-color: rgba(74, 222, 128, 0.6);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35), 0 16px 44px rgba(74, 222, 128, 0.12);
}

/* Strip conversion — inscription gratuite (cartes calendrier) */
.free-signup-strip {
  margin: 0 0.9rem 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.22), rgba(34, 197, 94, 0.09));
  border: 1px solid rgba(74, 222, 128, 0.5);
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.12);
}

.free-signup-strip strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #d1fae5;
  letter-spacing: 0.02em;
}

.free-signup-strip span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

/* CTA héros — une ligne, dégradé rose→violet→bleu (liste /events + fiche + landings lieu) */
.btn-free-cta.btn-primary {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  padding: 1.02rem 1.45rem !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  border: none !important;
  background: linear-gradient(90deg, #ff4b8b 0%, #9333ea 48%, #2563eb 100%) !important;
  box-shadow:
    0 4px 28px rgba(255, 75, 139, 0.5),
    0 8px 40px rgba(147, 51, 234, 0.35),
    0 10px 36px rgba(37, 99, 235, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.22) !important;
}

.btn-free-cta.btn-primary:hover,
.btn-free-cta.btn-primary:focus {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  background: linear-gradient(90deg, #ff4b8b 0%, #9333ea 48%, #2563eb 100%) !important;
  box-shadow:
    0 8px 36px rgba(255, 75, 139, 0.55),
    0 14px 52px rgba(147, 51, 234, 0.42),
    0 16px 48px rgba(37, 99, 235, 0.38),
    0 4px 14px rgba(0, 0, 0, 0.28) !important;
}

.btn-free-cta.btn-primary:active {
  transform: translateY(0) !important;
}

/* Libellé unique (inscription catalogue / fiche) — un peu plus grand que le titre carte pour la lisibilité */
.btn-free-cta__label {
  display: block;
  font-size: clamp(1.14rem, 4.1vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  -webkit-font-smoothing: antialiased;
}

.btn-free-cta__label--compact {
  font-size: clamp(1rem, 3.2vw, 1.18rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Mes rendez-vous / grille « uniquement mes inscriptions » : CTA inscription rares (fallback) — pas de libellé catalogue XXL */
.events-grid[data-only-registered="1"] .btn-free-cta.btn-primary {
  padding: 0.62rem 1rem !important;
}
.events-grid[data-only-registered="1"] .btn-free-cta__label:not(.btn-free-cta__label--compact) {
  font-size: clamp(0.88rem, 2.5vw, 1.02rem);
  line-height: 1.28;
}
.events-grid[data-only-registered="1"] .btn-free-cta__spark {
  font-size: 0.95em;
}

.btn-free-cta__spark {
  margin-right: 0.2em;
  font-size: 1.05em;
  line-height: 1;
}

.btn-free-cta__main {
  display: block;
  font-size: clamp(0.98rem, 2.8vw, 1.14rem);
  font-weight: 800;
  letter-spacing: 0.012em;
  color: #fff;
}

.btn-free-cta__sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.93);
  line-height: 1.35;
}

/* Accroche carte liste /events : une ligne lisible, sans encadré lourd */
.event-card-hook {
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
  background: none;
}

.event-card-hook__line {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.event-card-hook__line strong {
  color: #fde68a;
  font-weight: 800;
}

.event-card-hook__sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  padding: 0 0.28rem;
}

.event-card-hook__free-txt {
  color: #a7f3d0;
  font-weight: 700;
}

.event-card-hook__meta {
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.28), rgba(34, 197, 94, 0.18));
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.55);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.event-card .media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex: 0 0 auto;
  width: 100%;
  /* figure UA margins (souvent 40px) = bandes grises autour du visuel */
  margin: 0;
  padding: 0;
  display: block;
}

.event-card .media img,
.event-card .media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

/* contain:content sur lazy (events.html) casse le remplissage de certaines cartes */
.event-card .media img[loading="lazy"] {
  contain: none;
}

.event-card .media .corner-stack {
  position: absolute;
  /* Inset clear of card/media border-radius + overflow:hidden (else pills clip as “GRAT…”, “Insc…”) */
  top: max(1rem, calc(0.35rem + env(safe-area-inset-top, 0px)));
  right: max(1rem, calc(0.35rem + env(safe-area-inset-right, 0px)));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  /* Avoid shrink-to-fit + child max-width:% cycle that clips “Gratuit” / “Inscrit” on mobile */
  width: max-content;
  max-width: calc(100% - 1.25rem);
  box-sizing: border-box;
}

.event-card .media .corner-stack > * {
  flex-shrink: 0;
}

/* Calendrier / cartes : pastilles Gratuit · Inscrit en bandeau bas du visuel (évite le clip des coins arrondis) */
.event-card__hero {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.event-card__hero-badges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0.65rem 0.55rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  z-index: 6;
  pointer-events: none;
  box-sizing: border-box;
}

.event-card__hero-badges > * {
  pointer-events: auto;
  flex-shrink: 0;
}

.catalog-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.catalog-hero-badge--free {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.42), rgba(34, 197, 94, 0.28));
  color: #ecfdf5;
  border: 1px solid rgba(74, 222, 128, 0.7);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
}

.catalog-hero-badge--meta {
  background: var(--brand-gold, #b8923b);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-hero-badge--paid {
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.catalog-hero-badge--pending {
  background: linear-gradient(180deg, #fbbf24, #ca8a04);
  color: #111;
  border: 1px solid rgba(217, 119, 6, 0.45);
}

.catalog-hero-badge--wide {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

/* Inscription confirmée — même badge partout (vert forêt + liséré, texte blanc) */
.rdv-registered-badge {
  display: block;
  box-sizing: border-box;
  max-width: min(16.5rem, calc(100% - 1.25rem));
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  letter-spacing: 0.01em;
  color: #fff;
  background: #467844;
  border: 1px solid #79a377;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Sur le visuel : coin haut-droit (contenant position: relative requis) */
.rdv-registered-badge--media {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 7;
  white-space: nowrap;
}

/* En-tête dense (fiche option) : même look, taille réduite */
.rdv-registered-badge--compact {
  display: inline-block;
  max-width: min(14rem, 100%);
  padding: 0.38rem 0.6rem;
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: left;
  vertical-align: middle;
  pointer-events: auto;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .rdv-registered-badge {
    font-size: 0.68rem;
    padding: 0.42rem 0.58rem;
    max-width: min(15rem, calc(100% - 1rem));
  }

  .rdv-registered-badge--media {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Barre d’action fixe mobile (fiche événement, /events, inscription rapide) */
.ed-sticky-register {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(11, 18, 28, 0.92) 28%, rgba(11, 18, 28, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
  align-items: center;
}

.ed-sticky-register.is-visible {
  display: flex;
}

.ed-sticky-register .btn-free-cta {
  width: 100%;
  max-width: 420px;
}

.ed-sticky-register .qr-submit {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  font-size: 1.02rem;
}

main.mp-main.ed-sticky-pad,
main.mp-main.ed-main-pad-when-sticky {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 721px) {
  .ed-sticky-register {
    display: none !important;
  }

  main.mp-main.ed-sticky-pad,
  main.mp-main.ed-main-pad-when-sticky {
    padding-bottom: inherit;
  }
}

.event-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin: .9rem 1rem .3rem;
  color: #fff;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 1rem 1rem;
}

.chip {
  padding: .3rem .65rem;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.chip.ok {
  background: rgba(34, 197, 94, .15);
  border-color: #22c55e55;
  color: #9AE6B4;
}

.chip.soon {
  background: rgba(234, 179, 8, .15);
  border-color: #eab30855;
  color: #FDE68A;
}

.chip.locked {
  background: rgba(239, 68, 68, .15);
  border-color: #ef444455;
  color: #FCA5A5;
}

/* Buttons row */
.btn-row {
  display: flex;
  gap: .6rem;
  padding: 0 1rem 1.1rem;
}

/* “Complet” badge */
.badge-soldout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #DC2626;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* --------------------------------------------------
   Forms
-------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.label {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 4px;
}

.input,
select,
textarea {
  width: 100%;
  padding: .6rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

select {
  color-scheme: dark;
}

select option {
  background: #1e1e2e;
  color: #fff;
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.inline {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.help {
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
}

/* Form badges (slug status) */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  font-size: .82rem;
}

.badge.neutral {
  color: rgba(255, 255, 255, .8);
}

.badge.free {
  color: var(--ok);
  border-color: #22c55e55;
}

.badge.taken {
  color: var(--danger);
  border-color: #ef444455;
}

.badge.error {
  color: #f97316;
  border-color: #f9731655;
}

/* Rows */
.row2,
.row3 {
  display: grid;
  gap: 1rem;
}

.row2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.row3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* --------------------------------------------------
   Dashboard tiles
-------------------------------------------------- */
.grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  /* remove UL margin */
  padding-left: 0;
  /* remove UL padding (default indent) */
  list-style: none;
  /* remove bullets */
}

/* Safety: ensure tiles never show list markers */
.grid li,
.tile {
  list-style: none;
}

.tile {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: .5rem;
}

.tile .label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .7);
}

.tile .name {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --------------------------------------------------
   Alerts / Errors
-------------------------------------------------- */
.err {
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #fca5a5;
  border-radius: 10px;
  padding: .85rem 1rem;
  text-align: center;
}

.err-emoji {
  font-size: 3rem;
}

.err-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  margin: .6rem 0;
  color: #fff;
}

.err-msg {
  color: rgba(255, 255, 255, .8);
}

/* --------------------------------------------------
   Progress bars (compat mobile)
-------------------------------------------------- */
.progress-track {
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.progress-men {
  height: 100%;
  background: linear-gradient(90deg, #5C78FF, #5873C4);
}

.progress-women {
  height: 100%;
  background: linear-gradient(90deg, #E67898, #C26684);
}

.stats-head {
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
}

/* --------------------------------------------------
   Video helpers (9:16)
-------------------------------------------------- */
.video-9x16 {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
}

.video-9x16 video,
.video-9x16 iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  display: block;
  border: 0;
}

.video-9x16 video {
  object-fit: cover;
  background: #000;
}

.video-9x16 iframe {
  transform: scale(1.04);
  transform-origin: center;
}

@media (max-width:480px) {
  .video-9xx16 {
    max-width: 100%;
  }
}

/* note: keep as provided */

/* --------------------------------------------------
   FAQ details (if used)
-------------------------------------------------- */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary {
  cursor: pointer;
}

.faq-item summary:after {
  content: '+';
  float: right;
  font-size: 1.5em;
  line-height: 1;
}

.faq-item[open] summary:after {
  content: '−';
}

/* --------------------------------------------------
   New Pill Buttons (Global) — Voir le profil (outline) / Liker (gradient) / Chat (solid)
-------------------------------------------------- */
.btn-chat-pill {
  background: var(--brand-gold);
  color: #fff;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, opacity 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-chat-pill:hover {
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
}

/* Secondary: Voir le profil — outline */
.btn-profile-pill {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--brand-text, #fff);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-profile-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--brand-text, #fff);
  text-decoration: none;
}

/* Primary: Liker — gradient */
.btn-like-pill {
  background: linear-gradient(135deg, var(--brand-gold) 0%, #e91e6e 100%);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(255, 46, 121, 0.35);
}

.btn-like-pill:hover {
  opacity: 0.95;
  box-shadow: 0 3px 16px rgba(255, 46, 121, 0.4);
}

/* Secondary: Annuler le like / Passer */
.btn-cancel-pill,
.btn-pass-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-pass-pill:hover,
.btn-cancel-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------
   Hero video overlay helper
-------------------------------------------------- */
/* --------------------------------------------------
   Hero video overlay helper (Standardized)
-------------------------------------------------- */
.hero-block {
  position: relative;
  /* Full screen height */
  /* Full screen height */
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;

  /* Push content below overlay header */
  padding-top: 80px;
  box-sizing: border-box;

  /* Force square corners */
  border-radius: 0 !important;
  border: none !important;
  margin-top: 0;
}

@media (min-width: 768px) {
  .hero-block {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 100px;
    /* Desktop overlay compensation */
  }
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 0 !important;
}

.overlay-strong {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .55));
  z-index: 0;
  border-radius: 0 !important;
}

/* --------------------------------------------------
   Utilities
-------------------------------------------------- */
.hstack {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.center {
  text-align: center;
}

.mt {
  margin-top: .6rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* --------------------------------------------------
   Responsive tweaks
-------------------------------------------------- */
@media (max-width:768px) {
  .card {
    padding: 1.2rem 1.4rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 2.6rem);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   Nice little entrance
-------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.event-card,
.tile {
  animation: fadeInUp .5s ease both;
}

/* --------------------------------------------------
   Header/footer link harmony (optional small touches)
-------------------------------------------------- */
/* Make active links gold if needed outside header.css */
.nav-link.active,
.nav-link.is-active {
  color: var(--brand-gold);
  font-weight: 700;
}

.lang-switcher a.active {
  color: var(--brand-gold);
  font-weight: 700;
}


/* --- Contact hero: no blur on content or background --- */
.page-contact .hero-no-blur .card {
  backdrop-filter: none;
}

.page-contact .hero-no-blur .elevate {
  backdrop-filter: none;
}

.page-contact .hero-no-blur img {
  filter: none !important;
}

/* ensure no accidental blur */


/* --- Contact form heading --- */
.page-contact #contact-form .contact-title {
  color: #000;
  font-size: clamp(2.8rem, 6vw, 3.4rem);
  line-height: 1.05;
}

/* --- Force two equal columns for the first row on wider screens --- */
@media (min-width: 640px) {
  .row-fixed-2 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* --- Inputs on the light section: solid border, white fields --- */
.page-contact #contact-form .form .input,
.page-contact #contact-form select,
.page-contact #contact-form textarea {
  background: #fff;
  color: #282118;
  border: 1.5px solid #00000033;
  /* visible line around inputs */
  border-radius: 12px;
  box-shadow: none;
}

.page-contact #contact-form .form .input:focus,
.page-contact #contact-form select:focus,
.page-contact #contact-form textarea:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
  background: #fff;
}

/* --- Infos rapides: clean white panel like the mockup --- */
.page-contact .quick-info {
  background: #ffffff;
  /* solid white panel */
  color: #282118;
  border: 1px solid #E8E1D7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  backdrop-filter: none;
  /* no glass/blur */
}

.page-contact .quick-title {
  margin: 0 0 .5rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: #282118;
}

.page-contact .quick-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
  font-size: .97rem;
  color: #2a241b;
}

.page-contact .quick-list li::before {
  content: "•";
  margin-right: .55rem;
  color: #282118;
  font-weight: 700;
}

.page-contact .quick-newsletter {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #E8E1D7;
  border-radius: 12px;
}

.page-contact .quick-newsletter-title {
  font-weight: 700;
  margin: 0 0 .25rem;
}

.page-contact .quick-note {
  margin: .25rem 0 .7rem;
  color: #4b4236;
  font-size: .92rem;
}

.page-contact .quick-contact {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #E8E1D7;
  border-radius: 12px;
  background: #fff;
}

.page-contact .quick-contact-title {
  font-weight: 700;
  margin: 0 0 .25rem;
  color: #282118;
}

.page-contact .quick-contact-email a {
  font-weight: 700;
  color: #282118;
  text-decoration: underline;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* add this once */

/* Remove rounding on the full-bleed hero image (and its overlay just in case) */
.page-contact [aria-label="Contact — Hero"] img {
  border-radius: 0 !important;
}

.page-contact [aria-label="Contact — Hero"] .overlay-strong {
  border-radius: 0;
}

/* Visible inputs on light backgrounds (register + matchmaking cards) */
.section-wrap[data-tone="light"] .card-light input,
.section-wrap[data-tone="light"] .card-light select,
.section-wrap[data-tone="light"] .card-light textarea,
.section-wrap[data-tone="light"] .input,
.section-wrap[data-tone="light"] select,
.section-wrap[data-tone="light"] textarea {
  background: #fff !important;
  color: #282118 !important;
  border: 1.5px solid rgba(40, 33, 24, .25) !important;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.section-wrap[data-tone="light"] select {
  color-scheme: light;
}

.section-wrap[data-tone="light"] select option {
  background: #fff;
  color: #282118;
}

/* Focus state: darker border + soft focus ring */
.section-wrap[data-tone="light"] .card-light input:focus,
.section-wrap[data-tone="light"] .card-light select:focus,
.section-wrap[data-tone="light"] .card-light textarea:focus,
.section-wrap[data-tone="light"] .input:focus,
.section-wrap[data-tone="light"] select:focus,
.section-wrap[data-tone="light"] textarea:focus {
  outline: none;
  border-color: #282118 !important;
  box-shadow: 0 0 0 3px rgba(40, 33, 24, .12);
  background: #fff;
}

/* Placeholder + autofill tweaks for contrast */
.section-wrap[data-tone="light"] ::placeholder {
  color: #7c746c;
  opacity: 1;
}

.section-wrap[data-tone="light"] input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: #282118 !important;
  caret-color: #282118;
}

/* Uniform gallery tiles */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Make every tile the same size via aspect ratio */
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* pick 16/9, 4/3, or 1/1 */
  height: auto;
  /* height is derived from aspect-ratio */
  object-fit: cover;
  /* crop to fill the box */
  object-position: center;
  border-radius: 12px;
  display: block;

  /* optional: keep your tint/hover */
  filter: sepia(60%);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}

.gallery img:hover {
  filter: sepia(0%);
  transform: translateY(-2px);
}

/* Action row: wrap nicely */
.row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* On small phones: stack buttons full width for easy tapping */
@media (max-width: 480px) {
  .row .btn {
    flex: 1 1 100%;
  }
}

/* Long slugs inside <code> shouldn't overflow cards */
.events-grid code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Slightly smaller card paddings on very small phones */
@media (max-width: 400px) {
  .card {
    padding: 1rem 1.1rem;
  }
}

/* Slug line: allow wrap on small screens */
#slugAutoWrap {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

#slugAutoWrap .input {
  flex: 1 1 220px;
  min-width: 0;
}

/* input can shrink */
#slugStatus {
  white-space: nowrap;
}

/* keep badge on one line */
#btnEditSlug {
  flex: 0 0 auto;
}

/* Bottom actions: stack on phones */
.actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 520px) {

  .actions .btn-gen,
  .actions .btn-primary,
  .actions .btn {
    flex: 1 1 100%;
  }

  /* full-width tap targets */
}

/* Form controls: guard against overflow on tiny devices */
.input,
select,
textarea {
  min-width: 0;
}

/* prevents overflow from long placeholders */

@media (max-width:400px) {
  .btn-gen__text {
    font-size: .95rem;
  }

  .card {
    padding: 1rem 1.1rem;
  }
}

/* --- Fil d’Ariane: passe à la ligne proprement sur mobile --- */
/* (Duplicate nav-bc .wrap removed) */

/* --- Subnav: scroll horizontal doux si trop d’onglets --- */
.subnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subnav::-webkit-scrollbar {
  display: none;
}

/* facultatif */

/* --- Ligne de badges sous le titre: évite l’écrasement --- */
.hero .hstack .badge {
  white-space: nowrap;
}

@media (max-width:520px) {
  .hero .hstack {
    gap: .4rem;
  }

  .hero .hstack .badge {
    font-size: .8rem;
    padding: 2px 6px;
  }
}

/* --- Histogramme: labels plus étroits sur mobile --- */
@media (max-width:520px) {
  .hlabel {
    width: 80px !important;
    flex: 0 0 80px !important;
    font-size: .9rem;
  }

  .hval {
    width: 38px !important;
    flex: 0 0 38px !important;
    font-size: .9rem;
  }

  .hbar {
    height: 12px !important;
  }
}

/* --- Bloc "Infos & paramètres": actions en ligne qui s’empilent sur mobile --- */
.info-list .hstack {
  flex-wrap: wrap;
}

@media (max-width:520px) {

  .info-list .hstack .btn,
  .info-list .hstack form {
    flex: 1 1 100%;
  }

  .info-list .hstack form .btn {
    width: 100%;
  }

  /* boutons des <form> inline */
}

/* --- Inputs & sélecteurs: garde le contrôle dans la largeur --- */
.input,
select,
textarea {
  min-width: 0;
}

/* évite le débordement de placeholder long */

/* --- Sections de formulaire: affiner l’espacement sur très petit écran --- */
@media (max-width:400px) {
  .card {
    padding: 1rem 1.1rem;
  }
}

/* --- Aperçus média: garantit la largeur et le rognage corrects --- */
#section-visibility img,
#section-visibility video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* --- Boutons d’enregistrement en pied de formulaire: pleine largeur si étroit --- */
@media (max-width:520px) {

  #section-media form .hstack .btn,
  #section-visibility form .hstack .btn,
  #section-params form .hstack .btn {
    flex: 1 1 100%;
  }
}

/* --- Modal suppression: scrollable et confortable sur petits écrans --- */
#deleteModal .card {
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow: auto;
  /* scroll interne si besoin */
}

#deleteModal .modal-backdrop {
  touch-action: none;
}

/* évite le scroll arrière-plan */

/* Equal-size admin action buttons */
.btn-row.equal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 equal columns */
  gap: .75rem;
}

@media (max-width: 920px) {
  .btn-row.equal {
    grid-template-columns: repeat(2, 1fr);
    /* stack to 2x2 on smaller screens */
  }
}

@media (max-width: 520px) {
  .btn-row.equal {
    grid-template-columns: 1fr;
    /* full width on phones */
  }
}

/* Make the actual clickable controls fill their grid cell */
.btn-row.equal .btn {
  width: 100%;
  justify-content: center;
  /* center icon+text */
  white-space: nowrap;
  /* keep one line */
}

/* Ensure forms themselves don't constrain width */
.btn-row.equal form {
  width: 100%;
}

/* ——— Make all action buttons look identical ——— */

/* 1) Normalize typography across <a> and <button> */
.btn-row.equal .btn,
.btn-row.equal a.btn,
.btn-row.equal button.btn {
  font-family: "Poppins", -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  /* pick one size and keep it everywhere */
  line-height: 1.2;
  font-weight: 700;
  /* same weight for all variants */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  display: inline-flex;
  /* align icon/text consistently */
  align-items: center;
  justify-content: center;
  gap: .5rem;

  width: 100%;
  /* fill the grid cell */
  min-height: 56px;
  /* equal visual height */
  padding: 14px 18px;
  /* consistent padding */
  white-space: nowrap;
}

/* 2) Prevent variant classes from changing the font size/weight */
.btn-row.equal .btn.btn-accent,
.btn-row.equal .btn.btn-solid-light {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* 3) Forms shouldn’t constrain width */
.btn-row.equal form {
  width: 100%;
}


/* Suppress browser native :invalid styling — we control it ourselves */
.input:invalid,
select:invalid,
textarea:invalid,
input:invalid {
  box-shadow: none;
  outline: none;
  border-color: inherit;
}

/* Validation states — only show after first submit attempt */
.was-validated .input:not(:placeholder-shown):invalid,
.was-validated textarea:not(:placeholder-shown):invalid,
.was-validated select:invalid {
  border-color: var(--danger);
}

.was-validated .input:focus:invalid,
.was-validated select:focus:invalid,
.was-validated textarea:focus:invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   ADMIN BREADCRUMB (Redone v50)
   Isolated to prevent conflicts with header/global styles
   ========================================================================== */
.admin-breadcrumb {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 90;
}

.admin-breadcrumb-wrap {
  width: 100%;
  max-width: 88rem;
  /* Matches content max-width */
  margin: 0 auto;
  padding: 0.75rem 1.25rem;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* FORCE LEFT ALIGNMENT */
  gap: 0.5rem;

  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (min-width: 768px) {
  .admin-breadcrumb-wrap {
    padding: 0.75rem 3rem;
    /* Match desktop padding */
  }
}

/* Hide Scrollbar */
.admin-breadcrumb-wrap::-webkit-scrollbar {
  display: none;
}

/* Items */
.admin-breadcrumb-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;

  /* Override any global .nav-link styles */
  display: inline-flex;
  width: auto !important;
  flex-shrink: 0;
}

.admin-breadcrumb-link:hover {
  color: var(--brand-gold);
}

.admin-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  margin-top: 1px;
  /* Visual tweak */
  flex-shrink: 0;
}

.admin-breadcrumb-current {
  color: #fff;
  /* Bright white for current */
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  width: auto !important;
}

/* ==========================================================================
   UNIFIED PILL BUTTONS — .btn-profile-pill / .btn-like-pill / .btn-chat-pill
   defined above (outline / gradient / solid). Only ghost base for cancel-like & status.
   ========================================================================== */

.btn-cancel-like,
.btn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
}

/* Cancel like — muted ghost */
.btn-cancel-like {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  padding: 6px 12px;
}

.btn-cancel-like:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.04);
}

/* Status pill — read-only indicator */
.btn-status-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  padding: 6px 12px;
  cursor: default;
  pointer-events: none;
}

/* New match — pulsating highlight */
.new-match-btn {
  animation: pulse-match 1.6s ease-in-out infinite;
  border-color: rgba(232, 168, 159, 0.5) !important;
  background: rgba(232, 168, 159, 0.12) !important;
}

@keyframes pulse-match {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 168, 159, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(232, 168, 159, 0);
  }
}

/* --------------------------------------------------
   Button loading state (client feedback)
-------------------------------------------------- */
.btn-loading,
a.btn-loading {
  position: relative;
  pointer-events: none !important;
  opacity: 0.85;
  cursor: wait !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: inherit;
  animation: btn-loading-fade 0.3s ease;
}

@keyframes btn-loading-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.btn-loading .btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  z-index: 1;
}

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

/* Link click feedback — brief pulse before navigation */
a.btn-discover-loading,
a.disco-orb-loading,
a.ed-discover-btn.btn-discover-loading {
  animation: btn-pulse-loading 0.4s ease;
}

@keyframes btn-pulse-loading {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.97); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* Découvrir les participants — état verrouillé (même rendu /events + fiche événement) */
.btn-discover.btn-locked,
.ed-discover-btn.locked {
  animation: none !important;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%) !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  filter: none !important;
  opacity: .85;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35) !important;
}

.btn-discover.btn-locked:hover,
.ed-discover-btn.locked:hover {
  opacity: 1 !important;
  transform: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%) !important;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35) !important;
}

/* Partenaire : carte cliquable (toute la zone) + lien Maps au-dessus (pas de <a> imbriqués) */
.rdv-partner-card {
  position: relative;
  border-radius: inherit;
}
.rdv-partner-card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.rdv-partner-card__maps {
  position: relative;
  z-index: 2;
}

/* --- Public pages : rappel likes & match --- */
.rdv-match-promo {
  box-sizing: border-box;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 46, 121, 0.3);
  background: linear-gradient(135deg, rgba(255, 46, 121, 0.12), rgba(212, 175, 55, 0.07));
}
/* Fiche événement : même largeur de colonne texte que .ed-desc-text (65ch), barre promo pleine largeur */
.ed-desc-match-promo .rdv-match-promo__copy {
  max-width: 65ch;
}
.rdv-match-promo--compact {
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
}
.rdv-match-promo--register {
  margin-top: 0;
  margin-bottom: 0.65rem;
  border-radius: 14px;
}
.rdv-match-promo__heads {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.rdv-match-promo__badge {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.08rem;
}
.rdv-match-promo__copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.rdv-match-promo__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-head, Anton, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.rdv-match-promo--compact .rdv-match-promo__title {
  font-size: 0.88rem;
}
.rdv-match-promo__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}
.rdv-match-promo--compact .rdv-match-promo__sub {
  font-size: 0.78rem;
}
.rdv-match-promo__sub strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}
.rdv-match-promo__flash {
  font-weight: 800;
  color: #ffb8d4;
  text-shadow: 0 0 14px rgba(255, 46, 121, 0.55);
  animation: rdv-match-flash-pulse 2.4s ease-in-out infinite;
}
@keyframes rdv-match-flash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.rdv-match-promo__more {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}
.rdv-match-promo__more a {
  font-weight: 700;
  color: var(--brand-gold, #ff2e79);
  text-decoration: none;
}
.rdv-match-promo__more a:hover {
  text-decoration: underline;
}