/* Page Conciergerie Airbnb à Lattes — Halo Butler
   Composants communs aux pages villes (préfixe hbm-, repris de la page Mauguio) + schéma propre à Lattes (préfixe hbl-). */


:root {
  --hbm-primary: #344D42;
  --hbm-accent: #4F6D5F;
  --hbm-highlight: #A7C4B5;
  --hbm-mist: #EEF3F0;
  --hbm-ink: #22332B;
  --hbm-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hbm-ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --hbm-settle: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hbm-wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .hbm-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .hbm-wrap { padding: 0 2rem; } }
.hbm-narrow { max-width: 56rem; }

/* ---------- Boutons ---------- */
.hbm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hbm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.8rem 1.5rem;
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--hbm-ease), background-color 0.2s var(--hbm-ease), border-color 0.2s var(--hbm-ease);
}
.hbm-btn:hover { transform: translateY(-2px); }
.hbm-btn:focus-visible { outline: 2px solid var(--hbm-highlight); outline-offset: 3px; }
.hbm-btn-light { background: #fff; color: var(--hbm-primary); }
.hbm-btn-light:hover { background: rgba(255, 255, 255, 0.9); }
.hbm-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-weight: 500; }
.hbm-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.hbm-btn-dark { background: var(--hbm-primary); color: #fff; }
.hbm-btn-dark:hover { background: var(--hbm-accent); }
.hbm-btn-outline { border: 1px solid rgba(52, 77, 66, 0.25); color: var(--hbm-primary); }
.hbm-btn-outline:hover { background: rgba(52, 77, 66, 0.06); }

/* ---------- Hero ---------- */
.hbm-hero { border-radius: 0 0 2.5rem 2.5rem; padding: 2rem 0 3.5rem; overflow: hidden; }
@media (min-width: 1024px) { .hbm-hero { padding: 2.5rem 0 4.5rem; } }

.hbm-breadcrumb { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.hbm-breadcrumb a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.hbm-breadcrumb a:hover { color: #fff; }

.hbm-hero-grid { display: grid; gap: 2.5rem; align-items: center; margin-top: 2rem; }
@media (min-width: 1024px) { .hbm-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; margin-top: 2.5rem; } }

.hbm-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12; font-weight: 600; letter-spacing: -0.01em;
  margin: 0; max-width: 18ch;
}
.hbm-lead { margin: 1.5rem 0 0; font-size: 1.125rem; line-height: 1.65; color: rgba(255, 255, 255, 0.88); max-width: 36rem; }
.hbm-lead-2 { margin-top: 1rem; color: rgba(255, 255, 255, 0.75); }


/* ---------- Sections ---------- */
.hbm-section { padding: 4rem 0; }
@media (min-width: 640px) { .hbm-section { padding: 5.5rem 0; } }
.hbm-dark { border-radius: 2.5rem; }

.hbm-intro { max-width: 46rem; }
.hbm-intro.hbm-intro-center { margin: 0 auto; text-align: center; }
.hbm-section h2, .hbm-daily h2, .hbm-around h2, .hbm-cta h2 {
  margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; font-weight: 600;
}
.hbm-section:not(.hbm-dark) h2, .hbm-daily h2, .hbm-around h2 { color: var(--hbm-primary); }
.hbm-intro p { margin: 1rem 0 0; font-size: 1.075rem; line-height: 1.7; color: rgba(52, 77, 66, 0.78); }
.hbm-dark .hbm-intro p { color: rgba(255, 255, 255, 0.8); }

/* Icônes */
.hbm-icon { width: 1.4rem; height: 1.4rem; flex: none; }
.hbm-check { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.2rem; stroke-width: 2.4; }
.hbm-checks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.hbm-checks li { display: flex; gap: 0.6rem; line-height: 1.5; }

/* Photos : crédit discret */
figure { margin: 0; }
.hbm-side-photo figcaption, .hbm-profile-photo figcaption, .hbm-photo figcaption {
  font-size: 0.72rem; line-height: 1.4;
}
.hbm-side-photo figcaption a, .hbm-profile-photo figcaption a, .hbm-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Deux marchés */
.hbm-split { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .hbm-split { grid-template-columns: 1.2fr 1fr; gap: 1.5rem; } }
.hbm-side { border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(52, 77, 66, 0.12); background: #fff; display: flex; flex-direction: column; }
.hbm-side.is-here { background: var(--hbm-mist); border-color: transparent; }
.hbm-side-photo { position: relative; }
.hbm-side-photo img { display: block; width: 100%; height: 15rem; object-fit: cover; }
.hbm-side-photo figcaption {
  position: absolute; right: 0.6rem; bottom: 0.6rem; max-width: calc(100% - 1.2rem);
  padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(34, 51, 43, 0.65); color: rgba(255, 255, 255, 0.9);
}
.hbm-side-body { padding: 1.75rem 2rem 2rem; }
.hbm-side h3 { margin: 0; font-size: 1.35rem; font-weight: 600; color: var(--hbm-primary); }
.hbm-side dl { margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.hbm-side dl > div { display: grid; gap: 0.25rem; }
@media (min-width: 640px) { .hbm-side dl > div { grid-template-columns: 6.5rem 1fr; gap: 1rem; } }
.hbm-side dt { font-weight: 600; color: var(--hbm-accent); }
.hbm-side dd { margin: 0; color: rgba(52, 77, 66, 0.85); line-height: 1.6; }
.hbm-link { display: inline-block; margin-top: 1.5rem; font-weight: 600; color: var(--hbm-primary); text-decoration: underline; text-underline-offset: 4px; }
.hbm-link:hover { color: var(--hbm-accent); }

/* Qui réserve : trois cartes illustrées */
.hbm-profiles { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 960px) { .hbm-profiles { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.hbm-profile { border-radius: 1.5rem; overflow: hidden; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; }
.hbm-profile-photo { position: relative; }
.hbm-profile-photo img { display: block; width: 100%; height: 12.5rem; object-fit: cover; }
.hbm-profile-photo figcaption {
  position: absolute; right: 0.6rem; bottom: 0.6rem; max-width: calc(100% - 5rem);
  padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(34, 51, 43, 0.7); color: rgba(255, 255, 255, 0.9);
}
.hbm-badge {
  position: absolute; left: 1.25rem; bottom: -1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; border-radius: 999px;
  background: #fff; color: var(--hbm-primary); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hbm-profile-body { padding: 2.1rem 1.5rem 1.6rem; }
.hbm-profile h3 { margin: 0; font-size: 1.2rem; font-weight: 600; color: #fff; }
.hbm-profile-context { margin: 0.6rem 0 0; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.hbm-profile-needs { margin: 0.9rem 0 0; line-height: 1.55; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.hbm-profile-needs strong { color: var(--hbm-highlight); font-weight: 600; }
.hbm-profile .hbm-checks { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.95rem; }
.hbm-profile .hbm-check { color: var(--hbm-highlight); }

/* Préparatifs */
.hbm-prep-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .hbm-prep-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; } }
.hbm-photo { margin-top: 2rem; }
.hbm-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.5rem; }
.hbm-photo figcaption { margin-top: 0.6rem; color: rgba(52, 77, 66, 0.6); }
.hbm-prep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hbm-prep-list li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-radius: 1.25rem; border: 1px solid rgba(52, 77, 66, 0.12); }
.hbm-prep-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 999px; background: var(--hbm-mist); color: var(--hbm-primary);
}
.hbm-prep-list h3 { margin: 0.35rem 0 0; font-size: 1.15rem; font-weight: 600; color: var(--hbm-primary); }
.hbm-prep-list p { margin: 0.45rem 0 0; line-height: 1.65; color: rgba(52, 77, 66, 0.78); }

/* Au quotidien */
.hbm-daily { padding: 0 0 4rem; }
@media (min-width: 640px) { .hbm-daily { padding-bottom: 5.5rem; } }
.hbm-daily-inner { background: var(--hbm-mist); border-radius: 2rem; padding: 2.5rem 1.25rem; }
@media (min-width: 640px) { .hbm-daily-inner { padding: 3.5rem 2.5rem; } }
.hbm-daily-grid { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 900px) { .hbm-daily-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.hbm-daily-card { background: #fff; border-radius: 1.5rem; overflow: hidden; }
.hbm-daily-card img { display: block; width: 100%; height: 12rem; object-fit: cover; }
.hbm-daily-body { position: relative; padding: 2rem 1.5rem 1.6rem; }
.hbm-daily-icon {
  position: absolute; left: 1.25rem; top: -1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; border-radius: 999px; background: var(--hbm-primary); color: #fff;
  box-shadow: 0 0 0 4px #fff;
}
.hbm-daily-card h3 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--hbm-primary); }
.hbm-daily-card p { margin: 0.5rem 0 0; line-height: 1.6; color: rgba(52, 77, 66, 0.78); }

/* Tarifs */
.hbm-offers { display: grid; gap: 1.25rem; margin: 2.75rem auto 0; max-width: 56rem; }
@media (min-width: 900px) { .hbm-offers { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.hbm-offer { display: flex; flex-direction: column; border-radius: 1.75rem; padding: 2rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); }
.hbm-offer.is-main { background: #fff; color: var(--hbm-primary); border-color: transparent; }
.hbm-offer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hbm-offer h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.hbm-pill { padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--hbm-mist); font-size: 0.8rem; font-weight: 600; }
.hbm-price { margin: 1rem 0 0; font-family: 'Montserrat', sans-serif; font-size: 2.75rem; font-weight: 700; line-height: 1.1; }
.hbm-price-note { margin: 0.35rem 0 0; font-size: 0.95rem; opacity: 0.75; }
.hbm-offer .hbm-checks { margin: 1.5rem 0 1.75rem; }
.hbm-offer.is-main .hbm-check { color: var(--hbm-accent); }
.hbm-offer:not(.is-main) .hbm-check { color: var(--hbm-highlight); }
.hbm-offer .hbm-btn { margin-top: auto; width: 100%; }
.hbm-offers-more { margin: 1.5rem 0 0; text-align: center; }
.hbm-offers-more a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.hbm-steps-title { margin: 3.5rem 0 0; text-align: center; font-size: 1.4rem; font-weight: 600; }
.hbm-steps { list-style: none; margin: 1.75rem auto 0; padding: 0; max-width: 64rem; display: grid; gap: 1rem; }
@media (min-width: 900px) { .hbm-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.hbm-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.hbm-step-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff;
}
.hbm-step-num { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--hbm-highlight); }
.hbm-steps h4 { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 600; color: #fff; }
.hbm-steps p:not(.hbm-step-num) { margin: 0.35rem 0 0; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }

/* FAQ (fond clair) */
.hbm-faq { margin-top: 2rem; border-top: 1px solid rgba(52, 77, 66, 0.14); }
.hbm-faq details { border-bottom: 1px solid rgba(52, 77, 66, 0.14); }
.hbm-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-size: 1.1rem; font-weight: 600; color: var(--hbm-primary);
}
.hbm-faq summary::-webkit-details-marker { display: none; }
.hbm-faq summary:focus-visible { outline: 2px solid var(--hbm-accent); outline-offset: 4px; border-radius: 4px; }
.hbm-chev {
  flex: none; width: 0.65rem; height: 0.65rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: 0.6;
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--hbm-ease);
}
.hbm-faq details[open] .hbm-chev { transform: rotate(-135deg) translateY(-3px); }
.hbm-faq details p { margin: 0 0 1.5rem; line-height: 1.7; color: rgba(52, 77, 66, 0.82); max-width: 46rem; }
.hbm-faq a, .hbm-faq-more a { color: var(--hbm-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hbm-faq-more { margin: 1.75rem 0 0; color: rgba(52, 77, 66, 0.75); }

/* Autour de Mauguio */
.hbm-around-inner { background: var(--hbm-mist); border-radius: 2rem; padding: 2.5rem 1.25rem; }
@media (min-width: 640px) { .hbm-around-inner { padding: 3.5rem 2.5rem; } }
.hbm-nearby { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .hbm-nearby { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hbm-nearby { grid-template-columns: repeat(3, 1fr); } }
.hbm-nearby a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 1rem; background: #fff;
  color: var(--hbm-primary); text-decoration: none;
  transition: transform 0.2s var(--hbm-ease), box-shadow 0.2s var(--hbm-ease);
}
.hbm-nearby a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(52, 77, 66, 0.12); }
.hbm-nearby a:focus-visible { outline: 2px solid var(--hbm-accent); outline-offset: 3px; }
.hbm-nearby-name { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.hbm-nearby-icon { width: 1.1rem; height: 1.1rem; color: var(--hbm-accent); flex: none; }
.hbm-nearby-km { font-size: 0.9rem; color: rgba(52, 77, 66, 0.6); white-space: nowrap; }
.hbm-map-link { margin: 1.75rem 0 0; }
.hbm-map-link a { color: var(--hbm-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Appel final : carte détachée du pied de page */
.hbm-cta { padding: 4rem 0 4.5rem; }
.hbm-cta-card { border-radius: 2rem; padding: 3rem 1.5rem; text-align: center; }
@media (min-width: 640px) { .hbm-cta-card { padding: 3.5rem 3rem; } }
.hbm-cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); margin-bottom: 1.25rem;
}
.hbm-cta p { margin: 1rem auto 2rem; max-width: 36rem; font-size: 1.1rem; line-height: 1.65; color: rgba(255, 255, 255, 0.85); }

/* ---------- Mouvement ---------- */

/* Apparition en cascade des cartes (propriétés `translate`/`opacity`, distinctes du `transform` des survols). */
@media (prefers-reduced-motion: no-preference) {
  .hbm-js [data-hbm-reveal] > * { opacity: 0; translate: 0 18px; }
  .hbm-js [data-hbm-reveal].is-in > * {
    opacity: 1; translate: 0 0;
    transition: opacity 0.5s var(--hbm-ease), translate 0.6s var(--hbm-ease-out);
    transition-delay: calc(var(--r, 0) * 80ms);
  }
  .hbm-faq p.is-opening { animation: hbm-open 0.35s var(--hbm-ease-out); }
}
@keyframes hbm-open { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* Transitions communes des éléments survolables */
.hbm-side, .hbm-profile, .hbm-daily-card, .hbm-offer, .hbm-prep-list li, .hbm-steps li {
  transition: transform 0.3s var(--hbm-ease), box-shadow 0.3s var(--hbm-ease), border-color 0.3s var(--hbm-ease), background-color 0.3s var(--hbm-ease), opacity 0.5s var(--hbm-ease), translate 0.6s var(--hbm-ease-out);
}
.hbm-side-photo img, .hbm-profile-photo img, .hbm-daily-card img { transition: transform 0.6s var(--hbm-ease); }
.hbm-badge, .hbm-daily-icon, .hbm-prep-icon, .hbm-step-icon, .hbm-cta-icon { transition: transform 0.35s var(--hbm-settle), background-color 0.25s var(--hbm-ease), color 0.25s var(--hbm-ease); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Deux marchés */
  .hbm-side:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(52, 77, 66, 0.14); }
  .hbm-side:hover .hbm-side-photo img { transform: scale(1.05); }
  .hbm-side-photo { overflow: hidden; }

  /* Profils de voyageurs */
  .hbm-profile:hover { transform: translateY(-6px); background-color: rgba(255, 255, 255, 0.12); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.25); }
  .hbm-profile:hover .hbm-profile-photo img { transform: scale(1.06); }
  .hbm-profile:hover .hbm-badge { transform: scale(1.12) rotate(-8deg); background: var(--hbm-highlight); }
  .hbm-profile .hbm-checks li { transition: transform 0.25s var(--hbm-ease); }
  .hbm-profile .hbm-checks li:hover { transform: translateX(4px); }

  /* Points à régler */
  .hbm-prep-list li:hover { border-color: transparent; background: var(--hbm-mist); transform: translateX(6px); }
  .hbm-prep-list li:hover .hbm-prep-icon { background: var(--hbm-primary); color: #fff; transform: rotate(-10deg) scale(1.08); }

  /* Au quotidien */
  .hbm-daily-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(52, 77, 66, 0.16); }
  .hbm-daily-card { overflow: hidden; }
  .hbm-daily-card:hover img { transform: scale(1.06); }
  .hbm-daily-card:hover .hbm-daily-icon { transform: translateY(-4px) scale(1.1); background: var(--hbm-accent); }

  /* Tarifs */
  .hbm-offer:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28); }
  .hbm-offer:not(.is-main):hover { background-color: rgba(255, 255, 255, 0.15); }
  .hbm-steps li:hover .hbm-step-icon { background: #fff; color: var(--hbm-primary); transform: scale(1.1); }

  /* FAQ */
  .hbm-faq summary { transition: color 0.2s var(--hbm-ease), padding-left 0.25s var(--hbm-ease); }
  .hbm-faq summary:hover { color: var(--hbm-accent); padding-left: 0.4rem; }

  /* Communes voisines */
  .hbm-nearby a:hover .hbm-nearby-icon { animation: hbm-hop 0.5s var(--hbm-settle); }

  /* Schéma : le rayon s'allume au survol d'une commune */
  .hbm-ray { transition: stroke 0.2s var(--hbm-ease), stroke-width 0.2s var(--hbm-ease); }
  .hbm-place.is-link:hover .hbm-ray { stroke: var(--hbm-highlight); stroke-width: 2.5; stroke-dasharray: none; }

  /* Appel final */
  .hbm-cta-card:hover .hbm-cta-icon { transform: rotate(-25deg) scale(1.1); background: rgba(255, 255, 255, 0.2); }
}
@keyframes hbm-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }

/* Boutons : légère réaction à l'appui */
.hbm-btn:active { transform: translateY(0) scale(0.98); }

/* Profils : la photo zoome dans son cadre ; badge et crédit sont placés par rapport à la carte pour ne pas être rognés. */
.hbm-profile { position: relative; }
.hbm-profile-photo { position: static; overflow: hidden; height: 12.5rem; }
.hbm-profile-photo figcaption { top: 10.4rem; bottom: auto; }
.hbm-badge { top: 11.1rem; bottom: auto; z-index: 1; }

/* ===================== Propre à Lattes (préfixe hbl-) ===================== */

/* ---------- Schéma « entre la ville et la mer » ---------- */
.hbl-line { margin: 0; justify-self: center; width: 100%; max-width: 30rem; }
.hbl-line svg { display: block; width: 100%; height: auto; overflow: visible; }
.hbl-line figcaption { margin-top: 0.5rem; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.hbl-axis { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hbl-branch { fill: none; stroke: rgba(167, 196, 181, 0.55); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hbl-tram-track { fill: none; stroke: var(--hbm-highlight); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0.7; }
.hbl-tram-car { fill: var(--hbm-highlight); }
.hbl-tram-label rect { fill: rgba(167, 196, 181, 0.18); stroke: rgba(167, 196, 181, 0.5); }
.hbl-tram-label text { fill: var(--hbm-highlight); font-size: 15px; font-weight: 600; font-family: 'Red Hat Display', sans-serif; }
.hbl-km { fill: rgba(255, 255, 255, 0.6); font-size: 16px; font-weight: 500; }
.hbl-dot { fill: #fff; stroke: var(--hbm-primary); stroke-width: 3; }
.hbl-dot.is-small { fill: var(--hbm-highlight); }
.hbl-name { fill: #fff; font-size: 22px; font-weight: 600; font-family: 'Montserrat', sans-serif; }
.hbl-name.is-small { font-size: 19px; }
.hbl-sub { fill: rgba(255, 255, 255, 0.65); font-size: 15px; }
.hbl-core { fill: #fff; }
.hbl-halo { fill: rgba(167, 196, 181, 0.35); transform-box: fill-box; transform-origin: center; }
.hbl-center-label { fill: #fff; font-size: 28px; font-weight: 700; font-family: 'Montserrat', sans-serif; }
.hbl-sea { fill: none; stroke: var(--hbm-highlight); stroke-width: 2.5; stroke-linecap: round; opacity: 0.8; }
.hbl-sea.is-2 { opacity: 0.45; }

@media (prefers-reduced-motion: no-preference) {
  .hbm-js .hbl-axis, .hbm-js .hbl-branch { stroke-dashoffset: 1; }
  .hbm-js .hbl-stop, .hbm-js .hbl-center, .hbm-js .hbl-tram-label, .hbm-js .hbl-km { opacity: 0; }
  .hbm-js .hbl-tram-track, .hbm-js .hbl-tram-car { opacity: 0; }

  .hbm-js .is-drawn .hbl-center { opacity: 1; transition: opacity 0.4s var(--hbm-ease); }
  .hbm-js .is-drawn .hbl-axis { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--hbm-ease-out) 0.2s; }
  .hbm-js .is-drawn .hbl-branch { stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s var(--hbm-ease-out); transition-delay: calc(0.9s + var(--s) * 0.15s); }
  .hbm-js .is-drawn .hbl-stop { opacity: 1; transition: opacity 0.5s var(--hbm-ease); transition-delay: calc(0.7s + var(--s) * 0.18s); }
  .hbm-js .is-drawn .hbl-km { opacity: 1; transition: opacity 0.5s var(--hbm-ease) 1s; }
  .hbm-js .is-drawn .hbl-tram-track { opacity: 0.7; transition: opacity 0.6s var(--hbm-ease) 1.3s; animation: hbl-track 1.6s linear infinite 1.3s; }
  .hbm-js .is-drawn .hbl-tram-label { opacity: 1; transition: opacity 0.6s var(--hbm-ease) 1.4s; }
  .hbm-js .is-drawn .hbl-tram-car { opacity: 1; transition: opacity 0.4s var(--hbm-ease) 1.5s; animation: hbl-tram 6s cubic-bezier(0.45, 0, 0.55, 1) 1.5s infinite backwards; }
  .hbm-js .is-drawn .hbl-halo { animation: hbl-breathe 3.2s ease-in-out 1.6s infinite; }
  .hbm-js .is-drawn .hbl-sea { animation: hbl-swell 4s ease-in-out infinite 1.8s; }
}
/* Sans JS ou mouvement réduit : rame à l'arrêt au milieu de la voie. */
.hbl-tram-car { transform: translateY(-90px); }
@keyframes hbl-tram { 0%, 8% { transform: translateY(0); } 46%, 54% { transform: translateY(-180px); } 92%, 100% { transform: translateY(0); } }
@keyframes hbl-track { to { stroke-dashoffset: -12; } }
@keyframes hbl-breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.4); opacity: 0.35; } }
@keyframes hbl-swell { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* ---------- Quartiers ---------- */
.hbl-quartiers { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .hbl-quartiers { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.hbl-quartier { border-radius: 1.5rem; overflow: hidden; background: var(--hbm-mist); display: flex; flex-direction: column; }
.hbl-quartier:not(.has-photo) { background: #fff; border: 1px solid rgba(52, 77, 66, 0.12); }
.hbl-quartier-photo { position: relative; overflow: hidden; }
.hbl-quartier-photo img { display: block; width: 100%; height: 14rem; object-fit: cover; }
.hbl-quartier-photo figcaption {
  position: absolute; right: 0.6rem; bottom: 0.6rem; max-width: calc(100% - 1.2rem);
  padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(34, 51, 43, 0.65); color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem; line-height: 1.4;
}
.hbl-quartier-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hbl-quartier-body { position: relative; padding: 1.6rem 1.75rem 1.75rem; }
.hbl-quartier.has-photo .hbl-quartier-body { padding-top: 2.2rem; }
.hbl-quartier-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; border-radius: 999px; background: var(--hbm-primary); color: #fff;
}
.hbl-quartier.has-photo .hbl-quartier-icon { position: absolute; left: 1.5rem; top: -1.4rem; box-shadow: 0 0 0 4px var(--hbm-mist); }
.hbl-quartier:not(.has-photo) .hbl-quartier-icon { margin-bottom: 1rem; background: var(--hbm-mist); color: var(--hbm-primary); }
.hbl-quartier h3 { margin: 0; font-size: 1.3rem; font-weight: 600; color: var(--hbm-primary); }
.hbl-quartier p { margin: 0.55rem 0 0; line-height: 1.65; color: rgba(52, 77, 66, 0.8); }
.hbl-quartier p.hbl-quartier-who { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; font-weight: 600; color: var(--hbm-accent); font-size: 0.95rem; }
.hbl-mini { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.15rem; }

/* ---------- Atouts ---------- */
.hbl-reasons { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .hbl-reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hbl-reasons { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.hbl-reason { padding: 1.6rem; border-radius: 1.5rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.hbl-reason-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 1rem; background: #fff; color: var(--hbm-primary);
}
.hbl-reason h3 { margin: 1.1rem 0 0; font-size: 1.15rem; font-weight: 600; color: #fff; }
.hbl-reason p { margin: 0.5rem 0 0; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

.hbl-guide { margin-top: 3.5rem; }
.hbl-guide-title { margin: 0; font-size: 1.4rem; font-weight: 600; color: #fff; }
.hbl-guide-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .hbl-guide-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.hbl-guide-card { display: grid; border-radius: 1.5rem; overflow: hidden; background: #fff; color: var(--hbm-primary); }
@media (min-width: 1024px) { .hbl-guide-card { grid-template-columns: 0.95fr 1.05fr; } }
.hbl-guide-card figure { position: relative; overflow: hidden; min-height: 12rem; }
.hbl-guide-card img { display: block; width: 100%; height: 100%; min-height: 12rem; object-fit: cover; }
.hbl-guide-card figcaption {
  position: absolute; left: 0.6rem; bottom: 0.6rem; right: 0.6rem; width: fit-content;
  padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(34, 51, 43, 0.7); color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem; line-height: 1.4;
}
.hbl-guide-card figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hbl-guide-body { padding: 1.5rem 1.6rem 1.6rem; }
.hbl-guide-body h4 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.hbl-guide-body p { margin: 0.5rem 0 0; line-height: 1.6; color: rgba(52, 77, 66, 0.8); }

/* ---------- Journée type ---------- */
.hbl-rotation { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 640px) { .hbl-rotation { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hbl-rotation { grid-template-columns: repeat(4, 1fr); } }
.hbl-rot { background: #fff; border-radius: 1.5rem; overflow: hidden; }
.hbl-rot-photo { position: relative; overflow: hidden; }
.hbl-rot-photo img { display: block; width: 100%; height: 10rem; object-fit: cover; }
.hbl-rot-time {
  position: absolute; left: 0.75rem; top: 0.75rem;
  padding: 0.3rem 0.75rem; border-radius: 999px; background: #fff; color: var(--hbm-primary);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem;
}
.hbl-rot-body { position: relative; padding: 2rem 1.35rem 1.5rem; }
.hbl-rot h3 { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--hbm-primary); }
.hbl-rot p { margin: 0.45rem 0 0; line-height: 1.55; color: rgba(52, 77, 66, 0.78); font-size: 0.97rem; }
.hbl-rot-note { margin: 1.25rem 0 0; font-size: 0.85rem; color: rgba(52, 77, 66, 0.6); }

/* ---------- Survols propres à Lattes ---------- */
.hbl-quartier, .hbl-reason, .hbl-guide-card, .hbl-rot {
  transition: transform 0.3s var(--hbm-ease), box-shadow 0.3s var(--hbm-ease), background-color 0.3s var(--hbm-ease), opacity 0.5s var(--hbm-ease), translate 0.6s var(--hbm-ease-out);
}
.hbl-quartier-photo img, .hbl-guide-card img, .hbl-rot-photo img { transition: transform 0.6s var(--hbm-ease); }
.hbl-quartier-icon, .hbl-reason-icon, .hbl-rot-time { transition: transform 0.35s var(--hbm-settle), background-color 0.25s var(--hbm-ease), color 0.25s var(--hbm-ease); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hbl-quartier:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(52, 77, 66, 0.14); }
  .hbl-quartier:hover .hbl-quartier-photo img { transform: scale(1.05); }
  .hbl-quartier:hover .hbl-quartier-icon { transform: rotate(-8deg) scale(1.1); background: var(--hbm-accent); color: #fff; }
  .hbl-reason:hover { transform: translateY(-6px); background-color: rgba(255, 255, 255, 0.14); }
  .hbl-reason:hover .hbl-reason-icon { transform: rotate(-6deg) scale(1.1); background: var(--hbm-highlight); }
  .hbl-guide-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.25); }
  .hbl-guide-card:hover img { transform: scale(1.06); }
  .hbl-rot:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(52, 77, 66, 0.16); }
  .hbl-rot:hover .hbl-rot-photo img { transform: scale(1.06); }
  .hbl-rot:hover .hbl-rot-time { transform: scale(1.08); background: var(--hbm-primary); color: #fff; }
  .hbl-rot:hover .hbm-daily-icon { transform: translateY(-4px) scale(1.1); background: var(--hbm-accent); }
}
