/* Variables CSS */
:root {
    --primary: #c9133b;
    --accent: #ea6a5a;
    --text: #f2f2f2;
    --background: #1c1b2f;
    --background-light: #2a2844;
    --background-card: #252340;
}

/* Import des polices locales */
@font-face {
    font-family: 'Quiet Sans';
    src: url('assets/font/Flatit\ \ Quiet\ Sans\ Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/font/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/font/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/font/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
    border-left: 1px solid rgba(242, 242, 242, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 0 10px rgba(201, 19, 59, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background-light);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-outline {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.75, -0.27, 0.3, 1.33);
    opacity: 0.6;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-outline.active {
    transform: translate(-50%, -50%) scale(1.2);
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) !important;
}

/* Fade animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quiet Sans', sans-serif;
    font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(28, 27, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(242, 242, 242, 0.1);
    transition: all 0.4s ease;
    /* Animation au chargement */
    animation: fadeInDown 0.8s ease forwards;
}

/* Animation fade in down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header au scroll - plus compact */
.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(28, 27, 47, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled .logo {
    height: 35px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: height 0.4s ease;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    display: none;
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cv {
    background: var(--background-light);
    padding: 0.7rem 2rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Neumorphism effect */
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 19, 59, 0.3);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link-cv::after {
    display: none;
}

.nav-link-cv::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-cv:hover {
    color: var(--text);
    transform: translateY(-3px);
    /* Ombre plus prononcée au hover */
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.08),
        inset 2px 2px 4px rgba(201, 19, 59, 0.2);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.nav-link-cv:hover::before {
    opacity: 1;
}

.nav-link-cv:active {
    transform: translateY(-1px);
    /* Effet enfoncé au clic */
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.05),
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 2rem 0 0;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 8rem 0;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(242, 242, 242, 0.9);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-description .highlight {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 19, 59, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.character {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Skills Section */
.hero-skills {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(242, 242, 242, 0.1);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background) 100%);
}

.skills-title {
    font-size: 1.4rem;
    color: var(--primary);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
    margin-bottom: 1rem;
    text-align: center;
}

/* Carousel Container */
.skills-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.skills-carousel {
    overflow: hidden;
    position: relative;
}

.skills-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--background-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.skill-icon {
    background: var(--background-card);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(242, 242, 242, 0.05);
    cursor: pointer;
    position: relative;
    min-width: 7rem;
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.skill-icon:hover img {
    filter: brightness(1.1);
}


.skill-icon:hover::after {
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.4s;
    opacity: 0;
    gap: 0.3rem;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator svg {
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--background);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: var(--background-card);
    color: var(--text);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--text);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--background-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(242, 242, 242, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.project-category {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 300;
}

/* Animations pour les filtres */
.project-card {
    animation: fadeIn 0.5s ease;
}

.project-card.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--background-light);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-info {
    margin-top: 2rem;
}

.contact-link {
    display: inline-block;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
    padding: 1rem 3rem;
    border: 2px solid var(--primary);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 19, 59, 0.3);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--background);
    border-top: 1px solid rgba(242, 242, 242, 0.1);
}

.footer-text {
    text-align: center;
    color: rgba(242, 242, 242, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .character {
        max-width: 300px;
    }

    .nav {
        gap: 1rem;
    }

    .skills-title {
        font-size: 1.5rem;
    }

    .skills-carousel-container {
        padding: 0 3rem;
    }

    .skill-icon {
        min-width: 70px;
        width: 70px;
        height: 70px;
        padding: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Header mobile en bas */
    .header {
        top: auto;
        bottom: 0;
        padding: 0;
        border-bottom: none;
        border-top: 1px solid rgba(242, 242, 242, 0.1);
        animation: fadeInUp 0.8s ease forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header.scrolled {
        padding: 0;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    }

    .header-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .logo {
        display: none;
    }

    .nav {
        width: 100%;
        gap: 0;
        justify-content: space-around;
        padding: 0.5rem 0;
    }

    .nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-icon {
        display: block;
        width: 24px;
        height: 24px;
        fill: currentColor;
        transition: all 0.3s ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link span {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .nav-link.active {
        color: var(--primary);
    }

    .nav-link.active span {
        opacity: 1;
        max-height: 20px;
    }

    .nav-link.active .nav-icon {
        transform: scale(1.1);
    }

    .nav-link-cv {
        background: transparent;
        padding: 0.5rem 0.3rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
        letter-spacing: 0;
        font-weight: 500;
    }

    .nav-link-cv:hover,
    .nav-link-cv:active {
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .nav-link-cv.active {
        color: var(--primary);
    }

    .hero {
        padding: 4rem 0 5rem;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .skills-carousel-container {
        padding: 0 2.5rem;
    }

    .skill-icon {
        min-width: 60px;
        width: 60px;
        height: 60px;
        padding: 0.8rem;
    }

    .hero-skills {
        padding: 1.5rem 0;
    }

    .scroll-indicator {
        margin-top: 2rem;
        font-size: 0.9rem;
    }

    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }

    /* Ajouter padding en bas pour les sections à cause du header en bas */
    .contact {
        padding-bottom: 8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skills-title {
        font-size: 1.3rem;
    }

    .skills-carousel-container {
        padding: 0 2rem;
    }

    .skill-icon {
        min-width: 50px;
        width: 50px;
        height: 50px;
        padding: 0.6rem;
    }

    .skill-icon::after {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .scroll-indicator {
        font-size: 0.85rem;
    }
}

/* Parcours Page Styles */
.parcours-page {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
    position: relative;
}

.page-title {
    font-size: 3rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease forwards;
}

.parcours-content {
    max-width: 900px;
    margin: 0 auto;
}

.parcours-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(4) {
    animation-delay: 1s;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--background);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(201, 19, 59, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(201, 19, 59, 0.3);
}

.timeline-content {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 15px;
    width: calc(50% - 40px);
    border: 1px solid rgba(242, 242, 242, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 40px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-period {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(242, 242, 242, 0.9);
}

.parcours-conclusion {
    text-align: center;
    margin: 4rem 0 3rem;
    padding: 2rem;
    background: var(--background-card);
    border-radius: 15px;
    border: 1px solid rgba(242, 242, 242, 0.05);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.parcours-conclusion p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .parcours-page {
        padding: 6rem 1.5rem 8rem;
    }

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

    .parcours-intro {
        font-size: 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-description {
        font-size: 0.95rem;
    }

    .parcours-conclusion {
        margin: 3rem 0 2rem;
        padding: 1.5rem;
    }

    .parcours-conclusion p {
        font-size: 1rem;
    }
}

/* Compétences Section */
.competences-section {
    padding: 0;
    background: var(--background);
}

.competence-category {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Alternance des backgrounds */
.competence-category:nth-child(odd) {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 100%);
}

.competence-category:nth-child(even) {
    background: var(--background);
}

.competence-category .container {
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(242, 242, 242, 0.9);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* Projects Carousel */
.projects-carousel-container {
    position: relative;
    margin: 3rem 0;
    padding: 0 4rem;
}

.projects-carousel {
    overflow: hidden;
    border-radius: 15px;
}

.projects-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-slide {
    min-width: calc(100% - 0px);
    flex-shrink: 0;
    background: var(--background-light);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(242, 242, 242, 0.05);
    transition: all 0.3s ease;
}

.project-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.project-slide img, video {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #000;
}

.project-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-card) 100%);
}

.project-placeholder svg {
    stroke: var(--primary);
    margin-bottom: 1rem;
}

.project-placeholder p {
    color: var(--accent);
    font-size: 1.2rem;
    font-style: italic;
}

.project-slide-info {
    padding: 2rem;
}

.project-slide-info h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-slide-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(242, 242, 242, 0.85);
}

/* Tools Carousel */
.tools-carousel-container {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(242, 242, 242, 0.1);
    border-bottom: 1px solid rgba(242, 242, 242, 0.1);
}

.tools-carousel {
    overflow: hidden;
}

.tools-track {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tool-icon {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(242, 242, 242, 0.05);
    cursor: pointer;
    min-width: 5rem;
    width: 5rem;
    height: 5rem;
}

.tool-icon:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Category Footer */
.category-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive - Compétences */
@media (max-width: 968px) {
    .competence-category {
        padding: 4rem 0;
    }

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

    .category-description {
        font-size: 1rem;
    }

    .projects-carousel-container {
        padding: 0 3rem;
    }

    .project-slide img,
    .project-placeholder {
        height: 300px;
    }

    .project-slide-info h4 {
        font-size: 1.3rem;
    }

    .project-slide-info p {
        font-size: 0.95rem;
    }

    .tool-icon {
        min-width: 4rem;
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 768px) {
    .competence-category {
        padding: 4rem 0;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .category-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .projects-carousel-container {
        padding: 0 2.5rem;
    }

    .project-slide img,
    .project-placeholder {
        height: 250px;
    }

    .project-slide-info {
        padding: 1.5rem;
    }

    .project-slide-info h4 {
        font-size: 1.2rem;
    }

    .project-slide-info p {
        font-size: 0.9rem;
    }

    .tools-track {
        gap: 1rem;
    }

    .tool-icon {
        min-width: 3.5rem;
        width: 3.5rem;
        height: 3.5rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .competence-category {
        padding: 3rem 0;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 0.9rem;
    }

    .projects-carousel-container {
        padding: 0 2rem;
    }

    .project-slide img,
    .project-placeholder {
        height: 200px;
    }

    .project-slide-info {
        padding: 1rem;
    }

    .project-slide-info h4 {
        font-size: 1.1rem;
    }

    .project-slide-info p {
        font-size: 0.85rem;
    }

    .tool-icon {
        min-width: 3rem;
        width: 3rem;
        height: 3rem;
        padding: 0.6rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
}
