body {
    font-family: 'Poppins', sans-serif;
    background-color: azure;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
}

#hero {
    height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* plus fixed */
    z-index: 1;
}

@media (max-width: 1024px) {
    #hero {
        position: relative;
        /* plus de fix */
        height: auto;
        /* reprend taille normale */
        top: auto;
        left: auto;
        z-index: 1;
    }
    hero * {
        font-size: x-large;
    }
}

    main {
        margin-top: 0;
        /* décale le contenu normal après l'écran plein */
    }



    /* Gradient vert pour la section projets */
    #projects {
        background: linear-gradient(90deg, #00ff0d, #00FFB3);
    }

    /* Dégradé vert pour texte spécial */
    .basile {
        font-weight: bold;
        display: inline-block;
        background-image: linear-gradient(90deg, #00ff0d, #00FFB3 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Navbar links hover avec dégradé vert */
    .nav-link:hover {
        background-image: linear-gradient(90deg, #00ff0d, #00FFB3);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Bouton principal hover en dégradé vert */
    .btn-primary:hover {
        background-image: linear-gradient(90deg, #00ff0d, #00FFB3);
        border: none;
        color: #fff;
    }

    /* Titres */
    h1,
    h2 {
        font-weight: bold;
    }

    .glass-nav {
        max-width: 900px;
        width: 80%;
        top: 40px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* couleur surlignage texte*/
    /* pour Firefox */
    ::-moz-selection {
        background-color: #363736;
        color: #fff;
    }

    /* pour Safari et Chrome */
    ::selection {
        background-color: #363736;
        color: #fff;
    }

    .skills-marquee {
        overflow: hidden;
        white-space: nowrap;
        position: relative;
    }

    .skills-track {
        display: inline-block;
        animation: scroll-left 25s linear infinite;
    }

    .skills-track span {
        display: inline-block;
        margin: 0 4vw;
        font-size: clamp(1rem, 1vw, 1rem);
        color: #000000;
    }


    /* Animation fluide */
    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    .hover-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .hover-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
        border-color: #00ff0d;
        /* ton vert flashy */
    }

.darkmode-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #000 20%, #333 80%);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    color: white;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.darkmode-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #222, #000);
}

.darkmode-btn .sun {
    display: none;
}

body.dark-mode .darkmode-btn .sun {
    display: inline;
}

body.dark-mode .darkmode-btn .moon {
    display: none;
}

/* --- Mode clair (par défaut) --- */
body {
    background: #f8f9fa;
    color: #111;
    transition: background 0.4s ease, color 0.4s ease;
}

/* --- Mode sombre --- */
body.dark-mode {
    background: #0b0b0b;
    color: #f1f1f1;
}

body.dark-mode .card,
body.dark-mode .modal-content {
    background: #121212 !important;
    border-color: #2c2c2c !important;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .hover-card:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* --- Liens et boutons --- */
body.dark-mode a,
body.dark-mode .btn {
    color: #fff;
}

body.dark-mode .btn-dark {
    background: white;
    border: none;
    color: #000000;
    box-shadow: 0 0 15px rgba(159, 123, 255, 0.4);
}

body.dark-mode .btn-dark:hover {
    background: #bfbfbf;
    box-shadow: 0 0 25px rgba(159, 123, 255, 0.7);
}

/* --- Dégradés et accents lumineux --- */
body.dark-mode .basile {
    background: linear-gradient(90deg, #a3a9ff, #c6b8ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

body.dark-mode .skills-marquee {
    background: linear-gradient(90deg, #1a1a1a, #111);
    border-color: #2c2c2c;
    color: #ccc;
}

body.dark-mode .skills-track span {
    background: linear-gradient(90deg, #b7a9ff, #e0ddff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode #projects {
    color: black;
    background: linear-gradient(90deg, #b7a9ff, #e0ddff, #fff);
}
body.dark-mode .nav-link:hover {
    background: linear-gradient(90deg, #b7a9ff, #e0ddff, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Transitions globales --- */
* {
    transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}