/* ==============================================
   STYLES COMMUNS POUR TOUTES LES PAGES
   ============================================== */

/* Page Header - Bannière en haut de chaque page */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5aa0 50%, #3182ce 100%);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: academicGrid 20s linear infinite;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffd700;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Results Info */
.results-info {
    background: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.results-info p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 2rem;
}

.empty-state h3 {
    color: #1a365d;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==============================================
   STYLES SPÉCIFIQUES - PUBLICATIONS
   ============================================== */

/* Filters Card */
.filters-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filters-card .form-label {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.filters-card .form-control,
.filters-card .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.filters-card .form-control:focus,
.filters-card .form-select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Keywords Tags */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.keyword-tag {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(49, 130, 206, 0.2);
}

/* Pagination */
.pagination-nav {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    border-color: #3182ce;
}

/* ==============================================
   STYLES SPÉCIFIQUES - CONFERENCES
   ============================================== */

.conference-default-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.conference-default-image i {
    transition: all 0.3s ease;
}

.card-modern:hover .conference-default-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.card-modern:hover .conference-default-image i {
    color: #3182ce;
    transform: scale(1.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-modern:hover .card-image {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Conference Type Badges */
.conference-type-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-presentation {
    background: rgba(49, 130, 206, 0.1);
    color: #3182ce;
    border: 1px solid rgba(49, 130, 206, 0.3);
}

.type-poster {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.type-keynote {
    background: rgba(255, 193, 7, 0.1);
    color: #d69e2e;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.type-workshop {
    background: rgba(104, 211, 145, 0.1);
    color: #38a169;
    border: 1px solid rgba(104, 211, 145, 0.3);
}

.type-panel {
    background: rgba(159, 122, 234, 0.1);
    color: #805ad5;
    border: 1px solid rgba(159, 122, 234, 0.3);
}

.type-invited {
    background: rgba(255, 107, 107, 0.1);
    color: #e53e3e;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* ==============================================
   STYLES SPÉCIFIQUES - TEACHING
   ============================================== */

.teaching-philosophy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.teaching-philosophy .section-title {
    margin-bottom: 2rem;
}

.teaching-philosophy .card-modern {
    text-align: left;
}

.course-header {
    margin-bottom: 1rem;
}

/* Course Evaluation Score */
.evaluation-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    margin-top: 1rem;
}

.evaluation-score i {
    color: #ffc107;
}

.evaluation-score span {
    font-weight: 600;
    color: #1a365d;
}

/* ==============================================
   STYLES SPÉCIFIQUES - AWARDS
   ============================================== */

/* Awards Timeline */
.awards-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.awards-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3182ce, #2c5aa0);
    border-radius: 3px;
}

.year-divider {
    position: relative;
    margin: 3rem 0 2rem 0;
    padding-left: 120px;
}

.year-divider h2 {
    display: inline-block;
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(49, 130, 206, 0.3);
    position: relative;
}

.year-divider h2::before {
    content: '';
    position: absolute;
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #3182ce;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.2);
}

.award-item {
    position: relative;
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-left: 120px;
}

.award-icon {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #3182ce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3182ce;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.2);
    z-index: 2;
}

.award-content {
    flex: 1;
}

/* Award Type Icons Colors */
.award-item[data-type="research"] .award-icon {
    border-color: #3182ce;
    color: #3182ce;
}

.award-item[data-type="teaching"] .award-icon {
    border-color: #38a169;
    color: #38a169;
}

.award-item[data-type="fellowship"] .award-icon {
    border-color: #805ad5;
    color: #805ad5;
}

.award-item[data-type="grant"] .award-icon {
    border-color: #d69e2e;
    color: #d69e2e;
}

/* Trophy Icon Special Style */
.award-icon i.fa-trophy {
    color: #ffd700;
}

/* Stats Grid for Awards Page */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Filters responsive */
    .filters-card {
        padding: 1.5rem;
    }

    .filters-card .row {
        gap: 1rem;
    }

    .filters-card .col-md-3 {
        width: 100%;
    }

    /* Grid responsive */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Pagination responsive */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Awards Timeline responsive */
    .awards-timeline::before {
        left: 20px;
    }

    .year-divider {
        padding-left: 60px;
    }

    .year-divider h2 {
        font-size: 1.2rem;
        padding: 0.5rem 1.5rem;
    }

    .year-divider h2::before {
        left: -50px;
        width: 16px;
        height: 16px;
    }

    .award-item {
        padding-left: 70px;
        gap: 1rem;
    }

    .award-icon {
        left: 10px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    /* Conference images responsive */
    .conference-default-image {
        height: 150px;
        font-size: 2.5rem;
    }

    .card-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 5rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .filters-card {
        padding: 1rem;
    }

    .filters-card .btn {
        width: 100%;
    }

    .results-info {
        padding: 0.75rem 1rem;
    }

    .card-modern {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

/* ==============================================
   ANIMATIONS
   ============================================== */

@keyframes academicGrid {
    0% { 
        opacity: 0.3;
    }
    50% { 
        opacity: 0.6;
    }
    100% { 
        opacity: 0.3;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print styles */
@media print {
    .page-header,
    .filters-card,
    .pagination-nav,
    header,
    footer {
        display: none;
    }

    .card-modern {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}