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

:root {
    --primary-color: #4db5ff;
    --primary-variant: rgba(77, 181, 255, 0.4);
    --bg-color: #1f1f38;
    --bg-variant: #2c2c6c;
    --white: #fff;
    --light: rgba(255, 255, 255, 0.6);
    --transition: all 0.3s ease;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, #4db5ff 0%, #2c2c6c 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('assets/bg-texture.png');
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Améliore les performances sur mobile */
    }
    
    /* Réduire les animations sur mobile pour de meilleures performances */
    .hero-image img {
        animation: none;
    }
    
    .wave {
        animation: none;
    }
    
    /* Optimiser les transitions */
    * {
        transition: none !important;
    }
    
    .nav-item:hover,
    .btn:hover,
    .project-card:hover,
    .contact-card:hover {
        transform: none !important;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--bg-variant);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-pic {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.1);
    border-color: var(--white);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-header h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.sidebar-header p {
    color: var(--light);
    font-size: 0.9rem;
}

    .nav-links {
        padding: 1.5rem 0;
        list-style: none;
        margin-bottom: 6rem;
    }

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    margin: 0.3rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 1001;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

.nav-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-item:hover i,
.nav-item.active i {
    color: var(--white);
}

.nav-item span {
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--white);
    transform: translateX(5px);
    z-index: 10;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
    height: 100vh;
    max-height: none;
}

.section {
    display: none;
    padding: 1rem;
    min-height: 100vh;
    height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
    overflow-y: auto;
}

.section.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-height: 100vh;
}

.section.active {
    display: block;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--light);
    font-size: 1.1rem;
}

/* Home Section */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wave {
    font-size: 2rem;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    line-height: 1;
}

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

.description {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(77, 181, 255, 0.3);
}

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

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.05);
    border-color: var(--white);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg-variant);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--light);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* About Navigation */
.about-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.about-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-variant);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.about-tab:hover,
.about-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.about-tab i {
    font-size: 1rem;
}

/* About Sections */
.about-sections {
    position: relative;
}

.about-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.about-section.active {
    display: block;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

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

.timeline-icon {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(77, 181, 255, 0.3);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-variant);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: var(--transition);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

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

.timeline-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

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

.timeline-details li {
    color: var(--light);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-details li:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Skills Section - Creative Design */
.skills-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.skill-tab {
    background: var(--bg-variant);
    border: 2px solid transparent;
    color: var(--light);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.skill-tab:hover {
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.skill-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(77, 181, 255, 0.3);
}

.skills-content {
    position: relative;
    min-height: 500px;
}

.skill-category {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.skill-category.active {
    display: block;
}

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

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

.category-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-header p {
    color: var(--light);
    font-size: 1.1rem;
}

/* Skills Matrix - Unified Design for All Categories */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

/* Tools - Matrix Design */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.matrix-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-variant);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.matrix-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 181, 255, 0.2), transparent);
    transition: var(--transition);
}

.matrix-item:hover::before {
    left: 100%;
}

.matrix-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(77, 181, 255, 0.3);
}

/* Skill Badge Common Styles */
.skill-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.skill-badge:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(77, 181, 255, 0.2);
    transform: translateY(-3px);
}

.skill-badge img {
    width: auto;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.skill-badge span {
    font-size: 0.9rem;
    color: var(--light);
    text-align: center;
    font-weight: 500;
}

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

.project-card {
    background: var(--bg-variant);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

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

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

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

.project-content {
    padding: 1.5rem;
}

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

.project-content p {
    color: var(--light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Certificates Section - Simple Working Carousel */

.certificates-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.carousel-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bg-variant) 0%, rgba(77, 181, 255, 0.1) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.certificate-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-shrink: 0;
}

.certificate-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(77, 181, 255, 0.2);
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(77, 181, 255, 0.1) 0%, transparent 100%);
    border-radius: 20px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-item:hover::before {
    opacity: 1;
}



/* Styles pour les images et informations des certificats */
.certificate-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.certificate-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.certificate-info p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4db5ff 100%);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(77, 181, 255, 0.3);
}

.certificate-badge i {
    font-size: 1.1rem;
}

/* Animations pour le carrousel simple */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.certificate-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    position: relative;
    z-index: 2;
}

.certificate-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(77, 181, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(77, 181, 255, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.certificate-item:hover .certificate-image::before {
    opacity: 1;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9) contrast(1.1);
}

.certificate-item:hover .certificate-image img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2);
}

.certificate-info {
    padding: 1.8rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
}

.certificate-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.certificate-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    opacity: 0.9;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, 
        rgba(77, 181, 255, 0.9) 0%, 
        rgba(77, 181, 255, 0.7) 100%);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 
        0 8px 20px rgba(77, 181, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.certificate-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(77, 181, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.certificate-badge i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 2rem;
    position: relative;
    z-index: 20;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4db5ff 100%);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(77, 181, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.carousel-btn:hover::before {
    left: 100%;
}

.carousel-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(77, 181, 255, 0.6);
}

.carousel-btn i {
    font-size: 1.4rem;
    z-index: 1;
}

.carousel-indicators {
    display: flex;
    gap: 0.8rem;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.indicator.active::before {
    width: 100%;
    height: 100%;
}

.indicator.active {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(77, 181, 255, 0.7);
}

.indicator:hover {
    transform: scale(1.2);
    background: rgba(77, 181, 255, 0.5);
}

/* Responsive pour le carrousel simple */
@media (max-width: 768px) {
    .certificates-carousel {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .carousel-container {
        height: 500px;
        padding: 1rem;
    }
    
    .certificate-card {
        padding: 1.5rem;
        max-width: 400px;
    }
    
    .certificate-image {
        height: 150px;
    }
    
    .certificate-info h3 {
        font-size: 1.1rem;
    }
    
    .certificate-info p {
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn i {
        font-size: 1.1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 450px;
    }
    
    .certificate-card {
        padding: 1rem;
        max-width: 350px;
    }
    
    .certificate-image {
        height: 120px;
    }
    
    .certificate-info h3 {
        font-size: 1rem;
    }
    
    .certificate-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-indicators {
        order: -1;
    }
}

.certificate-card.featured {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.certificate-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.certificate-card.featured:hover::before {
    left: 100%;
}

.certificate-card.featured:hover {
    transform: translateY(-10px) rotateY(5deg);
    border-color: var(--white);
    box-shadow: 0 20px 40px rgba(77, 181, 255, 0.3);
}

.certificate-image img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.certificate-card.featured:hover .certificate-image img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.certificate-content h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.certificate-card.featured:hover .certificate-content h3 {
    color: var(--primary-color);
    transform: scale(1.05);
}

.certificate-content p {
    color: var(--light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: badgeGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.certificate-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(77, 181, 255, 0.5);
}

.certificate-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.certificate-item:nth-child(2) { animation-delay: 0.1s; }
.certificate-item:nth-child(3) { animation-delay: 0.2s; }
.certificate-item:nth-child(4) { animation-delay: 0.3s; }
.certificate-item:nth-child(5) { animation-delay: 0.4s; }
.certificate-item:nth-child(6) { animation-delay: 0.5s; }
.certificate-item:nth-child(7) { animation-delay: 0.6s; }

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 181, 255, 0.1), transparent);
    transition: left 0.6s;
}

.certificate-item:hover::before {
    left: 100%;
}

.certificate-item:hover {
    transform: translateY(-8px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(77, 181, 255, 0.2);
    background: linear-gradient(135deg, var(--bg-variant) 0%, rgba(77, 181, 255, 0.1) 100%);
}

.certificate-item img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.certificate-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.certificate-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.certificate-item:hover h4 {
    color: var(--primary-color);
    transform: scale(1.05);
}

.certificate-item p {
    color: var(--light);
    transition: all 0.3s ease;
}

.certificate-item:hover p {
    color: var(--white);
}

/* Animations pour les certifications */
@keyframes certificateFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(77, 181, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(77, 181, 255, 0.6); }
}

@keyframes certificateSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

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

@keyframes backgroundFloat {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 30%, rgba(77, 181, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(77, 181, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(77, 181, 255, 0.05) 0%, transparent 50%);
    }
    50% { 
        background: 
            radial-gradient(circle at 30% 20%, rgba(77, 181, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(77, 181, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(77, 181, 255, 0.08) 0%, transparent 50%);
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-variant);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--light);
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--bg-variant);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(77, 181, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header h3,
    .sidebar-header p,
    .nav-item span {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
        overflow-y: auto;
        height: 100vh;
    }
    
    .nav-item {
        justify-content: center;
        padding: 1rem;
        margin: 0.25rem 0.5rem;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    
    .social-links {
        padding: 0 0.5rem;
        z-index: 100;
        position: relative;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        z-index: 101;
        position: relative;
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .certificate-card.featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Carousel responsive pour mobile */
    .carousel-container {
        height: 350px !important;
        margin-bottom: 1rem !important;
        overflow: hidden !important;
        width: 100% !important;
    }
    
    .carousel-track {
        width: 100% !important;
        display: flex !important;
        transition: transform 0.5s ease-in-out !important;
        flex-wrap: nowrap !important;
    }
    
    .certificate-slide {
        min-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem !important;
    }
    
    .certificate-card {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .certificate-image {
        height: 150px;
        margin-bottom: 0.8rem;
    }
    
    .carousel-controls {
        margin-top: 1rem !important;
        padding: 0 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 1rem !important;
        position: relative !important;
        z-index: 20 !important;
        flex-direction: row !important;
    }
    
    .carousel-btn {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
    }
    
    .carousel-btn i {
        font-size: 1.2rem !important;
    }
    
    .carousel-indicators {
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        flex: 1 !important;
        order: 0 !important;
    }
    
    .indicator {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .carousel-container {
        height: 300px;
        overflow: hidden;
    }
    
    .certificate-slide {
        padding: 0.3rem;
    }
    
    .certificate-image {
        height: 120px;
    }
    
    .certificate-card {
        padding: 0.8rem;
        width: 100%;
    }
    
    .carousel-controls {
        margin-top: 0.8rem;
        padding: 0 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .carousel-indicators {
        gap: 0.3rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .section {
        padding-bottom: 6rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
        z-index: 1000;
    }
    
    .sidebar.active .social-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .sidebar-header h3,
    .sidebar-header p,
    .nav-item span {
        display: block;
    }
    
    .nav-item {
        justify-content: flex-start;
        padding: 0.8rem 1.5rem;
        margin: 0.3rem 1rem;
    }
    
    .nav-item i {
        margin-right: 1rem;
        font-size: 1.2rem;
    }
    
    /* Icônes sociales cliquables sur mobile */
    .social-links {
        z-index: 1000;
        position: relative;
        pointer-events: auto;
    }
    
    .social-links a {
        z-index: 1001;
        position: relative;
        pointer-events: auto;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        overflow-y: auto;
        height: 100vh;
    }
    
    .section {
        padding: 1rem;
        min-height: auto;
        height: auto;
        padding-bottom: 5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    

    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-nav {
        gap: 0.5rem;
    }
    
    .about-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-icon {
        width: 2.5rem;
        height: 2.5rem;
        left: -1.25rem;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .timeline-content h5 {
        font-size: 0.9rem;
    }
    
    .skills-container {
        gap: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
    }
    
    .skills-nav {
        gap: 0.5rem;
    }
    
    .skill-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .skills-matrix {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .skill-badge {
        padding: 0.8rem;
    }
    
    .skill-badge img {
        height: 24px;
    }
    
    .skill-badge span {
        font-size: 0.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
    }
    
    .certificate-card.featured {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .certificate-content h3 {
        font-size: 1.3rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .section {
        padding: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .hero-image img {
        width: 150px;
        height: 150px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skills-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .skill-tab {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .skills-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .skill-badge {
        padding: 0.6rem;
    }
    
    .skill-badge img {
        height: 20px;
    }
    
    .skill-badge span {
        font-size: 0.7rem;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .certificate-content h3 {
        font-size: 1.1rem;
    }
    
    .certificate-content p {
        font-size: 0.9rem;
    }
    
    .contact-card h4 {
        font-size: 1rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
    }
}

/* Styles pour le bouton hamburger mobile */
.mobile-nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.mobile-nav-toggle:hover {
    background: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Overlay pour mobile */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar.active {
        z-index: 1000;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}
