
        /* Styles spécifiques au body */
        .main-body {
            padding: 40px 5%;
            max-width: 1400px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(20px);
            animation: bodyEntrance 1s ease 0.3s forwards;
        }

        /* Hero Section avec animations */
        .hero-section {
            background: linear-gradient(135deg, #ff5a5f 0%, #ff8a8c 100%);
            color: white;
            padding: 80px 40px;
            border-radius: 20px;
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            animation: heroEntrance 1s ease 0.5s forwards;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
            background-size: cover;
            animation: float 20s ease-in-out infinite;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: bold;
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease 0.8s forwards;
        }

        .hero-subtitle {
            font-size: 1.3rem;
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease 1s forwards;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 40px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease 1.2s forwards;
        }

        .stat-item {
            text-align: center;
            position: relative;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            display: block;
        }

        .stat-label {
            font-size: 1rem;
            opacity: 0.8;
        }

        /* Filtres Section avec animation */
        .filters-section {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
            margin-bottom: 40px;
            opacity: 0;
            transform: translateY(30px);
            animation: slideInUp 0.8s ease 1.4s forwards;
        }

        .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
        }

        .filter-label {
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
        }

        .filter-select {
            padding: 12px 15px;
            border: 2px solid #eaeaea;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            transition: all 0.3s ease;
        }

        .filter-select:focus {
            border-color: #ff5a5f;
            outline: none;
            transform: scale(1.02);
        }

        .filter-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
        }

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: #ff5a5f;
            color: white;
        }

        .btn-primary:hover {
            background: #ff4247;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
        }

        .btn-secondary {
            background: #f8f9fa;
            color: #333;
            border: 2px solid #eaeaea;
        }

        .btn-secondary:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }

        /* Grille des professeurs */
        .teachers-section {
            margin-bottom: 60px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease 1.6s forwards;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 2rem;
            font-weight: bold;
            color: #333;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 3px;
            background: #ff5a5f;
            border-radius: 2px;
        }

        .sort-options {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .sort-select {
            padding: 10px 15px;
            border: 2px solid #eaeaea;
            border-radius: 8px;
            background: white;
            transition: all 0.3s ease;
        }

        .sort-select:focus {
            border-color: #ff5a5f;
            transform: scale(1.02);
        }

        .teachers-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }

        /* Carte de professeur avec animations */
        .teacher-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px) scale(0.95);
            animation: cardEntrance 0.6s ease forwards;
            position: relative;
        }

        .teacher-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ff5a5f, #ff8a8c);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .teacher-card:hover::before {
            transform: scaleX(1);
        }

        .teacher-card:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .teacher-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: all 0.4s ease;
            filter: grayscale(0.1);
        }

        .teacher-card:hover .teacher-image {
            transform: scale(1.1);
            filter: grayscale(0);
        }

        .teacher-info {
            padding: 20px;
            position: relative;
        }

        .teacher-name {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 5px;
            color: #333;
        }

        .teacher-subject {
            color: #ff5a5f;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .teacher-location {
            color: #666;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .teacher-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 15px;
        }

        .stars {
            color: #ffc107;
        }

        .rating-value {
            font-weight: 600;
            color: #333;
        }

        .review-count {
            color: #666;
            font-size: 0.9rem;
        }

        .teacher-description {
            color: #555;
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .teacher-price {
            font-size: 1.3rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 15px;
        }

        .teacher-actions {
            display: flex;
            gap: 10px;
        }

        .btn-small {
            padding: 8px 15px;
            font-size: 0.9rem;
            flex: 1;
            text-align: center;
        }

        .btn-outline {
            background: transparent;
            border: 2px solid #ff5a5f;
            color: #ff5a5f;
        }

        .btn-outline:hover {
            background: #ff5a5f;
            color: white;
            transform: translateY(-2px);
        }

        /* Pagination avec animations */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 40px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.8s ease 2s forwards;
        }

        .page-btn {
            width: 40px;
            height: 40px;
            border: 2px solid #eaeaea;
            background: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .page-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,90,95,0.1), transparent);
            transition: left 0.5s;
        }

        .page-btn:hover::before {
            left: 100%;
        }

        .page-btn.active {
            background: #ff5a5f;
            color: white;
            border-color: #ff5a5f;
            transform: scale(1.1);
        }

        .page-btn:hover:not(.active) {
            border-color: #ff5a5f;
            color: #ff5a5f;
            transform: translateY(-2px);
        }

        /* Section Pourquoi Nous Choisir */
        .why-choose-us {
            background: #f8f9fa;
            padding: 80px 40px;
            border-radius: 20px;
            text-align: center;
            margin-bottom: 60px;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease 2.2s forwards;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-top: 50px;
        }

        .feature-card {
            padding: 30px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.4s ease;
            opacity: 0;
            transform: translateY(30px);
        }

        .feature-card:hover {
            transform: translateY(-15px) scale(1.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #ff5a5f, #ff8a8c);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 2rem;
            transition: all 0.4s ease;
        }

        .feature-card:hover .feature-icon {
            transform: rotate(360deg) scale(1.1);
        }

        .feature-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }

        .feature-description {
            color: #666;
            line-height: 1.6;
        }

        /* Bouton Back to Top amélioré */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #ff5a5f, #ff8a8c);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            opacity: 0;
            visibility: hidden;
            box-shadow: 0 8px 30px rgba(255, 90, 95, 0.3);
            z-index: 1000;
            transform: translateY(100px) scale(0.5);
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .back-to-top:hover {
            background: linear-gradient(135deg, #ff4247, #ff6b6f);
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 15px 40px rgba(255, 90, 95, 0.4);
        }

        .back-to-top:active {
            transform: scale(0.95);
        }

        .back-to-top::before {
            content: '';
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            background: linear-gradient(135deg, #ff5a5f, #ff8a8c);
            border-radius: 50%;
            z-index: -1;
            opacity: 0;
            animation: pulse 2s infinite;
        }

        .back-to-top.visible::before {
            opacity: 0.6;
        }

        /* Animations */
        @keyframes bodyEntrance {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

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

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

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

        @keyframes float {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(0.95);
                opacity: 0.6;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.3;
            }
            100% {
                transform: scale(0.95);
                opacity: 0.6;
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .teachers-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 900px) {
            .teachers-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-stats {
                flex-direction: column;
                gap: 20px;
            }
        }

        @media (max-width: 600px) {
            .teachers-grid {
                grid-template-columns: 1fr;
            }
            
            .filters-grid {
                grid-template-columns: 1fr;
            }
            
            .filter-actions {
                flex-direction: column;
            }
            
            .section-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .hero-section {
                padding: 40px 20px;
            }
            
            .hero-title {
                font-size: 2rem;
            }
            
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 18px;
            }
        }
    /* ============Favorit=============== */

/* 1. Rendre le conteneur parent positionné pour les enfants absolus */
.image-container {
    position: relative; /* Très important pour que le bouton se positionne par rapport à lui */
    display: block;
    overflow: hidden; /* Assurez-vous que rien ne dépasse si l'image a des bords arrondis */
}

/* 2. Style du bouton de favori */
.favorite-button {
    position: absolute; /* Positionne le bouton par rapport à .image-container */
    top: 10px;          /* 10 pixels du haut */
    right: 10px;        /* 10 pixels de la droite */
    z-index: 10;        /* Assure qu'il est au-dessus de l'image */
    
    /* Styles esthétiques pour ressembler à un bouton d'icône */
    background: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent */
    border: none;
    border-radius: 50%; /* Rendre le bouton circulaire */
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 3. Style de l'icône à l'intérieur du bouton */
.favorite-button i {
    color: #ff4d4d; /* Couleur rouge/rose pour le cœur */
    font-size: 1.2em; /* Taille de l'icône */
}

/* 4. Effet de survol (optionnel mais recommandé) */
.favorite-button:hover {
    background: #ffffff;
}