/* Grid Layout */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.approach-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.approach-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.approach-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}
.approach-item .fas {
    color: var(--primary);
}

.approach-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.approach-item p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-cta .btn {
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Future Section */
.future-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 3rem 1rem;
    margin: 3rem 0;
}

.future-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
}

.future-section .lead {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    color: #495057;
    text-align: center;
}

.future-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.future-feature {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.future-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.future-feature i {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1.5rem;
    display: block;
}

.future-feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.future-feature p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

.future-cta {
    text-align: center;
    margin-top: 2rem;
}

.future-cta .btn {
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

.future-cta .btn .fas {
 color: white;}

.future-cta .text-muted {
    margin-top: 1rem;
    display: block;
}

/* Parcours de Vie Section */
.parcours-vie {
    margin: 4rem 0;
}

.parcours-vie h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #212529;
    position: relative;
    padding-bottom: 1rem;
}

.parcours-vie h2 i {
    margin-right: 0.75rem;
    color: #0d6efd;
}

.parcours-vie h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    border-radius: 3px;
}

.parcours-vie p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
}

.parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.parcours-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.parcours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.parcours-card.prepas {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f9f4 100%);
    border-left: 5px solid #20c997 !important;
}

.parcours-card.specialites {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7ff 100%);
    border-left: 5px solid #0d6efd !important;
}

.parcours-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.parcours-body {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.parcours-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-size: 1.5rem;
    color: #2c3e50;
}

.parcours-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 3px;
}

.parcours-card.prepas h3::after {
    background-color: #20c997;
}

.parcours-card.specialites h3::after {
    background-color: #0d6efd;
}

.parcours-card .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.parcours-card .btn {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.parcours-card.prepas .btn {
    background-color: #20c997;
    border-color: #20c997;
    color: white;
}

.parcours-card.specialites .btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.parcours-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .parcours-grid {
        grid-template-columns: 1fr;
    }
    
    .parcours-card {
        margin-bottom: 1.5rem;
    }
}

/* Main Categories Section */
.main-categories {
    margin: 4rem 0;
}

.main-categories h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #212529;
    position: relative;
    padding-bottom: 1rem;
}

.main-categories h2 i {
    margin-right: 0.75rem;
    color: #0d6efd;
}

.main-categories h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    border-radius: 3px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    display: block;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
    color: #6f42c1;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #212529;
}

.category-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.category-card .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .future-section {
        padding: 2rem 1rem;
    }
    
    .future-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

.approach-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                    gap: 1.5rem;
                    margin-top: 1.5rem;
                }
                .approach-item {
                    background: #f8f9fa;
                    border-radius: 10px;
                    padding: 1.5rem;
                    transition: all 0.3s ease;
                    border: 1px solid #e9ecef;
                }
                .approach-item:hover {
                    transform: translateY(-5px);
                    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
                }
                
                .approach-item .fas, .approach-item h3{
                    color: var(--primary);
                
                }
                .approach-item .fas{
                    font-size: 1.5rem;
                
                }
                @media (max-width: 768px) {
                    .approach-grid {
                        grid-template-columns: 1fr;
                    }
                }


                @media (max-width: 768px) {
                    .certificate-badge {
                        position: relative !important;
                        top: 0 !important;
                        right: 0 !important;
                        margin-bottom: 1.5rem !important;
                        display: inline-block !important;
                    }
                    .certificate-container {
                        padding-top: 1.5rem !important;
                    }
                }

                