/* BASE */

:root {
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --neon-text: #f8fafc;
    --header-button-text: #f8fafc;
}
[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b7a;
    --card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #ab3bf6;
    --accent-hover: #d6aaff;
    --title-color: #b733f9;
    --tag: rgba(59, 130, 246, 0.1);
}
[data-theme="light"] {
    --bg-color: #edd9ff;
    --card-bg: #baaac77a;
    --card-hover: #c2b9c9;
    --text-primary: #0d0813;
    --text-secondary: #434c5a;
    --accent: #6d00fc;
    --accent-hover: #2563eb;
    --title-color: #7800f0;
    --tag: rgba(25, 0, 255, 0.1);
}

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

html, body {
    height: 100%;
}

main {
    flex: 1 0 auto;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    text-align: left;
    background-image: 
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='198'%3e%3cdefs%3e%3clinearGradient id='a' x1='50%25' x2='50%25' y1='-10.959%25' y2='100%25'%3e%3cstop stop-color='%23b733f9' stop-opacity='.25' offset='0%25'/%3e%3cstop stop-color='%23b733f9' offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath fill='url(%23a)' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z'/%3e%3c/svg%3e"),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='198'%3e%3cdefs%3e%3clinearGradient id='a' x1='50%25' x2='50%25' y1='-10.959%25' y2='100%25'%3e%3cstop stop-color='%23b733f9' stop-opacity='.25' offset='0%25'/%3e%3cstop stop-color='%23b733f9' offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath fill='url(%23a)' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z'/%3e%3c/svg%3e"),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='198'%3e%3cdefs%3e%3clinearGradient id='a' x1='50%25' x2='50%25' y1='-10.959%25' y2='100%25'%3e%3cstop stop-color='%23b733f9' stop-opacity='.25' offset='0%25'/%3e%3cstop stop-color='%23b733f9' offset='100%25'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath fill='url(%23a)' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z'/%3e%3c/svg%3e");
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-size: 800px 12%;
    background-position: 0 100%, -25px 100%, 250px 100%;
    animation: 20s waves linear infinite forwards;
}

@keyframes waves {
    to {
        background-position: 800px 100%, 1575px 100%, 2650px 100%;
    }
}





/* HEADER FOOTER */

header, footer {
    background-color: var(--card-bg);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 2em;
}

footer {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

#header-content {
    display: flex;
    gap: 12px;
}

#header-content button,
.lang-switch * {
    color: var(--header-button-text);
}

[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
    display: none;
}




/* BOUTONS ET ICONES */

.logo {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.btn {
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: none;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.flag-icon {
    width: 20px;
    border-radius: 2px;
}





/* TITRE PRINCIPAL */

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 1200px;
        min-width: 0px;
    }
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.neon {
    color: var(--neon-text);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow:
            0 0 4px var(--title-color),
            0 0 11px var(--title-color),
            0 0 19px var(--title-color);
    }
    to {
        text-shadow:
            0 0 20px var(--title-color),
            0 0 40px var(--title-color),
            0 0 56px var(--title-color);
    }
}

.job-title {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.hero-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--card-hover), 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    
    .hero-image {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }
}





/* SECTIONS */

.section-block {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--card-hover);
    padding-bottom: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-hover);
    border-radius: 8px;
    padding: 25px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    align-self: start;
}

.project-card:hover {
    border-color: var(--accent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.expand-icon {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.project-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.project-card.expanded .card-body {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--tag);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.resume-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}





/* TIMELINE */

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-entry {
    display: flex;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    padding: 6px 0 6px 1.6em;
    position: relative;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
}

.timeline-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.timeline-content span {
    color: var(--text-secondary);
}

.card-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--card-hover);
    display: flex;
    justify-content: flex-start;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--card-hover);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.project-link:hover {
    background-color: var(--accent);
    color: #ffffff;
}

.link-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.timeline-dot {
    color: var(--card-hover);
    font-weight: bold;
    display: flex;
    justify-content: center;
    position: relative;
}

.timeline-dot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--card-hover);
    transform: translateX(-50%);
}

.timeline-dot p {
    margin-top: 4px;
}





/* LIENS */

.contact-links {
    display: grid;
    grid-template: auto / 1fr 16fr;
    column-gap: 1.4em;
    row-gap: 2em;
    align-items: center;
}

.contact-links * {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
}

.contact-icon {
    font-size: 2em;
}

.contact-link :not(p) {
    font-size: 3em;
    align-self: self-start;
}

.contact-link p {
    font-size: 1.4rem;
    font-weight: bold;
}





/* ANIMATION D'ENTREE */

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}