/* =============================================
   Cabinet Vétérinaire Cécile Virlée
   Overrides Bootstrap – thème basé sur le logo (#001057)
   ============================================= */

:root {
  --navy:        #001057;
  --navy-dark:   #000a3d;
  --navy-mid:    #001a80;
  --navy-light:  #e8eaf6;
  --accent:      #4f6df5;
  --accent-light:#dce3ff;
  --gold:        #f0b429;
  --font:        'Nunito', system-ui, sans-serif;
}

body { font-family: var(--font); color: #1a1a2e; scroll-behavior: smooth; }

/* Poids de police non couverts par Bootstrap */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* Utilitaires */
.text-navy       { color: var(--navy) !important; }
.text-navy-light { color: #9fa8da !important; }
.ls-wide         { letter-spacing: 0.06em; }
.py-lg-6         { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.z-2             { z-index: 2; }

/* Dégradé de texte */
.text-gradient {
  background: linear-gradient(135deg, #a8c0ff 0%, #dce3ff 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Séparateur sous les titres de section */
.section-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  border-radius: 4px;
}

/* =====================
   BOUTONS
   ===================== */
.btn { border-radius: 50px; font-weight: 700; transition: all .25s ease; }
.btn:hover { transform: translateY(-2px); }

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0,16,87,.25);
}
.btn-navy:hover, .btn-navy:focus {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,16,87,.35);
}
.btn-white {
  background: #fff;
  color: var(--navy);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.btn-white:hover, .btn-white:focus {
  background: #f0f2ff;
  color: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* =====================
   NAVBAR
   ===================== */
.navbar { transition: box-shadow .3s, background .3s; }
.navbar-brand { font-weight: 800; color: var(--navy) !important; }
.navbar-brand img { height: 42px; width: auto; }
.nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: #4a4a6a !important;
  border-radius: 8px;
  padding: .4rem .85rem !important;
  transition: all .2s;
}
.nav-link:hover { color: var(--navy) !important; background: var(--navy-light); }

/* =====================
   HERO
   ===================== */
.hero {
  background: linear-gradient(135deg, #000d47 0%, var(--navy) 40%, #0a1a7a 80%, #081260 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* Particules décoratives flottantes */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  animation: float 20s infinite ease-in-out;
}
.particle-1 { width: 300px; height: 300px; top: -80px; left: -60px; animation-delay: 0s; }
.particle-2 { width: 200px; height: 200px; bottom: 10%; right: 5%; animation-delay: -5s; }
.particle-3 { width: 120px; height: 120px; top: 30%; left: 60%; animation-delay: -10s; }
.particle-4 { width: 80px;  height: 80px;  top: 60%; left: 20%; animation-delay: -3s; background: rgba(79,109,245,.08); }
.particle-5 { width: 160px; height: 160px; top: 10%; right: 20%; animation-delay: -8s; background: rgba(79,109,245,.05); }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(.95); }
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.hero-sub { color: rgba(255,255,255,0.72); }

/* Logo hero */
.hero-logo-wrapper {
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backdrop-filter: blur(4px);
  animation: pulse-glow 4s infinite ease-in-out;
}
.hero-logo {
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(79,109,245,.1), 0 0 80px rgba(255,255,255,.03); }
  50%      { box-shadow: 0 0 60px rgba(79,109,245,.2), 0 0 120px rgba(255,255,255,.06); }
}

/* Vague bas du hero */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* Vague haut de la section RDV */
.rdv-wave-top {
  position: absolute;
  top: -1px; left: 0; right: 0;
  line-height: 0;
}
.rdv-wave-top svg { width: 100%; height: 60px; }

/* Illustration hero (ancien, retiré au profit du logo-wrapper) */
.hero-illustration { display: none; }

/* =====================
   ANIMATIONS D'ENTRÉE
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s ease forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Animations au scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   SECTION TAGS
   ===================== */
.section-tag {
  display: inline-block;
  background: var(--navy-light);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
}
.section-tag-light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,.12);
}

/* =====================
   ICÔNES SERVICES
   ===================== */
.service-icon-box {
  width: 48px; height: 48px;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all .25s;
}
.card:hover .service-icon-box {
  background: var(--navy);
  color: #fff;
  transform: scale(1.08);
}

/* =====================
   CARDS
   ===================== */
.card {
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(0,0,0,.04) !important;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,16,87,.1) !important;
}

/* Card navy (À propos) */
.card-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  box-shadow: 0 12px 32px rgba(0,16,87,.25);
}
.card-glow {
  position: relative;
  overflow: hidden;
}
.card-glow::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(79,109,245,.15) 0%, transparent 60%);
  pointer-events: none;
}

.paw-circle {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.paw-circle img {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* =====================
   SECTION SERVICES — fond subtil
   ===================== */
.section-services {
  background: linear-gradient(180deg, #f8f9fa 0%, #f0f1f8 100%);
}

/* =====================
   CHECK CIRCLES (section RDV)
   ===================== */
.check-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #a8c0ff;
  flex-shrink: 0;
}

/* =====================
   MOCK CARD TIPAW
   ===================== */
.mock-card {
  transform: rotate(2deg);
  transition: transform .4s ease;
}
.mock-card:hover { transform: rotate(0); }

.mock-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mock-red    { background: #ff5f57; }
.mock-yellow { background: #ffbd2e; }
.mock-green  { background: #28ca42; }

.mock-logo-img {
  height: 50px;
  width: auto;
  display: inline-block;
}

/* =====================
   CONTACT
   ===================== */
.contact-item-card {
  background: #fafbff;
  border: 1px solid #eef0f8;
  transition: all .25s;
}
.contact-item-card:hover {
  background: var(--navy-light);
  border-color: #c5cae9;
  transform: translateX(4px);
}

.contact-map {
  height: 100%;
  min-height: 360px;
}

/* =====================
   FOOTER
   ===================== */
.footer-custom {
  background: linear-gradient(135deg, #0a0e30 0%, var(--navy-dark) 100%);
  color: rgba(255,255,255,.7);
}
.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}
.footer-social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all .25s;
  text-decoration: none;
}
.footer-social-link:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  transform: translateY(-2px);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 991px) {
  .hero-logo-wrapper { width: 170px; height: 170px; }
  .hero-logo { width: 110px; }
  .py-lg-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}
@media (max-width: 767px) {
  .hero-logo-wrapper { width: 140px; height: 140px; margin-top: 1.5rem; }
  .hero-logo { width: 90px; }
  .hero-wave svg { height: 50px; }
  .contact-map { min-height: 280px; }
}
