/* =========================================================
   Cabinet Infirmier Du Château — styles personnalisés
   Compléments en plus de Tailwind (CDN ou build local)
   ========================================================= */

:root {
  --brand-500: #1CBAC8;
  --brand-600: #0E8A95;
  --ink: #1E2A38;
  --sand: #F6F4EE;
}

html { scroll-behavior: smooth; }

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

/* Hero — overlay dégradé sur l'image */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 42, 56, 0.10) 0%, rgba(30, 42, 56, 0.55) 100%),
    linear-gradient(135deg, rgba(28, 186, 200, 0.35) 0%, rgba(14, 138, 149, 0.10) 100%);
}
.hero-image > * {
  position: relative;
  z-index: 1;
}

/* Effet "blob" décoratif derrière le contenu */
.blob {
  position: absolute;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  border-radius: 9999px;
}
.blob--brand { background: radial-gradient(circle at 30% 30%, #1CBAC8, transparent 60%); }
.blob--soft  { background: radial-gradient(circle at 70% 70%, #6FBE9F, transparent 60%); }

/* Animation d'apparition douce au scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Galerie — effet lightbox simple */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 9999px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Accordion FAQ / Soins */
.accordion-item {
  border: 1px solid rgba(30, 42, 56, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.accordion-item.is-open {
  border-color: rgba(28, 186, 200, 0.4);
  box-shadow: 0 10px 30px -12px rgba(14, 138, 149, 0.18);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}
.accordion-trigger:hover { color: var(--brand-600); }
.accordion-trigger .chevron { transition: transform 0.3s ease; flex-shrink: 0; }
.accordion-item.is-open .accordion-trigger .chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  color: rgba(30, 42, 56, 0.75);
  line-height: 1.7;
}

/* Lien souligné animé pour le contenu éditorial */
.link-underline {
  position: relative;
  color: var(--brand-600);
  font-weight: 600;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-500);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-underline:hover::after { transform: scaleX(1); }

/* Carte Leaflet */
#map {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 1.5rem;
  overflow: hidden;
  z-index: 0;
}

/* Améliore le focus visible pour l'accessibilité */
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}
