.dark_mode {
    background-color: #121212;
    color: #ffffff;
}
.light_mode {
    background-color: #ffffff;
    color: #000000;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
button {
    padding: 10px 20px;
    margin-top: 0px;
    cursor: pointer;
}
button:hover {
    background-color: #007BFF;
    color: #ffffff;
}

header {
    text-align: left;
    background-color: #333;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

header nav ul li {
    margin: 0;
    padding: 0;
}

header nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

header nav ul li a:hover {
    background-color: #007BFF;
    color: #ffffff;
    padding-left: 25px;
}

header nav ul li a:active {
    background-color: #0056b3;
}

header nav button {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

header nav button:hover {
    background-color: #007BFF;
    border-color: #007BFF;
    color: #ffffff;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #ffffff;
    padding: 40px 0 20px 0;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #007BFF;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007BFF;
}

.footer-section p {
    margin: 8px 0;
    color: #cccccc;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    color: #ffffff;
    background-color: #007BFF;
    border-color: #007BFF;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-bottom p {
    margin: 5px 0;
    color: #999;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Compétences Section */
.competences-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.competences-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.competences-section h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.competence-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competence-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.competence-category h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.4em;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.skill {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    color: #ffffff;
    font-weight: 500;
    min-width: 120px;
    font-size: 0.95em;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #007BFF, #00d4ff);
    border-radius: 4px;
    transition: width 1.5s ease-out;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percentage {
    color: #ffffff;
    font-weight: bold;
    min-width: 45px;
    text-align: right;
    font-size: 0.9em;
}

.soft-skill {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.soft-skill .skill-name {
    color: #ffffff;
    font-weight: 500;
    flex: 1;
}

.skill-icons {
    display: flex;
    gap: 5px;
}

.skill-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-dot.filled {
    background: linear-gradient(45deg, #007BFF, #00d4ff);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Animation on scroll */
.competence-category {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.competence-category:nth-child(1) { animation-delay: 0.1s; }
.competence-category:nth-child(2) { animation-delay: 0.2s; }
.competence-category:nth-child(3) { animation-delay: 0.3s; }
.competence-category:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive compétences */
@media (max-width: 768px) {
    .competences-section {
        padding: 60px 0;
    }
    
    .competences-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .competences-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .competence-category {
        padding: 25px;
    }
    
    .skill {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skill-name {
        min-width: auto;
    }
    
    .soft-skill {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}