/* Variables CSS */
:root {
    --primary-color: #003366; /* Bleu universitaire */
    --secondary-color: #FFD700; /* Or */
    --accent-color: #E6B800;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --gray-color: #6C757D;
    --white-color: #FFFFFF;
    --font-title: 'Playfair Display', serif;
    --font-text: 'Roboto', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

/* Barre de navigation */
.navbar {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list .active a {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-list .active a::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../images/campus.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px; /* Pour compenser la navbar fixe */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.6);
}

.hero .container {
    position: relative;
    z-index: 1;
    color: var(--white-color);
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white-color);
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-title);
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* News Preview Section */
.news-preview {
    padding: 80px 0;
    background-color: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-family: var(--font-title);
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Faculties Preview Section */
.faculties-preview {
    padding: 80px 0;
    background-color: var(--white-color);
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.faculty-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 300px;
}

.faculty-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.faculty-card:hover img {
    transform: scale(1.05);
}

.faculty-card h3 {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    color: var(--white-color);
    font-family: var(--font-title);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.faculty-card .btn-small {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--secondary-color);
}

/* Styles pour les autres pages (structure similaire) */
.page-header {
    height: 300px;
    background: url('images/WhatsApp Image 2025-08-08 at 18.38.12_fe1fba82.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}


.page-header .container {
    position: relative;
    z-index: 1;
    color: var(--white-color);
}

.page-header h1 {
    font-family: var(--font-title);
    font-size: 3rem;
}

.page-content {
    padding: 60px 0;
}

/* Styles responsifs */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .features .container {
        flex-direction: column;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-grid, .faculties-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown scrollable for large lists */
.dropdown .dropdown-menu {
    max-height: 300px; /* Adjust as needed */
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .dropdown .dropdown-menu {
        max-height: 50vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
}