/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 60px;
    /*filter: brightness(0) invert(1);*/
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Layout principal */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Section principale */
.main-content {
    flex: 1;
}

.welcome {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.welcome h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* Recherche */
.search-section {
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    margin-bottom: 20px;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input[type="text"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-bar button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
}

/* Filtres */
.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    font-weight: 600;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #3498db;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    flex: 1;
}

/* Actions des filtres */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-apply {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-reset {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Compteur de résultats */
.results-count {
    background: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #3498db;
}

/* Grille des applications */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Vignettes des applications */
.vignette {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

.vignette::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vignette:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.vignette:hover::before {
    transform: scaleX(1);
}

.vignette h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
}

.vignette p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.vignette button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vignette button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.vignette-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.vignette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vignette-text {
    flex: 1;
    padding-right: 20px;
}

.vignette-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    flex: 1;
    padding-right: 10px;
}

.vignette-logo {
    height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.vignette-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.no-logo {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* Modals de détails */
.details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.details-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.details-content h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
    font-size: 1.5rem;
}

.details-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.details-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.close-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Tags et badges */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    margin: 2px;
}

.tag-status-production {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

.tag-status-development {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.tag-entity {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.tag-type-saas {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.tag-type-premise {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Page sans résultats */
.no-results {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Styles responsives */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .welcome {
        padding: 20px;
    }
    
    .vignette {
        padding: 20px;
    }
    
    .details-content {
        padding: 25px;
        margin: 10px;
        max-height: 90vh;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input[type="text"] {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .search-bar button {
        border-radius: 6px;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .details-content {
        padding: 20px;
        margin: 5px;
    }
}

/* Animation pour les éléments qui apparaissent */
.vignette {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personnalisée */
.details-content::-webkit-scrollbar {
    width: 8px;
}

.details-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.details-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.details-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* États de focus pour l'accessibilité */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Amélioration des transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}s {
    margin-bottom: 15px;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.user-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-initials {
    background-color: #e74c3c; /* Couleur du rond */
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 16px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}
