:root {
    /* Couleurs de base */
    --primary: #4361ee;        /* Bleu vif mais professionnel */
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    
    /* Nouveaux dégradés de gris */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

.high-contrast {
    --primary: #000000 !important;
    --primary-dark: #000000 !important;
    --secondary: #000000 !important;
    
    background-color: white !important;
    color: black !important;
    
    /* Applique à tous les éléments */
    * {
        background-color: white !important;
        color: black !important;
        border-color: black !important;
    }
    
    /* Exceptions pour certains éléments */
    .btn-outline-primary {
        border-color: black !important;
        color: black !important;
    }
    
    .text-muted {
        color: #333 !important;
    }
    
    /* Barres de progression */
    .progress-bar {
        background-color: black !important;
    }
    
    /* Cercles de compétences */
    .skill-circle-progress {
        stroke: black !important;
    }
}

.light-theme {
    /* Fond */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-100);
    --bg-tertiary: var(--gray-200);
    
    /* Texte */
    --nav-link-a: var(--gray-900);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-600);
    
    /* Bordures */
    --border-color: var(--gray-300);
    
    /* Composants */
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    
    /* Effets */
    --hover-lighten: rgba(255, 255, 255, 0.5);
}

.dark-theme {
    /* Fond - Noir profond avec nuance bleutée */
    --bg-primary: #0a0e17;
    --bg-secondary: #121a2b;
    --bg-tertiary: #1a243a;
    
    /* Texte - Blanc cassé avec nuances */
    --nav-link-a: var(--gray-100);
    --text-primary: #e0e4eb;
    --text-secondary: #b8c1d1;
    --text-tertiary: #8a94a8;
    
    /* Bordures */
    --border-color: #2a354a;
    
    /* Composants */
    --card-bg: #121a2b;
    --shadow-color: rgba(0, 0, 0, 0.3);
    
    /* Couleurs d'accent adaptées */
    --primary: #5a7cff;       /* Bleu plus clair pour meilleure visibilité */
    --primary-dark: #4a6ce6;
    --secondary: #6d65f0;
    
    /* Effets */
    --hover-lighten: rgba(255, 255, 255, 0.05);
}

.progress-container {
    background-color: transparent;
}

#highContrastToggle{
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

#scrollToTopBtn {
    bottom: 75px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 99;
    transition: all 0.3s ease;
    opacity: 0.8;
}

#scrollToTopBtn:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.animate-welcome-out {
    animation: fadeOut 0.5s forwards;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--bg-tertiary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-bg-primary {
    background: var(--card-bg);
}

.card-bg-secondary {
    background: var(--border-color);
}

.text-primary {
    color: var(--gray-900);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

/* Navigation */

/* ===== HEADER DYNAMIQUE ===== */
header.scrolled {
    background-color: color-mix(in srgb, var(--bg-primary), transparent 20%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* ===== MENU BURGER SUR MOBILE ===== */
@media (max-width: 992px) {
    /* Fond du header quand le menu est ouvert */
    header.menu-open {
        background-color: var(--bg-primary) !important;
        backdrop-filter: blur(0);
    }

    /* Style du menu déroulant */
    .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 0 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        /* max-height: calc(100vh - 80px); */
        height: 100vh;
        overflow-y: auto;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    /* Liens du menu mobile */
    .nav-links {
        flex-direction: column;
        gap: 5px;
    }

    .nav-links li {
        margin-left: 0 !important;
    }

    /* Bouton burger visible */
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
}

/* ===== CONTRASTES POUR LE THÈME SOMBRE ===== */
.dark-mode header {
    --bg-primary: rgba(15, 15, 15, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/*  */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: color-mix(in srgb, var(--bg-primary), transparent 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    transition: left 0.3s ease;
}
    
.nav-links.active {
    left: 0;
}


.nav-links li{
    margin-left: 2rem;
}

.nav-links li,
.nav-links li button {
    cursor: pointer;
}

.nav-links a {
    color: var(--nav-link-a);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.theme-btn-mobile {
    display: none;
}

.theme-btn-desktop{
    position: relative;
    background: var(--light);
    color: var(--light);
    width:  52px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 100px;
}

.theme-btn-desktop.light {
    background: linear-gradient(45deg, hsl(33, 94%, 55%), hsl(46, 100%, 65%));
}

.theme-btn-desktop.dark {
    background: linear-gradient(45deg, hsl(225, 100%, 60%), hsl(194, 85%, 62%));
}

.theme-btn-desktop::before {
    content: '';
    position: absolute;
    background: var(--primary);
    width:  21px;
    height: 21px;
    border-radius: 30px;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px -2px hsla(0, 0%, 0%, 0.05);
    z-index: 2;
}

.theme-btn-desktop.dark::before { left: calc(100% - 24px); }

@media (max-width: 992px) {
    .theme-btn-desktop{
        display: none;
    }
    .theme-btn-mobile{
        background: var(--light);
        color: var(--light);
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        font-size: 20px;
        border: none;
        /* margin-left: 13em; */
        /* left: 100%; */
    }
    
    :is(.theme-btn-mobile):hover {
        background: var(--dark);
        color: var(--white-color);
    }
    
    .theme-btn-mobile i { display: none; }
    
    .theme-btn-mobile.light .sun,
    .theme-btn-mobile.dark .moon { display: block; }

    #hero #hero-content {
        max-width: 50rem;
    }
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--text-tertiary) 0%, var(--bg-tertiary));
    padding-top: 80px;
}

#hero .container {
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10em;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-content .hero-text p {
    color: var(--gray-700);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

#hero .profession-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    will-change: transform;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

#hero .profession-container .profession-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 13s ease-out infinite;
}

@keyframes professionRotate {
    0%,
    20% {
        transform: rotate(0deg);
    }

    25%,
    45% {
        transform: rotate(-90deg);
    }

    50%,
    70% {
        transform: rotate(-180deg);
    }

    75%,
    95% {
        transform: rotate(-270deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

#hero .profession-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--primary);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 384px;
    background: transparent;
    padding: 13px 0;
}

#hero .profession-box .profession:nth-child(1) i {
    margin-right: 15px;
}

#hero .profession-box .profession:nth-child(2),
#hero .profession-box .profession:nth-child(4) {
    padding-bottom: 20px;
}

#hero .profession i {
    font-size: 3.8rem;
    color: var(--secondary);
}

#hero .profession h3 {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 600;
    color: var(--secondary);
    /* background-color: rgba(255, 255, 255, .2); */
}

#hero .profession-box .circle {
    width: 560px;
    height: 560px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: -1;
}

#hero .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--primary);
    border-right: 384px solid var(--primary);
    border-bottom: 50vh solid var(--primary);
    border-left: 384px solid transparent;
}

#hero .home-img img {
    position: absolute;
    bottom: 0;
    right: 40px;
    pointer-events: none;
    max-width: 480px;
    max-height: 100vh;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* .hero-description {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
} */

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}


#hero .profession-box .profession i {
    font-size: 35px;
}

@media (max-width: 1200px) {
    #hero .profession-container .profession-box {
        right: -10%;
    }

    #hero .profession-container .overlay {
        right: -6%;
    }

    .home-img img {
        right: 0;
    }
}

@media (max-width: 1100px) {
    #hero .profession-container .profession-box {
        right: -15%;
    }

    .home-img img {
        max-width: 420px;
    }
}

@media (max-width: 992px) {
    #hero .profession-container .profession-box {
        right: -35%;
    }

    #hero .profession-container .overlay {
        right: -30%;
    }

    .home-img img {
        display: none;
    }
}

@media (max-width: 896px) {
    #hero .profession-container .profession-box {
        right: -50%;
    }

    #hero .profession-container .overlay {
        right: -43%;
    }
}

@media (max-width: 768px) {
    #hero .hero-content {
        padding-top: 1em;
    }

    #hero .profession-container {
        left: 0;
        width: 100%;
        height: 100%;
    }

    #hero .profession-container .profession-box {
        position: fixed;
        top: 400px;
        left: 0;
        width: 100%;
    }

    #hero .profession-box .profession {
        padding: 0 13px;
        left: auto;
        transform-origin: 0;
    }

    #hero .profession-box .profession:nth-child(1) {
        transform: rotate(-90deg) translate(-85px, -100px);
    }

    #hero .profession-box .profession:nth-child(1) i {
        margin-right: 0;
    }

    #hero .profession-box .profession:nth-child(2) {
        transform: rotate(0deg) translate(0, -180px);
    }

    #hero .profession-box .profession:nth-child(3) {
        transform: rotate(90deg) translate(-70px, -265px);
    }

    #hero .profession-box .profession:nth-child(4) {
        transform: rotate(180deg) translate(-160px, -185px);
    }

    #hero .profession-box .circle {
        position: fixed;
        width: 370px;
        height: 370px;
        z-index: -1;
    }

    #hero .profession-container .overlay {
        position: fixed;
        top: 50rem;
        left: 50%;
        right: 0;
        transform: rotate(90deg) translate(-50%, 50%) scaleY(3);
        border-width: 23.9rem;
        /* border-top: 384px solid transparent;
        border-right: 384px solid var(--primary);
        border-bottom: 50vh solid var(--primary);
        border-left: 50vh solid var(--primary); */
    }
}

@media (max-width: 450px) {
    #hero .profession-box .profession:nth-child(1),
    #hero .profession-box .profession:nth-child(2),
    #hero .profession-box .profession:nth-child(3),
    #hero .profession-box .profession:nth-child(4) {
        padding-top: 20em;
    }
    #hero .profession-box .profession:nth-child(1){ /* Web Dev */
        padding-top: 16em;
        padding-left: 35px;
    }

    #hero .profession-box .profession:nth-child(2){ /* Mobile Dev */
        padding-top: 18em;
    }

    #hero .profession-box .profession:nth-child(3) { /* Web Designer */
        /* padding: 22em 0 0 40px; */
        padding-left: 40px;
    }

    #hero .profession-box .profession:nth-child(4){ /* UI/UX */
        padding-top: 18em;
        padding-left: 45px;
    }

    #hero .profession-box .profession:nth-child(1) {
        transform: rotate(-90deg) translate(-110px, -220px);
    }

    #hero .profession-box .profession:nth-child(2) {
        transform: rotate(0deg) translate(5px, -325px);
    }

    #hero .profession-box .profession:nth-child(3) {
        transform: rotate(90deg) translate(-105px, -440px);
    }

    #hero .profession-box .profession:nth-child(4) {
        transform: rotate(180deg) translate(-210px, -325px);
    }

    #hero .profession-container .overlay {
        top: 50rem;
    }
}

/* Services Section */
#about .card .card-header .img {
    width: 100%;
    height: 300px;
    background-image: url('images/profile_images.jpg');
    background-size: cover;
    background-position: center;
}

.service-card:hover {
    transform: translateY(-10px);
    transition: 0.5s;
    box-shadow: 0 15px 30px var(--shadow-color);
    background-color: color-mix(in srgb, var(--card-bg), var(--hover-lighten));
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.quote-box {
    transition: all 0.5s ease;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

/* Curseur clignotant pour l'effet machine à écrire */
#quote-text::after, #quote-author::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}


/* Projects Section */
#projects {
    background-color: var(--light-gray);
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.project-tag i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px var(--shadow-color);
    background-color: color-mix(in srgb, var(--card-bg), var(--hover-lighten));
    transition: 0.5s;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.testimonial-card {
    border-radius: 10px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(100%);
    transition-delay: 0.1s;
    display: flex;
    flex-direction: column;
}

.testimonial-card .project-image {
    height: 350px;
    overflow: hidden;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
    display: block;
    transform: translateX(0);
    z-index: 10;
}

.testimonial-details {
    background: var(--bg-secondary);
}

.testimonial-card.prev {
    transform: translateX(-100%);
}

.testimonial-card.next {
    transform: translateX(100%);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    z-index: 1;
}

.project-image {
    position: relative;
}

.image-container {
    display: inline-block;
    position: relative;
    width: 100%;
}

.testimonial-link,
.project-link {
    z-index: 2;
}

.testimonial-link a {
    text-shadow: 0 0 5px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

.testimonial-link a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .testimonial-card .row {
        flex-direction: column;
    }

    .testimonial-card .project-image {
        height: auto;
        max-height: 250px;
    }

    .testimonial-card .col-md-7, 
    .testimonial-card .col-md-5 {
        width: 100%;
        max-width: 100%;
    }
    
    .testimonial-carousel {
        min-height: auto; /* Supprimez la hauteur minimale en mobile */
    }
}

/* Controles */
.prev-btn,
.next-btn {
    top: 50%;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--secondary);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .project-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Indicateurs */
.indicators-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.dot {
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: #adb5bd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;

    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .indicators-controls {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dot {
        width: 10px;
    }
}

/* Projects */
/* Filtres */
.btn-outline-primary {
    position: relative;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    border-radius: 50px !important;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* .btn-outline-primary:not(.active):hover {
    background-color: rgba(67, 97, 238, 0.1);
} */

/* Portfolio */
.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hide {
    transform: scale(0.9);
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Cartes de projet */
.project-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

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

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

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

/* Responsive */
@media (max-width: 576px) {
    .btn-outline-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .project-image {
        height: 180px;
    }
}

/* Timeline Section */
#experience {
    background-color: var(--bg-secondary);
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 30px;
    z-index: 10;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -12px;
}

.timeline-item.right::after {
    left: -12px;
}

.timeline-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px var(--shadow-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    transition: 0.5s;
    box-shadow: 0 15px 35px var(--shadow-color);
    background-color: color-mix(in srgb, var(--card-bg), var(--hover-lighten));
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.timeline-subtitle i {
    margin-right: 0.5rem;
}

.timeline-description {
    margin-bottom: 1.5rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: var(--light-gray);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Skills Section */
#skills {
    background-color: var(--bg-secondary);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.skill-category-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.skill-category-title {
    flex: 1;
}

.skill-category-progress {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.skill-category-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary);
    width: 0;
    transition: width 1.5s ease;
}

.skill-category-progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-weight: 600;
    color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.skill-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.skill-circle-bg {
    fill: none;
    stroke: var(--light-gray);
    stroke-width: 8;
}

.skill-circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1.5s ease;
}

.skill-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

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

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
/* Section Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-items {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
    border-color: var(--primary);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p, 
.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary);
}

/* Formulaire */
.contact-form-wrapper {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

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

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    /* border: 1px solid var(--border-color); */
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
    min-height: 180px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Effet de survol personnalisé */
.hover-lift {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
    border-color: var(--primary);
}

/* Bordures de formulaire */
.form-control.border-2 {
    border-width: 2px;
    border-color: var(--light-gray);
}

.form-control.border-2:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* Adaptation dark mode */
.dark-theme .hover-lift {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color);
}

.dark-theme .form-control {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.dark-theme .form-control:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.tiktok-typing {
    display: none;
    justify-content: center;
    align-items: center;
    height: 20px;
}

.tiktok-typing.active{
    display: flex;
}

.tiktok-typing .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aaa;
    animation: tiktokTyping 1.4s infinite ease-in-out;
}

.tiktok-typing .dot:nth-child(1) { animation-delay: 0s; }
.tiktok-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.tiktok-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes tiktokTyping {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* .tiktok-typing {
    gap: 6px;
    height: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #000;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
} */

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1rem;
        gap: 1rem;
    }
}

/* Footer */
/* Styles pour le footer */
.mobile-accordion {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-accordion .accordion-icon {
    transition: transform 0.3s ease;
}

/* Version mobile */
@media (max-width: 767.98px) {
    .mobile-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-accordion.active .accordion-icon {
        transform: rotate(180deg);
    }
    
    .mobile-accordion.active + .mobile-accordion-content {
        max-height: 500px; /* Ajustez selon votre contenu */
    }
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.hover-white:hover {
    color: white !important;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    background-color: var(--primary) !important;
    color: white !important;
}

/* Adaptation dark mode */
.dark-theme footer {
    background-color: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color);
}

.dark-theme .text-muted {
    color: var(--text-secondary) !important;
}

.dark-theme .border-secondary {
    border-color: var(--border-color) !important;
}

.dark-theme .bg-dark {
    background-color: var(--bg-secondary) !important;
}

.dark-theme .form-control.bg-dark {
    background-color: var(--bg-tertiary) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        /* padding-top: 5em; */
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 21px;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Animation */
/* Animations de base */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Classes d'animation réutilisables */
.card-hover-effect {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover-effect:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.btn-hover-effect {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hover-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn-hover-effect:hover::after {
  transform: translateX(0);
}

.animate-on-scroll{
  animation: animated 1s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideRight 0.8s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease infinite;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }