/* Styles modernes pour la médiathèque */

/* Header et recherche */
.media-header {
    position: relative;
    background: linear-gradient(145deg, rgba(33,145,45,0.1) 0%, rgba(33,145,45,0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
}

.search-container .form-control {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    padding-right: 3rem;
    border: 1px solid rgba(33,145,45,0.1);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-container .form-control:focus {
    box-shadow: 0 0 0 4px rgba(33,145,45,0.1);
    border-color: #21912d;
}

.search-container .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21912d;
    border: none;
    transition: all 0.3s ease;
}

.search-container .btn:hover {
    background: #1a7b23;
    transform: translateY(-50%) scale(1.05);
}

/* Navigation des onglets */
.media-tabs {
    background: white;
    padding: 0.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.media-tabs .nav-link {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.media-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #21912d;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.media-tabs .nav-link:hover::before {
    width: 80%;
}

.media-tabs .nav-link.active {
    background: #21912d;
    color: white;
}

.media-tabs .nav-link i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Cards pour les documents */
.document-card {
    background: white;
    border-radius: 15px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(33,145,45,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #21912d;
    transition: all 0.3s ease;
}

.document-card:hover .document-icon {
    background: #21912d;
    color: white;
    transform: scale(1.1);
}

/* Galerie d'images */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-content {
    opacity: 1;
    transform: translateY(0);
}

/* Cartes vidéo */
.video-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-card:hover .video-overlay i {
    transform: scale(1);
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(33,145,45,0.05);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-state i {
    font-size: 4rem;
    color: #21912d;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Animations */
.cascade-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.cascade-animation > *.show {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #21912d;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(33,145,45,0.1);
    color: #21912d;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: #21912d;
    color: white;
} 