/* --- Variables & Configuration --- */
:root {
    /* Palette de couleurs (Medical Blue & Teal) */
    --primary: #2575fc;
    --secondary: #00d2ff;
    --accent: #ff4757;
    --dark: #1e272e;
    --text-muted: #636e72;
    --light: #f1f2f6;
    --white: #ffffff;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(37, 117, 252, 0.2);
}

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: #f8faff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; }
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-padding { padding: 80px 0; }

/* --- Navbar (Glassmorphism) --- */
.navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
}
.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    margin: 0 10px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background: var(--primary);
    transition: 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Language Switcher */
.lang-switch {
    cursor: pointer;
    font-weight: bold;
    border: 2px solid var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--primary);
    transition: 0.3s;
}
.lang-switch:hover { background: var(--primary); color: white; }

/* --- Buttons --- */
.btn-custom {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
    transition: all 0.3s ease;
}
.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 117, 252, 0.5);
    color: white;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 130px;
    padding-bottom: 80px;
    overflow: hidden;
}
.blob-bg {
    position: absolute;
    top: -10%; right: -5%;
    width: 600px; height: 600px;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.3;
    z-index: -1;
    animation: blobMorph 10s infinite alternate;
}
@keyframes blobMorph {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(-30px, 30px) rotate(10deg); }
}
.hero-img-container { position: relative; }
.hero-img {
    border-radius: 30px;
    box-shadow: 20px 20px 0 rgba(37, 117, 252, 0.1);
}
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    bottom: 30px; left: -30px;
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% {transform: translateY(0);} 50% {transform: translateY(-10px);} }

/* --- Services (Cards) --- */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: 0.4s;
    opacity: 0.05;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { width: 100%; }
.icon-box {
    width: 70px; height: 70px;
    background: rgba(37, 117, 252, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: 0.3s;
}
.service-card:hover .icon-box { background: var(--primary); color: white; transform: rotateY(180deg); }

/* --- Appointment & Map --- */
.appointment-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('https://img.freepik.com/free-photo/blur-hospital_1203-7972.jpg') fixed center/cover;
}
.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 5px solid white;
}
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* --- Footer --- */
footer { background: #0f172a; color: white; padding-top: 60px; }
footer a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    .hero-section { text-align: center; }
    .floating-badge { position: relative; bottom: auto; left: auto; display: inline-flex; margin-top: 20px; }
    .map-container { margin-top: 30px; min-height: 300px; }
}

/* Animations Helpers */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); } rgba(10, 124, 255, 0.15);
    border-color: var(--primary);
    background: white;
}

/* --- Footer & WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* --- Animations --- */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: 0.8s ease-out; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: 0.8s ease-out; }
.visible { opacity: 1; transform: translate(0); }

@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 100px; }
    .hero-image-wrapper { margin-top: 40px; }
    .floating-card { position: relative; inset: auto; margin: 10px auto; max-width: 300px; }
    .trust-stats { justify-content: center; margin-top: 30px !important; }
}