/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #0b0d10;
    --surface: #11151a;
    --surface-light: #171c22;

    --text: #f2f4f7;
    --text-muted: #9ba4af;

    --line: #29313a;

    --accent: #ca2bbd;

    --max-width: 1100px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: Inter, Arial, sans-serif;

    line-height: 1.65;

    overflow-x: hidden;
}

a {
    color: inherit;
}


/* =========================================================
   NAVIGATION
========================================================= */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 72px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    background: rgba(11, 13, 16, 0.82);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* Logo */

.logo {
    font-family: "Space Grotesk", Arial, sans-serif;

    font-size: 1rem;

    font-weight: 700;

    letter-spacing: -0.04em;

    text-decoration: none;
}

.logo span {
    color: var(--accent);
}


/* Menu */

nav {
    display: flex;

    align-items: center;

    gap: 24px;
}

nav a {
    position: relative;

    color: var(--text-muted);

    font-size: 0.86rem;

    text-decoration: none;

    transition: color 0.2s ease;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width 0.2s ease;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}


/* Bouton menu mobile */

.menu-toggle {
    display: none;

    border: none;

    background: none;

    color: var(--text);

    font-size: 1.5rem;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 120px 6vw 80px;

    border-bottom: 1px solid var(--line);

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(216, 255, 69, 0.10),
            transparent 28%
        ),

        radial-gradient(
            circle at 20% 70%,
            rgba(100, 140, 255, 0.07),
            transparent 25%
        );
}

.hero-content {
    width: min(var(--max-width), 100%);

    margin: auto;
}


/* =========================================================
   TYPOGRAPHIE
========================================================= */

.eyebrow {
    margin-bottom: 18px;

    color: var(--accent);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.16em;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", Arial, sans-serif;

    line-height: 1.05;
}


/* Gros titre */

h1 {
    font-size: clamp(4rem, 11vw, 9rem);

    letter-spacing: -0.075em;

    font-weight: 700;
}

h1 span {
    color: var(--text-muted);
}


/* Titres sections */

h2 {
    margin-bottom: 55px;

    font-size: clamp(2.6rem, 6vw, 5rem);

    letter-spacing: -0.06em;
}


/* =========================================================
   HERO TEXT
========================================================= */

.subtitle {
    max-width: 700px;

    margin: 30px 0;

    color: var(--text-muted);

    font-size: clamp(1rem, 2vw, 1.3rem);
}


/* =========================================================
   BOUTONS
========================================================= */

.button {
    display: inline-block;

    padding: 13px 20px;

    border: 1px solid var(--accent);

    color: var(--accent);

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: var(--accent);

    color: #0b0d10;

    transform: translateY(-2px);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    width: min(var(--max-width), 100%);

    margin: auto;

    padding: 110px 30px;
}


/* Section avec fond */

.section-alt {
    width: 100%;

    max-width: none;

    padding-left:
        max(
            30px,
            calc((100vw - var(--max-width)) / 2 + 30px)
        );

    padding-right:
        max(
            30px,
            calc((100vw - var(--max-width)) / 2 + 30px)
        );

    background: var(--surface);

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


/* =========================================================
   À PROPOS
========================================================= */

.two-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.two-columns p {
    margin-bottom: 20px;

    color: var(--text-muted);
}

.two-columns p:last-child {
    margin-bottom: 0;
}


/* Texte important */

.lead {
    color: var(--text) !important;

    font-size: 1.35rem;

    line-height: 1.5;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline {
    position: relative;

    border-left: 1px solid var(--line);
}


/* Élément timeline */

.timeline-item {
    position: relative;

    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 30px;

    padding:

        0
        0
        48px
        35px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}


/* Point */

.timeline-item::before {
    content: "";

    position: absolute;

    left: -5px;

    top: 7px;

    width: 9px;
    height: 9px;

    background: var(--accent);

    border-radius: 50%;
}


/* Date */

.date {
    color: var(--accent);

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.1em;
}


/* Titre */

.timeline-item h3 {
    margin-bottom: 12px;

    font-size: 1.35rem;
}


/* Description */

.timeline-item p {
    color: var(--text-muted);
}


/* =========================================================
   EXPÉRIENCE
========================================================= */

.experience {
    padding: 35px;

    background: var(--surface);

    border: 1px solid var(--line);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.experience:hover {
    border-color: var(--accent);

    transform: translateY(-3px);
}


/* En-tête expérience */

.experience-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.experience h3 {
    margin-bottom: 8px;

    font-size: 1.6rem;
}

.experience-subtitle {
    color: var(--text-muted);
}


/* Badge */

.experience-type {
    padding: 6px 10px;

    border: 1px solid var(--line);

    color: var(--accent);

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    white-space: nowrap;
}


/* Liste */

.experience ul {
    display: grid;

    gap: 12px;

    padding-left: 20px;

    color: var(--text-muted);
}

.experience li::marker {
    color: var(--accent);
}


/* =========================================================
   COMPÉTENCES
========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--line);
}


/* Compétence */

.skill {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid var(--line);

    transition:
        padding-left 0.2s ease,
        padding-right 0.2s ease;
}


/* Colonne gauche */

.skill:nth-child(odd) {
    padding-right: 30px;
}


/* Colonne droite */

.skill:nth-child(even) {
    padding-left: 30px;

    border-left: 1px solid var(--line);
}


/* Numéro */

.skill b {
    color: var(--text-muted);

    font-size: 0.75rem;

    font-weight: 500;
}

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


/* =========================================================
   PROJETS
========================================================= */

.projects {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* Carte */

.project {
    min-height: 260px;

    padding: 28px;

    background: var(--surface-light);

    border: 1px solid var(--line);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project:hover {
    transform: translateY(-5px);

    border-color: var(--accent);
}


/* Catégorie */

.project span {
    color: var(--accent);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.12em;
}


/* Titre */

.project h3 {
    margin: 25px 0 15px;

    font-size: 1.6rem;
}


/* Description */

.project p {
    color: var(--text-muted);
}


/* Note */

.note {
    margin-top: 28px;

    color: var(--text-muted);

    font-size: 0.9rem;
}


/* =========================================================
   CENTRES D'INTÉRÊT
========================================================= */

.interests {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* Carte intérêt */

.interests div {
    padding: 25px;

    border: 1px solid var(--line);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.interests div:hover {
    border-color: var(--accent);

    transform: translateY(-3px);
}


/* Titre */

.interests strong {
    display: block;

    margin-bottom: 8px;

    font-size: 1.05rem;
}


/* Description */

.interests span {
    display: block;

    color: var(--text-muted);

    font-size: 0.9rem;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    text-align: center;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact > p:not(.eyebrow) {
    color: var(--text-muted);
}


/* Liens */

.contact-links {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 30px;
}

.contact-links a {
    color: var(--accent);

    text-decoration: none;

    font-weight: 600;

    transition: opacity 0.2s ease;
}

.contact-links a:hover {
    opacity: 0.7;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 28px 5vw;

    border-top: 1px solid var(--line);

    color: var(--text-muted);

    font-size: 0.8rem;
}


/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 900px) {

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 0.78rem;
    }

    .projects {
        grid-template-columns: 1fr 1fr;
    }

    .interests {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    /* Navigation */

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;

        top: 72px;

        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        gap: 0;

        padding: 15px 5vw;

        background: var(--bg);

        border-bottom: 1px solid var(--line);
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 13px 0;

        font-size: 0.9rem;
    }


    /* Hero */

    .hero {
        min-height: 90vh;

        padding: 120px 30px 70px;
    }


    /* Sections */

    .section {
        padding-top: 80px;

        padding-bottom: 80px;
    }

    .section-alt {
        padding-left: 30px;

        padding-right: 30px;
    }


    /* À propos */

    .two-columns {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* Timeline */

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 6px;

        padding-left: 25px;
    }


    /* Compétences */

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill:nth-child(even) {
        padding-left: 0;

        border-left: none;
    }

    .skill:nth-child(odd) {
        padding-right: 0;
    }


    /* Expérience */

    .experience {
        padding: 25px;
    }

    .experience-header {
        flex-direction: column;

        gap: 15px;
    }


    /* Projets */

    .projects {
        grid-template-columns: 1fr;
    }


    /* Intérêts */

    .interests {
        grid-template-columns: 1fr;
    }


    /* Footer */

    footer {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}
