
/*1. VARIABLES */

:root {
    --black: #1626158a;
    --black-soft: #931b73db;
    --black-light: #171717;

    --gold: #c9a45c;
    --gold-light: #dfc17c;

    --white: #f4f4e1;
    --white-soft: #585651;

    --gray: #0c0901;
    --border: rgba(201, 164, 92, 0.22);

    --font-title: "Georgia", "Times New Roman", serif;
    --font-body: "Segoe UI", Arial, sans-serif;

    --container: 1120px;

    --transition: 0.3s ease;
}


/* 2. RESET */

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

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* 3. STRUCTURE GÉNÉRALE */

.section {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    padding: 110px 0;
}

.section-heading {
    margin-bottom: 55px;
}

.section-label {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.section-heading h2 {
    max-width: 650px;
    color: var(--white);
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
}


/* =========================
   4. NAVIGATION
   ========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(8, 8, 8, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(12px);
}

.navbar {
    width: min(100% - 40px, var(--container));
    min-height: 76px;
    margin: auto;

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold);
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;

    transition: var(--transition);
}

.logo:hover {
    background: var(--gold);
    color: var(--black);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;

    list-style: none;
}

.nav-links a {
    position: relative;

    color: var(--white-soft);
    font-size: 0.88rem;

    transition: var(--transition);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: var(--white);
    font-size: 1.3rem;

    cursor: pointer;
}


/*5. HERO */

.hero {
    min-height: 100vh;
    width: min(100% - 40px, var(--container));
    margin: auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;

    padding-top: 100px;
}

.hero-content {
    max-width: 600px;
}

.hero-intro {
    margin-bottom: 16px;

    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 18px;

    color: var(--white);
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
}

.hero h1 span {
    color: var(--gold);
}

.hero-description {
    margin-bottom: 20px;

    color: var(--white-soft);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.hero-text {
    max-width: 520px;
    margin-bottom: 32px;

    color: var(--gray);
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 24px;

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

    font-size: 0.84rem;
    font-weight: 600;

    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.hero-image {
    position: relative;
    max-width: 480px;
    margin-left: auto;
}

.hero-image::before {
    content: "";

    position: absolute;
    top: -14px;
    right: -14px;

    width: 100%;
    height: 100%;

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

    z-index: -1;
}

.hero-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


/* =========================
   6. À PROPOS
   ========================= */

.about {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 80px;
}

.about-image {
    max-width: 390px;
}

.about-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-text {
    max-width: 650px;
}

.about-text p {
    margin-bottom: 22px;
    color: var(--gray);
    font-size: 1.25rem;
}

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


/* =========================
   7. COMPÉTENCES
   ========================= */

.skills {
    background: var(--black-soft);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    min-height: 250px;
    padding: 50px 24px;

    background: var(--black);

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

    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
}

.skill-card i {
    margin-bottom: 25px;

    color: var(--gold);
    font-size: 1.35rem;
}

.skill-card h3 {
    margin-bottom: 12px;

    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 400;
}

.skill-card p {
    color: var(--gray);
    font-size: 1.125rem;
    line-height: 1.65;
}


/* =========================
   8. PARCOURS
   ========================= */

.timeline {
    max-width: 850px;
    margin: auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;

    padding: 15px 0;

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

.timeline-number {
    color: var(--gold);
    font-family: var(--font-title);
    font-size: 1.5rem;
}

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

    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
}

.timeline-date {
    margin-bottom: 10px;

    color: var(--gold);
    font-size: 0.98rem;
}

.timeline-item p:last-child {
    color: var(--gray);
    font-size: 1.25rem;
}


/* =========================
   9. PROJETS
   ========================= */

.projects {
    background: var(--black-soft);
}

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

.project-card {
    overflow: hidden;

    background: var(--black);

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

    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
}

.project-image {
    overflow: hidden;
}

.project-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-content {
    padding: 25px;
}

.project-category {
    margin-bottom: 8px;

    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 10px;

    color: var(--white);
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 400;
}

.project-content > p {
    margin-bottom: 20px;

    color: var(--gray);
    font-size: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;

    transition: var(--transition);
}

.project-link:hover {
    gap: 12px;
}


/* =========================
   10. VISION
   ========================= */

.vision {
    position: relative;
    text-align: center;
}

.vision-content {
    max-width: 760px;
    margin: auto;
}

.vision .section-heading {
    margin-bottom: 35px;
}

.vision .section-heading h2 {
    margin: auto;
}

.vision-content > p {
    margin-bottom: 25px;

    color: var(--gray);
    font-size: 1.5rem;
}


/* =========================
   11. CONTACT
   ========================= */

.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-text {
    max-width: 550px;
}

.contact-text p {
    margin-bottom: 18px;

    color: var(--gray);
    font-size: 1.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 15px 0;

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

    color: var(--white-soft);
    font-size: 1.2rem;

    transition: var(--transition);
}

.contact-links a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.contact-links i {
    width: 20px;
    color: var(--gold);
}


/* =========================
   12. FOOTER
   ========================= */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    width: min(100% - 40px, var(--container));
    min-height: 90px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    color: var(--gray);
    font-size: 0.78rem;
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

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

    color: var(--gold);
    font-size: 0.8rem;

    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--black);
}


/* =========================
   13. ANIMATIONS
   ========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeUp 0.8s ease forwards;
}

.hero-image {
    animation: fadeUp 1s ease forwards;
}


/* =========================
   14. TABLETTE
   ========================= */

@media (max-width: 950px) {

    .nav-links {
        gap: 18px;
    }

    .hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 45px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-content {
        gap: 50px;
    }
}


/* =========================
   15. MOBILE
   ========================= */

@media (max-width: 700px) {

    body {
        font-size: 15px;
    }

    .section {
        width: min(100% - 30px, var(--container));
        padding: 80px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: 2rem;
    }


    /* Navigation */

    .navbar {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        padding: 10px 25px 20px;

        background: rgba(8, 8, 8, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 11px 0;

        font-size: 0.9rem;
    }


    /* Hero */

    .hero {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 50px;

        padding-top: 130px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .hero-image {
        width: 85%;
        margin: auto;
    }


    /* À propos */

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        width: 80%;
        margin: auto;
    }


    /* Compétences */

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

    .skill-card {
        min-height: auto;
    }


    /* Parcours */

    .timeline-item {
        grid-template-columns: 45px 1fr;
        gap: 15px;
        padding: 28px 0;
    }


    /* Projets */

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


    /* Contact */

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* Footer */

    .footer-content {
        min-height: 80px;
    }
}


/* =========================
   16. PETITS ÉCRANS
   ========================= */

@media (max-width: 420px) {

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-image {
        width: 90%;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }
}

.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

