/* ------------------------------
   Réinitialisation
------------------------------ */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    background:
        radial-gradient(circle at 20% 20%, #29215c 0, transparent 25%),
        radial-gradient(circle at 80% 10%, #172f68 0, transparent 25%),
        linear-gradient(135deg, #050816, #0c1230 55%, #180d38);
    font-family: Arial, Helvetica, sans-serif;
}

/* Étoiles dans le fond */

body::before,
body::after {
    position: fixed;
    z-index: -1;
    width: 2px;
    height: 2px;
    content: "";
    background: white;
    box-shadow:
        50px 80px white,
        150px 180px #a98cff,
        250px 40px white,
        350px 250px #75caff,
        450px 120px white,
        550px 350px #a98cff,
        650px 80px white,
        750px 220px #75caff,
        850px 50px white,
        950px 300px white,
        1050px 150px #a98cff,
        1150px 400px white,
        1250px 100px #75caff,
        1350px 280px white,
        100px 500px #75caff,
        300px 600px white,
        500px 480px #a98cff,
        700px 650px white,
        900px 520px #75caff,
        1100px 600px white;
    opacity: 0.7;
}

body::before {
    top: 0;
    left: 0;
}

body::after {
    top: 150px;
    left: 40px;
    transform: scale(0.6);
    opacity: 0.5;
}

body {
    min-height: 100vh;
    color: #e8eadf;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(202, 141, 54, 0.35),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #382d24 0%,
            #101713 38%,
            #0b120e 100%
        );
    font-family: Arial, Helvetica, sans-serif;
}

/* ------------------------------
   Navigation
------------------------------ */

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(157, 133, 255, 0.2);
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, 90%);
    height: 80px;
    margin: auto;
}

.logo {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: #9d7cff;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #d9d5ff;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7ddaff;
}

.menu-btn {
    display: none;
    border: none;
    color: white;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ------------------------------
   Éléments généraux
------------------------------ */

.section {
    width: min(1100px, 90%);
    margin: auto;
    padding: 100px 0;
}

.subtitle {
    margin-bottom: 15px;
    color: #7ddaff;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 4px;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h1,
h2,
h3 {
    color: #f0ca65;
    text-shadow: 0 0 8px rgba(224, 164, 57, 0.25);
}

.section-title {
    max-width: 650px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-title > p:last-child {
    color: #b9b6d8;
}

/* ------------------------------
   Accueil
------------------------------ */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, 90%);
    min-height: 100vh;
    margin: auto;
    padding-top: 80px;
}

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

.hero h1 {
    margin-bottom: 25px;
    color: white;
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: -4px;
    text-shadow: 0 0 25px rgba(125, 218, 255, 0.25);
}

.hero h1 span {
    color: #9d7cff;
    text-shadow: 0 0 20px rgba(157, 124, 255, 0.8);
}

.hero-text {
    max-width: 480px;
    margin-bottom: 35px;
    color: #c0bfdb;
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    padding: 15px 25px;
    border: 1px solid #8e77ff;
    border-radius: 30px;
    color: white;
    background: linear-gradient(90deg, #6745d9, #268fbd);
    font-weight: bold;
    box-shadow: 0 0 25px rgba(103, 69, 217, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 35px rgba(125, 218, 255, 0.8);
    transform: translateY(-5px);
}

/* Planète */

.hero-shape {
    position: relative;
    width: 330px;
    height: 330px;
}

.circle {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #bdaaff, #6549c5 45%, #17103c 80%);
    box-shadow:
        inset -25px -20px 35px rgba(0, 0, 0, 0.6),
        0 0 45px rgba(127, 99, 255, 0.8);
}

.square {
    position: absolute;
    bottom: 15px;
    left: 5px;
    width: 190px;
    height: 55px;
    border: 4px solid #7ddaff;
    border-radius: 50%;
    box-shadow: 0 0 20px #7ddaff;
    transform: rotate(-25deg);
}

/* ------------------------------
   Projets
------------------------------ */

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: auto;
}

.project-card {
    position: relative;
    z-index: 1;
    min-height: 290px;
    padding: 35px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;

    /* Fond sombre comme sur la photo */
    background:
        linear-gradient(#101a14, #101a14) padding-box,

        /* Contour en dégradé */
        linear-gradient(
            135deg,
            #3d9b55,
            #79d85f,
            #d6a84f,
            #3d9b55
        ) border-box;

    box-shadow:
        0 0 10px rgba(83, 190, 91, 0.35),
        0 0 35px rgba(210, 159, 57, 0.18);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow:
        0 0 15px rgba(83, 190, 91, 0.6),
        0 0 45px rgba(210, 159, 57, 0.4);

    transform: translateY(-8px);
}

.project-card h3 {
    color: #f1cf70;
}

.project-card p {
    color: #c4c9bc;
}

.project-link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    color: white;
    background: linear-gradient(135deg, #328849, #54aa55);
    font-weight: bold;
    box-shadow: 0 0 12px rgba(82, 181, 87, 0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.project-link:hover {
    background: linear-gradient(135deg, #4bae58, #d29d38);
    box-shadow: 0 0 18px rgba(210, 159, 57, 0.6);
}

.project-card:hover {
    box-shadow:
        0 0 35px rgba(125, 218, 255, 0.4),
        inset 0 0 30px rgba(157, 124, 255, 0.1);
    transform: translateY(-8px);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #7ddaff;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.7;
}

.project-icon {
    margin-bottom: 25px;
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px #7ddaff);
}

.project-card h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.6rem;
}

.project-card p {
    max-width: 450px;
    margin-bottom: 25px;
    color: #c0bfdb;
}

.project-link {
    color: #7ddaff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #bdaaff;
}

/* ------------------------------
   Version mobile
------------------------------ */

@media screen and (max-width: 750px) {
    .navbar {
        height: 70px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 5%;
        left: 5%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 15px;
        border: 1px solid rgba(157, 124, 255, 0.4);
        border-radius: 12px;
        background: #0c1230;
        box-shadow: 0 0 25px rgba(103, 69, 217, 0.4);
    }

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

    .nav-links li {
        padding: 12px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 60px;
        padding-top: 120px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-shape {
        align-self: center;
        width: 260px;
        height: 260px;
    }

    .circle {
        width: 210px;
        height: 210px;
    }

    .square {
        width: 150px;
    }
}
