/* =========================================
   VARIABLES & RESET
========================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg:        #0a0a0a;
    --bg-2:      #111111;
    --bg-3:      #1a1a1a;
    --bg-4:      #222222;
    --border:    #2a2a2a;
    --border-2:  #3a3a3a;

    --white:     #f5f5f5;
    --grey-1:    #c8c8c8;
    --grey-2:    #8a8a8a;
    --grey-3:    #555555;

    --accent:    #e8e8e8;
    --accent-dim:#404040;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    --radius:    12px;
    --radius-lg: 20px;
    --container: 1200px;
    --gap:       2rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

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

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-2);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.section-title em {
    font-style: italic;
    color: var(--grey-2);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-solid {
    background: var(--white);
    color: var(--bg);
}
.btn-solid:hover {
    background: var(--grey-1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-2);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

/* =========================================
   SCROLL REVEAL
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   HEADER
========================================= */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--grey-1);
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--white);
    transition: width 0.25s;
}

.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.nav-cta {
    background: var(--white) !important;
    color: var(--bg) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-weight: 500;
    transition: background 0.2s !important;
}
.nav-cta:hover {
    background: var(--grey-1) !important;
}
.nav-cta::after { display: none !important; }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-2);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* =========================================
   HERO
========================================= */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 10rem 5rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    pointer-events: none;
}

.hero-bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 30% 60%, transparent 40%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-2);
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero-line { display: block; }
.hero-name { color: var(--white); }
.hero-name em {
    font-style: italic;
    color: var(--grey-2);
}

.hero-sub {
    font-size: 1rem;
    color: var(--grey-2);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-img-wrap {
    position: relative;
}

.hero-img-wrap img {
    width: 380px;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    filter: grayscale(20%);
    transition: filter 0.4s;
}

.hero-img-wrap:hover img { filter: grayscale(0%); }

.hero-img-badge {
    position: absolute;
    bottom: -1rem;
    left: -1.5rem;
    background: var(--bg-4);
    border: 1px solid var(--border-2);
    color: var(--grey-1);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey-3);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--grey-3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* =========================================
   ABOUT
========================================= */
#About {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.about-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
    position: sticky;
    top: 6rem;
}

.about-heading h2 em {
    font-style: italic;
    color: var(--grey-2);
}

.about-body p {
    color: var(--grey-1);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-body strong {
    color: var(--white);
    font-weight: 600;
}

.about-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* =========================================
   SKILLS
========================================= */
#Skill-code, #Skill-db, #Skill-tools {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.skills-category { margin-bottom: 3rem; }

.skills-cat-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-3);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    width: 110px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: default;
}

.skill-card:hover {
    border-color: var(--border-2);
    background: var(--bg-4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.skill-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.25s;
}

.skill-card:hover img { filter: grayscale(0%); }

.skill-card span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--grey-2);
    transition: color 0.2s;
}

.skill-card:hover span { color: var(--white); }

/* =========================================
   PARCOURS / TIMELINE
========================================= */
#Parcour {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.timeline-col-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-2);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 1.2rem;
    bottom: -2.5rem;
    width: 1px;
    background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-2);
    margin-top: 0.3rem;
    transition: border-color 0.2s, background 0.2s;
}

.timeline-item:hover .timeline-dot {
    border-color: var(--white);
    background: var(--white);
}

.timeline-content { flex: 1; }

.timeline-date {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-3);
}

.timeline-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0.3rem 0 0.2rem;
}

.timeline-org {
    font-size: 0.85rem;
    color: var(--grey-2);
    margin-bottom: 0.75rem;
}

.timeline-org a {
    color: var(--grey-2);
    border-bottom: 1px solid var(--border-2);
    transition: color 0.2s, border-color 0.2s;
}
.timeline-org a:hover { color: var(--white); border-color: var(--white); }

.timeline-content p {
    font-size: 0.88rem;
    color: var(--grey-2);
    line-height: 1.7;
}

.timeline-content ul {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1rem;
    list-style: disc;
}

.timeline-content li {
    font-size: 0.85rem;
    color: var(--grey-2);
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tags span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-3);
    background: var(--bg-3);
    border: 1px solid var(--border);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.timeline-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.timeline-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--grey-2);
    border-bottom: 1px solid var(--border-2);
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.2s, border-color 0.2s;
}
.timeline-link:hover { color: var(--white); border-color: var(--white); }

/* =========================================
   PROJECTS
========================================= */
#Projects {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    color: var(--grey-2);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--white);
    color: var(--bg);
    border-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
}

.project-card:hover {
    border-color: var(--border-2);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.project-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(20%);
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.project-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(10,10,10,0.8);
    border: 1px solid var(--border-2);
    color: var(--grey-1);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.project-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.2s;
}

.project-title:hover { color: var(--grey-1); }

.project-info p {
    font-size: 0.85rem;
    color: var(--grey-2);
    line-height: 1.65;
    flex: 1;
}

.project-info strong { color: var(--grey-1); }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-tags span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-3);
    background: var(--bg-3);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* =========================================
   CONTACT
========================================= */
#Contact {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info p {
    font-size: 1rem;
    color: var(--grey-2);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info strong { color: var(--white); }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-2);
    border-bottom: 1px solid var(--border-2);
    display: inline-block;
    padding-bottom: 0.25rem;
    transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover { color: var(--white); border-color: var(--white); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-3);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--grey-3);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--border-2);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.contact-form textarea { resize: vertical; }

/* =========================================
   AVIS
========================================= */
#avis {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.review-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

/* =========================================
   MUSIQUE
========================================= */
#musique {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.music-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-2) transparent;
}

.music-card {
    flex-shrink: 0;
    width: 180px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s;
}

.music-card:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.music-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.music-card:hover img { filter: grayscale(0%); }

.music-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.music-info h3 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
}

.music-info span {
    font-size: 0.75rem;
    color: var(--grey-3);
    margin-bottom: 0.75rem;
    display: block;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--grey-3);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--grey-2);
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.footer-links a:hover {
    color: var(--white);
    border-color: var(--white);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 8rem 3rem 5rem; gap: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-heading h2 { position: static; }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 8rem 1.5rem 4rem;
    }
    .hero-actions { justify-content: center; }
    .hero-sub { margin: 0 auto 2.5rem; }
    .hero-visual { order: -1; }
    .hero-img-wrap img { width: 260px; height: 320px; }
    .hero-scroll-hint { display: none; }

    .nav { display: none; }
    .nav.open {
        display: flex;
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        z-index: 999;
    }
    .nav.open ul {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    .menu-toggle { display: block; }

    .timeline-grid { grid-template-columns: 1fr; gap: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .review-wrap { padding: 1.75rem; }
    .header { padding: 1rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 1.8rem; }
    .skills-grid { gap: 0.75rem; }
    .skill-card { width: 90px; padding: 1rem 0.75rem; }
    .music-card { width: 150px; }
}
