/* Tailwind 4 - Configuration des couleurs globales */

/* Variables CSS pour la couleur principale : Persian Red */
:root {
  --color-persian-red-50: #fef2f2;
  --color-persian-red-100: #fee2e2;
  --color-persian-red-200: #fecaca;
  --color-persian-red-300: #fca5a5;
  --color-persian-red-400: #f77272;
  --color-persian-red-500: #ee4545;
  --color-persian-red-600: #db2525;
  --color-persian-red-700: #b81d1d;
  --color-persian-red-800: #991b1b;
  --color-persian-red-900: #7f1d1d;
  --color-persian-red-950: #450a0a;

  /* COULEUR PRINCIPALE DU THÈME - Facilement modifiable pour tester différentes nuances */
  /* IMPORTANT : Modifier aussi THEME_PRIMARY_COLOR dans config.php pour synchroniser */
  /* Couleur actuelle : Amber (jaune/ambre) Tailwind */
  /* Options amber Tailwind à tester :
     - #f59e0b (amber-500) - Amber moyen [ACTUEL]
     - #d97706 (amber-600) - Amber foncé
     - #fbbf24 (amber-400) - Amber clair
     - #b45309 (amber-700) - Amber très foncé
  */
  --color-primary: #f59e0b; /* amber-500 - À synchroniser avec THEME_PRIMARY_COLOR dans config.php */
  --color-primary-dark: #d97706; /* amber-600 - Version plus foncée pour les accents */

  /* Couleurs des univers - À synchroniser avec config.php */
  --color-red: #CA3A31; /* Rouge pour Organisateurs */
  --color-red-light: #F5D5D3; /* Rouge clair pour les tags Organisateurs */
  --color-green: #4AA34C; /* Vert pour Exposants */
  --color-green-light: #E1FBE8; /* Vert clair pour les tags Exposants */
  --color-blue: #3982CB; /* Bleu pour Visiteurs */
  --color-blue-light: #C1E5FB; /* Bleu clair pour les tags Visiteurs */

  /* Couleur secondaire : Amber (usage léger) */
  /* Pour changer facilement la couleur secondaire, modifier uniquement cette variable */
  --color-secondary: amber;
}

/* Configuration Tailwind 4 via CSS */
@theme {
  --color-persian-red-50: #fef2f2;
  --color-persian-red-100: #fee2e2;
  --color-persian-red-200: #fecaca;
  --color-persian-red-300: #fca5a5;
  --color-persian-red-400: #f77272;
  --color-persian-red-500: #ee4545;
  --color-persian-red-600: #db2525;
  --color-persian-red-700: #b81d1d;
  --color-persian-red-800: #991b1b;
  --color-persian-red-900: #7f1d1d;
  --color-persian-red-950: #450a0a;
  
  /* Couleur principale du thème (utilise la variable CSS) */
  --color-primary: var(--color-primary);
  --color-primary-dark: var(--color-primary-dark);
}

/* Classe utilitaire pour utiliser la couleur principale */
.bg-primary {
  background-color: var(--color-primary);
}

.text-primary {
  color: var(--color-primary);
}

.text-primary-dark {
  color: var(--color-primary-dark);
}

.border-primary {
  border-color: var(--color-primary);
}

.border-primary-dark {
  border-color: var(--color-primary-dark);
}

/* Header */
#main-header.header-has-shadow {
  box-shadow: 0 5px 5px rgba(100, 100, 100, 0.1);
}

#main-content-offset {
  padding-top: 80px;
}

/* Mode focus (connexion, inscription, créer brocante) : header non fixe, pas de décalage */
.header-footer-focus-mode #main-content-offset {
  padding-top: 0;
}

@media (max-width: 768px) {
  #main-content-offset {
    padding-top: 72px;
  }

  .header-footer-focus-mode #main-content-offset {
    padding-top: 0;
  }
}

/* Classes pour les couleurs des univers - Rouge (Organisateurs) */
.text-red {
  color: var(--color-red) !important;
}

.bg-red {
  background-color: var(--color-red);
}

.bg-red-light {
  background-color: var(--color-red-light);
}

.border-red {
  border-color: var(--color-red) !important;
}

/* Tags : fond léger/transparent + texte couleur thématique (à ne pas confondre avec les boutons) */
.tag-red {
  background-color: color-mix(in srgb, var(--color-red) 14%, transparent) !important;
  color: var(--color-red) !important;
}

.hover-red:hover {
  color: var(--color-red) !important;
}

/* Classes pour les couleurs des univers - Vert (Exposants) */
.text-green {
  color: var(--color-green) !important;
}

.bg-green {
  background-color: var(--color-green);
}

.bg-green-light {
  background-color: var(--color-green-light);
}

.tag-green {
  background-color: color-mix(in srgb, var(--color-green) 14%, transparent) !important;
  color: var(--color-green) !important;
}

.border-green-light {
  border-color: var(--color-green-light) !important;
}

.hover-green:hover {
  color: var(--color-green) !important;
}

/* Classes pour les couleurs des univers - Bleu (Visiteurs) */
.text-blue {
  color: var(--color-blue) !important;
}

.bg-blue {
  background-color: var(--color-blue);
}

.bg-blue-light {
  background-color: var(--color-blue-light);
}

.tag-blue {
  background-color: color-mix(in srgb, var(--color-blue) 14%, transparent) !important;
  color: var(--color-blue) !important;
}

.border-blue-light {
  border-color: var(--color-blue-light) !important;
}

.hover-blue:hover {
  color: var(--color-blue) !important;
}

/* Styles globaux pour Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Hero Section Styles */
.hero-bg-image {
  background-image: url('../images/ma-brocante-hero.jpg');
}

.hero-overlay {
  background-color: white;
  opacity: 0.5;
}

/* Hero Section - Image de fond unique avec 3 cartes blanches */
.hero-themes-section {
  min-height: auto;
}

.hero-theme-card {
  min-height: auto;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hero-themes-section {
    padding-top: 2.5rem; /* py-10 */
    padding-bottom: 2.5rem;
  }

  .hero-theme-card {
    width: 100%;
    max-width: 100% !important;
    min-height: auto;
  }
}

/* Section Mur de Mots - Villes Belges */
.wordcloud-section {
	  position: relative;
}

.wordwall {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

@media (min-width: 1025px) {
  .wordwall {
    display: block;
  }
}

.wordwall-grid {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--wordwall-cols, 8), minmax(0, 1fr));
  grid-template-rows: repeat(var(--wordwall-rows, 4), 1fr);
  align-items: center;
  justify-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem 2rem;
}

.wordwall-slot {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.22;
  transition: opacity 220ms ease;
  user-select: none;
}

.wordwall-slot.is-swapping {
  opacity: 0;
}


.wordcloud-container {
	  position: relative;
	  max-width: 100%;
	  width: 100%;
  z-index: 2;
  margin: 0;
    padding: 2rem 0
}

.wordcloud-words {
    pointer-events: none;
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    align-content: center;

}

.wordcloud-word {
  color: white;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  display: inline-block;
}

/* Phrase centrale - Mise en avant */
.wordcloud-center {
  pointer-events: none;
  z-index: 10;
}

.wordcloud-text {
  color: white;
  animation: fadeInScale 2s ease-out 0.3s both;
  position: relative;
  z-index: 10;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0) 0%, rgba(245, 158, 11, 0.7) 30%, rgba(245, 158, 11, 0.7) 50%, rgba(245, 158, 11, 0.5) 70%, var(--color-primary) 100%);
  padding: 2rem 3rem;
  border-radius: 0.5rem;
  text-align: center;
  display: inline-block;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .wordcloud-section {
    min-height: auto;
    padding: 0.75rem 0 !important;
  }

  .wordcloud-text {
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    max-width: 100%;
    font-size: 1.05rem !important;
    line-height: 1.35;
  }
}

/* Responsive - Tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .wordcloud-section {
    min-height: auto;
  }
  .wordcloud-text {
    font-size: 2rem !important; /* text-3xl */
  }
}

/* Section Organisateurs */
.organizers-section {
  position: relative;
}

.organizers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(202, 58, 49, 0.2), transparent);
}

/* Animation pour les cartes de fonctionnalités */
.organizers-section .bg-gray-50 {
  transition: all 0.3s ease;
}

.organizers-section .bg-gray-50:hover {
  transform: translateY(-2px);
}

/* Responsive - Mobile pour la section organisateurs */
@media (max-width: 768px) {
  .organizers-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .organizers-section .grid {
    gap: 1.5rem;
  }
  
  .organizers-section h2 {
    font-size: 2rem;
  }
  
  .organizers-section .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Tablette pour la section organisateurs */
@media (min-width: 769px) and (max-width: 1024px) {
  .organizers-section .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Section Exposants */
.exhibitors-section {
  position: relative;
}

.exhibitors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(74, 163, 76, 0.2), transparent);
}

/* Animation pour les cartes de fonctionnalités */
.exhibitors-section .bg-gray-50 {
  transition: all 0.3s ease;
}

.exhibitors-section .bg-gray-50:hover {
  transform: translateY(-2px);
}

/* Responsive - Mobile pour la section exposants */
@media (max-width: 768px) {
  .exhibitors-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .exhibitors-section .grid {
    gap: 1.5rem;
  }
  
  .exhibitors-section h2 {
    font-size: 2rem;
  }
  
  .exhibitors-section .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Tablette pour la section exposants */
@media (min-width: 769px) and (max-width: 1024px) {
  .exhibitors-section .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Section Visiteurs */
.visitors-section {
  position: relative;
}

.visitors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(57, 130, 203, 0.2), transparent);
}

/* Animation pour les cartes de fonctionnalités */
.visitors-section .bg-gray-50 {
  transition: all 0.3s ease;
}

.visitors-section .bg-gray-50:hover {
  transform: translateY(-2px);
}

/* Responsive - Mobile pour la section visiteurs */
@media (max-width: 768px) {
  .visitors-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .visitors-section .grid {
    gap: 1.5rem;
  }
  
  .visitors-section h2 {
    font-size: 2rem;
  }
  
  .visitors-section .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Tablette pour la section visiteurs */
@media (min-width: 769px) and (max-width: 1024px) {
  .visitors-section .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - Table compacte des fonctionnalités (sections publics) */
@media (max-width: 768px) {
  .organizers-section,
  .exhibitors-section,
  .visitors-section {
    background-image: none !important;
    background-color: #ffffff !important;
  }

  .audience-section-overlay {
    display: block !important;
    background-color: rgba(255, 255, 255, 1) !important;
  }

  .audience-features {
    display: block !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    background: #ffffff !important;
    gap: 0 !important;
    margin-top: 1rem !important;
  }

  .audience-features > div {
    position: relative;
    padding: 0.8rem 3.25rem 0.8rem 1rem !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .audience-features > div:not(:last-child) {
    border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
  }

  .audience-features > div > div.flex {
    align-items: center !important;
  }

  .audience-features > div .space-x-3 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.5rem !important;
  }

  .audience-features > div .bg-red-light,
  .audience-features > div .bg-green-light,
  .audience-features > div .bg-blue-light {
    background-color: transparent !important;
  }

  .audience-features > div .flex-shrink-0 {
    padding: 0 !important;
  }

  .audience-features > div .flex-shrink-0 .material-symbols-outlined {
    font-size: 1.25rem !important;
  }

  .audience-accordion-toggle {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(17, 24, 39, 0.7);
  }

  .audience-accordion-toggle .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
  }

  .audience-features > a {
    display: block;
    margin-top: 0.75rem;
  }

  .audience-features h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }

  .audience-features p.text-xs {
    display: none !important;
    margin-top: 0.5rem !important;
    padding-right: 0.25rem;
  }

  .audience-feature-open p.text-xs {
    display: block !important;
  }
}

/* Landing pages - shared conversion styles */
.landing-page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 26rem);
}

.landing-hero {
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero-red::before {
  background: radial-gradient(circle at 15% 20%, rgba(202, 58, 49, 0.14), transparent 52%),
              radial-gradient(circle at 85% 0%, rgba(245, 213, 211, 0.82), transparent 38%);
}

.landing-hero-green::before {
  background: radial-gradient(circle at 15% 20%, rgba(74, 163, 76, 0.14), transparent 52%),
              radial-gradient(circle at 85% 0%, rgba(225, 251, 232, 0.88), transparent 38%);
}

.landing-hero-blue::before {
  background: radial-gradient(circle at 15% 20%, rgba(57, 130, 203, 0.14), transparent 52%),
              radial-gradient(circle at 85% 0%, rgba(193, 229, 251, 0.88), transparent 38%);
}

.landing-hero > .container {
  position: relative;
  z-index: 1;
}

.landing-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.5rem 0.8rem;
}

.landing-title {
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.landing-subtitle {
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  max-width: 52rem;
}

.landing-section-title {
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.22;
  font-weight: 800;
  color: #111827;
}

.landing-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn:focus-visible,
.landing-input:focus-visible,
.landing-faq-item summary:focus-visible,
.landing-text-link:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.2);
  outline-offset: 2px;
}

.landing-btn-red {
  background: var(--color-red);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(202, 58, 49, 0.24);
}

.landing-btn-green {
  background: var(--color-green);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(74, 163, 76, 0.25);
}

.landing-btn-blue {
  background: var(--color-blue);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(57, 130, 203, 0.25);
}

.landing-btn-light {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
}

.landing-btn-ghost-red {
  border: 2px solid rgba(202, 58, 49, 0.35);
  color: var(--color-red);
  background: #ffffff;
}

.landing-btn-ghost-green {
  border: 2px solid rgba(74, 163, 76, 0.35);
  color: var(--color-green);
  background: #ffffff;
}

.landing-btn-ghost-blue {
  border: 2px solid rgba(57, 130, 203, 0.35);
  color: var(--color-blue);
  background: #ffffff;
}

.landing-btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: transparent;
}

.landing-search-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.landing-search-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
}

.landing-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #374151;
  font-weight: 700;
}

.landing-input {
  width: 100%;
  min-height: 46px;
  border-radius: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #ffffff;
  padding: 0.68rem 0.8rem;
  color: #111827;
}

.landing-text-link {
  color: #374151;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.landing-proof-item {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #1f2937;
  padding: 0.45rem 0.72rem;
  font-size: 0.81rem;
  font-weight: 600;
}

.landing-agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 130, 203, 0.35);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.landing-empty {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  padding: 1.2rem;
}

.landing-organizer-banner {
  background: linear-gradient(135deg, #ab2f28 0%, #ca3a31 45%, #db625b 100%);
  border-radius: 1.3rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
}

.landing-organizer-copy {
  max-width: 52rem;
}

.landing-banner-points {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing-banner-points span {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.42rem 0.68rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.landing-organizer-cta {
  width: 100%;
  max-width: 20rem;
  display: grid;
  gap: 0.6rem;
}

.landing-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.landing-step-card,
.landing-feature-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 1rem;
  padding: 1rem;
}

.landing-step-number {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.landing-card-title {
  color: #111827;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.landing-card-text {
  margin-top: 0.45rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.landing-proof-panel {
  border-radius: 1.2rem;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.landing-proof-panel-red {
  background: linear-gradient(130deg, #ca3a31 0%, #a32f29 100%);
}

.landing-proof-panel-green {
  background: linear-gradient(130deg, #4aa34c 0%, #307032 100%);
}

.landing-proof-avatar {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  border: 3px solid rgba(255, 255, 255, 0.65);
  object-fit: cover;
  object-position: center;
}

.landing-list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-list-check li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.28rem 0;
}

.landing-list-check li::before {
  content: '-';
  position: absolute;
  left: 0;
  top: 0;
}

.landing-faq-list {
  display: grid;
  gap: 0.7rem;
}

.landing-faq-item {
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 0.95rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
}

.landing-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  list-style: none;
}

.landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.landing-faq-item p {
  margin-top: 0.6rem;
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.5;
}

.landing-final-cta-red {
  background: linear-gradient(135deg, #ca3a31 0%, #a32f29 100%);
}

.landing-final-cta-green {
  background: linear-gradient(135deg, #4aa34c 0%, #307032 100%);
}

.landing-final-cta-blue {
  background: linear-gradient(135deg, #3982cb 0%, #295f94 100%);
}

.landing-account-panel {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1.1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1rem;
  align-items: center;
}

.landing-account-media {
  justify-self: end;
}

.landing-sticky-cta {
  display: none;
}

/* Landing reveal animation (controlled by JS) */
[data-landing-reveal].landing-reveal-hidden {
  opacity: 0;
  transform: translateY(10px);
}

[data-landing-reveal].landing-reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease, transform 360ms ease;
}

@media (max-width: 1100px) {
  .landing-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-search-cta-wrap {
    grid-column: span 2;
  }

  .landing-agenda-grid,
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-step-grid {
    grid-template-columns: 1fr;
  }

  .landing-organizer-banner {
    grid-template-columns: 1fr;
  }

  .landing-organizer-cta {
    max-width: none;
  }

  .landing-account-panel {
    grid-template-columns: 1fr;
  }

  .landing-account-media {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .landing-page {
    background: #f8fafc;
    padding-bottom: 4.5rem;
  }

  .landing-search-panel {
    padding: 0.85rem;
  }

  .landing-search-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .landing-search-cta-wrap {
    grid-column: span 1;
  }

  .landing-btn-row {
    flex-direction: column;
  }

  .landing-agenda-grid,
  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-proof-panel {
    grid-template-columns: 1fr;
  }

  .landing-proof-avatar {
    width: 82px;
    height: 82px;
  }

  .landing-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-btn,
  .landing-card,
  [data-landing-reveal].landing-reveal-visible {
    transition: none !important;
    transform: none !important;
  }

  [data-landing-reveal].landing-reveal-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Gradients thématiques réutilisables */
.theme-gradient-red {
  background-color: var(--color-red);
  background-image: linear-gradient(135deg, #ca3a31 0%, #a32f29 100%);
}

.theme-gradient-green {
  background-color: var(--color-green);
  background-image: linear-gradient(135deg, #4aa34c 0%, #307032 100%);
}

.theme-gradient-blue {
  background-color: var(--color-blue);
  background-image: linear-gradient(135deg, #3982cb 0%, #295f94 100%);
}

/* Home new - recherche et vues agenda */
.home-new-hero .landing-title,
.home-new-hero .landing-subtitle {
  max-width: 56rem;
}

.home-new-hero {
  overflow: visible;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.07) 48%, rgba(255, 255, 255, 0) 100%);
}

.home-new-search-panel {
  border-radius: 1.2rem;
  position: relative;
  z-index: 30;
}

.home-new-mobile-filter-btn {
  display: none;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 700;
  align-items: center;
  gap: 0.45rem;
}

[data-home-new-page] {
  --home-sidebar-width: 20rem;
  --home-layout-gap: 2rem;
}

.home-new-floating-sidebar {
  width: var(--home-sidebar-width);
  position: sticky;
  top: 6rem;
  left: auto;
  z-index: 30;
}

.home-new-sidebar-top {
  display: none;
}

.home-new-btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.home-new-btn-ghost {
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #ffffff;
  color: #1f2937;
}

.home-new-reset-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-new-results-container {
  width: 100%;
}

.home-new-main-layout {
  display: grid;
  grid-template-columns: var(--home-sidebar-width) minmax(0, 1fr);
  gap: var(--home-layout-gap);
  align-items: start;
}

.home-new-main-content {
  min-width: 0;
}

.home-new-filter-overlay {
  display: none;
}

.home-new-filter-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.home-new-filter-field {
  min-width: 0;
}

.home-new-field-where {
  order: 1;
}

.home-new-field-distance {
  order: 2;
}

.home-new-field-when {
  order: 3;
}

.home-new-field-categories {
  order: 4;
}

.home-new-field-distance {
  align-self: stretch;
}

.home-new-field-actions {
  order: 5;
  align-self: stretch;
}

.home-new-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-new-combo {
  position: relative;
}

.home-new-combo-trigger {
  width: 100%;
  min-height: 46px;
  border-radius: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #ffffff;
  color: #111827;
  padding: 0.62rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  text-align: left;
}

.home-new-combo-panel {
  position: absolute;
  z-index: 140;
  left: 0;
  right: 0;
  margin-top: 0.4rem;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0.95rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.16);
  padding: 0.6rem;
}

.home-new-combo-search {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0.7rem;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
}

.home-new-combo-options {
  max-height: 18.5rem;
  overflow-y: auto;
  display: grid;
  gap: 0.35rem;
}

.home-new-combo-group-title {
  margin: 0.3rem 0 0.1rem;
  font-size: 0.76rem;
  color: #6b7280;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-new-combo-option {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.7rem;
  min-height: 40px;
  padding: 0.48rem 0.6rem;
  background: #ffffff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}

.home-new-check-icon {
  font-size: 1.05rem;
  color: transparent;
}

.home-new-combo-option.is-selected {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

.home-new-combo-option.is-selected .home-new-check-icon {
  color: var(--color-primary);
}

.home-new-combo-trigger.is-loading {
  opacity: 0.75;
}

.home-new-combo-trigger.is-error {
  border-color: rgba(202, 58, 49, 0.5);
}

.home-new-distance-combo {
  position: relative;
  max-width: 170px;
}

.home-new-distance-combo.is-open .home-new-distance-input-row {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.home-new-distance-input-row {
  display: flex;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 0.75rem;
  background: #ffffff;
  min-height: 42px;
  padding: 0 0.62rem;
  gap: 0.45rem;
}

.home-new-distance-input {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 0;
  padding: 0;
  font-weight: 700;
  color: #1f2937;
  background: transparent;
}

.home-new-distance-input:focus {
  outline: none;
}

.home-new-distance-unit {
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 700;
}

.home-new-distance-suggestions {
  position: absolute;
  z-index: 150;
  left: 0;
  right: 0;
  margin-top: 0.38rem;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0.85rem;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.14);
  padding: 0.32rem;
  display: grid;
  gap: 0.25rem;
}

.home-new-distance-option,
.home-new-shortcut-btn {
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #ffffff;
  border-radius: 0.7rem;
  min-height: 36px;
  padding: 0.35rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
  text-align: left;
}

.home-new-distance-option.is-active,
.home-new-shortcut-btn.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.18);
  color: #78350f;
}

.home-new-distance-note {
  margin-top: 0.38rem;
  font-size: 0.76rem;
  color: #6b7280;
}

.home-new-date-shortcuts {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.home-new-date-trigger {
  justify-content: space-between;
}

.home-new-date-picker-wrap {
  position: relative;
  overflow: visible;
}

.home-new-date-picker-wrap .flatpickr-wrapper {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-new-date-picker-input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.home-new-date-picker-wrap .flatpickr-calendar {
  margin-top: 0;
  border-radius: 0.9rem;
  border-color: rgba(17, 24, 39, 0.16);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.home-new-date-picker-wrap .flatpickr-calendar.static {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 180;
}

/* Calendrier flatpickr attaché au body (wizard compte, overflow du formulaire) */
body > .flatpickr-calendar {
  z-index: 280;
}

.home-new-date-picker-wrap .flatpickr-calendar,
.home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts,
.home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .flatpickr-innerContainer {
  overflow: hidden;
}

.home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .flatpickr-innerContainer {
  display: flex;
  align-items: stretch;
  width: auto;
}

.home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts {
  width: auto;
}

.home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .flatpickr-rContainer {
  width: 307px;
}

.home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .dayContainer {
  min-width: 307px;
  max-width: 307px;
}

.home-new-date-shortcuts-panel {
  border-left: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(248, 250, 252, 0.9);
  width: 168px;
  padding: 0.56rem 0.5rem;
}

.home-new-date-shortcuts-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-new-date-shortcuts-panel .home-new-date-shortcuts {
  margin-top: 0;
  display: grid;
  gap: 0.3rem;
}

.home-new-date-shortcuts-panel .home-new-shortcut-btn {
  width: 100%;
}

.home-new-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-new-view-switch {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  width: 100%;
  overflow-x: auto;
}

.home-new-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 0;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  font-size: 0.86rem;
}

.home-new-view-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.home-new-view-btn.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.18);
  color: #78350f;
}

.home-new-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.home-new-list-item {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.home-new-list-link {
  display: block;
  padding: 1rem 1rem 1.05rem;
}

.home-new-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.home-new-list-date {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.92rem;
}

.home-new-status-pill {
  display: inline-flex;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.24rem 0.58rem;
}

.home-new-list-title {
  color: #111827;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.22rem;
}

.home-new-list-meta,
.home-new-list-categories,
.home-new-list-summary,
.home-new-list-price {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-new-list-categories {
  font-weight: 600;
  color: #374151;
  margin-top: 0.2rem;
}

.home-new-list-price {
  font-weight: 700;
  color: #1f2937;
  margin-top: 0.22rem;
}

.home-new-list-summary {
  margin-top: 0.36rem;
}

.home-new-map-shell {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1rem;
}

.home-new-calendar-shell {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0.8rem 0 0;
}

#home-new-calendar .mbcal {
  width: 100%;
  border-radius: 0;
}

#home-new-calendar .mbcal-header {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.8rem;
  margin-bottom: 0.65rem;
}

#home-new-calendar .mbcal-title {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  text-transform: lowercase;
}

#home-new-calendar .mbcal-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 2px solid var(--color-primary);
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#home-new-calendar .mbcal-nav-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

#home-new-calendar .mbcal-weekdays,
#home-new-calendar .mbcal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

#home-new-calendar .mbcal-grid {
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
}

#home-new-calendar .mbcal-weekday {
  padding: 0.55rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: #92400e;
  border-bottom: 0;
}

#home-new-calendar .mbcal-day {
  min-height: 112px;
  border-right: 1px solid rgba(245, 158, 11, 0.3);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.35rem 0.3rem;
  border-radius: 0 !important;
  background: #ffffff;
}

#home-new-calendar .mbcal-day:nth-child(7n) {
  border-right: 0;
}

#home-new-calendar .mbcal-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

/* Border radius uniquement sur les 4 coins de la grille */
#home-new-calendar .mbcal-day:nth-child(1) {
  border-top-left-radius: 1rem !important;
}

#home-new-calendar .mbcal-day:nth-child(7) {
  border-top-right-radius: 1rem !important;
}

#home-new-calendar .mbcal-day:nth-child(36) {
  border-bottom-left-radius: 1rem !important;
}

#home-new-calendar .mbcal-day:nth-child(42) {
  border-bottom-right-radius: 1rem !important;
}

#home-new-calendar .mbcal-day-num {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: #78350f;
}

#home-new-calendar .mbcal-day.is-other .mbcal-day-num {
  color: #b45309;
  opacity: 0.45;
}

#home-new-calendar .mbcal-events {
  margin-top: 0.25rem;
  display: grid;
  gap: 0.18rem;
}

#home-new-calendar .mbcal-event {
  display: block;
  border: 1px solid #d97706;
  background: #fef3c7;
  color: #78350f;
  border-radius: 0.35rem;
  padding: 0.1rem 0.3rem;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#home-new-calendar .mbcal-more {
  font-size: 0.7rem;
  color: #92400e;
  font-weight: 700;
}

#home-new-map {
  width: 100%;
  height: 560px;
  border-radius: 0.85rem;
}

.home-new-map-empty {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: #6b7280;
}

.home-new-map-popup-title {
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.15rem;
  line-height: 1.3;
  font-size: 1.35rem;
}

.home-new-map-popup-kicker {
  display: inline-flex;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 9999px;
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.35rem;
}

.home-new-map-popup-date,
.home-new-map-popup-address {
  font-size: 0.82rem;
  color: #374151;
  margin: 0.1rem 0;
}

.home-new-map-popup-date {
  color: #b45309;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-new-map-popup-address {
  margin-bottom: 0.35rem;
}

.home-new-map-popup-booking {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.3rem 0.45rem;
  margin: 0.15rem 0 0.65rem;
}

.home-new-map-popup-booking-line {
  margin: 0;
  padding: 0.04rem 0;
}

.home-new-map-popup-booking.is-open {
  color: #166534;
  background: #dcfce7;
}

.home-new-map-popup-booking.is-closed {
  color: #991b1b;
  background: #fee2e2;
}

.home-new-map-popup a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
}

.home-new-map-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

/* Leaflet default adds bigger margins: reduce to match design */
.leaflet-popup-content p {
  margin: 0.25rem 0 !important;
}

.home-new-map-pin {
  background: transparent !important;
  border: none !important;
  width: 56px;
  height: 72px;
  margin-left: 0;
  margin-top: 0;
}

.home-new-map-pin-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-new-map-cluster {
  background: rgba(245, 158, 11, 0.24);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-new-map-cluster span {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

@media (max-width: 900px) {
  .home-new-main-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-new-floating-sidebar {
    position: static;
    width: 100%;
  }

  .home-new-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-new-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-new-mobile-filter-btn {
    display: inline-flex;
  }

  .home-new-floating-sidebar {
    position: fixed;
    top: 5.2rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-height: calc(100vh - 6rem);
    overflow: auto;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 80;
  }

  .home-new-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #111827;
  }

  .home-new-sidebar-close {
    border: none;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-new-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 70;
    display: block;
  }

  [data-home-new-page].filters-open .home-new-floating-sidebar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  [data-home-new-page].filters-open .home-new-filter-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .home-new-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-new-distance-combo {
    width: 100%;
    max-width: 100%;
  }

  .home-new-view-switch {
    width: 100%;
  }

  .home-new-view-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  #home-new-map {
    height: 420px;
  }

  .home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .flatpickr-innerContainer {
    flex-direction: column;
    width: 100%;
  }

  .home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .flatpickr-rContainer,
  .home-new-date-picker-wrap .flatpickr-calendar.has-shortcuts .dayContainer {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .home-new-date-shortcuts-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }

  .home-new-date-shortcuts-panel .home-new-date-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Typo titres (pages publiques) */
.title-xl {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Fiche brocante – bandeau sticky + drawer */
.brocante-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.brocante-stickybar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brocante-stickybar__meta {
  min-width: 0;
}

.brocante-stickybar__title {
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.brocante-stickybar__dates {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.brocante-stickybar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brocante-stickybar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid rgba(17, 24, 39, 0.16);
  background: #ffffff;
  color: #111827;
  white-space: nowrap;
}

.brocante-stickybar__btn--ghost:hover {
  background: rgba(17, 24, 39, 0.04);
}

.brocante-stickybar__btn--primary {
  border-color: transparent;
  background: var(--color-primary);
  color: #111827;
}

.brocante-stickybar__btn--primary:hover {
  filter: brightness(0.98);
}

.brocante-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(17, 24, 39, 0.55);
}

.brocante-drawer {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.25);
  max-height: min(84vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brocante-drawer__header {
  padding: 14px 14px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.brocante-drawer__kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(17, 24, 39, 0.55);
  margin-bottom: 2px;
}

.brocante-drawer__title {
  font-size: 1.05rem;
  font-weight: 950;
  color: #111827;
  line-height: 1.2;
}

.brocante-drawer__subtitle {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 650;
  margin-top: 4px;
}

.brocante-drawer__close {
  border: 1px solid rgba(17, 24, 39, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.brocante-drawer__tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
}

.brocante-drawer__tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 9999px;
  border: 2px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  font-weight: 900;
  color: #111827;
  font-size: 0.9rem;
}

.brocante-drawer__tab.is-active {
  border-color: transparent;
  background: rgba(245, 158, 11, 0.16);
}

.brocante-drawer__body {
  padding: 12px 14px 18px;
  overflow: auto;
}

.brocante-drawer__panel-card {
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 18px;
  padding: 14px;
  background: rgba(249, 250, 251, 0.75);
}

.brocante-drawer__panel-title {
  font-weight: 950;
  color: #111827;
  margin-bottom: 10px;
}

.brocante-drawer__panel-actions {
  display: grid;
  gap: 10px;
}

.brocante-drawer__action-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 2px solid rgba(17, 24, 39, 0.14);
  background: #ffffff;
  font-weight: 850;
  color: #111827;
}

.brocante-drawer__action-link.is-loading {
  opacity: 0.7;
}

.brocante-drawer__hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 550;
  line-height: 1.35;
}

.brocante-drawer__field {
  margin-top: 12px;
}

.brocante-drawer__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  color: #374151;
  margin-bottom: 6px;
}

.brocante-drawer__select,
.brocante-drawer__textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  padding: 10px 12px;
  background: #ffffff;
}

.brocante-drawer__textarea {
  resize: vertical;
}

.brocante-drawer__emplacements {
  margin-top: 12px;
}

.brocante-drawer__zone {
  margin-top: 12px;
}

.brocante-drawer__zone-title {
  font-size: 0.8rem;
  font-weight: 950;
  color: #374151;
  margin-bottom: 8px;
}

.brocante-drawer__zone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brocante-drawer__emp {
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  border: 2px solid rgba(17, 24, 39, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brocante-drawer__emp-num {
  font-size: 0.95rem;
}

.brocante-drawer__emp-size {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.75;
}

.brocante-drawer__emp--available {
  background: rgba(74, 163, 76, 0.14);
  border-color: rgba(74, 163, 76, 0.35);
  color: #14532d;
}

.brocante-drawer__emp--available:hover {
  background: rgba(74, 163, 76, 0.22);
}

.brocante-drawer__emp--taken {
  background: rgba(17, 24, 39, 0.04);
  color: rgba(17, 24, 39, 0.35);
}

.brocante-drawer-open body {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .brocante-stickybar__title,
  .brocante-stickybar__dates {
    max-width: 520px;
  }
  .brocante-drawer {
    left: auto;
    right: 18px;
    bottom: 18px;
    width: 460px;
    border-radius: 22px;
    max-height: min(78vh, 860px);
    border: 1px solid rgba(17, 24, 39, 0.10);
  }
  .brocante-drawer-overlay {
    background: rgba(17, 24, 39, 0.35);
  }
}

/* Mon compte – Agenda */
.brocante-agenda-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.brocante-agenda-card__link {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 10px;
  align-items: center;
  min-width: 0;
}

.brocante-agenda-card__media {
  width: 78px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(57, 130, 203, 0.22), rgba(245, 158, 11, 0.22));
  flex: 0 0 auto;
}

.brocante-agenda-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brocante-agenda-card__placeholder {
  width: 100%;
  height: 100%;
}

.brocante-agenda-card__content {
  min-width: 0;
}

.brocante-agenda-card__date {
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(17, 24, 39, 0.55);
}

.brocante-agenda-card__title {
  font-size: 0.95rem;
  font-weight: 950;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brocante-agenda-card__meta {
  font-size: 0.82rem;
  font-weight: 650;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brocante-agenda-card__remove {
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.brocante-agenda-card__remove-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(17, 24, 39, 0.72);
}

.brocante-agenda-card__remove-btn:hover {
  background: rgba(17, 24, 39, 0.04);
}

/* Leave space for stickybar on pages that include it */
.brocante-stickybar ~ #main-footer,
.brocante-stickybar ~ footer {
  margin-bottom: 88px;
}

@media (max-width: 640px) {
  .brocante-stickybar__meta {
    display: none;
  }
  .brocante-stickybar__btn span:last-child {
    display: none;
  }
  .brocante-stickybar__btn {
    padding: 10px 12px;
  }
}

/* Placement map editor (plan des emplacements) */
#placement-map-container {
  min-height: 400px;
  z-index: 0;
}

/* Switch Plan / Liste (sidebar emplacements) */
.placement-view-switch {
  display: flex;
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  background: #e5e7eb;
}
.placement-view-switch-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.placement-view-switch-btn:hover {
  color: #111827;
}
.placement-view-switch-btn--active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.placement-view-switch-btn .material-symbols-outlined {
  font-size: 1.125rem;
  line-height: 1;
}

/* Sidebar éditeur emplacements (même esprit que #wizard-steps-nav) */
.placement-editor-sidebar {
  box-sizing: border-box;
}
#view-liste.placement-view {
  margin-top: 0;
}
.placement-history-ts {
  font-variant-numeric: tabular-nums;
  min-width: 92px;
}
.placement-segment-label {
  background: transparent !important;
  border: none !important;
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
  white-space: nowrap;
}
.placement-segment-label span {
  display: inline-block;
}
.placement-map-tool-btn.ring-2 {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}
/* Mode C : libellé "X empl." sur les rangées */
.placement-row-count {
  font-size: 12px !important;
  font-weight: 700 !important;
}
.placement-row-count span {
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
/* Vue détail D : tooltip au survol */
.placement-segment-tooltip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* Repères déplacer début/fin de tracé */
.placement-edit-marker {
  background: transparent !important;
  border: none !important;
}
.placement-edit-marker-start,
.placement-edit-marker-end,
.placement-edit-marker-inverser {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 4px 8px;
  border-radius: 6px;
  border: 2px solid #2563eb;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.placement-edit-marker-start,
.placement-edit-marker-end {
  cursor: move;
}
.placement-edit-marker-inverser {
  cursor: pointer;
  border-color: #7c3aed;
  color: #5b21b6;
}
.placement-edit-marker-inverser:hover {
  background: #ede9fe !important;
}
.placement-edit-marker-anchor {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid #2563eb;
  border-radius: 50%;
  font-size: 12px;
  cursor: move;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placement-edit-marker-add {
  color: #059669;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px dashed #059669;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placement-edit-marker-add:hover {
  background: #ecfdf5 !important;
}
/* Poignée au survol du tracé (outil points de passage) : draggable, clic ou drop pour créer l'ancrage */
.placement-edit-marker-anchor-preview {
  color: #059669;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px dashed #059669;
  border-radius: 50%;
  font-size: 12px;
  cursor: move;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Popup menu gestion emplacement */
.placement-action-popup {
  z-index: 10000;
}

/* Bannière préférences cookies + langue */
.mb-prefs-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fffbeb;
  border-top: 2px solid #f59e0b;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  max-height: min(85vh, 520px);
  overflow-y: auto;
}

.mb-prefs-banner[hidden] {
  display: none !important;
}

.mb-prefs-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1rem 1.25rem;
}

.mb-prefs-banner__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mb-prefs-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.mb-prefs-banner__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
  cursor: pointer;
}

.mb-prefs-banner__close:hover {
  background: rgba(245, 158, 11, 0.35);
}

.mb-prefs-banner__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .mb-prefs-banner__grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}

.mb-prefs-banner__col {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  padding: 1rem 1rem 1.25rem;
}

.mb-prefs-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.mb-prefs-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #f59e0b;
}

/* Select personnalisé (aligné sur .home-new-combo de la home) */
.mb-form-select {
  position: relative;
  z-index: 0;
  --mb-fs-trigger-min-h: 46px;
  --mb-fs-trigger-py: 0.62rem;
  --mb-fs-trigger-px: 0.75rem;
  --mb-fs-trigger-font-size: 0.9375rem;
  --mb-fs-trigger-radius: 0.85rem;
  --mb-fs-caret: 1.35rem;
  --mb-fs-panel-mt: 0.4rem;
  --mb-fs-panel-pad: 0.6rem;
  --mb-fs-panel-radius: 0.95rem;
  --mb-fs-option-min-h: 40px;
  --mb-fs-option-py: 0.48rem;
  --mb-fs-option-px: 0.6rem;
  --mb-fs-option-radius: 0.7rem;
  --mb-fs-option-gap: 0.35rem;
  --mb-fs-option-font-size: 0.875rem;
  --mb-fs-options-max-h: 18.5rem;
  --mb-fs-flag-w: 1.5rem;
  --mb-fs-flag-h: 1rem;
  --mb-fs-search-min-h: 40px;
  --mb-fs-search-pad-y: 0.5rem;
  --mb-fs-search-pad-x: 0.65rem;
  --mb-fs-search-radius: 0.7rem;
}

.mb-form-select--compact {
  --mb-fs-trigger-min-h: 38px;
  --mb-fs-trigger-py: 0.42rem;
  --mb-fs-trigger-px: 0.55rem;
  --mb-fs-trigger-font-size: 0.8125rem;
  --mb-fs-trigger-radius: 0.7rem;
  --mb-fs-caret: 1.15rem;
  --mb-fs-panel-mt: 0.3rem;
  --mb-fs-panel-pad: 0.45rem;
  --mb-fs-panel-radius: 0.75rem;
  --mb-fs-option-min-h: 34px;
  --mb-fs-option-py: 0.32rem;
  --mb-fs-option-px: 0.5rem;
  --mb-fs-option-radius: 0.55rem;
  --mb-fs-option-gap: 0.28rem;
  --mb-fs-option-font-size: 0.8125rem;
  --mb-fs-flag-w: 1.125rem;
  --mb-fs-flag-h: 0.75rem;
  --mb-fs-search-min-h: 34px;
  --mb-fs-search-pad-y: 0.4rem;
  --mb-fs-search-pad-x: 0.5rem;
  --mb-fs-search-radius: 0.55rem;
}

.mb-form-select--super-compact {
  --mb-fs-trigger-min-h: 32px;
  --mb-fs-trigger-py: 0.28rem;
  --mb-fs-trigger-px: 0.45rem;
  --mb-fs-trigger-font-size: 0.75rem;
  --mb-fs-trigger-radius: 0.55rem;
  --mb-fs-caret: 1rem;
  --mb-fs-panel-mt: 0.22rem;
  --mb-fs-panel-pad: 0.35rem;
  --mb-fs-panel-radius: 0.65rem;
  --mb-fs-option-min-h: 30px;
  --mb-fs-option-py: 0.24rem;
  --mb-fs-option-px: 0.42rem;
  --mb-fs-option-radius: 0.45rem;
  --mb-fs-option-gap: 0.2rem;
  --mb-fs-option-font-size: 0.75rem;
  --mb-fs-flag-w: 1rem;
  --mb-fs-flag-h: 0.68rem;
  --mb-fs-search-min-h: 30px;
  --mb-fs-search-pad-y: 0.32rem;
  --mb-fs-search-pad-x: 0.42rem;
  --mb-fs-search-radius: 0.45rem;
}

.mb-form-select--super-compact .mb-form-select__trigger {
  font-weight: 600;
}

.mb-form-select-native.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-form-select__trigger {
  width: 100%;
  min-height: var(--mb-fs-trigger-min-h);
  border-radius: var(--mb-fs-trigger-radius);
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #ffffff;
  color: #111827;
  padding: var(--mb-fs-trigger-py) var(--mb-fs-trigger-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--mb-fs-trigger-font-size);
  text-align: left;
  cursor: pointer;
}

.mb-form-select__trigger[disabled],
.mb-form-select__trigger[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

#brocante-wizard .mb-form-select {
  --mb-fs-trigger-min-h: 40px;
  --mb-fs-trigger-py: 0.5rem;
  --mb-fs-trigger-px: 0.75rem;
  --mb-fs-trigger-radius: 0.5rem;
  --mb-fs-trigger-font-size: 0.875rem;
}

/* Wizard : libellés affichés dans les selects = pas de graisse « titre » ; placeholders champs = gras non hérité. */
#brocante-wizard .mb-form-select__trigger {
  font-weight: 400;
}

#brocante-wizard input::placeholder,
#brocante-wizard textarea::placeholder,
#brocante-wizard .mb-form-select__search::placeholder {
  font-weight: 400;
}

#brocante-wizard .home-new-combo-trigger {
  min-height: 40px;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

/* Select : pas d’empilement élevé sur le wrapper ; seule la ligne ouverte passe au-dessus des voisins. */
.mb-form-select:has([data-mb-form-select-trigger][aria-expanded="true"]) {
  z-index: 80;
}

/* Wizard : calendrier date au-dessus des champs (flatpickr). */
#brocante-wizard .flatpickr-calendar {
  z-index: 10000;
}

#brocante-wizard input:disabled,
#brocante-wizard select:disabled,
#brocante-wizard textarea:disabled {
  opacity: 0.3;
  cursor: default;
}

.mb-upload__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mb-upload__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(17, 24, 39, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.mb-upload__btn:hover {
  background: rgba(249, 250, 251, 1);
  border-color: rgba(245, 158, 11, 0.45);
}

.mb-upload__preview {
  margin-top: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(249, 250, 251, 0.9);
  min-height: 60px;
  overflow: hidden;
  padding: 0.4rem;
}

.mb-form-select__caret {
  font-size: var(--mb-fs-caret);
  color: #6b7280;
  transition: transform 0.2s ease;
}

.mb-form-select__trigger[aria-expanded="true"] .mb-form-select__caret {
  transform: rotate(180deg);
}

.mb-form-select__panel {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  margin-top: var(--mb-fs-panel-mt);
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: var(--mb-fs-panel-radius);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.16);
  padding: var(--mb-fs-panel-pad);
}

.mb-form-select__search {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: var(--mb-fs-search-radius);
  min-height: var(--mb-fs-search-min-h);
  padding: var(--mb-fs-search-pad-y) var(--mb-fs-search-pad-x);
  margin-bottom: 0.5rem;
  font-size: var(--mb-fs-option-font-size);
}

.mb-form-select__options {
  max-height: var(--mb-fs-options-max-h);
  overflow-y: auto;
  display: grid;
  gap: var(--mb-fs-option-gap);
}

.mb-form-select__group-title {
  margin: 0.3rem 0 0.1rem;
  font-size: 0.76rem;
  color: #6b7280;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mb-form-select__flag {
  width: var(--mb-fs-flag-w);
  height: var(--mb-fs-flag-h);
  object-fit: cover;
  border-radius: 0.2rem;
  flex-shrink: 0;
}

.mb-form-select__option {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--mb-fs-option-radius);
  min-height: var(--mb-fs-option-min-h);
  padding: var(--mb-fs-option-py) var(--mb-fs-option-px);
  background: #ffffff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
  font-size: var(--mb-fs-option-font-size);
  cursor: pointer;
}

.mb-form-select__check {
  font-size: 1.05rem;
  color: transparent;
}

.mb-form-select__option.is-selected {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

.mb-form-select__option.is-selected .mb-form-select__check {
  color: var(--color-primary);
}

.mb-form-select__option.hidden {
  display: none;
}

.mb-prefs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mb-prefs-btn:hover {
  opacity: 0.92;
}

.mb-prefs-btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.mb-prefs-btn--secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.mb-prefs-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

body.mb-prefs-banner-open:not(.header-footer-focus-mode) #main-content-offset {
  padding-bottom: min(22rem, 40vh);
}

@media (min-width: 768px) {
  body.mb-prefs-banner-open:not(.header-footer-focus-mode) #main-content-offset {
    padding-bottom: min(16rem, 32vh);
  }
}
