/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Contenu principal */
.main-content {
    margin-top: 70px;
    padding: 20px 0;
}

/* Section héro */
.hero-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #667eea;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
}

.hero-section h1 {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 30px 20px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.highlight-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Actualités */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.news-date {
    color: #667eea;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Navigation rapide */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.quick-nav-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ff;
}

.quick-nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.quick-nav-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.quick-nav-card p {
    color: #666;
    font-size: 0.95em;
}

/* Grilles de ressources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ff;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.resource-type {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.type-outils { background: #ff6b6b; color: white; }
.type-video { background: #4ecdc4; color: white; }
.type-audio { background: #45b7d1; color: white; }
.type-article { background: #96ceb4; color: white; }
.type-formation { background: #feca57; color: white; }
.type-publication { background: #48dbfb; color: white; }
.type-pdf { background: #48dbfb; color: white; }

.resource-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.resource-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.resource-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.download-btn, .view-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.download-btn:hover, .view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Liste de publications */
.publication-list {
    margin-top: 30px;
}

.publication-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.publication-year {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.publication-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.publication-authors {
    color: #555;
    margin-bottom: 5px;
}

.publication-journal {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

/* Projets */
.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
}

.project-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

.status-en-cours { background: #4ecdc4; color: white; }
.status-termine { background: #96ceb4; color: white; }
.status-planifie { background: #feca57; color: white; }

.project-title {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.project-duration {
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.project-partners {
    color: #555;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        margin: 10px;
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .section {
        margin: 20px 10px;
        padding: 30px 20px;
    }

    .resources-grid,
    .quick-nav {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}
