/* ============================================
   TEMPLATE — CHARTE GRAPHIQUE
   Modifier uniquement ces variables pour
   changer toute la palette du site client
   ============================================ */
:root {
  --color-primary: #5C8F87;
  --color-primary-dark: #3D6B63;
  --color-primary-light: #A8C4BC;
  --color-bg-main: #F5F9F8;
  --color-bg-section: #EDF4F3;
  --color-bg-card: #E4EFED;
  --color-bg-white: #FFFFFF;
  --color-text-dark: #1A2825;
  --color-text-muted: rgba(26, 40, 37, 0.65);
  --color-text-light: rgba(26, 40, 37, 0.40);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  --color-border: rgba(92, 143, 135, 0.15);
  --color-separator: #A8C4BC;
  --hero-overlay: rgba(0, 0, 0, 0.38);
  --color-scrollbar-track: #F5F9F8;
  --color-scrollbar-thumb: #A8C4BC;
}

/* Custom CSS for Osteopath Website */

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Lien actif — section en cours de lecture */
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
}

/* Section Spacing */
section {
    scroll-margin-top: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 80px;
    }

    #hero h2 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #callButton,
    footer {
        display: none;
    }
}

.animate-fade-in { opacity: 0; }
.animate-fade-in.visible { opacity: 1; animation: fadeIn 0.8s ease-out forwards; }

/* Base — fade up (défaut) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade simple — pour les textes, titres, paragraphes */
.animate-fade {
  opacity: 0;
  transition: opacity 1.1s ease;
}
.animate-fade.visible {
  opacity: 1;
}

/* Slide depuis la gauche — pour images, blocs gauche */
.animate-from-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}
.animate-from-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide depuis la droite — pour blocs droite, badges */
.animate-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.animate-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom léger — pour les cards "Pour qui ?" */
.animate-zoom {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.animate-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero — image de fond */
#hero img[alt="Cabinet d'ostéopathie"] {
    object-position: center top;
}

/* Accès & Contact — iframe Google Maps */
.maps-iframe {
    height: 220px;
}
@media (min-width: 1024px) {
    .maps-iframe {
        height: 420px;
    }
}

/* Expertises — hover cards */
.expertise-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.expertise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
