:root {
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --text-color: #ffffff;
    --accent-color: #8e2de2; /* Violet vif */
    --bubble-bg: rgba(255, 255, 255, 0.07);
    --bubble-border: 1px solid rgba(142, 45, 226, 0.3);
    --font-heading: 'Agbalumo', 'Montserrat', sans-serif;
    --font-body: 'TT Commons Pro Trial', 'Open Sans', sans-serif;
}

/* --- Local font-face (place font files in /fonts/) --- */
@font-face {
    font-family: 'Agbalumo';
    src: url('fonts/Agbalumo-Regular.woff2') format('woff2'),
         url('fonts/Agbalumo-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TT Commons Pro Trial';
    src: url('fonts/TTCommonsProTrial-Regular.woff2') format('woff2'),
         url('fonts/TTCommonsProTrial-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed; /* Le fond ne bouge pas */
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Typographie --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; }
h2 { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 5px; }

/* Hero-specific headings */
.hero-left h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6.2vw, 4rem);
    margin: 0;
    letter-spacing: 3px;
}
.subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.85); }

/* --- Structure & Grid --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 100px; /* Espace pour le scroll bas */
}

.row {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.col {
    flex: 1;
    min-width: 300px;
}

.full-width { width: 100%; }

/* --- Design "Bulle" --- */
.bubble {
    background: var(--bubble-bg);
    border: var(--bubble-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bubble:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    padding: 80px 20px;
}
.hero-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-left { flex: 1 1 600px; }
.hero-right { flex: 0 0 360px; display: flex; align-items: center; justify-content: center; }

.hero-strap {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 3.6vw, 2.4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-top: 10px;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.projects-teaser {
    display: inline-block;
    text-decoration: none;
}
.teaser-rotated {
    transform: rotate(-16deg);
    font-size: clamp(2.8rem, 9vw, 7rem);
    font-weight: 900;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    display: inline-block;
    white-space: nowrap;
}
.teaser-rotated .arrow { margin-left: 20px; font-size: 0.9em; }

/* Hide teaser on small screens */
@media (max-width: 900px) {
    .hero-grid { flex-direction: column; padding: 40px 20px; }
    .hero-right { order: 2; margin-top: 20px; }
    .teaser-rotated { transform: none; font-size: 2rem; padding: 12px 18px; }
}
.photo-placeholder {
    width: 120px;
    height: 120px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid var(--accent-color);
}
.tags span {
    background: var(--accent-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 5px;
    display: inline-block;
    font-weight: bold;
}

/* --- Skills --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.top-skill {
    border: 1px solid #ffd700;
    color: #ffd700;
}
.top-skill i { font-size: 0.8rem; margin-left: 5px; }

/* --- Timeline --- */
.timeline-item {
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    position: relative;
    overflow: hidden;
}
.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}
.video { background: #e52d27; }
.marketing { background: #f093fb; color: #333; }
.dev { background: #00b4db; }
.design { background: #ff9966; color: #333; }

/* --- Navigation Flottante --- */
.floating-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.nav-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}
.nav-separator {
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 5px 15px;
}

/* Tooltip on Hover */
.nav-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.nav-btn:hover::after { opacity: 1; right: 70px; }

/* --- Contact Banner (Overlay) --- */
.contact-banner {
    position: fixed;
    top: -100%; /* Caché en haut */
    left: 0;
    width: 100%;
    height: 400px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    border-bottom: 2px solid var(--accent-color);
    transition: top 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.contact-banner.visible { top: 0; }
.contact-content { text-align: center; position: relative; width: 100%; max-width: 800px; }
.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.contact-item {
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: 0.3s;
}
.contact-item i { font-size: 2rem; margin-bottom: 10px; color: var(--accent-color); }
.contact-item:hover { transform: scale(1.1); }
.linkedin-btn { text-decoration: none; color: white; }

/* Contact Tooltips */
.tooltip-click, .tooltip-hover {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    background: #444;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.3s;
    width: max-content;
    pointer-events: none;
}
.contact-item:hover .tooltip-click, 
.contact-item:hover .tooltip-hover { opacity: 1; bottom: -40px; }

/* --- Views Management --- */
.view { display: none; opacity: 0; transition: opacity 0.5s; padding-bottom: 50px; }
.view.active { display: block; opacity: 1; animation: fadeIn 0.8s; }
.hero-small { text-align: center; padding: 40px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

footer { text-align: center; padding: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .row { flex-direction: column; }
    .floating-nav {
        right: 10px;
        gap: 10px;
    }
    .nav-btn { width: 40px; height: 40px; font-size: 1rem; }
    .nav-btn::after { display: none; } /* Pas de tooltip sur mobile */
    .contact-grid { flex-direction: column; gap: 20px; }
}