/* Styles communs pour les pages utilisateur */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 80px; /* Espace pour la barre mobile */
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.search-form, .account-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.profile-card, .filter-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.profile-card:hover, .filter-card:hover {
    transform: translateY(-2px);
}

.document-card, .result-card, .archive-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.document-card:hover, .result-card:hover, .archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.preview-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image, .preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-document {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.preview-document i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.preview-document .extension {
    font-size: 0.9rem;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Barre de navigation mobile */
.mobile-navbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.mobile-navbar .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-navbar .nav-link {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-navbar .nav-link:hover,
.mobile-navbar .nav-link.active {
    color: #667eea;
}

.mobile-navbar .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* Masquer la navbar desktop sur mobile */
@media (max-width: 768px) {
    .desktop-navbar {
        display: none !important;
    }
    .mobile-navbar {
        display: flex;
    }
    body {
        padding-bottom: 80px;
    }
}

/* Afficher la navbar desktop sur desktop */
@media (min-width: 769px) {
    .mobile-navbar {
        display: none !important;
    }
    .desktop-navbar {
        display: block !important;
    }
    body {
        padding-bottom: 0;
    }
}

/* Styles spécifiques pour les cartes d'archives */
.archive-card .preview-container {
    height: 150px;
}

.archive-card .preview-document i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.archive-card .preview-document .extension {
    font-size: 0.8rem;
}

.archive-card .video-overlay {
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
}

/* Highlight pour la recherche */
.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
} 