/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --bg-color: #1b1f22;
    --text-color: #ffffff;
    --accent-color: #64ffda;
    --accent-color-2: #ff6b6b;
    --accent-color-3: #4a90e2;
    --overlay-color: rgba(19, 21, 25, 0.8);
    --transition: all 0.3s ease;
    --gradient-1: linear-gradient(45deg, #64ffda, #4a90e2);
    --gradient-2: linear-gradient(45deg, #ff6b6b, #ffd93d);
}

/* Bouton retour aux projets */
.back-to-projects {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(27, 31, 34, 0.9);
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin: 0;
    white-space: nowrap;
}

.back-to-projects:hover {
    transform: translateX(-5px);
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-projects i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-to-projects:hover i {
    transform: translateX(-3px);
}

@media screen and (max-width: 768px) {
    .back-to-projects {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .back-to-projects i {
        font-size: 1.2rem;
    }
}

/* Base */
html, body {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Wrapper */
#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    position: relative;
    z-index: 1;
    margin: 0;
    width: 100%;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 31, 34, 0.95);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header.scrolled {
    background: rgba(27, 31, 34, 0.98);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

#header .logo {
    width: 5.5rem;
    height: 5.5rem;
    line-height: 5.5rem;
    border: solid 1px var(--text-color);
    border-radius: 100%;
    margin-bottom: 3rem;
}

#header .logo .icon {
    font-size: 2rem;
}

#header .content {
    border-style: solid;
    border-color: var(--text-color);
    border-width: 1px 0;
    max-width: 100%;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

#header .content .inner {
    transition: var(--transition);
    max-width: 65rem;
}

/* Navigation */
#header nav {
    width: 100%;
    max-width: 1200px;
}

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

#header nav ul li {
    margin: 0 0.5rem;
}

#header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
}

#header nav ul li a:hover {
    color: var(--accent-color);
    background: rgba(100, 255, 218, 0.1);
}

#header nav ul li a.active {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Menu Burger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-right: 0.5rem;
}

@media screen and (max-width: 768px) {
    #header {
        height: 40px;
    }

    #main {
        margin-top: 40px;
        padding: 2.5rem 1rem 2rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
    }

    .menu-toggle .fas {
        font-size: 1.5rem;
    }

    #header nav ul {
        display: none;
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        background: rgba(27, 31, 34, 0.98);
        flex-direction: column;
        padding: 0.5rem 0;
        text-align: center;
    }

    #header nav ul.show {
        display: flex;
    }

    #header nav ul li {
        margin: 0;
    }

    #header nav ul li a {
        padding: 0.75rem 1rem;
        display: block;
    }
}

@media screen and (max-width: 480px) {
    #header nav {
        height: 40px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    #header nav ul {
        top: 40px;
    }

    #main {
        padding-top: 0.3rem;
    }
}

/* Main */
#main {
    flex: 1;
    max-width: 100%;
    width: 100%;
    padding: 1.5rem;
    margin: 0 auto;
    margin-top: 60px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    #main {
        padding: 1rem 0.75rem;
        margin-top: 50px;
    }
    
    #main article {
        padding: 1.25rem;
    }
}

#main article {
    background: var(--overlay-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: none;
}

#main article.active {
    display: block;
}

#main article.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

#main article:first-of-type {
    margin-top: 1rem; /* Espacement supplémentaire pour le premier article */
}

#main article:not(:last-child) {
    margin-bottom: 2rem;
}

#main article h2.major {
    margin: 0.5rem 0 1rem 0; /* Ajout d'un espacement en haut du titre */
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    color: var(--accent-color);
    text-align: center;
    letter-spacing: 0.1rem;
    font-weight: 600;
}

#main article h2.major::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-1);
}

/* Skills Categories */
.skills-categories {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.skill-category {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(27, 31, 34, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.05);
    flex: 1;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    text-align: center;
    padding-bottom: 0.5rem;
    position: relative;
}

.skill-category h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.skill-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    padding-left: 0 !important;
}

.skill-list-grid li {
    position: relative;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-list-grid li:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.skill-list-grid li::before {
    content: "▹" !important;
    position: absolute !important;
    left: 0.4rem !important;
    color: var(--accent-color) !important;
}

@media screen and (min-width: 992px) {
    .cv-section:last-child .skills-categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .cv-section:last-child .skills-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .skills-categories {
        flex-direction: column;
    }
    
    .skill-category {
        width: 100%;
        padding: 1rem;
    }
    
    .skill-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .skill-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
}

@media screen and (min-width: 1600px) {
    .skills-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.skill-item {
    background: rgba(27, 31, 34, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
    height: 100%;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.skill-item h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.skill-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.skill-tag:hover {
    background: rgba(100, 255, 218, 0.15);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.skill-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Form */
form {
    margin: 0 0 2rem 0;
}

.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.field.half {
    width: 100%;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    transition: var(--transition);
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
    background: rgba(255, 255, 255, 0.1);
}

.actions {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 2rem 0 0 0;
}

.actions li input[type="submit"],
.actions li input[type="reset"] {
    padding: 0.75rem 2rem;
    background: transparent;
    border: solid 1px var(--text-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
    transition: var(--transition);
}

.actions li input[type="submit"]:hover,
.actions li input[type="reset"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Icons */
ul.icons {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    gap: 1rem;
    justify-content: center;
}

ul.icons li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

ul.icons li a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
#footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    background: rgba(27, 31, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

/* Background */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.5;
    will-change: transform;
}

/* Projects */
.project-intro {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    width: 100%;
}

@media screen and (min-width: 1600px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 1200px) and (max-width: 1599px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustement des paddings responsive */
@media screen and (max-width: 768px) {
    #main {
        padding: 1rem 0.75rem;
    }
    
    #main article {
        padding: 1.25rem;
    }
}

.project-card {
    background: rgba(27, 31, 34, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(27, 31, 34, 0.9), transparent);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(27, 31, 34, 0.8), rgba(27, 31, 34, 0.6));
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.project-text-bubble {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 2px solid var(--accent-color);
}

.project-text-bubble p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: justify;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.project-tags span {
    background: rgba(100, 255, 218, 0.08);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-tags span::before {
    content: '▹';
    color: var(--accent-color);
    font-size: 0.9rem;
}

.project-card .button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .project-text-bubble {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }

    .project-text-bubble p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .project-tags {
        padding: 0.8rem;
        gap: 0.4rem;
    }

    .project-tags span {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-text-bubble {
        padding: 1rem;
    }

    .project-tags span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Responsive design pour les projets */
@media screen and (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1199px) and (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }
}

/* Animation d'apparition des projets */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Grids */
@media screen and (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    #main article {
        padding: 1rem;
    }
}

/* Animations */
.fadeIn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fadeIn.show {
    opacity: 1;
    transform: translateY(0);
}

/* CV Content */
.cv-content {
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.cv-sections-container {
    gap: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
}

.cv-section {
    padding: 1.8rem;
    margin-bottom: 1rem;
    background: rgba(27, 31, 34, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.cv-section h3 {
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-section h3 i {
    font-size: 1.3rem;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.6rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.cv-item {
    margin-bottom: 1.2rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.cv-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.cv-description {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.cv-details {
    list-style: none !important;
    padding-left: 0.5rem !important;
    margin: 1rem 0 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.cv-details li {
    position: relative !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cv-details li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.cv-details li::before {
    content: "▹" !important;
    position: absolute !important;
    left: 0.5rem !important;
    color: var(--accent-color) !important;
}

.skills-categories {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.skill-category {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(27, 31, 34, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.05);
    flex: 1;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    text-align: center;
    padding-bottom: 0.5rem;
    position: relative;
}

.skill-category h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.skill-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    padding-left: 0 !important;
}

.skill-list-grid li {
    position: relative;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 0 !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-list-grid li:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.skill-list-grid li::before {
    content: "▹" !important;
    position: absolute !important;
    left: 0.4rem !important;
    color: var(--accent-color) !important;
}

@media screen and (min-width: 992px) {
    .cv-section:last-child .skills-categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .cv-section:last-child .skills-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .skills-categories {
        flex-direction: column;
    }
    
    .skill-category {
        width: 100%;
        padding: 1rem;
    }
    
    .skill-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .skill-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive CV */
@media screen and (min-width: 1200px) {
    .cv-sections-container {
        grid-template-columns: 1.5fr 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .cv-section {
        height: 100%;
    }

    .cv-right-column {
        display: grid;
        gap: 1.5rem;
    }
}

.cv-download {
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.cv-download .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 30px;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cv-download .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.cv-download .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cv-download .button:hover::before {
    opacity: 0.2;
}

.cv-download .button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cv-download .button:hover i {
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .cv-section {
        padding: 1.5rem;
    }
    
    .cv-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .cv-item {
        padding: 1rem;
    }
    
    .cv-item h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cv-date {
        margin-top: 0.5rem;
        font-size: 0.85rem;
    }
    
    .cv-details {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        flex-direction: column;
    }
    
    .skill-category {
        width: 100%;
        padding: 1rem;
    }
    
    .skill-list-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-download .button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Styles communs pour les cartes */
.skill-item,
.project-card,
.stage-card,
.cv-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.skill-item:hover,
.project-card:hover,
.stage-card:hover,
.cv-section:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.1);
}

/* Styles communs pour les titres de section */
.project-card h3,
.stage-card h3,
.cv-section h3 {
    font-size: 1.3rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Styles communs pour les tags */
.project-tags span,
.stage-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    margin: 0.1rem;
    display: inline-block;
}

/* Styles communs pour les listes */
.skill-list,
.stage-tasks,
.cv-details,
.skill-list-grid,
.achievements-list,
.cv-section ul {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin: 1rem 0 !important;
}

.skill-list li,
.stage-tasks li,
.cv-details li,
.skill-list-grid li,
.achievements-list li,
.cv-section ul li {
    position: relative !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding-left: 1.5rem !important;
    list-style-type: none !important;
}

.skill-list li::marker,
.stage-tasks li::marker,
.cv-details li::marker,
.skill-list-grid li::marker,
.achievements-list li::marker,
.cv-section ul li::marker {
    display: none !important;
    content: "" !important;
}

.skill-list li::before,
.stage-tasks li::before,
.cv-details li::before,
.skill-list-grid li::before,
.achievements-list li::before,
.cv-section ul li::before {
    content: "→" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--accent-color) !important;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .cv-sections-container {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .skills-categories {
        flex-direction: column;
    }

    .skill-category {
        width: 100%;
    }

    .skill-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Suppression des styles qui peuvent cacher le contenu */
#main article.active,
#main article.fadeIn,
#main article.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Assurer la visibilité des éléments internes */
.skills-grid,
.projects-grid,
.stages-grid,
.cv-sections-container {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 2;
}

/* Assurer la visibilité des cartes */
.skill-item,
.project-card,
.stage-card,
.cv-section {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 3;
}

/* Ajustement du background pour ne pas interférer */
#bg {
    z-index: -1;
}

/* Introduction Section */
.intro-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-greeting {
    font-size: 1.6rem;
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05rem;
    line-height: 1.4;
}

.intro-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.intro-main > p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.highlight-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.intro-quote {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.intro-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .intro-content {
        gap: 1.5rem;
    }

    .intro-main {
        gap: 1.5rem;
    }

    .intro-highlights {
        gap: 1rem;
    }

    .projects-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .intro-content {
        gap: 1rem;
    }

    .intro-main {
        gap: 1rem;
    }

    .intro-highlights {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-image {
        height: 180px;
    }
}

/* Compétences Section */
.competences-intro {
    margin-bottom: 1rem;
    text-align: center;
}

.competences-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.experience-meter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.experience-item {
    text-align: center;
}

.experience-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.experience-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.skill-level {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.5rem 0 1rem;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

.skill-details {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.certifications-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.certifications-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.certification-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.certification-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.certification-item span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.certification-item small {
    opacity: 0.7;
}

/* Stages Section */
.stages-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.stages-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.stages-timeline {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.timeline-marker {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.timeline-marker.current {
    border: 1px solid var(--accent-color);
}

.timeline-marker .date {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-marker .label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stage-header {
    margin-bottom: 2rem;
}

.stage-title {
    margin-bottom: 1rem;
}

.stage-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.stage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.stage-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stage-description h4,
.stage-achievements h4,
.stage-skills h4,
.stage-feedback h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.achievements-list {
    list-style: none;
    padding-left: 1.5rem;
}

.achievements-list li {
    position: relative;
    margin-bottom: 0.8rem;
}

.achievements-list li::before {
    content: "★";
    position: absolute;
    left: -1.5rem;
    color: var(--accent-color);
}

.stage-feedback blockquote {
    font-style: italic;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.stage-feedback blockquote footer {
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.stage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .experience-meter {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stage-content {
        grid-template-columns: 1fr;
    }

    .stage-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .stage-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Contact Section */
.contact-alternatives {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-alternatives h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

/* Form Styles */
.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.field {
    position: relative;
}

.field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.field input[type="email"],
.field textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.field input[type="email"]:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

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

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button.primary {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.button.primary:hover {
    background: var(--accent-color-2);
    transform: translateY(-2px);
}

input[type="reset"] {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: var(--transition);
}

input[type="reset"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media screen and (min-width: 768px) {
    .fields {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .field.half {
        grid-column: span 1;
    }
    
    .field:not(.half) {
        grid-column: span 2;
    }
}

/* Contact Icons */
.icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.icons li a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.icons li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Form Validation */
.field input:invalid,
.field textarea:invalid {
    border-color: var(--accent-color-2);
}

.field input:valid,
.field textarea:valid {
    border-color: var(--accent-color);
}

/* Image d'introduction */
.image.main {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.image.main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .image.main img {
        height: 200px;
    }
}

/* Grilles et cartes */
.skills-grid,
.projects-grid,
.intro-highlights {
    gap: 1rem;
    margin: 1rem 0;
}

.skill-item,
.project-card,
.highlight-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

/* Media Queries pour grands écrans */
@media screen and (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .intro-highlights {
        grid-template-columns: repeat(3, 1fr);
    }

    #main {
        padding: 1rem;
    }

    #main article {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Media Queries pour écrans moyens */
@media screen and (max-width: 1199px) and (min-width: 769px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

.formation-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.formation-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.1);
}

.formation-box h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.formation-box p {
    margin: 0.5rem 0;
    line-height: 1.6;
} 

.stage-overview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stage-overview-content span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
}

/* Projets */
#projets {
    min-height: calc(100vh - 60px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    background: rgba(27, 31, 34, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.button {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .intro-content {
        gap: 1.5rem;
    }

    .intro-main {
        gap: 1.5rem;
    }

    .intro-highlights {
        gap: 1rem;
    }

    .projects-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .intro-content {
        gap: 1rem;
    }

    .intro-main {
        gap: 1rem;
    }

    .intro-highlights {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-image {
        height: 180px;
    }
}

/* Style commun pour les boutons de retour */
.back-button,
.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.back-button:hover,
.back-nav a:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(-5px);
}

.back-button i,
.back-nav a i {
    font-size: 0.85rem;
}

/* Styles pour les iframes de formulaire Zoho */
#zf_div_Zuwt2-YBUBXTZxvjyRn3jxDWg3YSC2gRAOF_aX9a9tY {
    width: 100% !important;
    height: 1000px !important;
    overflow: hidden !important;
    margin: 1rem 0 !important;
}

#zf_div_Zuwt2-YBUBXTZxvjyRn3jxDWg3YSC2gRAOF_aX9a9tY iframe {
    width: 100% !important;
    height: 1000px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media screen and (max-width: 768px) {
    #zf_div_Zuwt2-YBUBXTZxvjyRn3jxDWg3YSC2gRAOF_aX9a9tY,
    #zf_div_Zuwt2-YBUBXTZxvjyRn3jxDWg3YSC2gRAOF_aX9a9tY iframe {
        height: 1100px !important;
    }
}

/* Animations sophistiquées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
}

/* Animation des cartes projets */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 0.1;
}

/* Système de filtres pour les projets */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-button:hover,
.filter-button.active {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Animation des compétences */
.skill-item {
    animation: scaleIn 0.5s ease forwards;
    opacity: 0;
}

.skill-item:hover {
    animation: borderGlow 2s infinite;
}

.skill-item i {
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.2);
}

/* Amélioration des tags */
.project-tags span,
.skill-tag {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-tags span:hover,
.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.project-tags span::before,
.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-tags span:hover::before,
.skill-tag:hover::before {
    transform: translateX(100%);
}

/* Animation du header */
#header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header.scrolled {
    background: rgba(27, 31, 34, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Animation des liens de navigation */
#header nav ul li a {
    position: relative;
    overflow: hidden;
}

#header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

#header nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Styles pour les pages de projets individuels */
.project-page {
    padding-top: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.project-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-color);
    position: relative;
    flex: 1;
    text-align: center;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item i {
    color: var(--accent-color);
}

.project-banner {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.project-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-banner:hover img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(27, 31, 34, 0.8), rgba(27, 31, 34, 0.6));
}

.project-description {
    background: rgba(27, 31, 34, 0.8);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.project-description h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.project-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: rgba(27, 31, 34, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.sidebar-section h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-item {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.tech-item:hover {
    background: rgba(100, 255, 218, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.15);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(27, 31, 34, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.nav-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.2rem;
}

@media screen and (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .project-banner {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .project-page {
        padding: 1rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-banner {
        height: 250px;
    }

    .project-description {
        padding: 1.5rem;
    }

    .project-description h2 {
        font-size: 1.5rem;
    }

    .project-description p {
        font-size: 1rem;
    }

    .project-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Styles pour les sections de maquettes */
.maquette-section {
    background: rgba(27, 31, 34, 0.8);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.maquette-section:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    background: rgba(27, 31, 34, 0.9);
}

.maquette-section h3 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
}

.maquette-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    transition: width 0.3s ease;
}

.maquette-section:hover h3::after {
    width: 150px;
}

.maquette-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.maquette-content-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.maquette-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.maquette-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    background: rgba(27, 31, 34, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.maquette-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.maquette-content ul li:last-child {
    margin-bottom: 0;
}

.maquette-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.maquette-content ul li:hover::before {
    transform: translateX(5px);
}

.maquette-content .gallery-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: rgba(27, 31, 34, 0.5);
    padding: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.maquette-content .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.maquette-content .gallery-item:hover img {
    transform: scale(1.02);
}

.results-list {
    list-style: none;
    padding: 2rem;
    background: rgba(27, 31, 34, 0.6);
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.results-list li {
    position: relative;
    padding: 1rem 1.5rem 1rem 2.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(27, 31, 34, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.05);
    transition: all 0.3s ease;
}

.results-list li:hover {
    transform: translateY(-3px);
    background: rgba(27, 31, 34, 0.6);
    border-color: var(--accent-color);
}

.results-list li::before {
    content: "★";
    position: absolute;
    left: 1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.results-list li:hover::before {
    transform: scale(1.2);
}

@media screen and (max-width: 1024px) {
    .maquette-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .maquette-section {
        padding: 2rem;
        margin-bottom: 2.5rem;
    }

    .results-list {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .maquette-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .maquette-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .maquette-content p {
        font-size: 1rem;
    }

    .maquette-content ul {
        padding: 1rem;
    }

    .maquette-content ul li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .results-list {
        margin: 2rem 0;
    }

    .results-list li {
        font-size: 0.95rem;
        padding: 0.8rem 1rem 0.8rem 2rem;
    }
}

/* Styles pour les sections de projet */
.project-section {
    margin-bottom: 3rem;
    background: rgba(27, 31, 34, 0.8);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.project-section h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.project-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

/* Styles pour les compétences */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skills-group {
    background: rgba(27, 31, 34, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.skills-group h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skills-tags span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.skills-tags span:hover {
    transform: translateY(-2px);
    background: rgba(100, 255, 218, 0.15);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.15);
}

/* Styles pour les blocs de maquette */
.maquette-block {
    background: rgba(27, 31, 34, 0.5);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.maquette-block:last-child {
    margin-bottom: 0;
}

.maquette-block h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.maquette-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.maquette-block ul {
    list-style: none;
    padding: 1.5rem;
    background: rgba(27, 31, 34, 0.4);
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.maquette-block ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.maquette-block ul li:last-child {
    margin-bottom: 0;
}

.maquette-block ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.maquette-block ul li:hover::before {
    transform: translateX(5px);
}

.maquette-image {
    background: rgba(27, 31, 34, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.05);
    margin-top: 2rem;
}

.maquette-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .project-section {
        padding: 1.5rem;
    }

    .project-section h2 {
        font-size: 1.5rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .maquette-block {
        padding: 1.5rem;
    }

    .maquette-block h3 {
        font-size: 1.2rem;
    }

    .maquette-block p {
        font-size: 1rem;
    }

    .maquette-block ul {
        padding: 1rem;
    }
}

