/* =========================================================
   1. ROOT, RESET & GLOBAL
   ========================================================= */

:root {
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

    --bg-deep: #0b1010;
    --bg-forest: #101917;
    --bg-light: #f5f3eb;
    --bg-paper: #f1ecdf;
    --bg-contrast: #1b2422;

    --accent: #4e8a63;        /* vert principal */
    --accent-soft: #8fb798;   /* vert clair */
    --accent-earth: #b28e5a;  /* ton terre doux */

    --text-main: #1f2422;
    --text-muted: #7c827c;
    --text-light: #f7f7f5;

    /* Typo scale */
    --fs-xs: 0.8rem;
    --fs-sm: 0.9rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.4rem;
    --fs-xl: 2.2rem;
    --fs-hero: clamp(3.2rem, 7vw, 5.2rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #131b19 0%, #060908 60%, #050605 100%);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sections génériques */

.section {
    padding: 120px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: var(--fs-xl);
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: var(--text-main);
}

.label {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.section-intro {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Spécifiques à certaines sections */
#projects .section-head h2 {
    color: var(--text-light);
}

#collabs .section-head h2 {
    color: var(--text-main);
}

/* Types de sections */

.section-light {
    background: var(--bg-light);
}

.section-contrast {
    background: var(--bg-contrast);
    color: var(--text-light);
}

.section-paper {
    background: var(--bg-paper);
}

.section-contact {
    background: var(--bg-forest);
    color: var(--text-light);
    pointer-events: auto;
}




/* =========================================================
   1.5. TRADUCTION LANG SWITCHER
   ========================================================= */

.lang-switch {
    display: flex;
    gap: 12px;
    mix-blend-mode: normal;
}

.lang-switch button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.flag-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.flag-btn img {
    width: 20px;
    height: 14px;
}


/* =========================================================
   2. NAVIGATION (DESKTOP + MOBILE)
   ========================================================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    
    z-index: 200;
    color: var(--text-light);

    background: rgba(10, 14, 12, 0.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(235, 245, 238, 0.08);
    pointer-events: auto;
}

.top-nav > * {
    pointer-events: auto;
}

.nav-logo {
    font-weight: 800;
    letter-spacing: -0.06em;
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.5;
    transition: opacity 0.25s ease;
    text-decoration: none;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
    position: relative;
    transition: opacity 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
}



/* --- Burger (mobile) --- */

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 11000;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    display: block;
    transition: 0.35s ease;
}

/* Transformation en croix (X) */
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Position du X quand menu ouvert */
.burger.active {
    position: fixed;
    top: 18px;
    right: 18px;
}

/* --- Menu mobile overlay --- */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 12, 0.96);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.35s ease-out;
    z-index: 10000;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: var(--fs-lg);
    color: #fff;
    opacity: 0.9;
    text-decoration: none;
}


/* =========================================================
   3. HERO
   ========================================================= */

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    padding-top: 140px;
    padding-bottom: 120px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Backgrounds animés */

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(135, 190, 152, 0.35), transparent 60%),
        radial-gradient(circle at bottom right, rgba(75, 111, 92, 0.45), transparent 65%);
    opacity: 0.45;
    pointer-events: none;
}

.hero-bg-green {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(60, 120, 70, 0.30) 0%,
        rgba(20, 35, 30, 0.15) 40%,
        rgba(10, 15, 12, 0) 70%
    );
    filter: blur(70px);
    animation: heroGreenMove 22s infinite linear;
    pointer-events: none;
    opacity: 0.45;
}

@keyframes heroGreenMove {
    0%   { transform: translate(-8%, -6%) rotate(0deg) scale(1); }
    50%  { transform: translate(6%, 4%) rotate(180deg) scale(1.05); }
    100% { transform: translate(-8%, -6%) rotate(360deg) scale(1); }
}

/* Texte hero */

.hero-text h1 {
    font-size: var(--fs-hero);
    letter-spacing: -0.1em;
    margin: 12px 0 16px;
}

.subtitle {
    font-size: var(--fs-sm);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.description {
    font-size: var(--fs-md);
    max-width: 600px;
    color: #dfe7df;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.hero-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    border: 1px solid rgba(230, 236, 229, 0.32);
    background: rgba(9, 14, 12, 0.6);
    backdrop-filter: blur(10px);
}

/* Panel à droite */

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: rgba(7, 11, 10, 0.92);
    border-radius: 20px;
    padding: 24px 22px;
    border: 1px solid rgba(186, 211, 196, 0.2);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
    max-width: 360px;
}

/* --- Hero : panel liens / présence en ligne --- */

.hero-links-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-soft);
    margin-bottom: 4px;
}

.hero-links-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(230, 240, 233, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-links-text,
.hero-links-text p {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5fbf6;
}

.hero-handle {
    font-size: var(--fs-xs);
    color: #a7cdb0;
    text-decoration: none;
}

.hero-handle:hover {
    text-decoration: underline;
}

.hero-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 27, 22, 0.9);
    color: #e7f3ec;
    text-decoration: none;
    border: 1px solid rgba(158, 196, 170, 0.25);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.hero-link-pill:hover {
    background: rgba(32, 50, 40, 0.98);
    border-color: rgba(181, 221, 193, 0.6);
    transform: translateY(-1px);
}

.hero-link-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Couleurs par plateforme */

.hero-link-dot.yt   { background: #ff4c4c; }
.hero-link-dot.tv   { background: #b74cff; }
.hero-link-dot.x    { background: #ffffff; }
.hero-link-dot.dc   { background: #5865f2; }


/* =========================================================
   4. COMPÉTENCES
   ========================================================= */

.skills-softwares {
    margin-bottom: 48px;
    text-align: left;
}

.skills-softwares h3 {
    font-size: var(--fs-lg);
    margin-bottom: 16px;
    color: var(--text-main);
}

/* Icônes logiciels */

.softwares-list {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.software-icon {
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.software-icon img {
    width: 48px;
    height: 48px;
}

.software-icon:hover {
    transform: translateY(-4px);
}

/* Tooltip nom logiciel */

.software-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f1a;
    color: white;
    font-size: var(--fs-xs);
    padding: 6px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.software-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
}

/* Cartes de domaines */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.skill-card {
    padding: 24px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.skill-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 10px;
    color: var(--text-main);
}

.skill-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4f574f;
}


/* =========================================================
   5. PROJETS / VIDÉOS
   ========================================================= */

.projects-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: flex-start;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 16px;
    background: rgba(11, 16, 15, 0.75);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(160, 204, 174, 0.45);
    background: rgba(15, 23, 21, 0.95);
}

.project-card.active {
    border-color: rgba(180, 224, 192, 0.9);
    background: rgba(18, 27, 24, 1);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #111;
}

.project-meta h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.project-meta small {
    display: block;
    font-size: var(--fs-xs);
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.project-meta p {
    font-size: var(--fs-sm);
    color: #cfd3d0;
}

.projects-detail {
    background: rgba(6, 10, 9, 0.85);
    border-radius: 20px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(133, 172, 148, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    min-height: 220px;
}

.project-detail-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.project-detail-meta {
    font-size: var(--fs-xs);
    color: var(--accent-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.project-detail-body {
    font-size: var(--fs-sm);
    color: #d6dbd6;
    line-height: 1.6;
}

.project-detail-links {
    margin-top: 12px;
}

.project-link {
    font-size: var(--fs-sm);
    color: var(--accent-soft);
    text-decoration: underline;
}


/* =========================================================
   6. COLLABORATIONS
   ========================================================= */

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.collab-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 14px 18px;
    border: 1px solid rgba(20, 26, 23, 0.07);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.collab-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(78, 138, 99, 0.25);
}

.collab-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.collab-card h3 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-main);
}

.collab-card h3 a {
    text-decoration: none;
    color: inherit;
}

.collab-card p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
    max-width: 200px;
}


/* =========================================================
   7. ABOUT / HISTOIRE (TIMELINE)
   ========================================================= */

.about-header {
    margin-bottom: 60px;
    max-width: 760px;
}

.about-header h2 {
    font-size: var(--fs-xl);
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}

.intro-text {
    font-size: var(--fs-base);
    color: #5b5f57;
    line-height: 1.7;
}

.timeline {
    border-left: 2px solid rgba(36, 49, 42, 0.15);
    padding-left: 26px;
    margin-bottom: 50px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: flex-start;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(78, 138, 99, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.active::before {
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(78, 138, 99, 0.18);
}

.timeline-year {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: var(--fs-lg);
    margin-bottom: 4px;
}

.timeline-alias {
    display: inline-block;
    font-size: var(--fs-xs);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(214, 207, 190, 0.7);
    color: #4b4d49;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: var(--fs-base);
    color: #4b5045;
    line-height: 1.6;
}

.timeline-media {
    align-self: stretch;
}

.media-tag {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8c8f83;
    margin-bottom: 6px;
}

.media-frame {
    position: relative;
    border-radius: 16px;
    padding: 16px 16px 22px;
    background: #e4dfcf;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(137, 118, 81, 0.3);
}

.media-gradient-green {
    background: linear-gradient(135deg, #dde9d5, #e5decc);
}

.media-gradient-sage {
    background: linear-gradient(135deg, #d6e5da, #eadfcd);
}

.media-gradient-earth {
    background: linear-gradient(135deg, #e7dcc9, #d2e0d0);
}

.media-noise {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    mix-blend-mode: soft-light;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

.media-content-label {
    position: relative;
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #50473b;
}


/* =========================================================
   8. CONTACT
   ========================================================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.contact-text h2 {
    font-size: var(--fs-xl);
    margin-bottom: 10px;
}

.contact-text p {
    font-size: var(--fs-base);
    color: #d1ded5;
    max-width: 360px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fdfdfc;
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    pointer-events: auto;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #5c9a70;
}

.contact-meta {
    justify-self: end;
    text-align: right;
}

.contact-chip {
    display: inline-block;
    margin-left: 8px;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    background: rgba(15, 26, 22, 0.9);
    border: 1px solid rgba(169, 201, 179, 0.4);
    color: #eaf3ec;
}


.social-links a:hover {
    border-color: rgba(226, 238, 230, 0.8);
}

footer {
    font-size: var(--fs-xs);
    color: #88958d;
}


/* =========================================================
   9. RESPONSIVE
   ========================================================= */

/* --- Tablet (<= 900px) --- */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-layout {
        grid-template-columns: 1fr;
    }

    .projects-detail {
        margin-top: 20px;
    }

    .collab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .contact-meta {
        justify-self: flex-start;
        text-align: left;
    }
}

/* --- Mobile (<= 640px) --- */

@media (max-width: 640px) {
    body,
    html {
        overflow-x: hidden;
    }

    .section {
        padding: 90px 18px;
    }

    /* Nav */
    .top-nav {
        padding: 14px 16px;
        mix-blend-mode: normal !important;
        background: rgba(10, 14, 12, 0.8);
        backdrop-filter: blur(10px);
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        width: 100%;
    }

    .hero-panel {
        width: 100%;
        margin-top: 20px;
        justify-content: flex-start;
    }

    .hero-section,
    .section-hero,
    #hero {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-bg,
    .hero-bg-green {
        background-size: cover;
        background-position: center;
    }

    /* Compétences / Collabs */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .collab-grid {
        grid-template-columns: 1fr;
    }

    .collab-avatar {
        width: 96px;
        height: 96px;
    }

    /* Timeline : pas de ligne ni de points sur mobile */
    .timeline {
        border-left: none;
        padding-left: 0;
    }

    .timeline-item::before {
        display: none;
    }
}
