* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            /* Structure pour footer collé en bas */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header */
        .header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
        }
        
        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 20px;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #2563eb;
            text-decoration: none;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }
        
        .nav-links a {
            text-decoration: none;
            color: #666;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav-links a:hover {
            color: #2563eb;
        }
        
        .btn-primary {
            background: #f97316;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-primary:hover {
            background: #ea580c;
            transform: translateY(-2px);
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            padding: 120px 0 80px;
            color: white;
            overflow: hidden;
            position: relative;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
            animation: float 20s infinite linear;
            top: -50%;
            left: -50%;
        }
        
        @keyframes float {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .search-container {
            background: white;
            padding: 20px;
            border-radius: 50px;
            display: flex;
            max-width: 600px;
            margin: 2rem 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .search-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            padding: 10px 20px;
        }
        
        .search-btn {
            background: #f97316;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            color: white;
            font-weight: 600;
            cursor: pointer;
        }
        
        .categories {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }
        
        .category-tag {
            background: rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            backdrop-filter: blur(10px);
            color: white;
            text-decoration: none;
        }
        
        .stats {
            display: flex;
            gap: 3rem;
            margin-top: 3rem;
        }
        
        .stat {
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: bold;
            display: block;
        }
        
        .stat-label {
            font-size: 14px;
            opacity: 0.8;
        }
        
        /* Main Content */
        .main-content {
            padding: 80px 0;
            flex: 1 0 auto;
        }
        
        .section {
            margin-bottom: 80px;
        }
        
        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            color: #1f2937;
        }
        
        /* Services Grid */
        .services-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            margin-bottom: 60px;
        }
        
        .service-content h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #1f2937;
        }
        
        .service-content p {
            color: #6b7280;
            margin-bottom: 1.5rem;
        }
        
        .service-features {
            list-style: none;
        }
        
        .service-features li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .service-features li::before {
            content: '✓';
            background: #10b981;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }
        
        .service-visual {
            background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
            border-radius: 20px;
            padding: 40px;
            position: relative;
            overflow: hidden;
        }
        
        .doctor-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transform: rotate(-5deg);
            position: relative;
        }
        
        .doctor-avatar {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            border-radius: 50%;
            margin-bottom: 15px;
        }
        
        .rating {
            display: flex;
            align-items: center;
            gap: 5px;
            margin: 10px 0;
        }
        
        .stars {
            color: #fbbf24;
        }
        
        .badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #f97316;
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        /* Why Choose Us */
        .why-choose {
            background: #f8fafc;
            padding: 80px 0;
            border-radius: 30px;
            margin: 60px 0;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-top: 60px;
        }
        
        .feature-card {
            background: white;
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
        .feature-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
        }
        
        .feature-card h3 {
            margin-bottom: 15px;
            color: #1f2937;
        }
        
        .feature-card p {
            color: #6b7280;
            line-height: 1.6;
        }
        
        /* Specialties */
        .specialties-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }
        
        .specialty-card {
            background: white;
            padding: 30px 20px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        
        .specialty-card:hover {
            border-color: #2563eb;
            transform: translateY(-5px);
        }
        
        .specialty-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
            background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        
        .specialty-card h4 {
            margin-bottom: 10px;
            color: #1f2937;
        }
        
        .specialty-projects {
            color: #6b7280;
            font-size: 14px;
        }
        
        /* Design avancé pour les avis/commentaires */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e0e7eb 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.08);
    padding: 38px 32px 28px 32px;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    box-shadow: 0 16px 40px rgba(37,99,235,0.13);
    transform: translateY(-8px) scale(1.02);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}

.testimonial-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.testimonial-header .rating-number {
    font-size: 1rem;
    color: #f97316;
    font-weight: 600;
    margin-left: 8px;
}



.testimonial-text {
    font-style: italic;
    color: #374151;
    margin-bottom: 18px;
    font-size: 1.08rem;
    line-height: 1.7;
    min-height: 60px; 
}

.testimonial-meta {
    font-size: 0.98rem;
    color: #6b7280;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-style: normal;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .testimonial-card {
        padding: 28px 16px 18px 16px;
    }
}

        .author-avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            border-radius: 50%;
        }
        
        .author-info h5 {
            margin-bottom: 5px;
            color: #1f2937;
        }
        
        .author-info span {
            color: #6b7280;
            font-size: 14px;
        }
        
        /* Footer */
        .footer {
            flex-shrink: 0;
            width: 100%;
            background: #1f2937;
            color: white;
            padding: 60px 0 30px;
            margin-top: auto;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-section h4 {
            margin-bottom: 20px;
            font-size: 1.2rem;
        }
        
        .footer-section ul {
            list-style: none;
        }
        
        .footer-section ul li {
            margin-bottom: 10px;
        }
        
        .footer-section ul li a {
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-section ul li a:hover {
            color: white;
        }
        
        .newsletter {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        .newsletter input {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 5px;
            outline: none;
        }
        
        .newsletter button {
            background: #2563eb;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
        }
        
        .footer-bottom {
            border-top: 1px solid #374151;
            padding-top: 30px;
            text-align: center;
            color: #9ca3af;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .search-container {
                flex-direction: column;
                gap: 15px;
                border-radius: 20px;
            }
            
            .search-btn {
                border-radius: 10px;
            }
            
            .stats {
                flex-direction: column;
                gap: 1rem;
            }
            
            .categories {
                justify-content: center;
            }
            .nav-toggle {
                display: block;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                right: 20px;
                background: white;
                box-shadow: 0 8px 30px rgba(37,99,235,0.08);
                border-radius: 20px;
                flex-direction: column;
                gap: 0;
                width: 80vw;
                max-width: 320px;
                padding: 30px 0;
                z-index: 999;
                text-align: left;
            }
            .nav-links.active {
                display: flex;
            }
            .nav-links li {
                margin: 0 0 20px 30px;
            }
        }
        
        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }


           /* Section des profils médecins */
        .doctors-profiles {
            background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .doctors-profiles::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(37,99,235,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(37,99,235,0.1)"/><circle cx="60" cy="80" r="2" fill="rgba(37,99,235,0.1)"/></svg>') repeat;
            opacity: 0.5;
        }

        .doctor-profile-card .doctor-location {
    text-align: center;
    margin: 12px 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .doctors-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .doctors-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .doctors-subtitle {
            font-size: 1.1rem;
            color: #374151;
            margin-bottom: 10px;
        }

        .doctors-count {
            font-size: 2.2rem;
            font-weight: bold;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            display: block;
        }

        .platform-name {
            font-size: 1.2rem;
            color: #6b7280;
            font-weight: 500;
        }
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 0 auto;
    margin-top: 50px;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px; /* Limite la largeur sur grand écran */
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

        .doctor-profile-card {
            background: white;
            border-radius: 25px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(37, 99, 235, 0.1);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .doctor-profile-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
        }

        .doctor-profile-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, #f97316, #ea580c);
        }

        .doctor-avatar-container {
            position: relative;
            margin: 0 auto 25px;
            width: 120px;
            height: 120px;
        }

        .doctor-avatar-bg {
            width: 120px;
            height: 120px;
            border-radius: 25px;
            background: linear-gradient(135deg, #f97316, #ea580c);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
        }

        .doctor-avatar-bg.blue {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }

        .doctor-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .doctor-specialty {
            color: #6b7280;
            font-size: 1rem;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .doctor-rating {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 15px;
        }

        .stars-container {
            display: flex;
            gap: 2px;
        }

        .star {
            width: 18px;
            height: 18px;
            background: #fbbf24;
            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }

        .rating-number {
            font-weight: 600;
            color: #1f2937;
            font-size: 1rem;
        }

        .doctor-experience {
            background: #f3f4f6;
            color: #374151;
            padding: 8px 16px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 500;
            display: inline-block;
            margin-top: 5px;
        }

        .btn-contact {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
            font-size: 0.95rem;
        }

        .btn-contact:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
        }

        .view-all-btn {
            text-align: center;
            margin-top: 50px;
        }

        .btn-primary {
            background: #f97316;
            color: white;
            padding: 15px 35px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            font-size: 1.1rem;
        }

        .btn-primary:hover {
            background: #ea580c;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .search-container {
                flex-direction: column;
                gap: 15px;
                border-radius: 20px;
            }
            
            .search-btn {
                border-radius: 10px;
            }
            
            .stats {
                flex-direction: column;
                gap: 1rem;
            }
            
            .categories {
                justify-content: center;
            }
            .nav-toggle {
                display: block;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                right: 20px;
                background: white;
                box-shadow: 0 8px 30px rgba(37,99,235,0.08);
                border-radius: 20px;
                flex-direction: column;
                gap: 0;
                width: 80vw;
                max-width: 320px;
                padding: 30px 0;
                z-index: 999;
                text-align: left;
            }
            .nav-links.active {
                display: flex;
            }
            .nav-links li {
                margin: 0 0 20px 30px;
            }
        }
        
        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }


           /* Section des profils médecins */
        .doctors-profiles {
            background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .doctors-profiles::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(37,99,235,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(37,99,235,0.1)"/><circle cx="60" cy="80" r="2" fill="rgba(37,99,235,0.1)"/></svg>') repeat;
            opacity: 0.5;
        }

        .doctor-profile-card .doctor-location {
    text-align: center;
    margin: 12px 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .doctors-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .doctors-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .doctors-subtitle {
            font-size: 1.1rem;
            color: #374151;
            margin-bottom: 10px;
        }

        .doctors-count {
            font-size: 2.2rem;
            font-weight: bold;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            display: block;
        }

        .platform-name {
            font-size: 1.2rem;
            color: #6b7280;
            font-weight: 500;
        }

        .doctors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 50px;
            justify-content: center;      /* centre les éléments horizontalement */
            align-items: stretch;
            width: 100%;
            box-sizing: border-box;
        }

        .doctor-profile-card {
            background: white;
            border-radius: 25px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(37, 99, 235, 0.1);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .doctor-profile-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
        }

        .doctor-profile-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, #f97316, #ea580c);
        }

        .doctor-avatar-container {
            position: relative;
            margin: 0 auto 25px;
            width: 120px;
            height: 120px;
        }

        .doctor-avatar-bg {
            width: 120px;
            height: 120px;
            border-radius: 25px;
            background: linear-gradient(135deg, #f97316, #ea580c);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
        }

        .doctor-avatar-bg.blue {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }

        .doctor-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .doctor-specialty {
            color: #6b7280;
            font-size: 1rem;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .doctor-rating {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 15px;
        }

        .stars-container {
            display: flex;
            gap: 2px;
        }

        .star {
            width: 18px;
            height: 18px;
            background: #fbbf24;
            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }

        .rating-number {
            font-weight: 600;
            color: #1f2937;
            font-size: 1rem;
        }

        .doctor-experience {
            background: #f3f4f6;
            color: #374151;
            padding: 8px 16px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 500;
            display: inline-block;
            margin-top: 5px;
        }

        .btn-contact {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
            font-size: 0.95rem;
        }

        .btn-contact:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
        }

        .view-all-btn {
            text-align: center;
            margin-top: 50px;
        }

        .btn-primary {
            background: #f97316;
            color: white;
            padding: 15px 35px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            font-size: 1.1rem;
        }

        .btn-primary:hover {
            background: #ea580c;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .search-container {
                flex-direction: column;
                gap: 15px;
                border-radius: 20px;
            }
            
            .search-btn {
                border-radius: 10px;
            }
            
            .stats {
                flex-direction: column;
                gap: 1rem;
            }
            
            .categories {
                justify-content: center;
            }
            .nav-toggle {
                display: block;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                right: 20px;
                background: white;
                box-shadow: 0 8px 30px rgba(37,99,235,0.08);
                border-radius: 20px;
                flex-direction: column;
                gap: 0;
                width: 80vw;
                max-width: 320px;
                padding: 30px 0;
                z-index: 999;
                text-align: left;
            }
            .nav-links.active {
                display: flex;
            }
            .nav-links li {
                margin: 0 0 20px 30px;
            }
        }
        
        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }


           /* Section des profils médecins */
        .doctors-profiles {
            background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .doctors-profiles::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(37,99,235,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(37,99,235,0.1)"/><circle cx="60" cy="80" r="2" fill="rgba(37,99,235,0.1)"/></svg>') repeat;
            opacity: 0.5;
        }

        .doctor-profile-card .doctor-location {
    text-align: center;
    margin: 12px 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .doctors-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .doctors-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .doctors-subtitle {
            font-size: 1.1rem;
            color: #374151;
            margin-bottom: 10px;
        }

        .doctors-count {
            font-size: 2.2rem;
            font-weight: bold;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            display: block;
        }

        .platform-name {
            font-size: 1.2rem;
            color: #6b7280;
            font-weight: 500;
        }

        .doctors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 50px;
            justify-content: center;      /* centre les éléments horizontalement */
            align-items: stretch;
            width: 100%;
            box-sizing: border-box;
        }

        .doctor-profile-card {
            background: white;
            border-radius: 25px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(37, 99, 235, 0.1);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .doctor-profile-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
        }

        .doctor-profile-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, #f97316, #ea580c);
        }

        .doctor-avatar-container {
            position: relative;
            margin: 0 auto 25px;
            width: 120px;
            height: 120px;
        }

        .doctor-avatar-bg {
            width: 120px;
            height: 120px;
            border-radius: 25px;
            background: linear-gradient(135deg, #f97316, #ea580c);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
        }

        .doctor-avatar-bg.blue {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }

        .doctor-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .doctor-specialty {
            color: #6b7280;
            font-size: 1rem;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .doctor-rating {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 15px;
        }

        .stars-container {
            display: flex;
            gap: 2px;
        }

        .star {
            width: 18px;
            height: 18px;
            background: #fbbf24;
            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }

        .rating-number {
            font-weight: 600;
            color: #1f2937;
            font-size: 1rem;
        }

        .doctor-experience {
            background: #f3f4f6;
            color: #374151;
            padding: 8px 16px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 500;
            display: inline-block;
            margin-top: 5px;
        }

        .btn-contact {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
            font-size: 0.95rem;
        }

        .btn-contact:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
        }

        .view-all-btn {
            text-align: center;
            margin-top: 50px;
        }

        .btn-primary {
            background: #f97316;
            color: white;
            padding: 15px 35px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            font-size: 1.1rem;
        }

        .btn-primary:hover {
            background: #ea580c;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .search-container {
                flex-direction: column;
                gap: 15px;
                border-radius: 20px;
            }
            
            .search-btn {
                border-radius: 10px;
            }
            
            .stats {
                flex-direction: column;
                gap: 1rem;
            }
            
            .categories {
                justify-content: center;
            }
            .nav-toggle {
                display: block;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                right: 20px;
                background: white;
                box-shadow: 0 8px 30px rgba(37,99,235,0.08);
                border-radius: 20px;
                flex-direction: column;
                gap: 0;
                width: 80vw;
                max-width: 320px;
                padding: 30px 0;
                z-index: 999;
                text-align: left;
            }
            .nav-links.active {
                display: flex;
            }
            .nav-links li {
                margin: 0 0 20px 30px;
            }
        }
        
        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }


           /* Section des profils médecins */
        .doctors-profiles {
            background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .doctors-profiles::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(37,99,235,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(37,99,235,0.1)"/><circle cx="60" cy="80" r="2" fill="rgba(37,99,235,0.1)"/></svg>') repeat;
            opacity: 0.5;
        }

        .doctor-profile-card .doctor-location {
    text-align: center;
    margin: 12px 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .doctors-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .doctors-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .doctors-subtitle {
            font-size: 1.1rem;
            color: #374151;
            margin-bottom: 10px;
        }

        .doctors-count {
            font-size: 2.2rem;
            font-weight: bold;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            display: block;
        }

        .platform-name {
            font-size: 1.2rem;
            color: #6b7280;
            font-weight: 500;
        }

        .doctors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 50px;
            justify-content: center;      /* centre les éléments horizontalement */
            align-items: stretch;
            width: 100%;
            box-sizing: border-box;
        }

        .doctor-profile-card {
            background: white;
            border-radius: 25px;
            padding: 40px 30px;
            text-align: center;
            box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(37, 99, 235, 0.1);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .doctor-profile-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
        }

        .doctor-profile-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(135deg, #f97316, #ea580c);
        }

        .doctor-avatar-container {
            position: relative;
            margin: 0 auto 25px;
            width: 120px;
            height: 120px;
        }

        .doctor-avatar-bg {
            width: 120px;
            height: 120px;
            border-radius: 25px;
            background: linear-gradient(135deg, #f97316, #ea580c);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: white;
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
        }

        .doctor-avatar-bg.blue {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
        }

        .doctor-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px;
        }

        .doctor-specialty {
            color: #6b7280;
            font-size: 1rem;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .doctor-rating {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 15px;
        }

        .stars-container {
            display: flex;
            gap: 2px;
        }

        .star {
            width: 18px;
            height: 18px;
            background: #fbbf24;
            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }

        .rating-number {
            font-weight: 600;
            color: #1f2937;
            font-size: 1rem;
        }

        .doctor-experience {
            background: #f3f4f6;
            color: #374151;
            padding: 8px 16px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 500;
            display: inline-block;
            margin-top: 5px;
        }

        .btn-contact {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            margin-top: 20px;
            font-size: 0.95rem;
        }

        .btn-contact:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
        }

        .view-all-btn {
            text-align: center;
            margin-top: 50px;
        }

        .btn-primary {
            background: #f97316;
            color: white;
            padding: 15px 35px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            font-size: 1.1rem;
        }

        .btn-primary:hover {
            background: #ea580c;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .search-container {
                flex-direction: column;
                gap: 15px;
                border-radius: 20px;
            }
            
            .search-btn {
                border-radius: 10px;
            }
            
            .stats {
                flex-direction: column;
                gap: 1rem;
            }
            
            .categories {
                justify-content: center;
            }
            .nav-toggle {
                display: block;
            }
            .nav-links {
                display: none;
                position: absolute;
                top: 70px;
                right: 20px;
                background: white;
                box-shadow: 0 8px 30px rgba(37,99,235,0.08);
                border-radius: 20px;
                flex-direction: column;
                gap: 0;
                width: 80vw;
                max-width: 320px;
                padding: 30px 0;
                z-index: 999;
                text-align: left;
            }
            .nav-links.active {
                display: flex;
            }
            .nav-links li {
                margin: 0 0 20px 30px;
            }
        }
        
        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

/* Affiche le bouton hamburger uniquement sur mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #2563eb;
    cursor: pointer;
    margin-left: 10px;
}

/* Menu horizontal sur PC, menu déroulant sur mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        box-shadow: 0 8px 30px rgba(37,99,235,0.08);
        border-radius: 20px;
        flex-direction: column;
        gap: 0;
        width: 80vw;
        max-width: 320px;
        padding: 30px 0;
        z-index: 999;
        text-align: left;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0 0 20px 30px;
    }
}

/* Sur PC, le menu est horizontal et le bouton hamburger est caché */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
    .nav-links {
        display: flex !important;
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        flex-direction: row;
        width: auto;
        max-width: none;
        padding: 0;
        text-align: center;
        gap: 2rem;
    }
    .nav-links li {
        margin: 0;
    }
}

/* Ajoute un peu d'espace pour les icônes dans les liens */
.nav-links a i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Loader avancé DocConnect */
#page-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-icons {
    font-size: 3rem;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 18px;
}

.loader-icons i {
    animation: pulse 1.2s infinite;
}

.loader-icons i:nth-child(2) { animation-delay: 0.2s; }
.loader-icons i:nth-child(3) { animation-delay: 0.4s; }
.loader-icons i:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 10px;
    animation: fadeText 2s infinite;
}

@keyframes fadeText {
    0%,100% { opacity: 0.7; }
    50% { opacity: 1; }
}



/* Animation avancée du menu mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        box-shadow: 0 8px 30px rgba(37,99,235,0.08);
        border-radius: 20px;
        flex-direction: column;
        gap: 0;
        width: 80vw;
        max-width: 320px;
        padding: 30px 0;
        z-index: 999;
        text-align: left;
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    }
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .nav-links li {
        margin: 0 0 20px 30px;
        animation: fadeMenuItem 0.5s both;
    }
    .nav-links.active li {
        animation: fadeMenuItem 0.5s both;
    }
    .nav-links li:nth-child(1) { animation-delay: 0.05s; }
    .nav-links li:nth-child(2) { animation-delay: 0.10s; }
    .nav-links li:nth-child(3) { animation-delay: 0.15s; }
    .nav-links li:nth-child(4) { animation-delay: 0.20s; }
    .nav-links li:nth-child(5) { animation-delay: 0.25s; }
}

@keyframes fadeMenuItem {
    0% { opacity: 0; transform: translateX(30px);}
    100% { opacity: 1; transform: translateX(0);}
}

/* Animation du bouton hamburger */
.nav-toggle {
    transition: background 0.2s;
    border-radius: 50%;
    padding: 8px;
}
.nav-toggle:active {
    background: #e0e7ff;
}
.nav-toggle i {
    transition: transform 0.3s;
}
.nav-toggle.open i {
    transform: rotate(90deg);
    color: #f97316;
}


@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 98vw;
        padding-left: 0;
        padding-right: 0;
    }
    .doctor-profile-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 95vw;
    }
}

  /* Hero image avancée, très grande, bien à droite */
.hero-image-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 0 0 52%;           /* occupe plus de place à droite */
    min-width: 420px;        /* plus large */
    min-height: 500px;       /* plus haut */
    height: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: -300px;     /* tire l'image vers le bord droit */
    position: relative;
    z-index: 2;
}
.hero-img-advanced {
    width: 100%;
    max-width: 700px;
    min-width: 400px;
    height: auto;
    border-radius: 48px 16px 48px 16px;
    background: transparent;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    filter: drop-shadow(0 12px 40px rgba(30,64,175,0.22));
    object-fit: contain;
    display: block;
}

@media (max-width: 1500px) {
    .hero-image-right {
        min-width: 420px;
        min-height: 520px;
        flex: 0 0 52%;
        margin-left: 0;
        margin-right: 0;
        margin-right: -200px;     /* tire l'image vers le bord droit */
    position: relative;
    z-index: 2;
    }
    .hero-img-advanced {
        width: 100%;
    max-width: 700px;
    min-width: 400px;
    height: auto;
    border-radius: 48px 16px 48px 16px;
    background: transparent;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    filter: drop-shadow(0 12px 40px rgba(30,64,175,0.22));
    object-fit: contain;
    }
}