/* ============================================================
   DÉCORATION THÉMATIQUE — KINÉSITHÉRAPIE PÉDIATRIQUE
   ============================================================ */

/* ── 1. Motif de fond global (croix médicales discrètes) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,123,255,0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(114,202,214,0.035) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* prevent body::before from covering content */
body > * { position: relative; z-index: 1; }
nav.fixed-top { z-index: 1050 !important; }
#backToTop { z-index: 9999 !important; }

/* ── 2. Hero sections — icônes flottantes ── */
.hero-gradient,
.annuaire-hero,
section[style*="padding-top: 150px"] {
  position: relative;
  overflow: hidden;
}

/* Blobs décoratifs en arrière-plan */
.hero-gradient::before,
.annuaire-hero::before {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,202,214,0.18) 0%, transparent 70%);
  top: -120px; right: -100px;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-gradient::after,
.annuaire-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,132,152,0.14) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  pointer-events: none;
  animation: blobFloat 11s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-25px) scale(1.06); }
}

/* ── 3. Icônes médicales flottantes (appliquées via classe JS) ── */
.kine-deco-icon {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  animation: iconDrift 15s ease-in-out infinite;
  color: #007bff;
}
.kine-deco-icon:nth-child(2n)   { animation-duration: 20s; opacity: 0.05; color: #72cad6; }
.kine-deco-icon:nth-child(3n)   { animation-duration: 18s; opacity: 0.07; color: #f08498; }
.kine-deco-icon:nth-child(even) { animation-direction: reverse; }

@keyframes iconDrift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%     { transform: translateY(-20px) rotate(5deg); }
  66%     { transform: translateY(10px) rotate(-3deg); }
}

/* ── 4. Vague décorative en bas des sections hero ── */
.wave-divider {
  position: relative;
  margin-bottom: -2px;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ── 5. Bande décorative "santé / pédiatrie" dans le footer ── */
footer .kine-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(114,202,214,0.12);
  border: 1px solid rgba(114,202,214,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #72cad6;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

/* ── 6. Ligne décorative "stéthoscope" sur les titres h2 de sections ── */
.section-deco-title {
  position: relative;
  display: inline-block;
}
.section-deco-title::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  width: 60px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #007bff, #72cad6);
}

/* ── 7. Cards — coin médical décoratif ── */
.premium-card::after {
  content: '+';
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(0,123,255,0.08);
  line-height: 1;
  pointer-events: none;
}

/* ── 8. Séparateur de section avec motif de croix ── */
.kine-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 40px;
  color: #d1d5db;
}
.kine-separator::before,
.kine-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1d5db, transparent);
}
.kine-separator-icon {
  font-size: 1.2rem;
  color: #72cad6;
  flex-shrink: 0;
}

/* ── 9. Responsive cleanup ── */
@media (max-width: 767px) {
  .kine-deco-icon { display: none; }
  .hero-gradient::before { width: 250px; height: 250px; }
  .hero-gradient::after  { width: 180px; height: 180px; }
}
