/* ============================================
   TEMPLATE — CHARTE GRAPHIQUE
   Modifier uniquement ces variables pour
   changer toute la palette du site client
   ============================================ */
:root {
  --color-primary:       #7A9E7E;   /* vert sauge cabinet */
  --color-primary-dark:  #5A7D5E;   /* vert sauge foncé */
  --color-primary-light: #B8D4BB;   /* vert sauge très clair */
  --color-bg-main:       #F7F5F1;   /* fond chaud ivoire */
  --color-bg-section:    #EEE9E1;   /* fond sections beige sable */
  --color-bg-card:       #F2EDE5;   /* cards crème chaude */
  --color-bg-white:      #FFFFFF;
  --color-text-dark:     #2C2C2A;   /* quasi-noir chaud */
  --color-text-muted:    rgba(44, 44, 42, 0.65);
  --color-text-light:    rgba(44, 44, 42, 0.40);
  --font-serif:          'Cormorant Garamond', serif;
  --font-sans:           'Inter', sans-serif;
  --color-border:        rgba(122, 158, 126, 0.18);
  --color-separator:     #D9D4CB;
  --hero-overlay:        rgba(0, 0, 0, 0.38);
  --color-scrollbar-track: #F7F5F1;
  --color-scrollbar-thumb: #B8D4BB;
}

/* 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);
}

/* Photo praticienne — recadrage portrait centré sur le visage */
#about img[src*="praticien"] {
    object-fit: cover;
    object-position: center 15%;
}

@media (max-width: 1024px) {
    #about img[src*="praticien"] {
        object-position: center 10%;
        height: 320px;
    }
}

/* ── Drawer mobile + sélecteur de langue ── */
#mobileMenu {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
#drawerOverlay {
    transition: opacity 0.32s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.lang-btn, .lang-btn-d {
    cursor: pointer; background: none; border: none;
    padding: 0; transition: opacity 0.2s ease, transform 0.15s ease;
}
.lang-btn:hover { transform: scale(1.2); }

/* Lang button active state — sans style.color inline (accessibilité) */
.lang-btn-d.lang-active {
    color: var(--color-primary);
    font-weight: 600;
}
