/* =========================================================
   PARCOURS INTERACTIFS — CSS COMPLET
========================================================= */
 
:root {
  --bg-main: #fcfbfa;
  --card-bg: #ffffff;
  --text-dark: #111111;
  --text-sub: #64748b;
  --primary: #FB9966;
  --primary-light: #FFF2EB;
  --border-color: #f1f5f9;
  --blue: #75d8fe;
  --blue-light: #ddedf4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-menu: 0 18px 50px rgba(30, 41, 59, 0.18);
}
 
/* --- BOTTOM SHEET / MODAL MOBILE CENTRÉE --- */
.mobile-bottom-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3000;
  justify-content: center;
  align-items: center; /* Aligne la carte au centre de l'écran */
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}
 
.mobile-bottom-sheet-content {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.mobile-sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #e2e8f0;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}
 
@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
 
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
 
/* =========================================================
   RESET
========================================================= */
 
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Open Sans', sans-serif;
}
 
html,
body {
  margin: 0;
  padding: 0;
}
 
body {
  font-family: 'Open Sans', sans-serif !important;
  color: var(--text-dark);
  padding: 16px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
/* =========================================================
   FOND
========================================================= */
 
body::before {
  content: '';
  position: fixed;
  inset: -110px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, #A4D1E6 16.7%, #A4E2E6 50.0%, #F5F5FA 83.3%);
  background: linear-gradient(135deg in oklab, #A4D1E6 16.7%, #A4E2E6 50.0%, #F5F5FA 83.3%);
  filter: blur(55px);
}
 
.last-update {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #94a3b8;
}
 
.last-update strong {
  color: #64748b;
  font-weight: 600;
}
 
/* =========================================================
   HEADER
========================================================= */
 
 .parcours-banner {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  position: relative;
  z-index: 10;
  height: 100px;
}
 
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
 
.brand-icon {
  width: 70px;
  height: 70px;
  padding: 4px;
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    rgba(0, 0, 0, 0.1)
    0px 1px 2px 0px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
 
.brand-text h1 {
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  background-image: linear-gradient(90deg, #2691c4 0%, #26b9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
 
.brand-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}
 
/* =========================================================
   CATÉGORIES
========================================================= */
 
.categories-wrapper {
  width: 100%;
  position: relative;
  z-index: 20;
}
 
.categories-scroll {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 10px 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  width: 100%;
}
 
.categories-scroll::-webkit-scrollbar {
  display: none;
}
 
/* =========================================================
   TUILES CATÉGORIES
========================================================= */
 
.category-tile {
  position: relative;
  flex: 0 0 auto;
  width: 95px;
  min-height: 70px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
 
.category-tile:hover {
  transform: translateY(-3px);
}
 
.calm-info {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f0fdf4;
  border-radius: 10px;
}
 
.calm-info-title {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 6px;
}
 
.calm-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
 
.calm-features span {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
 
.calm-features .available {
  background: #dcfce7;
  color: #166534;
}
 
.calm-features .unavailable {
  background: #f1f5f9;
  color: #94a3b8;
}
 
.calm-features .unknown {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
}
 
/* =========================================================
   ICÔNE CATÉGORIE
========================================================= */
 
.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  transition: transform 0.3s ease;
}
 
.category-tile:hover .category-icon {
  transform: scale(1);
}
 
/* =========================================================
   COULEURS CATÉGORIES
========================================================= */
 
.category-parcours {
  background: linear-gradient(135deg, #1f3b47, #132D38);
}
 
.category-dinard {
  background: linear-gradient(135deg, #80dbfe, #63D3FF);
}
 
.category-cancale {
  background: linear-gradient(135deg, #fde68a, #FFE066);
}
 
/* =========================================================
   COMPTEUR
========================================================= */
 
.category-count {
  position: absolute;
  top: 63px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #6f6285;
  box-shadow: 0 5px 12px rgba(30, 41, 59, 0.08);
}
 
/* =========================================================
   LIBELLÉ
========================================================= */
 
.category-label {
  margin-top: 34px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}
 
/* =========================================================
   BOUTON "TOUTES LES CATÉGORIES"
========================================================= */
 
.dropdown-filters {
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
}
 
.category-all {
  width: 120px;
  min-height: 120px;
  padding: 14px 10px 12px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 24px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}
 
.category-all .category-icon {
  width: 42px;
  height: 42px;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
}
 
.category-all .category-label {
  margin-top: 11px;
  font-size: 15px;
}
 
.category-grid svg {
  width: 29px;
  height: 29px;
  color: #27364b;
}
 
.category-all.open {
  background: #ffffffbf;
}
 
/* =========================================================
   MENU DÉROULANT
========================================================= */
 
.dropdown-content {
  position: fixed;
  width: 280px;
  max-height: 480px;
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  clip-path: inset(0 round 20px);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid #edf0f5;
  border-radius: 20px;
  box-shadow: var(--shadow-menu);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  left: 0;
  top: 0;
  transform: translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
 
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}
 
.dropdown-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 20px;
}
 
.dropdown-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 20px;
}
 
.dropdown-content.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
 
/* =========================================================
   LIGNES DU MENU
========================================================= */
 
.dropdown-category {
  touch-action: manipulation;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
 
.dropdown-category:hover {
  background: #f8fafc;
}
 
.dropdown-category.active {
  background: var(--blue-light);
}
 
/* =========================================================
   ICÔNE MENU
========================================================= */
 
.dropdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 17px;
  flex-shrink: 0;
}
 
/* =========================================================
   NOM MENU
========================================================= */
 
.dropdown-name {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}
 
/* =========================================================
   COMPTEUR MENU
========================================================= */
 
.dropdown-count {
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
}
 
/* =========================================================
   ZONE CARTE
========================================================= */
 
.app-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  height: calc(100vh - 210px);
  min-height: 500px;
  position: relative;
  z-index: 1;
}
 
/* =========================================================
   CARTE
========================================================= */
 
.map-wrapper {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  position: relative;
  z-index: 1;
}
 
#map {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  z-index: 1;
}
 
.user-location-popup .leaflet-popup-content-wrapper {
  min-width: 0 !important;
  width: auto !important;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
 
.user-location-popup .leaflet-popup-content {
  margin: 8px 10px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.4;
}
 
.user-location-popup .leaflet-popup-tip {
  margin-left: auto;
  margin-right: auto;
}
 
/* =========================================================
   SIDEBAR
========================================================= */
 
.sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
 
.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  flex-direction: column; /* Empile les éléments verticalement */
  align-items: stretch;
}
 
.sidebar-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
 
.sidebar-header span {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}
 
 .welcome-modal-header {
  background-color: #f8fafc;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  margin: -30px -30px 20px -30px; /* Compense le padding par défaut de .app-modal-content */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
 
.welcome-modal-header .app-modal-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}
 
/* Ajustement sur mobile en fonction du padding du container */
@media (max-width: 768px) {
  .welcome-modal-header {
    margin: -24px -18px 20px -18px;
  }
}
 
/* =========================================================
   LISTE POI
========================================================= */
 
.poi-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
 
.poi-list.is-at-bottom {
  -webkit-mask-image: none;
  mask-image: none;
}
 
/* =========================================================
   FOOTER SIDEBAR
========================================================= */
 
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.5);
  font-size: 10px;
  color: var(--text-sub);
  line-height: 1.4;
  text-align: center;
}
 
.sidebar-footer .report-link {
  display: inline-block;
  margin-top: 6px;
  color: #111111;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
 
.sidebar-footer .report-link:hover {
  color: var(--blue);
}
 
/* =========================================================
   CARTES POI
========================================================= */
 
.poi-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
 
.poi-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}
 
.poi-card.selected {
  border-color: #ddedf4;
  background-color: #e7f4fd54;
}
 
.poi-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}
 
.poi-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}
 
.poi-info h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.poi-info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
}
 
.parcours-infos-list {
  background-color: #f5f5fa;
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;    /* Aligne les éléments verticalement */
  gap: 8px;                  /* Espacement entre chaque ligne */
}
 
.parcours-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
 
.parcours-info-divider {
  border: none;
  border-top: 1.5px dotted #e2e8f0; /* Pointillés blancs */
  margin: 5px 0 5px 0;
  width: 100%;
}
 
.parcours-info-icon {
  font-size: 18px;
  color: #2b3648;
  width: 20px;
  text-align: center;
}
 
.parcours-info-item strong {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  color: #2b3648;
}
 
/* Couleur globale #64748b appliquée à tout le bloc */
.welcome-modal-content {
  color: #64748b;
  font-family: inherit;
}
 
.app-modal-intro {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: #64748b;
}
 
/* Titres de section */
.app-modal-section h3 {
  font-size: 15px;
  color: #111111; /* Légèrement plus foncé pour structurer la lecture */
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 4px;
}
 
/* Listes */
.app-modal-steps {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  color: #64748b;
}
 
.app-modal-steps li {
  margin-bottom: 0.4rem;
  font-size: 15px;
  line-height: 1.4;
  color: #64748b;
}
 
/* Liste avec puces personnalisées */
.app-modal-features {
  list-style: none;
  padding-left: 0;
}
 
.app-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.6rem;
  font-size: 15px;
  line-height: 1.4;
  color: #64748b;
}
 
/* Le <p> hérite d'une marge par défaut du navigateur (~1em) qui décalait
   le texte vers le bas par rapport à la pastille : on la supprime. */
.app-modal-features li p {
  margin: 0;
}
 
/* Pastilles ronde gris clair et noir/gris foncé */
.dot-gray, .dot-black {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  /* Aligne le centre de la pastille sur le centre de la 1re ligne de texte */
  margin-top: calc((1.4em - 10px) / 2);
}
 
.dot-gray {
  background-color: #cbd5e1;
}
 
.dot-black {
  background-color: #1e293b;
}
 
/* Conclusion */
.app-modal-conclusion {
font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #2691c4;
}
 
/* Mise en valeur du texte gras sans casser la palette de couleur */
.welcome-modal-content strong {
  color: #475569;
}
 
/* =========================================================
   STATUT
========================================================= */
 
.status-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  width: fit-content;
  border: 1px solid transparent;
}
 
.status-tag.open {
  background: #e6f3f1;
  color: #111111;
}
 
.status-tag.closed {
  background: #fee8eb;
  color: #111111;
}
 
/* =========================================================
   MARQUEURS
========================================================= */
 
/* Remplacement de la croix par défaut de Leaflet sur Desktop */
.app-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  background: #e2e8f0 !important;
  border: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  font-weight: 800;
  color: #4b5563 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  z-index: 10 !important;
}
 
.app-modal-close:hover {
  background: #cbd5e1 !important;
  color: #1e293b !important;
}
 
.leaflet-popup-content-wrapper {
  position: relative;
}
 
.custom-pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  background-color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
 
.custom-pin.custom-pin-anecdote {
  width: 30px;
  height: 30px;
}
 
.custom-pin .pin-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
}
 
.custom-pin.active .pin-wrapper {
  animation: pulse-ring 1.5s infinite !important;
}
 
.custom-pin.active {
  border-color: #ffffff !important;
  z-index: 1000 !important;
}
 
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--pin-color, #12A3C4);
  }
  70% {
    box-shadow: 0 0 0 16px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
 
.category-tile:focus,
.category-tile:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
 
.subcategory-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ece7fd;
  color: #22272B;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
 
.poi-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}
 
.poi-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}
 
.badge-correct {
  background-color: #d1fae5;
  color: #065f46;
}
 
.badge-wrong {
  background-color: #fee2e2;
  color: #991b1b;
}
 
/* =========================================================
   POSITION UTILISATEUR
========================================================= */
 
.user-location-pin {
  width: 20px;
  height: 20px;
  background-color: #2691c4;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(75, 125, 191, 0.3);
  animation: user-pulse 2s infinite;
}
 
@keyframes user-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(75, 125, 191, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(75, 125, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 125, 191, 0);
  }
}
 
/* =========================================================
   POPUP LEAFLET
========================================================= */
 
.leaflet-popup-content-wrapper,
.leaflet-popup-content,
.leaflet-popup-content b {
  font-family: 'Open Sans', sans-serif !important;
}
 
.leaflet-popup-content-wrapper {
  width: 350px !important;
  box-sizing: border-box !important;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
 
.leaflet-popup-content {
  width: auto !important;
  max-width: none !important;
  margin: 13px 19px !important;
  box-sizing: border-box !important;
  word-wrap: break-word;
}
 
/* =========================================================
   BOUTON ITINÉRAIRE & AUDIO
========================================================= */
 
.btn-itinerary,
.leaflet-popup-content a.btn-itinerary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 15px;
  background-color: #ffffff;
  color: #22272B !important;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
 
.btn-itinerary:hover,
.leaflet-popup-content a.btn-itinerary:hover {
  background-color: rgba(235, 244, 248, 1);
  color: #22272B !important;
}
 
.btn-audio {
  margin-top: 8px;
  background-color: #22272B;
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}
 
.btn-audio:hover {
  color: #26b9c4;
  background-color: #22272B;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
 
/* =========================================================
   MOBILE
========================================================= */
@media (max-width:850px) and (orientation: landscape) {
 
  .dropdown-content {
    top: 140px;
    max-height: 70dvh;
  }
 
}
 
 
@media (max-width: 850px) {
 
body {
padding: 12px;
}
.dropdown-content {
  scrollbar-width: thin;
}
 
.dropdown-content::-webkit-scrollbar {
  width: 4px;
}
 
.dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}
 
.dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(139, 115, 186, 0.35);
  border-radius: 20px;
}
 
/* -------------------------
     Header
------------------------- */
 
.brand-icon {
display: none;
}
 
/* -------------------------
     Catégories
------------------------- */
 
.categories-scroll {
gap: 5px;
padding-left: 2px;
padding-right: 2px;
}
 
.category-tile {
width: 78px;
min-height: 116px;
}
 
.category-icon {
width: 60px;
height: 60px;
border-radius: 16px;
font-size: 27px;
}
 
.category-count {
top: 55px;
min-width: 30px;
height: 30px;
font-size: 13px;
}
 
.category-label {
margin-top: 34px;
font-size: 11px;
}
 
/* -------------------------
     Toutes catégories
------------------------- */
 
.category-all {
width: 110px;
min-height: 110px;
border-radius: 21px;
}
 
.category-all .category-label {
font-size: 12px;
}
 
/* -------------------------
     Menu
------------------------- */
 
.dropdown-content {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    top: 296px;
    max-height: 50dvh;
    overflow-y: auto;
    overflow-x: hidden;
 
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
 
    touch-action: pan-y;
  }
/*
* Le JS positionnera le menu.
*/
 
 
/* -------------------------
     Carte / Sidebar
------------------------- */
 
.app-layout {
grid-template-columns: 1fr;
height: auto;
}
 
#map {
height: 350px;
}
 
.sidebar {
height: 55vh;
max-height: 600px;
}
}
 
/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */
 
.mobile-break {
display: none;
}
 
@media (max-width: 600px) {
.mobile-break {
display: inline;
}
}
 
/* ========================================================= 
   COULEURS DES CATÉGORIES ET SOUS-CATÉGORIES (ICÔNES) 
========================================================= */
.category-wc { background-color: #d8f3ee; } 
.category-langer { background-color: #fce7f3; }
.category-biberon { background-color: #ffedd5; }
 
.category-pharmacie { background-color: #d1fae5; }
.category-remparts { background-color: #e5e7eb; }
 
.category-shopping,
.category-commerce { background-color: #ffedd5; }
.category-boutique { background-color: #fed7aa; }
.category-superette { background-color: #fde68a; }
 
.category-gourmandises { background-color: #fef3c7; }
 
.category-calme { background-color: #dcfce7; }
.category-plage { background-color: #ccfbf1; }
.category-photo { background-color: #e0e7ff; }
 
.category-loisirs { background-color: #fee2e2; }
.category-jeux { background-color: #fef08a; }
.category-activites { background-color: #fed7aa; }
 
.category-all { background-color: #f1f5f9; }
.category-grid { background-color: #e2e8f0; }
 
/* =====================================================
   MODALE PRINCIPALE — PARCOURS / QUIZ / SCORE
===================================================== */
 
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
 
  display: flex;
  align-items: center;
  justify-content: center;
 
  padding: 20px;
 
  background: rgba(19, 45, 56, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
 
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
 
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
 
.app-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
 
.app-modal-content {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
 
.app-modal.show .app-modal-content {
  transform: translateY(0) scale(1);
}
 
/* =====================================================
   CONTENU MODALE
===================================================== */
 
.app-modal-title {
margin: 0 0 10px;
font-family: 'Montserrat', sans-serif !important;
font-size: 18px;
line-height: 1.25;
font-weight: 700;
color: #111111;
}
 
.app-modal-subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}
 
.app-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
  padding: 13px 20px;
  border: none;
  border-radius: 14px;
  background: #132D38;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
 
.app-modal-button:hover {
  opacity: 0.92;
}
 
/* =====================================================
   LOGO PARCOURS
===================================================== */
 
.parcours-logo {
  display: block;
 
  width: 90px;
  height: 90px;
 
  object-fit: contain;
 
  margin: 0 auto 15px;
}
 
/* =====================================================
   INFOS PARCOURS
===================================================== */
 
.parcours-infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
 
  gap: 8px;
 
  margin: 20px 0;
}
 
.parcours-infos > div {
  padding: 12px 8px;
 
  border-radius: 14px;
 
  background: #f8fafc;
 
  text-align: center;
}
 
.parcours-infos strong {
  display: block;
 
  font-family: 'Montserrat', sans-serif !important;
 
  font-size: 15px;
  font-weight: 800;
 
  color: #111111;
}
 
.parcours-infos span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
 
/* =====================================================
   SÉLECTEUR DE PARCOURS
===================================================== */
 
.parcours-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
 
.parcours-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #edf1f3;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
 
.parcours-choice:hover {
  border-color: #63D3FF;
  box-shadow: 0 8px 25px rgba(19, 45, 56, 0.08);
}
 
.parcours-choice-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #132D38;
  font-size: 21px;
}
 
.parcours-choice-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
 
.parcours-choice-text strong {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}
 
.parcours-choice-text span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
 
/* =====================================================
   QUIZ
===================================================== */
 
.quiz-number {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #ddedf4;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
}
 
.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
 
.quiz-choice {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
 
.quiz-choice:hover {
  background: #f8fafc;
  border-color: #63D3FF;
}
 
/* =====================================================
   RÉSULTAT QUESTION
===================================================== */
 
.quiz-result-good,
.quiz-result-wrong {
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px;
  font-weight: 800;
}
 
.quiz-result-good {
  color: #5cb85c;
}
 
.quiz-result-wrong {
  color: #dc3545;
}
 
.quiz-question-result {
  margin: 15px 0;
  padding: 14px;
  border-radius: 14px;
  background: #e7f4e7;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #111111;
}
 
.quiz-correct-answer {
  margin-top: 12px;
  padding: 13px;
  border-radius: 14px;
  background: #eef9f5;
  color: #5cb85c;
  font-size: 15px;
  line-height: 1.5;
}
 
.quiz-explanation {
  margin: 15px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}
 
/* =====================================================
   SCORE FINAL
===================================================== */
 
.score-modal {
  text-align: center;
}
 
.score-icon {
  font-size: 42px;
  margin-bottom: 5px;
}
 
.score-label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
.score-number {
  margin: 8px 0 5px;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: #111111;
}
 
.score-number span {
  font-size: 27px;
  color: #94a3b8;
}
 
.score-medal-title {
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 21px;
  font-weight: 800;
  color: #111111;
}
 
.score-text {
  max-width: 430px;
  margin: 10px auto 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}
 
/* =====================================================
   MESSAGE "COMMENCEZ PAR..."
===================================================== */
 
.quiz-warning {
  margin-bottom: 10px;
  font-size: 28px;
  text-align: center;
}
 
/* =====================================================
   PINS QUIZ
===================================================== */
 
.quiz-pin {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
 
.quiz-pin.correct {
  background: #22a06b;
}
 
.quiz-pin.wrong {
  background: #d9534f;
}
 
/* --- PINS DÉBUT / FIN DE PARCOURS --- */
.quiz-pin.pin-depart {
  background: #5cb85c;
  width: 20px;
  height: 20px;
}
 
.quiz-pin.pin-arrivee {
  background: #dc3545;
  width: 20px;
  height: 20px;
}
.custom-pin.pin-start-end-wrapper {
  width: 24px !important;
  height: 24px !important;
}
 
#parcoursModal {
  display: none !important;
}
/* =====================================================
   MOBILE
===================================================== */
 
@media (max-width: 768px) {
 
.app-modal {
    align-items: center;
    padding: 16px;
  }
 
  .app-modal-content {
    width: 100%;
    max-height: 90vh;
    padding: 24px 18px;
    border-radius: 24px;
  }
 
  .app-modal-title {
    font-size: 18px;
  }
 
  .parcours-infos {
    gap: 6px;
  }
 
  .parcours-infos > div {
    padding: 10px 5px;
  }
 
  .score-number {
    font-size: 40px;
  }
 
  .score-medal-title {
    font-size: 19px;
  }
}
 
/* Style de base commun */
.parcours-choice-icon[class*="category-"],
.dropdown-icon[class*="category-"] {
  color: #ffffff;
}
 
/* Couleurs spécifiques regroupées */
.parcours-choice-icon.category-saintmalo,
.dropdown-icon.category-saintmalo {
  background-color: #132D38 !important;
}
 
.parcours-choice-icon.category-alet,
.dropdown-icon.category-alet {
  background-color: #F7F0E6 !important;
}
 
.parcours-choice-icon.category-briantais,
.dropdown-icon.category-briantais {
  background-color: #A8C3A8 !important;
}
 
.parcours-choice-icon.category-dinard,
.dropdown-icon.category-dinard {
  background-color: #63d3ff !important;
}
 
.parcours-choice-icon.category-cancale,
.dropdown-icon.category-cancale {
  background-color: #ffe066 !important;
}
 
.parcours-choice-icon.category-saintsuliac,
.dropdown-icon.category-saintsuliac {
  background-color: #F0F4F8 !important;
}
.custom-pin-depart-overview .pin-wrapper {
  background-color: #132D38 !important; /* Mettez la couleur de fond souhaitée */
  color: #ffffff; /* Couleur de l'icône/ancre ⚓ */
}