/* Variables et réinitialisation */
:root {
    --dark-bg: #2a3e50;
    --light-bg: #e1d4b7;
    --text-color: #333333;
    --light-text: #e1d4b7;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --font-main: 'Inter', sans-serif;
    --accent-color: #356087;
    --accent-light: #5b799c;
    --accent-dark: #1e3549;
    --gray-light: #c5c5c5;
    --gray-medium: #8f8f8f;
    --gray-dark: #4f4f4f;
    --beige-dark: #c7bea3;
    --beige-light: #f0e9db;
    --shadow-sm: 0 2px 5px rgba(42, 62, 80, 0.15);
    --shadow-md: 0 5px 15px rgba(42, 62, 80, 0.2);
    --shadow-lg: 0 10px 30px rgba(42, 62, 80, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    min-height: 100vh;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

html.has-scroll-smooth {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Classes pour les animations */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-down {
    transform: translateY(-30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.parallax {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Site container */
.site-container {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Menu button */
.button {
    --radius: 100px;
    outline: none;
    cursor: pointer;
    border: 0;
    border-radius: var(--radius);
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    box-shadow:
            inset 0 0.3rem 0.9rem rgba(91, 121, 156, 0.3),
            inset 0 -0.1rem 0.3rem rgba(30, 53, 73, 0.7),
            inset 0 -0.4rem 0.9rem rgba(91, 121, 156, 0.5),
            0 3rem 3rem rgba(30, 53, 73, 0.3),
            0 1rem 1rem -0.6rem rgba(30, 53, 73, 0.8);
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.button .wrap {
    font-size: 25px;
    font-weight: 500;
    color: var(--light-text);
    padding: 16px 25px;
    border-radius: inherit;
    position: relative;
    overflow: hidden;
}

.button .wrap p span:nth-child(2) {
    display: none;
}

.button:hover .wrap p span:nth-child(1) {
    display: none;
}

.button:hover .wrap p span:nth-child(2) {
    display: inline-block;
}

.button .wrap p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    transition: all 0.2s ease;
    transform: translateY(2%);
}

.button .wrap::before,
.button .wrap::after {
    content: "";
    position: absolute;
    transition: all 0.3s ease;
}

.button .wrap::before {
    left: -15%;
    right: -15%;
    bottom: 25%;
    top: -100%;
    border-radius: 50%;
    background-color: rgba(225, 212, 183, 0.12);
}

.button .wrap::after {
    left: 6%;
    right: 6%;
    top: 12%;
    bottom: 40%;
    border-radius: 22px 22px 0 0;
    box-shadow: inset 0 10px 8px -10px rgba(225, 212, 183, 0.8);
    background: linear-gradient(
            180deg,
            rgba(225, 212, 183, 0.3) 0%,
            rgba(30, 53, 73, 0) 50%,
            rgba(30, 53, 73, 0) 100%
    );
}

.button:hover {
    background-color: var(--accent-dark);
    box-shadow:
            inset 0 0.3rem 0.5rem rgba(91, 121, 156, 0.4),
            inset 0 -0.1rem 0.3rem rgba(30, 53, 73, 0.7),
            inset 0 -0.4rem 0.9rem rgba(91, 121, 156, 0.7),
            0 3rem 3rem rgba(30, 53, 73, 0.3),
            0 1rem 1rem -0.6rem rgba(30, 53, 73, 0.8);
}

.button:hover .wrap::before {
    transform: translateY(-5%);
}

.button:hover .wrap::after {
    opacity: 0.4;
    transform: translateY(5%);
}

.button:hover .wrap p {
    transform: translateY(-4%);
}

.button:active {
    transform: translateY(4px);
}

/* Logo top right */
.logo-top-right {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo-top-right:hover {
    transform: scale(1.1);
}

/* Main content */
.main-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 120px 60px;
    position: relative;
    z-index: 2;
}

/* Section Accueil */
#accueil {
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.home-title {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--beige-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(30, 53, 73, 0.2);
}

.home-subtitle {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--beige-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(30, 53, 73, 0.2);
}

.home-design {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 40px;
    color: var(--accent-light);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -0.02em;
}

.home-description {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 45px;
    opacity: 0;
    transform: translateY(30px);
    color: var(--beige-light);
}

.discover-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 5px 15px rgba(53, 96, 135, 0.4);
}

.discover-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 60px;
    background-color: rgba(30, 53, 73, 0.8);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.appear .footer-logo {
    opacity: 1;
    transform: translateY(0);
}

.footer-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.section.appear .footer-text {
    opacity: 1;
    transform: translateY(0);
}

.footer-text p {
    font-size: 0.9rem;
    color: var(--beige-dark);
}

.footer-social {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.2s;
}

.section.appear .footer-social {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-counter {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-light);
    opacity: 0.9;
    text-shadow: 0 5px 15px rgba(53, 96, 135, 0.4);
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
    opacity: 0.8;
    width: 100%;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background-color: rgba(225, 212, 183, 0.2);
    margin: 15px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--accent-light);
    transition: width 0.3s ease;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--accent-light);
    z-index: 1000;
    transition: width 0.2s ease;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top i {
    color: var(--light-text);
    font-size: 1.2rem;
}

/* Curseur personnalisé */
.cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-light);
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(91, 121, 156, 0.2);
    z-index: 9998;
    pointer-events: none;
    transition: transform 0.2s, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-grow {
    width: 40px;
    height: 40px;
    background-color: rgba(225, 212, 183, 0.7);
}

/* CV stars */
.cv-star {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0.1;
    z-index: 0;
    transition: transform 3s ease-in-out, opacity 1s ease;
}

.cv-star-top-right {
    top: 50px;
    right: 100px;
    animation: starFloat 8s ease-in-out infinite;
}

.cv-star-center-left {
    top: 50%;
    left: 100px;
    animation: starFloat 10s ease-in-out infinite 2s;
}

.cv-star-bottom-right {
    bottom: 100px;
    right: 150px;
    animation: starFloat 9s ease-in-out infinite 1s;
}

.cv-star-top-left {
    top: 80px;
    left: 120px;
    animation: starFloat 7s ease-in-out infinite 3s;
}

.cv-star-top-center {
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    animation: starFloat 8s ease-in-out infinite 1.5s;
}

.cv-star-bottom-left {
    bottom: 80px;
    left: 100px;
    animation: starFloat 9s ease-in-out infinite 0.5s;
}

.cv-star-bottom-center {
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    animation: starFloat 7s ease-in-out infinite 2.5s;
}

@keyframes starFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.section:hover .cv-star {
    opacity: 0.15;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .home-title, .home-subtitle, .home-design {
        font-size: 5.5rem;
    }

    .section-title {
        font-size: 4rem;
    }

    .profile-picture {
        height: 60vh;
        right: 40px;
    }

    .section {
        padding: 100px 40px;
    }
}

@media screen and (max-width: 992px) {
    .home-title, .home-subtitle, .home-design {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }



    .nav-link {
        font-size: 2.2rem;
    }

    .sidebar {
        width: 300px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 80px 40px;
    }

    .home-content {
        max-width: 70%;
    }
}

@media screen and (max-width: 768px) {
    .home-title, .home-subtitle, .home-design {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .home-description {
        max-width: 100%;
    }

    .profile-picture {
        height: 40vh;
        right: 10px;
        opacity: 0.5;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -30px;
        width: 15px;
        height: 15px;
    }

    .section {
        padding: 60px 30px;
    }

    .home-content {
        max-width: 90%;
    }

    .cursor, .cursor-follower {
        display: none;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    .home-title, .home-subtitle, .home-design {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .button {
        top: 20px;
        left: 20px;
    }

    .button .wrap {
        font-size: 18px;
        padding: 12px 20px;
    }

    .logo-top-right {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .profile-picture {
        display: none;
    }

    .section {
        padding: 50px 20px;
    }

    .sidebar {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .discover-button {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }

    .home-content {
        max-width: 100%;
    }

    .project-card {
        height: auto;
    }

    .project-content {
        position: relative;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Section Accueil - Particles.js */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: transparent;
}

/* Animation delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Animation helpers */
.animated {
    opacity: 1;
    transform: none;
} translateY(-5px);
box-shadow: 0 8px 25px rgba(53, 96, 135, 0.6);
}

.discover-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.discover-button:hover i {
    transform: translateX(5px);
}

.profile-picture {
    position: absolute;
    bottom: 0;
    right: 80px;
    height: 75vh;
    width: auto;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transform: translateX(50px);
    filter: drop-shadow(0 10px 20px rgba(30, 53, 73, 0.3));
    transition: transform 0.5s ease;
}

#accueil:hover .profile-picture {
    transform: scale(1.02) translateX(0);
}

/* Circle elements */
.circle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.05;
    z-index: -1;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
}

/* Menu latéral */
./* Améliorations CSS pour un menu plus fluide */

    /* État de transition du menu */
.menu-transitioning {
    pointer-events: none; /* Empêche les clics multiples pendant la transition */
}

/* Amélioration des transitions pour le sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Bezier plus fluide */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    box-shadow: 5px 0 30px rgba(30, 53, 73, 0.3);
    will-change: transform; /* Optimisation pour les animations */
    -webkit-backface-visibility: hidden; /* Correction pour les problèmes de flou */
    backface-visibility: hidden;
}

.sidebar.active {
    transform: translateX(0);
    pointer-events: auto;
}

/* Ajout d'un effet de flou et assombrissement pour l'arrière-plan quand le menu est ouvert */
.sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 53, 73, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: -1;
}

.sidebar.active::before {
    opacity: 1;
    visibility: visible;
}

/* Amélioration de l'animation des liens */
.nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: -1px;
    will-change: transform, opacity; /* Optimisation pour les animations */
}

.nav-link:hover {
    color: var(--accent-light);
    transform: translateX(10px) !important;
}

/* Effet de ligne sous les liens plus élégant */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-light);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Transition accélérée */
}

.nav-link:hover::after {
    width: 100%;
}

/* Animation pour le bouton de menu */
.button {
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.button:hover {
    transform: translateY(-3px) scale(1.03);
}

.button:active {
    transform: translateY(2px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Animation du logo en haut à droite */
.logo-top-right {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-top-right:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Animation plus élégante pour le footer de la barre latérale */
.sidebar-footer {
    padding: 0 40px;
    margin-bottom: 20px;
    opacity: 0; /* Sera animé par JS */
    transform: translateY(20px); /* Sera animé par JS */
}

.sidebar-logo {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Meilleure réactivité mobile */
@media screen and (max-width: 576px) {
    .sidebar {
        width: 100%;
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-link {
        font-size: 2.2rem; /* Taille légèrement réduite pour mobile */
    }

    #closeButton {
        top: 20px;
        left: 20px;
    }
}}

/* Dans le menu latéral */
.nav {
    padding: 0 40px;
    margin-top: 100px;
}

.nav-list {
    list-style-type: none;
}

.nav-item {
    margin-bottom: 40px;
    overflow: hidden;
}

.nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    transition: var(--transition);
    letter-spacing: -1px;
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.sidebar.active .nav-link {
    transform: translateY(0);
    opacity: 1;
}

.sidebar.active .nav-item:nth-child(1) .nav-link { transition-delay: 0.1s; }
.sidebar.active .nav-item:nth-child(2) .nav-link { transition-delay: 0.2s; }
.sidebar.active .nav-item:nth-child(3) .nav-link { transition-delay: 0.3s; }
.sidebar.active .nav-item:nth-child(4) .nav-link { transition-delay: 0.4s; }

.nav-link:hover {
    color: var(--accent-light);
    transform: translateX(10px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer sidebar */
.sidebar-footer {
    padding: 0 40px;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

/* Social links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    font-size: 1.5rem;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-light);
    transform: translateY(-5px);
}

/* Section titles */
.section-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 80px;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
    color: var(--light-text);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120px;
    height: 4px;
    background-color: var(--accent-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section.appear .section-title {
    opacity: 1;
    transform: translateY(0);
}

.section.appear .section-title::after {
    transform: scaleX(1);
}

/* À propos section */
#a-propos {
    background-color: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.appear .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--beige-light);
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease 0.2s;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.section.appear .about-image {
    opacity: 1;
    transform: translateX(0);
}

/* Timeline */
.timeline {
    margin-top: 50px;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--accent-light);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.appear .timeline-item {
    opacity: 1;
    transform: translateX(0);
}

.section.appear .timeline-item:nth-child(1) { transition-delay: 0.1s; }
.section.appear .timeline-item:nth-child(2) { transition-delay: 0.2s; }
.section.appear .timeline-item:nth-child(3) { transition-delay: 0.3s; }

.timeline-dot {
    position: absolute;
    left: -50px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-light);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(91, 121, 156, 0.3);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--beige-light);
}

.timeline-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--beige-dark);
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.skill {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.skill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--accent-dark);
}

.section.appear .skill {
    opacity: 1;
    transform: translateY(0);
}

.section.appear .skill:nth-child(1) { transition-delay: 0.1s; }
.section.appear .skill:nth-child(2) { transition-delay: 0.15s; }
.section.appear .skill:nth-child(3) { transition-delay: 0.2s; }
.section.appear .skill:nth-child(4) { transition-delay: 0.25s; }
.section.appear .skill:nth-child(5) { transition-delay: 0.3s; }
.section.appear .skill:nth-child(6) { transition-delay: 0.35s; }

/* Projets section */
#projets {
    background-color: var(--dark-bg);
}

.projects-subtitle {
    font-size: 2rem;
    margin: 80px 0 40px;
    color: var(--light-text);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.appear .projects-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Swiper styles */
.swiper {
    width: 100%;
    padding-bottom: 50px;
    overflow: visible;
}

.swiper-slide {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.project-card {
    position: relative;
    background-color: var(--beige-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    height: 400px;
}

.section.appear .project-card {
    opacity: 1;
    transform: translateY(0);
}

.section.appear .project-card:nth-child(2) {
    transition-delay: 0.1s;
}

.section.appear .project-card:nth-child(3) {
    transition-delay: 0.2s;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--beige-light);
    border-top: 1px solid rgba(30, 53, 73, 0.05);
}

.project-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-bg);
}

.project-description {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-bottom: 18px;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--accent-dark);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
#contact {
    background-color: var(--dark-bg);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.contact-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 25px;
    background-color: rgba(225, 212, 183, 0.05);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.section.appear .contact-group {
    opacity: 1;
    transform: translateY(0);
}

.section.appear .contact-group:nth-child(2) {
    transition-delay: 0.1s;
}

.section.appear .contact-group:nth-child(3) {
    transition-delay: 0.2s;
}

.contact-group i {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.contact-title {
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--beige-dark);
}

.contact-link, .download-link {
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link::after, .download-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-link:hover::after, .download-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-link:hover, .download-link:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

/* Formulaire de contact */
.contact-form {
    margin-top: 60px;
    background-color: rgba(225, 212, 183, 0.05);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.appear .contact-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light-text);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--beige-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(225, 212, 183, 0.1);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(225, 212, 183, 0.05);
    color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(91, 121, 156, 0.2);
    outline: none;
    background-color: rgba(225, 212, 183, 0.1);
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 60px;
    background-color: rgba(30, 53, 73, 0.8);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.appear .footer-logo {
    opacity: 1;
    transform: translateY(0);
}

.footer-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.section.appear .footer-text {
    opacity: 1;
    transform: translateY(0);
}

.footer-text p {
    font-size: 0.9rem;
    color: var(--beige-dark);
}

.footer-social {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.2s;
}

.section.appear .footer-social {
    opacity: 1;
    transform: translateY(0);
}

/* Section Accueil - Particles.js */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: transparent;
}

/* Animation delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Animation helpers */
.animated {
    opacity: 1;
    transform: none;
}

/* Styles pour la section Contact restructurée */

/* Layout général de la section contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Styles de base pour les conteneurs */
.contact-form-container,
.contact-info-container {
    background-color: rgba(225, 212, 183, 0.05);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover,
.contact-info-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Styles du formulaire */
.contact-form-container {
    padding: 40px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--beige-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(225, 212, 183, 0.1);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(225, 212, 183, 0.05);
    color: var(--light-text);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e1d4b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(91, 121, 156, 0.2);
    outline: none;
    background-color: rgba(225, 212, 183, 0.1);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.form-consent label {
    font-size: 0.85rem;
    color: var(--beige-dark);
    line-height: 1.4;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* Styles pour la carte de contact */
.contact-card {
    display: flex;
    padding: 30px;
    background-color: rgba(53, 96, 135, 0.1);
    border-radius: 12px 12px 0 0;
    gap: 20px;
    align-items: center;
}

.contact-photo {
    flex-shrink: 0;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(30, 53, 73, 0.3);
}

.contact-details {
    flex-grow: 1;
}

.contact-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--light-text);
}

.contact-position {
    font-size: 0.9rem;
    color: var(--beige-dark);
    margin-bottom: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-method i {
    font-size: 1.1rem;
    color: var(--accent-light);
    width: 20px;
    text-align: center;
}

.contact-link {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-light);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-light);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    background-color: rgba(53, 96, 135, 0.2);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(30, 53, 73, 0.3);
}

/* Indicateur de disponibilité */
.availability-indicator {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(225, 212, 183, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.available .status-dot {
    background-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.not-available .status-dot {
    background-color: #F44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}

.status-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--beige-light);
}

.download-cv-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--accent-light);
    color: var(--light-text);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-cv-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Carte map */
.contact-map {
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    height: 200px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(70%) brightness(0.8);
    transition: all 0.5s ease;
}

.contact-map:hover .map-placeholder {
    filter: grayscale(0) brightness(1);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(30, 53, 73, 0.9), rgba(30, 53, 73, 0));
    padding: 20px;
    color: var(--light-text);
}

.map-overlay p {
    margin-bottom: 5px;
    font-weight: 600;
}

.map-link {
    color: var(--beige-light);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: var(--accent-light);
}

.map-link i {
    font-size: 0.8rem;
}

/* Styles réactifs */
@media screen and (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        order: 2;
    }

    .contact-info-container {
        order: 1;
    }
}

@media screen and (max-width: 768px) {
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-method {
        justify-content: center;
    }

    .contact-socials {
        justify-content: center;
    }

    .availability-indicator {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .contact-form-container,
    .contact-info-container {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }
}
/* Styles pour la section projets améliorée */

/* Styles de base pour les projets mis en avant */
.featured-projects {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-bottom: 80px;
}

.featured-project {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.appear .featured-project {
    opacity: 1;
    transform: translateY(0);
}

.section.appear .featured-project:nth-child(2) {
    transition-delay: 0.2s;
}

.section.appear .featured-project:nth-child(3) {
    transition-delay: 0.4s;
}

.section.appear .featured-project:nth-child(4) {
    transition-delay: 0.6s;
}

.project-card-featured {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    background-color: transparent;
}

/* Gestion des images */
.project-image-container {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    height: 340px;
}

.project-image-featured {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.featured-project:hover .project-image-featured {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Styles du contenu du projet */
.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    z-index: 2;
}

.project-title-container {
    margin-bottom: 15px;
}

.project-title-featured {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--light-text);
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 500;
}

.project-description-featured {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--beige-light);
    margin-bottom: 20px;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    padding: 6px 14px;
    background-color: rgba(53, 96, 135, 0.2);
    color: var(--beige-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.project-link-featured {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.project-link-featured i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-link-featured:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-link-featured:hover i {
    transform: translateX(5px);
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .featured-projects {
        gap: 70px;
    }

    .project-card-featured {
        flex-direction: column !important;
        gap: 30px;
    }

    .right-aligned .project-image-container,
    .left-aligned .project-image-container {
        order: 1;
    }

    .right-aligned .project-info,
    .left-aligned .project-info {
        order: 2;
        padding: 0;
    }

    .project-title-featured {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .featured-projects {
        gap: 50px;
    }

    .project-title-featured {
        font-size: 1.8rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-description-featured {
        font-size: 0.95rem;
    }

    .tech-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .project-link-featured {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .project-image-container {
        height: 250px;
    }
}

@media screen and (max-width: 576px) {
    .featured-projects {
        gap: 40px;
    }

    .project-image-container {
        height: 200px;
    }

    .project-title-featured {
        font-size: 1.6rem;
    }

    .project-techs {
        gap: 8px;
        margin-bottom: 20px;
    }
}
/* Menu latéral - styles unifiés */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 0;
    box-shadow: 5px 0 30px rgba(30, 53, 73, 0.3);
    will-change: transform;
    backface-visibility: hidden;
}

.sidebar.active {
    transform: translateX(0);
}

/* Effet de fond pour le menu ouvert */
.sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 53, 73, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: -1;
}

.sidebar.active::before {
    opacity: 1;
    visibility: visible;
}

/* Liens de navigation */
.nav {
    padding: 0 40px;
    margin-top: 100px;
}

.nav-list {
    list-style-type: none;
}

.nav-item {
    margin-bottom: 40px;
    overflow: hidden;
}

.nav-link {
    text-decoration: none;
    color: var(--light-text);
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: -1px;
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.sidebar.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:hover {
    color: var(--accent-light);
    transform: translateX(10px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Animation séquentielle des liens */
.sidebar.active .nav-item:nth-child(1) .nav-link { transition-delay: 0.1s; }
.sidebar.active .nav-item:nth-child(2) .nav-link { transition-delay: 0.2s; }
.sidebar.active .nav-item:nth-child(3) .nav-link { transition-delay: 0.3s; }
.sidebar.active .nav-item:nth-child(4) .nav-link { transition-delay: 0.4s; }

/* Footer du menu */
.sidebar-footer {
    padding: 0 40px;
    margin-bottom: 20px;
}
