/* Styles complémentaires à Tailwind (CDN) */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-tap-highlight-color: transparent;
}

/* Icônes Lucide : taille réservée avant le rendu JS (évite les décalages) */
[data-lucide] {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
svg.lucide { flex-shrink: 0; }

/* Focus clavier visible partout */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #F4B740;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #0F2B20;
  border-radius: 0.75rem;
}

/* Combiné téléphone qui sonne (barre mobile) */
.ring-phone {
  animation: sonnerie 2.6s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes sonnerie {
  0%, 55%, 100% { transform: rotate(0); }
  5%, 15%, 25% { transform: rotate(-14deg); }
  10%, 20%, 30% { transform: rotate(14deg); }
}

/* Apparition au défilement (uniquement si JS actif) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* En-tête : ombre une fois la page défilée */
[data-header].is-scrolled [data-header-bar] {
  box-shadow: 0 10px 30px -12px rgba(15, 43, 32, 0.25);
}

/* Menu déroulant « Villes » : survol, focus clavier ou clic */
.dropdown-panel {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.is-open .dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}
.dropdown:hover > button::after,
.dropdown.is-open > button::after,
.dropdown.is-active > button::after {
  transform: scaleX(1);
}
.dropdown.is-active > button { color: #111827; }
.dropdown:hover .dropdown-chevron,
.dropdown.is-open .dropdown-chevron { transform: rotate(180deg); }

/* FAQ */
summary::-webkit-details-marker { display: none; }

/* Contenu éditorial des pages villes */
.prose-local { color: rgba(31, 41, 55, 0.85); font-size: 1.0625rem; line-height: 1.75; }
.prose-local h2 {
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0F2B20;
  margin: 2.75rem 0 1rem;
}
.prose-local h2:first-child { margin-top: 0; }
.prose-local h3 {
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #1B4332;
  margin: 2rem 0 0.6rem;
}
.prose-local p { margin: 0 0 1.1rem; }
.prose-local ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.prose-local ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}
.prose-local ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  background: #EDF5F0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}
.prose-local strong { color: #0F2B20; }
.prose-local p a,
.prose-local li a { color: #1B4332; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
