:root {
    --background: #f9f9ff;
    --nav: #353353;
    --primary: #6c63ff;
    --text: #454360;
    --light: #908db4;
}

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

body {
    font-family: "Rubik", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--nav);
}

#NavBarIcon {
    display: grid;
    gap: 5px;
}

#NavBarIcon span {
    background-color: #fff;
    height: 4px;
    width: 30px;
    border-radius: 5px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    position: relative;
    background-color: var(--nav); /* Comme ton premier design */
    color: white;
    overflow: hidden;
}

/* Photo perso centrée */
.photo-Perso {
    width: 30vh;
    height: 30vh;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Contenu sous la photo */
.hero-content h1 {
    font-size: 3em;
    margin: 10px 0;
    color: var(--titreNavColor);
}

.hero-content h3 {
    font-size: 1.5em;
    margin: 5px 0;
    color: var(--sousTitreColor);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--sousTitreColor);
}

/* Icônes sous la photo */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons .icon {
    width: 48px;
    height: 48px;
}
/* Projets */
.content {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}
.content h2{
    font-size: 2rem;
    padding: 20px;
    text-align: center;
}
.content p
{
    font-size: 1.1rem;
}


.Carte {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    gap: 20px;
}

.projet-Icon img {
    width: 100%;
    border-radius: 12px;
}

.description-Projet h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.description-Projet p.sous-titre {
    color: var(--light);
    font-weight: bold;
    font-size: 1.2rem;
}

.description-Projet p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.description-Projet ul {
    margin-bottom: 10px;
}

.description-Projet li {
    margin-bottom: 5px;
}

.ButtonEnSavoirPlus {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.2s;
}

.ButtonEnSavoirPlus:hover {
    transform: scale(1.05);
}

/* Desktop layout projets */
@media(min-width:768px) {
    .projet-gauche, .projet-droit {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .projet-droit {
        flex-direction: row-reverse;
    }
    .projet-Icon {
        width: 50%;
    }
    .description-Projet {
        width: 50%;
    }
}

/* Responsive */
@media(max-width:767px) {
    .projet-gauche, .projet-droit {
        flex-direction: column;
        text-align: center;
    }
    .description-Projet {
        text-align: center;
    }
}