*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background-color: #0a0a0a;
    color: #FFFFFF;
    line-height: 1.6;
    font-family: DejaVu Sans Mono, monospace;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #FFFFFF;
    scroll-margin-top: 100px;
}

h1,
h2,
h3 {
    margin-bottom: 10px;
}

h2 {
    color: #00c6fc;
}

h3 {
    color: #ee00ff;
}

p {
    margin-bottom: 15px;
}

a {
    color: #FFFFFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #D3D3D3;
}

/* Header */
header {
    background-color: #0a0a0a;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #FFFFFF;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.header-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #FFFFFF;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Section présentation */
#presentation {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.photo-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #FFFFFF;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    transform: scale(0.4);
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.presentation-text {
    flex: 1;
    min-width: 300px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin-right: 15px;
    font-weight: bold;
}

/* Section CV */
#cv {
    text-align: center;
}

.cv-container {
    width: 100%;
    height: 600px;
    border: 2px solid #FFFFFF;
    margin: 20px auto;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section parcours */
#parcours .parcours-frise {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 40px 0;
    padding-right: 30px;
}

#parcours .parcours-frise::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #FFFFFF;
    transform: translateY(-50%);
    z-index: 1;
}

#parcours .parcours-frise::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    border: 20px solid transparent;
    border-left-color: #FFFFFF;
    transform: translateY(-50%);
    z-index: 1;
}

.parcours-step {
    position: relative;
    z-index: 2;
    background-color: #0a0a0a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    border: 2px solid #FFFFFF;
    width: 30%;
    text-align: center;
}

.parcours-step p {
    margin: 0;
    font-size: 16px;
}

/* Section compétences */
#competences .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: #0a0a0a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    border: 1px solid #FFFFFF;
}

.skill-category h3 {
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.skill-category ul {
    list-style-position: inside;
}

.skill-category li {
    margin-bottom: 8px;
}

.skill-category {
    position: relative;
    transition: all 0.3s ease;
}

.skill-category h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-btn {
    background-color: transparent;
    border: none;
    color: #D3D3D3;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    text-decoration: underline;
    padding: 5px 0;
    margin-top: 5px;
    transition: color 0.3s;
}

.toggle-btn:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.skill-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
    font-style: italic;
}

.skill-category.active .skill-details {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Section projets */
#projets .projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #0a0a0a;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    transition: transform 0.3s;
    border: 1px solid #FFFFFF;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.project-card h3 {
    background-color: #FFFFFF;
    color: #000000;
    padding: 15px;
    margin: 0;
}

.project-card .project-content {
    padding: 20px;
}

.project-card .btn {
    display: inline-block;
    background-color: #0a0a0a;
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #FFFFFF;
}

.project-card .btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    text-decoration: none;
}

/* Section contact */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #0a0a0a;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    border: 1px solid #FFFFFF;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    font-size: 16px;
    background-color: #0a0a0a;
    color: #FFFFFF;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: #0a0a0a;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0a0a0a;
        display: none;
        border-bottom: 2px solid #FFFFFF;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    #presentation {
        flex-direction: column;
        text-align: center;
    }

    .photo-container {
        margin: 0 auto;
    }

    .cv-container {
        height: 400px;
    }

    #parcours .parcours-frise {
        flex-direction: column;
        padding-right: 0;
        padding-bottom: 30px;
        gap: 30px;
    }

    #parcours .parcours-frise::before {
        width: 4px;
        height: auto;
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    #parcours .parcours-frise::after {
        top: auto;
        bottom: -20px;
        left: 50%;
        right: auto;
        border: 20px solid transparent;
        border-top-color: #FFFFFF;
        border-left-color: transparent;
        transform: translateX(-50%);
    }

    .parcours-step {
        width: 80%;
    }
}