/* 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;
}

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

.home-new-filter-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  grid-template-areas:
    "where when categories"
    "distance when actions";
  gap: 0.8rem;
  align-items: stretch;
}

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

.home-new-field-where {
  grid-area: where;
}

.home-new-field-when {
  grid-area: when;
}

.home-new-field-categories {
  grid-area: categories;
}

.home-new-field-distance {
  grid-area: distance;
  align-self: start;
}

.home-new-field-actions {
  grid-area: actions;
  align-self: end;
}

.home-new-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  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(57, 130, 203, 0.35);
  background: rgba(193, 229, 251, 0.28);
}

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

.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(57, 130, 203, 0.45);
  box-shadow: 0 0 0 3px rgba(193, 229, 251, 0.35);
}

.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(57, 130, 203, 0.45);
  background: rgba(193, 229, 251, 0.45);
  color: #1f4f7d;
}

.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;
}

.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.38rem;
  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.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: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-new-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  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(57, 130, 203, 0.45);
  background: rgba(193, 229, 251, 0.45);
  color: #1f4f7d;
}

.home-new-list {
  display: grid;
  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-blue);
  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-calendar-shell,
.home-new-map-shell {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1rem;
  padding: 0.8rem;
}

#home-new-calendar .fc .fc-toolbar-title {
  font-size: 1.1rem;
  font-weight: 800;
}

#home-new-calendar .fc .fc-button {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(17, 24, 39, 0.2);
  font-weight: 700;
}

#home-new-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
#home-new-calendar .fc .fc-button-primary:not(:disabled):active {
  background: rgba(193, 229, 251, 0.55);
  border-color: rgba(57, 130, 203, 0.5);
  color: #1f4f7d;
}

#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.2rem;
}

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

.home-new-map-pin {
  background: transparent;
  border: none;
}

.home-new-map-pin .material-symbols-outlined {
  color: var(--color-blue);
  font-size: 2rem;
  filter: drop-shadow(0 3px 2px rgba(17, 24, 39, 0.2));
}

.home-new-map-cluster {
  background: rgba(57, 130, 203, 0.18);
  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-blue);
  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: 1200px) {
  .home-new-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "where when"
      "distance when"
      "categories actions";
  }

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

@media (max-width: 900px) {
  .home-new-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .home-new-filter-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "where"
      "distance"
      "when"
      "categories"
      "actions";
  }

  .home-new-filter-actions {
    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));
  }
}

/* Placement map editor (plan des emplacements) */
#placement-map-container {
  min-height: 400px;
  z-index: 0;
}
.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);
}
