@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}   

body {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    cursor: crosshair;
    /*background: rgba(15 23 42);     /* Bleu */
    background-color: #1a191d;       /* Gris foncé */

    color: #e0e0e0; 
    line-height: 1.6;
    width: 100%;

}

/* Navigation (bulle flottante) */
nav {
    position: sticky;
    top: 1rem;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;

    /* taille centrée pour obtenir l'effet bulle */
    margin: 0.75rem auto;
    width: min(850px, calc(100% - 2rem));
    padding: 0.9rem 1rem;

    /* fond semi-transparent + flou pour ressembler à une bulle */
    background: linear-gradient(180deg, rgba(26,25,29,0.80), rgba(26,25,29,0.65));
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    /* arrondi complet + bord + ombre portée pour effet "flottant" */
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 3px 10px rgba(74,158,255,0.06);

    /* animations douces au survol */
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    position: sticky;
}

/* Légère surbrillance glossy */
nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01) 40%, transparent 50%);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* Lévitation au survol */
nav:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 6px 18px rgba(74,158,255,0.12);
}

/* Adaptation mobile pour garder la bulle proportionnée */
@media (max-width: 900px) {
    nav {
        top: 0.6rem;
        margin: 0.5rem auto;
        width: calc(100% - 1rem);
        padding: 0.35rem 0.75rem;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;


}    
    
nav a:hover {
    color: #4a9eff;

}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
   width: 100%;
   overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #7b68ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.hero-content .description {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgb(148 163 184 / 1);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 7rem;
}

.social-links a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #4a9eff;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4a9eff;
    color: #0a0a0a;
}
.about-card p {
    width: 50%;
    text-align: justify;

}

.about-card {
    display: flex;
    gap: 70px;
    justify-content: center;
    align-items: center;
}
.about-card img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* Section commune */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
section hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
    margin-bottom: 2rem;
}





nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;


}    
    
nav a:hover {
    color: #4a9eff;

}
.description {
    line-height: 1.9; /* valeur plus grande = plus d'espace */
    font-size: 18px;
}


/* Section commune */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
}


/* Portfolio Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #4a9eff;
}


.project2-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/LePourquoi.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}

#Axes ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 23px;
}

/* Ciblage spécifique du titre H3 à l'intérieur de la section Axes */
#Axes h3 {
    font-size: 1.4rem; /* Augmente la taille de la police */
    margin: 1rem 0;    /* Ajoute de l'espace vertical */
    text-align: center; /* Centrer le texte */
}


.project3-image {
    width: 100%;
    height: 200px; /* adapte selon ta mise en page */
    background-image: url("./assets/SchemaFacteurs.png"); /* mets ici le chemin de ton image */
    background-position: center;
    background-size: cover;
}




.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: #2a2a2a;
    color: #4a9eff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #3a3a3a;
}

/* Footer */
footer {
    background-color: #111;
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    border-top: 1px solid #222;
}

footer p {
    color: #888;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #4a9eff;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}




/* ---- Fait pour mobile ---- */


@media (max-width: 900px) {
    /* Reset cursor on touch devices */
    * {
        cursor: default;
    }

    nav {
        padding: 1rem;
        background-color: #1a191dcc;
        backdrop-filter: blur(6px);
    }

    nav ul {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    nav a {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }

    .hero {
        min-height: 70vh;
        padding: 1.25rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content .subtitle {
        font-size: 1.05rem;
    }

    .hero-content .description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }

    .social-links {
        margin-top: 2.5rem;
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .about-card {
        flex-direction: column;
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .about-card p {
        width: 100%;
        text-align: left;
    }

    .about-card img {
        width: 220px;
        height: 220px;
    }

    section {
        padding: 3rem 1.25rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-image,
    .project2-image,
    .project3-image {
        height: 150px;
        font-size: 2.2rem;
    }

    .project-content {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.25rem 0.6rem;
    }

    footer {
        padding: 1.5rem;
        margin-top: 3rem;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 6px;
    }
}
