* {
    font-family: 'poppins', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
}

body {
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
}

/* Header styles */
header {
    display: none;
}

/* Navigation dans le header */
header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    background-color: transparent;
}

header nav ul li {
    background-color: transparent;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #fff;
    color: #000;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #000;
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
}

.sidebar h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    background-color: transparent;
}

.sidebar ul {
    list-style: none;
    background-color: transparent;
}

.sidebar ul li {
    margin-bottom: 10px;
    background-color: transparent;
}

.sidebar ul li a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.sidebar ul li a:hover {
    background-color: #333;
    color: #fff;
}

/* Main content */
main {
    margin-left: 250px;
    margin-top: 0;
    padding: 30px;
    min-height: 100vh;
}

.section {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.section h1, .section h2 {
    color: #000;
    margin-bottom: 20px;
    background-color: transparent;
}

.section p {
    color: #555;
    line-height: 1.6;
    background-color: transparent;
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 100%;
    border: 2px solid #000;
    background-color: #fff;
    margin: 20px 0;
}

th {
    background-color: #000;
    color: #fff;
    text-align: left;
    padding: 12px;
    border: 1px solid #000;
    font-weight: 600;
}

td {
    text-align: left;
    padding: 12px;
    border: 1px solid #000;
    background-color: #fff;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e9ecef;
}

/* Links */
a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    background-color: transparent;
}

a:hover {
    text-decoration: underline;
}

/* Project cards */
.section nav {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.section nav h1 {
    color: #000;
    margin-bottom: 10px;
    background-color: transparent;
}

.section nav p {
    background-color: transparent;
}

/* Competences */
.competence-container, .compétences {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #000;
}

.competence-container h3, .compétences h3 {
    color: #000;
    margin-bottom: 10px;
    background-color: transparent;
}

/* Popup styles (keeping existing functionality) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup-close:hover {
    background: #333;
    transform: scale(1.1);
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 15px;
}

.popup-pdf {
    width: 80vw;
    height: 80vh;
    border: none;
    border-radius: 15px;
}

/* Style pour les cellules cliquables */
td[onclick] {
    cursor: pointer;
    transition: all 0.3s ease;
}

td[onclick]:hover {
    background: #e9ecef !important;
    transform: scale(1.02);
}

/* Project buttons */
.project-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    background-color: transparent;
}

.btn-project, .btn-code {
    padding: 12px 24px;
    border: 2px solid #000;
    border-radius: 8px;
    font-family: 'poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-project {
    background-color: #000;
    color: #fff;
}

.btn-project:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-code {
    background-color: #fff;
    color: #000;
}

.btn-code:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0;
        padding: 20px;
    }
    
    .section {
        padding: 20px;
    }
    
    .popup-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .popup-image {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .popup-pdf {
        width: 95vw;
        height: 85vh;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-project, .btn-code {
        width: 100%;
        padding: 10px 20px;
    }
}
