.email-btn {
    display: inline-block;
    padding: 0.7em 1.6em;
    font-size: 1.05em;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 30px;
    box-shadow: var(--shadow-light);
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.email-btn:hover {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.04);
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #6c5ce7;
    --accent-color: #00b894;
    --background-color: #f8f9ff;
    --text-color: #2d3436;
    --hover-color: #5f3dc4;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --skill-bar-bg: #f1f2f6;
    --skill-bar-fill: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #a29bfe;
    --accent-color: #00b894;
    --background-color: #0f0f23;
    --text-color: #ddd6fe;
    --hover-color: #6c5ce7;
    --card-bg: #1a1a2e;
    --border-color: #2d3748;
    --skill-bar-bg: #2d3748;
    --skill-bar-fill: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --gradient-secondary: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    line-height: 1.6;
}

main {
    max-width: 900px;
    margin: 120px auto 0;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.section:hover::before {
    transform: scaleX(1);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.quote-section {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animated-quote {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    padding: 30px 40px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: fadeIn 1s ease-in-out 0.5s both;
}

.animated-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.animated-quote:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.animated-quote:hover::before {
    transform: scaleX(1);
}

.quote-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typewriterEffect 3s steps(50) 1.5s both;
    max-width: 100%;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.skill {
    width: 100%;
    animation: slideInRight 0.6s ease-out;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
}

.skill-bar {
    background: var(--skill-bar-bg);
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--skill-bar-fill);
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fillBar 2s ease-out 0.5s both;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.contact-form {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    position: relative;
    animation: slideInUp 0.6s ease-out;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

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

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-cv {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 24px;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    box-shadow: var(--shadow-light);
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.download-cv:hover {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.04);
}

.reset-theme {
    background: transparent;
    color: var(--primary-color);
    border: 1px dashed var(--border-color);
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.reset-theme:hover {
    background: rgba(0,0,0,0.03);
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.6s ease-out;
}

[data-theme="dark"] header {
    background: rgba(26, 26, 46, 0.9);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite alternate;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-deroulant {
    position: relative;
    display: inline-block;
}

.btn-sommaire {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sommaire::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.6s ease;
}

.btn-sommaire:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

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

.btn-sommaire:active {
    transform: translateY(0);
}

.nav-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background: var(--card-bg);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-15px) scale(0.95);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-content {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.menu-deroulant:hover .nav-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-content ul {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.nav-content li {
    padding: 0;
    position: relative;
    margin: 4px 8px;
}

.nav-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    border-radius: 10px;
    font-size: 0.95rem;
}

.nav-content a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px auto 40px;
    max-width: 900px;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.8;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

[data-theme="dark"] .particle {
    opacity: 0.2;
}

.particle:nth-child(1) { width: 6px; height: 6px; top: 15%; left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { width: 10px; height: 10px; top: 25%; left: 15%; animation-delay: 1s; }
.particle:nth-child(3) { width: 4px; height: 4px; top: 35%; left: 8%; animation-delay: 2s; }
.particle:nth-child(4) { width: 8px; height: 8px; top: 45%; left: 12%; animation-delay: 3s; }
.particle:nth-child(5) { width: 12px; height: 12px; top: 55%; left: 18%; animation-delay: 4s; }
.particle:nth-child(6) { width: 6px; height: 6px; top: 65%; left: 22%; animation-delay: 5s; }
.particle:nth-child(7) { width: 14px; height: 14px; top: 75%; left: 10%; animation-delay: 6s; }
.particle:nth-child(8) { width: 5px; height: 5px; top: 85%; left: 6%; animation-delay: 7s; }
.particle:nth-child(9) { width: 9px; height: 9px; top: 20%; left: 85%; animation-delay: 0.5s; }
.particle:nth-child(10) { width: 7px; height: 7px; top: 30%; left: 92%; animation-delay: 1.5s; }
.particle:nth-child(11) { width: 11px; height: 11px; top: 40%; left: 88%; animation-delay: 2.5s; }
.particle:nth-child(12) { width: 6px; height: 6px; top: 50%; left: 95%; animation-delay: 3.5s; }
.particle:nth-child(13) { width: 13px; height: 13px; top: 60%; left: 82%; animation-delay: 4.5s; }
.particle:nth-child(14) { width: 8px; height: 8px; top: 70%; left: 90%; animation-delay: 5.5s; }
.particle:nth-child(15) { width: 4px; height: 4px; top: 80%; left: 86%; animation-delay: 6.5s; }
.particle:nth-child(16) { width: 10px; height: 10px; top: 10%; left: 45%; animation-delay: 1.2s; }
.particle:nth-child(17) { width: 7px; height: 7px; top: 90%; left: 50%; animation-delay: 2.2s; }
.particle:nth-child(18) { width: 12px; height: 12px; top: 5%; left: 60%; animation-delay: 3.2s; }
.particle:nth-child(19) { width: 5px; height: 5px; top: 95%; left: 35%; animation-delay: 4.2s; }
.particle:nth-child(20) { width: 9px; height: 9px; top: 50%; left: 50%; animation-delay: 5.2s; }

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer-text {
    color: var(--text-color);
    opacity: 0.8;
}

.footer-text p {
    margin: 8px 0;
}

.footer-subtitle {
    font-size: 0.9rem;
    font-style: italic;
}

.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2979ff;
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    min-width: 70px;
    color: #2979ff;
    font-weight: 700;
    text-align: right;
    font-size: 1.1rem;
    margin-right: 18px;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    position: relative;
    left: 0;
    top: 0;
    z-index: 2;
}

.timeline-content {
    margin-left: 0;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    flex: 1;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .timeline-content {
        padding: 18px;
    }
    .timeline-date {
        font-size: 0.95rem;
        min-width: 50px;
        margin-right: 10px;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline::before {
        left: 5px;
        width: 2px;
    }
}

.experience-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.experience-period {
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.company-info h4 {
    color: var(--secondary-color);
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
}

.location {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 15px;
}

.experience-description ul {
    margin: 10px 0 20px 20px;
    color: var(--text-color);
}

.experience-description li {
    margin-bottom: 5px;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.education-timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 40px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2979ff;
    border-radius: 2px;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.education-year {
    min-width: 70px;
    color: #2979ff;
    font-weight: 700;
    text-align: right;
    font-size: 1.1rem;
    margin-right: 18px;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    position: relative;
    left: 0;
    top: 0;
    z-index: 2;
}

.education-content {
    margin-left: 0;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    flex: 1;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.education-content h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.education-content h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.education-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.subject-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cert-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cert-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-year {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-card.featured {
    position: relative;
    overflow: hidden;
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-status {
    background: var(--gradient-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-features {
    margin: 20px 0;
}

.project-features h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.project-features ul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.project-features li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.easter-egg-container {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px 0;
    opacity: 0.7;
}

.easter-egg {
    position: relative;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.easter-egg:hover {
    transform: scale(1.05) rotate(-2deg);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(162, 155, 254, 0.3);
    opacity: 1;
}

.easter-egg-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.easter-egg-text {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.easter-egg-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.4), transparent);
    transition: left 0.5s;
}

.easter-egg:hover .easter-egg-glow {
    left: 100%;
}

@media (max-width: 768px) {
    .nav-content {
        min-width: 200px;
        left: 0;
        transform: translateX(0) translateY(-15px) scale(0.95);
    }

    .menu-deroulant:hover .nav-content {
        transform: translateX(0) translateY(0) scale(1);
    }
}

#contenu-principal {
    display: block;
    opacity: 1;
    width: 100%;
    padding-top: 70px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f1c40f;
    transition: .4s;
    border-radius: 34px;
    padding: 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #a29bfe;
    --accent-color: #00b894;
    --background-color: #0f0f23;
    --text-color: #ddd6fe;
    --hover-color: #6c5ce7;
    --card-bg: #1a1a2e;
    --border-color: #2d3748;
    --skill-bar-bg: #2d3748;
    --skill-bar-fill: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --gradient-secondary: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

input:checked + .slider {
    background-color: #34495e;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.sun-icon, .moon-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 7px;
    transition: .4s;
}

.sun-icon {
    left: 7px;
    fill: #fff;
}

.moon-icon {
    right: 7px;
    fill: #fff;
    opacity: 0;
}

input:checked + .slider .sun-icon {
    opacity: 0;
}

input:checked + .slider .moon-icon {
    opacity: 1;
}

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

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

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

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

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

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

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes typewriterEffect {
    0% {
        width: 0;
        border-right: 2px solid var(--secondary-color);
    }
    90% {
        border-right: 2px solid var(--secondary-color);
    }
    100% {
        width: 100%;
        border-right: none;
    }
}

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

@keyframes dropDown {
    from {
        transform: translateX(-50%) translateY(-10px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .header-center {
        order: 1;
    }

    .header-right {
        order: 2;
        justify-content: center;
    }

    .logo {
        order: 0;
    }

    main {
        margin-top: 180px;
        padding: 10px;
    }

    .section {
        padding: 25px;
        margin-bottom: 25px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.8rem;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .social-link {
        width: 200px;
        justify-content: center;
    }

    .timeline {
        padding-left: 20px;
    }

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

    .timeline-item {
        flex-direction: column;
        margin-left: 0;
    }

    .timeline-content {
        margin-left: 0;
        margin-top: 15px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .experience-tech {
        justify-content: flex-start;
    }

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

    .education-item {
        flex-direction: column;
        margin-left: 0;
    }

    .education-content {
        margin-left: 0;
        margin-top: 15px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .timeline-date {
        min-width: 100px;
        font-size: 0.8rem;
    }

    .education-year {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .experience-card,
    .timeline-content,
    .education-content,
    .cert-card {
        padding: 20px;
    }

    .skill-tag,
    .subject-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

#status {
  margin-top: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#popup-notif {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s ease;
  font-weight: 500;
  z-index: 2000;
}

#popup-notif.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SERVICES PAGE STYLES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-features li {
    color: var(--text-color);
    margin-bottom: 8px;
    padding-left: 0;
    opacity: 0.85;
}

.service-price {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.service-price:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* CLIENTS SECTION */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.client-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    text-align: center;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-logo {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.client-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
    font-weight: 600;
}

.client-description {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.client-feedback {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    padding: 15px;
    background: var(--background-color);
    border-radius: 10px;
}

.client-rating {
    font-size: 1.1rem;
    color: #ffc107;
}

/* SELECT STYLING */

select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }

    .client-card {
        padding: 20px;
    }
}

/* Ancienne promo si jamais tu la gardes ailleurs */
.promo-banner {
    background: linear-gradient(90deg, #ffb700, #ff9300);
    color: #000;
    text-align: center;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Nouvelle promo sous le header fix */
.promo-under-header {
    background: linear-gradient(135deg, #ffb700, #ff8600);
    color: #000;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    padding-top: 45px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Popup pour les offres */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.popup-overlay.visible {
    display: flex;
}

.popup-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 18px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    position: relative;
}

.popup-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-color);
    transition: 0.2s;
}

.popup-close:hover {
    transform: scale(1.15);
    color: #ff4f4f;
}

/* SELECT MODERNE */
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='%23aaa'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 16px center;
}

/* Hover */
.form-group select:hover {
    border-color: var(--secondary-color);
}

/* Focus */
.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
    transform: translateY(-2px);
}
