* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
}
header {
    background: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}
nav {
    background: #444;
    padding: 0.5rem;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 1rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
}
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-links a:hover {
    opacity: 0.8;
}
.footer-info {
    text-align: right;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-secondary {
    background: var(--secondary-color);
    color: white;
}
.presentation {
    padding: 80px 0;
    background: var(--light-bg);
}
.institution-card {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.mission-vision {
    padding: 80px 0;
}
.mission-vision h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.mission-vision > div {
    margin-bottom: 40px;
}
.news-events {
    padding: 80px 0;
    background: #f5f5f5;
}
.news-events h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.news-section {
    padding: 4rem 0;
}
.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.news-content {
    padding: 1.5rem;
}
.date {
    color: #666;
    font-size: 0.9rem;
}
.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.events-timeline {
    margin: 2rem 0;
}
.event-card {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.event-date {
    background: #007bff;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}
.time {
    color: #666;
    font-size: 0.9rem;
}
.testimonials {
    padding: 80px 0;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.quote-banner {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
}
.quote-banner blockquote {
    font-size: 1.8rem;
    font-style: italic;
    margin: 0 0 20px 0;
}
.quote-banner cite {
    font-size: 1rem;
    font-style: normal;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-10px);
}
.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.testimonial-author .name {
    font-weight: bold;
    color: var(--primary-color);
}
.testimonial-author .role {
    font-size: 0.9rem;
    color: #666;
}
.preview-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
.preview-card {
    flex: 1;
}
.preview-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.about-history {
    padding: 4rem 0;
    background-color: #f8f9fa;
}
.timeline {
    margin: 2rem 0;
    display: flex;
    justify-content: space-around;
}
.timeline-item {
    text-align: center;
    padding: 1rem;
}
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.leader-card {
    text-align: center;
}
.leader-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.mission-values {
    background-color: #f8f9fa;
    padding: 4rem 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}
.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.introduction {
    padding: 4rem 0;
    background-color: #f8f9fa;
}
.institutions-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.value-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.value-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.director-message {
    background: #f8f9fa;
    padding: 4rem 0;
}
.message-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}
.message-content img {
    width: 100%;
    border-radius: 8px;
}
.message-content blockquote {
    font-style: italic;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #007bff;
}
.contact-info {
    padding: 4rem 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-form {
    padding: 4rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.map-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: grayscale(0);
}

.login-page {
    background-color: #f8f9fa;
}

.login-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-box {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: #007bff;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.min-vh-50 {
    min-height: 50vh;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.testimonial-author {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
}

.carousel-content {
    animation: fadeIn 1s ease-in;
}

.carousel-indicators {
    margin-bottom: 3rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    height: 100%;
    width: 2px;
    background-color: var(--bs-primary);
}

.event-date {
    min-width: 80px;
}

.dashboard-container {
    position: relative;
    padding-top: 56px;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow-y: auto;
}

.content {
    margin-left: 250px;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

/* Sidebar Toggle Styles */
.sidebar-collapsed {
    width: 60px;
}

.sidebar-collapsed .nav-link span {
    display: none;
}

.sidebar-collapsed .nav-link i {
    font-size: 1.5rem;
}

/* Sidebar styles */
.sidebar {
    transition: all 0.3s ease;
    width: 250px;
    min-height: 100vh;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-item i {
    margin-right: 0;
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        z-index: 1030;
        background: white;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .sidebar.hidden {
        transform: translateX(-100%);
    }
}

@media (max-width: 991px) {
    .sidebar-hidden {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero .btn-group {
        justify-content: center;
    }

    .page-header {
        text-align: center;
    }
    
    .page-header .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.main-header.bg-primary {
    background-color: #0d6efd !important;
}

.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Styles pour la section facultés */
.facultes .hover-card {
    transition: transform 0.3s ease-in-out;
}

.facultes .hover-card:hover {
    transform: translateY(-5px);
}

.facultes .icon-square {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.facultes .card {
    border-radius: 15px;
    overflow: hidden;
}

.facultes .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.facultes .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.facultes .btn-primary:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}
