/* Base Styles */
:root {
    --primary-color: #9E5CF2;
    --secondary-color: #433557;
    --text-color: #333;
    --white: #fff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --transition: all 0.3s ease;
}

* {
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles - Keep your existing header styles */

/* Hero Section */
.hero {
    height: 300%;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(77, 29, 149, 0.696), rgba(19, 19, 20, 0.514));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #8445d8;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(158, 92, 242, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Courses Section */
.courses {
    padding: 5rem 0;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

.course-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
}

.course-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(158, 92, 242, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(158, 92, 242, 0.1);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-200);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features h2,
    .courses h2,
    .contact h2 {
        font-size: 2rem;
    }
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Header */
.header {
    background-color: #1a1a1a00;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    position: relative; /* Ajouté pour gérer le positionnement */
    z-index: 100; /* Assurez-vous que l'en-tête soit au-dessus du contenu */
}

.navbar {
    display: flex;
    justify-content: flex-start; /* Aligner à gauche */
    align-items: center;
    padding: 0 40px;
    width: 100%;
    position: relative;  /* Positionner les éléments relativement pour le bouton toggle */
}

.menu-toggle {
    display: none;  /* Cacher le toggle par défaut */
    cursor: pointer;
    font-size: 24px;
    color: white;
 
    position: absolute; /* Assurer qu'il soit au-dessus des autres éléments */
    top: 20px; /* Positionner le bouton dans l'en-tête */
    right: 20px; /* Placer à droite */
}

.menu-toggle i {
    font-size: 24px;
    color: white;
}

/* Afficher le bouton toggle seulement sur petits écrans */
@media (max-width: 768px) {
    .nav-menu {
        display: none;  /* Cacher le menu par défaut */
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Positionner juste en dessous de l'en-tête */
        left: 0;
        background-color: #333;
        padding: 20px;
    
    }

    .nav-menu.active {
        display: flex;  /* Afficher le menu lorsqu'il est activé */
    }

    .menu-toggle {
        display: block;  /* Afficher le toggle */
    }

    .nav-menu a {
        padding: 10px;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
    }

    .nav-menu a:hover {
        background-color: #ff6f61;
    }
}

.nav-brand a {
    display: flex;
    align-items: center;
    color: #9E5CF2;
    text-decoration: none;
}

.nav-brand .logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-brand span {
    font-size: 24px;
    font-weight: bold;
    color:  #9E5CF2;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    margin-left: 30px; /* Espacement à gauche */
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color:  #9E5CF2;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Inter', sans-serif;   box-sizing: border-box;
    text-transform: uppercase;
    font-weight: 100;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color:  #9E5CF2;
    color: #fff;
    border-radius: 5px;
}

/* Search Icon */
.search-container {
    position: relative;
    margin-left:80%;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
}

.search-container:hover .search-dropdown {
    display: block;

}

.search-form {
    display: flex;
    align-items: start;
    z-index: 1;
}

.search-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 150px;
   
}

.search-form button {
    background-color: #9E5CF2;
    border: none;
    color: #fff;
    padding: 8px;
    margin-left: 5px;
    border-radius: 5px;

}

.search-form button:hover {
    background-color:  #d78126;
}

/* Social Media Links */
.social-links {
    margin-left: auto; /* Cela pousse les éléments à droite */
    display: flex;
}

.social-links a {
    color:  #9E5CF2;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color:  #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .search-container {
        margin-top: 10px;
    }

    .social-links {
        margin-top: 10px;
    }
}
