* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --primary-red: #ef4444;
    --secondary-red: #dc2626;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========== TOP BAR ========== */
.top-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-toggle,
.elearning-btn {
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.lang-toggle:hover,
.elearning-btn:hover {
    opacity: 0.8;
}

.elearning-btn {
    background-color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    z-index: 40;
}

.header.sticky {
    position: sticky;
    top: 0;
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.05em;
    line-height: 1;
}

.logo-text p {
    font-size: 0.625rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-items {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 1.75rem;
    height: 0.25rem;
    background-color: #475569;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-items {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        display: none;
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-items.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem;
        font-size: 1.125rem;
        border-bottom: none;
    }

    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* ========== MAIN CONTENT PAGES ========== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    
}

.hero-content {
    position: relative;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    color: white;
    max-width: 40rem;
    animation: slideInLeft 0.7s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-red);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 0.25rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-red);
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background-color: white;
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-full {
    width: 100%;
}

.btn-course {
    background-color: var(--primary-blue);
    color: white;
}

.btn-course:hover {
    background-color: var(--primary-red);
}

.btn-newsletter {
    background-color: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn-newsletter:hover {
    background-color: var(--secondary-red);
}

/* ========== STATS SECTION ========== */
.stats {
    background-color: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    margin: 0 auto 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ========== PRESENTATION SECTION ========== */
.presentation {
    padding: 6rem 0;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.presentation-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.presentation-text p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    space-y: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 1rem;
}

.checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #fee2e2;
    color: var(--primary-red);
    border-radius: 50%;
    font-weight: 700;
}

.presentation-image {
    position: relative;
}

.presentation-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.quote-box {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 15rem;
}

.quote-box p {
    color: var(--primary-blue);
    font-weight: 700;
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.quote-author {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.5rem !important;
}

/* ========== NEWS SECTION ========== */
.news-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
}

.see-all {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.see-all:hover {
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-red);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.75rem 0;
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: var(--primary-blue);
}

.news-summary {
    font-size: 0.875rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #bfdbfe;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
    text-align: center;
    padding: 4rem 1rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ========== FORMATIONS PAGE ========== */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.formation-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.formation-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.formation-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.formation-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.formation-cycle {
    background-color: #fee2e2;
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.formation-specialty,
.formation-duration {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.formation-description {
    color: var(--text-light);
    margin: 1rem 0;
    flex-grow: 1;
}

/* ========== ADMISSION PAGE ========== */
.admission-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 2rem 0;
}

.admission-info {
    space-y: 2rem;
}

.admission-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.admission-info p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.admission-steps {
    space-y: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
}

.step-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.step-icon-1 {
    background-color: #fecaca;
}

.step-icon-2 {
    background-color: #bfdbfe;
}

.step-icon-3 {
    background-color: #bbf7d0;
}

.step h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-box {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}

.info-box p {
    margin: 0;
}

.info-box p:first-child {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    font-size: 0.875rem;
    color: #bfdbfe;
    line-height: 1.5;
}

.admission-form-wrapper {
    background-color: white;
    border-radius: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

/* ========== FORM STYLES ========== */
.admission-form {
    space-y: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    space-y: 0.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.submission-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    space-y: 1.5rem;
    padding: 3rem;
}

.submission-success.hidden {
    display: none;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background-color: #dcfce7;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: bounce 0.7s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.submission-success h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

.submission-success p {
    color: var(--text-light);
    max-width: 28rem;
}

/* ========== VIE ACADEMIQUE PAGE ========== */
.academics-content {
    padding: 2rem 0;
}

.academics-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.academics-content p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.academic-item {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.academic-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.academic-item p {
    color: var(--text-light);
    font-size: 0.975rem;
}

/* ========== BIBLIOTHEQUE PAGE ========== */
.library-content {
    padding: 2rem 0;
}

.library-content p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.library-item {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    text-align: center;
}

.library-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.library-item p {
    color: var(--text-light);
}

/* ========== E-LEARNING PAGE ========== */
.elearning-page {
    padding: 0 !important;
}

.elearning-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background-color: #f3f4f6;
}

.elearning-sidebar {
    width: 16rem;
    background-color: #1f2937;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-red);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-header span {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-nav {
    flex-grow: 1;
    space-y: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background-color: #374151;
    color: white;
}

.sidebar-item.active {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.sidebar-item .icon {
    font-size: 1.125rem;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.logout-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: var(--primary-red);
}

.elearning-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.elearning-header {
    background-color: white;
    height: 4rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.elearning-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: 2px solid white;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-content {
    display: none;
    padding: 2rem;
    flex: 1;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-elearning {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon-elearning {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.section-header-dash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-dash h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.see-all-link {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.courses-list {
    space-y: 1rem;
}

.course-item {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.course-item:hover {
    border-color: #fecaca;
}

.course-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.course-header h4 {
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.semester {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.course-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 0.5rem;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-red);
    transition: width 1s ease-out;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    min-width: 2rem;
}

.chart-container {
    height: 15rem;
    display: flex;
    align-items: flex-end;
}

.bar-chart {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 1rem;
}

.bar-item {
    flex: 1;
    text-align: center;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 10rem;
}

.bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding-bottom: 0.25rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.course-card-header {
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    padding: 1.5rem;
    color: white;
}

.course-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.course-card-header p {
    color: #bfdbfe;
    font-size: 0.875rem;
    margin: 0;
}

.course-materials {
    padding: 1.5rem;
}

.materials-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.materials-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.material-tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-course {
    width: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.footer-col h3 {
    color: white;
    margin: 0;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-red);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background-color: #334155;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: white;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* ========== CHATBOT ========== */
.chatbot {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    font-family: inherit;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.chatbot-toggle:hover {
    background-color: var(--secondary-red);
    transform: scale(1.1);
}

.chatbot-icon {
    font-size: 1.5rem;
}

.chatbot-window {
    position: absolute;
    bottom: 6rem;
    right: 0;
    width: 24rem;
    height: 32rem;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease-out;
}

.chatbot-window.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem;
    border-radius: 1.5rem 1.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-info h3 {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
}

.chatbot-info p {
    font-size: 0.625rem;
    color: #86efac;
    margin: 0;
}

.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8fafc;
    space-y: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message p {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin: 0;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background-color: var(--primary-red);
    color: white;
    border-top-right-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bot-message {
    justify-content: flex-start;
}

.bot-message p {
    background-color: white;
    color: #475569;
    border-top-left-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 1.5rem 1.5rem;
}

.chatbot-input input {
    flex: 1;
    border: none;
    background-color: #f1f5f9;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
}

.chatbot-input input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 2px var(--primary-blue);
}

.chatbot-send {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .elearning-sidebar {
        width: 12rem;
    }

    .presentation-grid {
        grid-template-columns: 1fr;
    }

    .admission-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quote-box {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .elearning-sidebar {
        display: none;
    }

    .elearning-container {
        flex-direction: column;
    }

    .admission-form-wrapper {
        padding: 1.5rem;
    }

    .chatbot-window {
        width: 100vw;
        height: 80vh;
        max-width: 24rem;
        max-height: 32rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .top-bar-left,
    .top-bar-right {
        font-size: 0.65rem;
    }

    .chatbot-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .admission-info,
    .admission-form-wrapper {
        padding: 1rem;
    }

    .navbar {
        padding: 0 0.75rem;
    }

    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ========== FORMATIONS PAGE ENHANCED ========== */
.formation-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.formation-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.formation-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-dark);
}

.formation-list li:last-child {
    border-bottom: none;
}

.formation-price {
    background-color: #dbeafe;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin: 1rem 0;
    color: var(--primary-blue);
}

.formation-note {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ========== ADMISSION PAGE ENHANCED ========== */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.step-list li {
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.step-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.info-box p {
    margin: 0.25rem 0;
}

/* ========== UTILITY CLASSES ========== */
.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
