/* Style général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Style de la navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Style du jumbotron */
.jumbotron {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.3rem;
}

/* Style des cartes et sections */
.card {
    transition: transform 0.2s;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
}

/* Style du footer */
footer {
    margin-top: 3rem;
}

/* Style des liens */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Style des sections d'actualités */
.list-group-item {
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Styles pour la vue grille/liste */
.view-grid .document-item {
    margin-bottom: 1.5rem;
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
}

.view-list .document-item {
    width: 100%;
    margin-bottom: 1rem;
}

.view-list .card {
    flex-direction: row;
    align-items: center;
}

.view-list .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.view-list .card-title {
    margin: 0;
    width: 25%;
}

.view-list .card-text {
    width: 50%;
    margin: 0;
}

.view-list .btn-group {
    width: 25%;
    justify-content: flex-end;
}

/* Style des boutons de vue */
#viewGrid.active,
#viewList.active {
    background-color: #0d6efd;
    color: white;
}

/* Style des filtres */
.filter-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Style des cartes de documents */
.document-item .card {
    transition: transform 0.2s;
}

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

/* Style des boutons d'action */
.document-item .btn-group {
    margin-top: 1rem;
}

.document-item .dropdown-menu {
    min-width: 200px;
}

/* Responsive design */
@media (max-width: 768px) {
    .jumbotron {
        padding: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 1200px) {
    .view-grid .document-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 992px) {
    .view-grid .document-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .view-grid .document-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive design pour la vue liste */
@media (max-width: 768px) {
    .view-list .card-body {
        flex-direction: column;
        text-align: center;
    }
    
    .view-list .card-title,
    .view-list .card-text,
    .view-list .btn-group {
        width: 100%;
        margin: 0.5rem 0;
    }
}
