/* 
   Style pour le Portfolio d'Olivier Brugnoli
   Design : Moderne, Minimaliste, Aéré
*/

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --accent-color: #0077b5; /* LinkedIn Blue pour les accents */
    --container-width: 900px;
    --spacing: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    padding: 2rem 2rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ff6600; /* Vibrant orange matching the avatar style */
}

.profession {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.2rem;
}

.lang-switcher a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.8rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.linkedin-header {
    border-right: 1px solid #eee;
    padding-right: 0.8rem;
    margin-left: 0 !important;
}

.linkedin-header img {
    width: 16px;
    height: 16px;
}

.flag-icon {
    width: 14px;
    height: auto;
    display: block;
}

.lang-switcher a:hover, .lang-switcher a.active {
    color: var(--text-color);
    font-weight: bold;
}

/* Bio Section */
.hero {
    margin-bottom: var(--spacing);
}

.hero p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: justify;
}

/* Project List */
.projects {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.project-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.project-item h2 small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.6rem;
}

.project-item p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 8rem 2rem; /* Added bottom padding */
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .brand {
        flex-direction: column;
        gap: 1rem;
    }
    .lang-switcher {
        margin-top: 0.5rem;
    }
}
