body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background: black;
    color: white;
}

/* Personnalisation scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: black;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: wheat;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: wheat;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background-color: #000000a6;
    box-sizing: border-box;
    z-index: 999;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.spacer {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 15px;
    color: wheat;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.nav-links a {
    position: relative;
    color: rgb(90, 90, 90);
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 90%;
    height: 4px;
    background-color: wheat;
    transition: transform 0.2s ease;
    border-radius: 2px;
}

.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
    box-shadow: 0 0 20px 5px wheat;
}

.nav-links a.active {
    color: white; 
    padding-bottom: 8px; 
}

.nav-links a.active:hover {
    color: white;
}

.nav-links a:hover {
    color: #7e7e7e;
}

#user svg {
    color: white;
    width: 30px;
    height: 30px;
    transition: transform 1.5s ease;
}

#git {
    margin-left: auto;
}

.git-img {
    width: 35px;
    height: 35px;
    margin-right: 50px;
    transition: transform 1.5s ease;
}

#git:hover .git-img {
    transform: rotate(360deg);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.presentation {
    display: flex;
    align-items: center;
    justify-content: center; 
    margin-top: 200px;
    margin-left: 50px;
}

.presentation .texte {
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    text-align: left;
}

.presentation .texte h1,
.presentation .texte h2,
.presentation .texte h3,
.presentation .texte p,
.presentation #texte {
    margin: 0 0 12px 0;
}

.presentation .texte h1 {
    font-size: 2.5em;
    font-weight: bold;
}

.presentation .texte h2 {
    font-size: 1.25em;
    color: wheat;
}

.presentation .texte p,
.presentation .texte h3  {
    font-size: 1em;
}

.presentation #texte {
    font-size: 2em;
    white-space: nowrap;
    overflow: hidden;    
    background: linear-gradient(to right, white 0.1em, wheat 3em);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: background-position 0.2s ease;
}

.presentation .texte #texte {
    white-space: nowrap;
    overflow: hidden;
}

#texte .curseur {
    display: inline-block;
    width: 2px;
    background-color: white;
    animation: clignoteCurseur 1s steps(2, start) infinite;
    margin-left: 2px;
    height: 1.2em;
    vertical-align: bottom;
}

@keyframes clignoteCurseur {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.home-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.4,0,.2,1);
}
.home-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Style de l'image */
#pdp {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid wheat;
    box-shadow: 0 0 20px 3px wheat;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;

}

/* Section About */
.about {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    background-color: #171717;
    border-radius: 100px;
    padding: 75px;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #444;
}

.about-text {
    flex: 1;
    min-width: 300px;
    color: #e0e0e0;
}

.about-text h2 {
    font-size: 24px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    margin-top: -50px;
}

.about-text h2 span {
    display: inline-block;
    margin-right: 10px;
}

.about-text .underline {
    content: "";
    display: inline-block;
    height: 3px;
    width: 150px;
    background-color: wheat;
    position: absolute;
    bottom: 0%;
    left: calc(100% + 10px);
    transform: translateY(-10px);
    border-radius: 2px;
    box-shadow: 0 0 10px 2px wheat;
}

.about-fade {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.8s, transform 0.8s;
}

.about-fade.left {
    transform: translateX(-60px);
}

.about-fade.right {
    transform: translateX(60px);
}

.about-fade.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Skills Section */
.skills-section {
    padding: 50px 0;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.skills-header {
    text-align: center;
    margin-bottom: 60px;
}

.skills-header h3 {
    font-size: 2em;
    color: wheat;
    margin-bottom: 20px;
}

.skills-header h3::before,
.skills-header h3::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 60px;     
    height: 3px;      
    background: wheat;
    margin: 0 18px;   
    border-radius: 2px;
    box-shadow: 0 0 10px 2px wheat;
}

.skills-header h3::before {
    margin-left: 0;
}

.skills-header h3::after {
    margin-right: 0;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.tab-button {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #333;
    color: #999;
    cursor: pointer;
    border-radius: 25px;
    box-shadow: 0 0 5px 2px wheat;
    transition: all 0.3s ease;
    font-size: 1em;
}

.tab-button.active {
    border-color: wheat;
    color: wheat;
    background: rgba(245, 222, 179, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.skill-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 222, 179, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: wheat;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 222, 179, 0.2);
}

.skill-card .skill-level {
    opacity: 0;
    margin-top: 25px;
    pointer-events: none;
    transition: opacity 0.3s;
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    background: rgba(245, 222, 179, 0.95);
    color: #222;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    z-index: 3;
}

.skill-card .skill-name {
    opacity: 1;
    transition: opacity 0.3s;
}

.skill-card:hover .skill-level {
    opacity: 1;

}

.skill-card:hover .skill-name {
    opacity: 0;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 2;
}

.skill-img {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    background: #222;

}

.skill-name {
    font-size: 1.2em;
    font-weight: bold;
    color: wheat;
    position: relative;
    z-index: 2;
}

.skills-fade {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.8s, transform 0.8s;
}

.skills-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Portfolio */
.portfolio h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1px; 
}
.portfolio p {
    text-align: center;
    font-size: 1em;
    color: wheat;
    margin-bottom: 40px;
    overflow: hidden;    
    background: linear-gradient(to right, white 0.1em, wheat 3em);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: background-position 0.2s ease;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 75px;
    margin: 40px auto 60px auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    align-items: start;
    justify-items: center;
    padding: 0 10px;
    align-items: stretch;
}

.project-item {
    position: relative;
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 rgba(245,222,179,0.10);
    padding: 24px 18px 60px 18px; 
    min-height: 260px;
    max-width: 370px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    box-shadow: 0 8px 32px 0 rgba(245,222,179,0.18);
    transform: translateY(-6px) scale(1.02);
    border-color: wheat;
}

.project-item img.preview {
    width: 100%;
    height: 200px;           
    object-fit: contain;     
    border-radius: 12px;
    margin-bottom: 18px;
    background: #222;
    cursor: pointer;         
    transition: box-shadow 0.2s;
}
.project-item img.preview:hover {
    box-shadow: 0 0 5px 1px wheat;
}

.project-item h2 {
    font-size: 1.15em;
    color: wheat;
    margin: 5px 0 20px 0;
    font-weight: bold;
    text-align: center;
    width: 100%;
}
.project-item p {
    color: #e0e0e0;
    font-size: 0.98em;
    flex: 1 1 auto; 
    margin: 0 0 18px 0;
}

.project-item a {
    display: inline-block;
    margin-right: 10px;
    margin-top: 5px;
    transition: transform 0.2s;
}

.project-item a:last-child {
    margin-right: 0;
}

.project-item a img {
    width: 26px;
    height: 26px;
    vertical-align: middle;
    filter: grayscale(1) brightness(1.2);
    transition: filter 0.2s, transform 0.2s;
}

.project-item a:hover img {
    filter: none;
    transform: scale(1.15) rotate(-8deg);
}

.project-links {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 24px; 
}

.project-links a {
    margin: 0;
    margin-top: 0;
}

.projects-appear {
    opacity: 0;
    transform: scale(0.2) translateY(100px);
    filter: blur(12px);
    transition:
        opacity 0.7s cubic-bezier(.4,0,.2,1),
        transform 0.7s cubic-bezier(.4,0,.2,1),
        filter 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform, filter;
}

.projects-appear.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

/* Section Contact */
.contact-form {
    max-width: 400px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #181818;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(245,222,179,0.10);
}

.contact-form label {
    color: wheat;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #222;
    color: wheat;
    font-size: 1em;
    resize: vertical;
}

.contact-form button {
    background: wheat;
    color: #181818;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #ffd580;
}

.contact h2 {
    font-size: 1em;
    color: red;
    font-weight: bold;
}

.contact {
    margin-top: 40px;
}

.contact h1 {
    font-size: 2em;
    margin: 0 0 75px 0;
    text-align: center; 
    vertical-align: middle;
}

.contact h1::before,
.contact h1::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    margin: 0 25px 0 25px;
    width: 125px;
    height: 4px; 
    background: wheat;
    border-radius: 2px;
    box-shadow: 0 0 12px 2px wheat;
}

.contact-columns {
    display: flex;
    gap: 250px;
    justify-content: center;
    align-items: flex-start;
    margin: 40px 50px 0 0;
    flex-wrap: wrap;
    opacity: 0;
    transform: perspective(800px) rotateY(40deg) scale(0.95);
    transition: 
        opacity 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

.contact-columns.visible {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg) scale(1);
}

.contact-form {
    max-width: 400px;
    margin: 0 0 0 40px; 
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #181818;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(245,222,179,0.10);
    flex: 1 1 340px;
    min-width: 280px;
}

.custom-file-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.custom-file-btn {
    background-color: #333; 
    color: wheat; 
    padding: 8px 16px;
    border-radius: 8px; 
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none; /* Ajout pour être sûr de ne pas avoir de bordure par défaut */
}

.custom-file-btn:hover {
    background-color: #444; 
}

#file-chosen {
    color: #e0e0e0;
    font-size: 0.95em;
}

.contact-info {
    flex: 1 1 260px;
    min-width: 220px;
    background: #181818;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(245,222,179,0.10);
    padding: 32px 24px;
    color: wheat;
    font-size: 1.1em;
}

.contact-info h3 {
    margin-top: 0;
    color: wheat;
    font-size: 1.3em;
    margin-bottom: 18px;
}

.contact-info p {
    margin: 12px 0;
    color: #e0e0e0;
}

.contact-info span {
    color: wheat;
    font-weight: bold;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px; 
    margin: 12px 0;
}

.contact-row img {
    width: 25px;
    height: 25px;
    display: block;
}

.contact #texte-contact {
    margin-top: 25px;
    font-size: 1em;
    color: wheat;
    overflow: hidden;    
    background: linear-gradient(to right, white 0.1em, wheat 3em);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 0% 0%;
    transition: background-position 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .presentation {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        padding: 0 20px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .skills-tabs {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

        .top-bar {
        padding: 15px 20px;
    }

    .spacer {
        margin-left: 0;
    }

    .nav-links {
        position: relative;
        left: auto;
        transform: none;
        flex-wrap: wrap;
        gap: 15px;
    }

    #git svg {
        margin-right: 0;
    }

        .project-list {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 2vw;
    }

    .project-item {
        max-width: 100%;
        min-width: 0;
        padding: 18px 8px 60px 8px;
    }

    .project-item img.preview {
        height: 150px;
    }

    .portfolio h1 {
        font-size: 1.3em;
    }

    .portfolio p {
        font-size: 0.98em;
    }

    .project-links {
        right: 10px;
        bottom: 10px;
        gap: 16px;
    }
}