:root {
    --bg-color: #111111;
    --text-color: #e0e0e0;
    --accent-color: #cccccc;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', Courier, monospace; /* Monospaced for a raw/tech feel, or sans-serif for clean */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

a:hover {
    border-bottom: 1px solid var(--text-color);
}

/* Header & Nav */
header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 4rem;
}

/* CV Styles */
.cv-header {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cv-section {
    display: grid;
    grid-template-columns: 1fr 3fr;
    margin-bottom: 2rem;
    gap: 2rem;
}

.cv-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-date {
    font-style: italic;
    color: #aaaaaa;
    font-size: 0.9rem;
}

/* Certificats Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-item {
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s;
    background-color: #1a1a1a;
}

.cert-item:hover {
    transform: translateY(-5px);
    border-color: var(--text-color);
}

.cert-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: grayscale(100%); /* Black and white images */
    transition: filter 0.3s;
}

.cert-item:hover img {
    filter: grayscale(0%);
}

.cert-placeholder {
    height: 150px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #555;
    transition: color 0.3s, background-color 0.3s;
}

.cert-item:hover .cert-placeholder {
    color: #fff;
    background-color: #333;
}

/* BTS TPs */
.tp-list {
    list-style: none;
}

.tp-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Freelance/Hobbies */
.freelance-section {
    margin-bottom: 3rem;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background-color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .cv-section {
        grid-template-columns: 1fr;
    }
}