* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: #0D0D0D;
    color: #f4f4f4;
}

section {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 60px 20px;
    max-width: 1500px;
    min-height: 900px;
    margin: auto;
    border-top: #f4f4f4 solid 1px;
    border-bottom: #f4f4f4 solid 1px;
    border-radius:30px;
    border-color: rgba(255,255,255,0.3);
    margin-bottom: 5px;
    justify-content: center;
    align-items: center;
}

#accueil {
    align-items: start;
    justify-content: start;
}

.nav-home {
    width: 100%;
    position: fixed;
    top: 0;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    justify-content: flex-end;
    padding: 20px 40px;
}

h1 {
    font-weight: bold;
    font-size: 90px;
    position: absolute;
    bottom: 40%;
}

h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

h3 {
    font-size: 25px;
    margin: 10px 0px;
}

#btn-dl {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-bottom: 50px;
}

#btn-download {
    border: #333 solid 1px;
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
}

#btn-download:hover {
    background-color: rgba(255,255,255,0.5);
}

.about-me {
    position: relative;
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
}

.about-me > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.profile {
    border: rgba(255,255,255,0.3) solid 1px;
    background-color: rgba(255,255,255,0.05);
    width: 100%;
    flex: 1;
    border-radius: 5px;
    padding: 10px 20px;
    line-height: 1.5rem;
    display: flex;
    flex-direction: column;
}

.profile:hover {
    transform: translateY(-5px);
    background-color: rgba(255,255,255,0.08);
}

.education div {
    margin-bottom: 10px;
}

.profile-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-list div {
    border: rgba(255,255,255,0.3) solid 1px;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: default;
}

.profile-list div:hover {
    background-color: rgba(255,255,255,0.2);
}

.date {
    display: inline-block;
    border-bottom: rgba(255,255,255,1) solid 1px;
}

.references-container {
    margin-top: 60px;
    width: 100%;
}

.references {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.reference-item {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
    border: rgba(255,255,255,0.2) solid 1px;
    border-radius: 5px;
    padding: 20px;
    align-items: center;
    text-align: center;
}

.reference-item div {
    margin-bottom: 10px;
}

.reference-item div:last-child {
    margin-bottom: 0px;
}

.reference-name {
    font-weight: bold;
}

.reverse {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03); 
    border:rgba(255, 255, 255, 0.1) solid 1px; 
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-img {
    flex: 0.8;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
}

.project-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.05);
}

.project-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.project-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
}

.project-desc {
    background-color: transparent; 
    padding: 0;
    
    color: rgba(244, 244, 244, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.project-text .profile-list {
    margin-top: 10px;
}

.project-text .profile-list div {
    border-radius: 10px; 
    padding: 6px 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.project-text .profile-list div:hover {
    background: rgba(255, 255, 255, 0.2);
}

#contact-name {
    font-size: 3rem;
}

#contact-text {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}










.carre-digital {
    position: fixed;
    bottom: -10vh;
    background: rgba(138, 43, 226, 0.05); 
    border: 1px solid rgba(138, 43, 226, 0.25); 
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.15); 
}

.nav-home.scrolled {
    background-color: rgba(13, 13, 13, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.apparition {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.apparition.visible {
    opacity: 1;
    transform: translateY(0);
}



#barre-profondeur {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    height: 60vh;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

#marqueur-profondeur {
    position: absolute;
    left: -2px;
    width: 5px;
    height: 20px;
    background-color: #8A2BE2; 
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.8); 
    border-radius: 2px;
    transition: top 0.1s linear;
}






.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0; 
    animation: fadeInFilter 1s forwards;
}

@keyframes fadeInFilter {
    to { opacity: 1; }
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f4f4f4;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #8A2BE2;
    border-color: #8A2BE2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.project-item.hidden {
    display: none ;
}

.project-item:not(.hidden) {
    animation: fadeProject 0.5s ease-out;
}

@keyframes fadeProject {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}