body{
    margin: 0;
    background-color: #0f0f17;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* NAVBAR */

header{
    background-color: #09090e;
    padding: 18px;
    position: sticky;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
}

nav{
    margin-left: 10px;
    margin-right: 10px;
}

.container-navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo{
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
}

.MenuMobile{
    display: none;
    background: none;
    padding: 10px;
    border-radius: 10px;
    border: solid white 1px;
    flex-direction: column;
    gap: 5px;
}

.MenuMobile span{
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.menu-laptop{
    display: flex;
    gap: 1.5rem;
}

.menu-laptop a{
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.menu-laptop a:hover{
    color: #a78bfa;
}

.menu-laptop a:hover::after{
    display: block;
    position: absolute;
    color: #a78bfa;
    content: "";
    width: 100%;
    height: 2px;
    background-color: #a78bfa;
}


@media (max-width: 767px) {
    .MenuMobile {
        display: flex;
    }
    .menu-laptop{
        display: none;
    }
    .menu-laptop {
        display: flex; 
        flex-direction: column;
        position: fixed;
        top: 60px; 
        right: -100%; 
        width: 200px;
        background-color: #09090e;
        padding: 20px;
        gap: 20px;
        transition: right 0.3s ease; 
    }

    .menu-laptop.active {
        right: 0;
    }
}

/* Profils */ 

.container-Profils{
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
    margin-top: 80px;
}

.container-Profils h2{
    color: #71717a;
    font-size: clamp(1.5rem, 5vw, 2.6rem);
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.container-Profils h1{
    color: #a78bfa;
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    margin: 0 0 .5rem;
}

.année-diplome{
    color: #aaaab4;
}

.container-Profils p{
    color: #aaaab4;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 0 2rem;
}

.btn-cv {
    color: white;
    text-decoration: none;
    border: 1px solid #2a2440;
    padding: 14px 28px;
    border-radius: 30px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-cv:hover {
    background: #a78bfa;
    border-color: #a78bfa;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #a78bfa;
    border-radius: 50%;
    color: #a78bfa;
    transition: background 0.2s, color 0.2s;
}

.btn-icon:hover {
    background: #a78bfa;
    color: white;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.accueil-actions{
    display: flex;
    gap: 1.5rem;
}

/* FORMATION */

.container-formation h2{
    color: #a78bfa;
    font-size: 2.1em;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.container-carteFormation{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-formation{
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.center-block{
    width: 90%;
}

.container-carteFormation .container-contenu{
    background-color: #181825;
    border-radius: 15px;
    border: solid #2a2440 1px;
    width: 100%;
    margin-bottom: 20px;
}

.container-contenu{
    margin: 15px;
}

.container-contenu div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px;
}

.container-contenu h4{
    position: relative;
    margin: 12px;
    color: #71717a;
    font-weight: 500;
    top: -22px;
}

.container-contenu h3{
    margin-top: 5px;
    color: white;
    font-size: 1.3rem;
}
.container-contenu p {
    margin: 12px;
    color: #a1a1aa;
    line-height: 1.6;
}

.container-contenu:hover{
    border-color: #a78bfa;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.12), 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* PROJETS */

.section-projets {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.section-title{
    color: #a78bfa;
    font-size: 2.1em;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.projet-card {
    background: #181825;
    border: 1px solid #2a2440;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.projet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.projet-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projet-icon-placeholder {
    width: 60px;
    height: 60px;
}

.projet-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.projet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.tag {
    background: #27273a;
    color: #a78bfa;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.projet-content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.15rem;
    color: white;
}

.projet-content p {
    margin: 0 0 0.9rem 0;
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-projet {
    align-self: flex-end;
    color: #a78bfa;
    text-decoration: none;
    border: 1px solid #a78bfa;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-projet:hover {
    background: #a78bfa;
    color: #181825;
}

.projet-img-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: none; /* Laisse cliquer sur tes boutons meme avec les particule*/
}

/* COMPETENCE */

#Competence{
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

#Competence h2{
    color: #a78bfa;
    font-size: 2.1em;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

/* LOGO competence */

.icon {
    width: 35px;
    height: 35px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}

.containe-competence{
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px;
}

.containe-competence span{
    font-weight: bold;
    font-size: 1.18rem;
}

.contenu{
    background: #181825;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid #2a2440;
    transition: border-color 0.2s, color 0.2s;
}

.container-block{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.container-img{
    display: flex;
    align-items: center;
}

/* CONTACT */
#contact{
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.center-block h2{
    color: #a78bfa;
    font-size: 2.1em;
    font-weight: 600;
    margin: 0 0 1.5rem;
}








/* GRILLE CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

/* Colonne gauche : liens */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-intro {
    color: #a1a1aa;
    line-height: 1.7;
    margin: 0 0 0.8rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #a1a1aa;
    text-decoration: none;
    border: 1px solid #2a2440;
    background: #181825;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.contact-link svg {
    width: 18px;
    height: 18px;
    fill: #a78bfa;
    flex-shrink: 0;
}

.contact-link:hover {
    border-color: #a78bfa;
    color: white;
}

/* Colonne droite : formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    background: #181825;
    border: 1px solid #2a2440;
    border-radius: 10px;
    padding: 12px 14px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #5a5a6e;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #a78bfa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    background: none;
    color: white;
    border: 1px solid #2a2440;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-submit:hover {
    background: #a78bfa;
    border-color: #a78bfa;
}

/* Mobile : on empile tout */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* FOOTER */

footer{
    background-color: #09090e;
    padding-bottom: 10px;
    font-size: 1em;
    color: #535252;
}

footer div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.projet-card:hover {
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.12), 0 10px 28px rgba(0, 0, 0, 0.3);
    
}


/*================================================
            ANIMATIONS CLaude (IA)    
================================================
*/
html { scroll-behavior: smooth; }

.scroll-hidden {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-hidden.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navbar glass au scroll --- */
header.nav-scrolled {
    background-color: rgba(9, 9, 14, 0.82);  
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(167, 139, 250, 0.12);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes logoPulse {
    0%, 100% { color: white; text-shadow: none; }
    50%       { color: #c4b5fd; text-shadow: 0 0 18px rgba(167, 139, 250, 0.7), 0 0 35px rgba(167, 139, 250, 0.3); }
}

.logo-pulse { animation: logoPulse 3.5s ease-in-out infinite; }

.hero-fade { transition: opacity 0.7s ease, transform 0.7s ease; }

.projet-card:hover .tag {
    background: rgba(167, 139, 250, 0.2);
    transition: background 0.3s ease;
}

.contenu {
    transition: border-color 0.25s, color 0.25s, transform 0.3s ease, box-shadow 0.3s ease;
}

.contenu:hover {
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.12), 0 10px 28px rgba(0, 0, 0, 0.3);
}

.icon-box { transition: background 0.3s ease, transform 0.3s ease; }

.contenu:hover .icon-box {
    background: rgba(167, 139, 250, 0.22);
    transform: scale(1.1);
}

.contact-link {
    transition: border-color 0.2s, color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-link:hover {
    transform: translateX(8px);
}

.btn-cv {
    transition: background 0.25s, border-color 0.25s, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-cv:hover {
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.45);
    transform: translateY(-2px);
}

.btn-submit {
    transition: background 0.2s, border-color 0.2s, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    box-shadow: 0 0 22px rgba(167, 139, 250, 0.35);
    transform: translateY(-2px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.2);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.btn-icon { animation: floatIcon 3.8s ease-in-out infinite; }

@keyframes lineGrow {
    from { width: 0; opacity: 0; }
    to   { width: 72px; opacity: 1; }
}

.animated-title { position: relative; }

.animated-title::after {
    content: '';
    display: block;
    margin-top: 8px;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #a78bfa, rgba(167, 139, 250, 0));
    border-radius: 3px;
    animation: lineGrow 0.7s ease forwards;
    animation-play-state: paused;
}

.animated-title.in-view::after {
    animation-play-state: running;
}

.container-carteFormation .container-contenu {
    transition: border-color 0.2s, opacity 0.65s ease, transform 0.65s ease;
}

.menu-laptop a.nav-active {
    color: #a78bfa;
}

.menu-laptop a.nav-active::after {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    background-color: #a78bfa;
    bottom: -4px;
    left: 0;
}