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

        :root {
            --primary: #00ff88;
            --secondary: #00d4ff;
            --dark: #0a0e27;
            --darker: #050810;
            --text: #e0e0e0;
            --text-dim: #aeb3c1;
        }

        body {
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            background: var(--darker);
            color: var(--text);
            overflow-x: hidden;
        }

        /* Grid Background */
        .grid-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
            pointer-events: none;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 25px 80px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: rgba(10, 14, 39, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 255, 136, 0.1);
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .logo::before {
            content: '>';
            color: var(--secondary);
            animation: blink 1.5s infinite;
        }

        @keyframes blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }

        .nav-links {
            display: flex;
            gap: 50px;
            list-style: none;
            counter-reset: item;
        }

        .nav-links a {
            color: var(--text-dim);
            text-decoration: none;
            font-size: 14px;
            position: relative;
            transition: color 0.3s ease;
        }

        .nav-links a::before {
            content: '0' counter(item) '.';
            counter-increment: item;
            color: var(--primary);
            margin-right: 5px;
            font-size: 12px;
        }

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

        /* Hero Section */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 0 80px;
            z-index: 100;
        }

        .hero-content {
            max-width: 900px;
            position: relative;
            z-index: 100;
            margin-top: 150px;
        }

        .hero-intro {
            color: var(--primary);
            font-size: 18px;
            margin-bottom: 20px;
            opacity: 0;
            animation: fadeIn 0.8s ease forwards;
        }

        .hero-title {
            font-size: 72px;
            font-weight: bold;
            color: var(--text);
            margin-bottom: 10px;
            opacity: 0;
            animation: fadeIn 0.8s ease 0.2s forwards;
            line-height: 1.1;
        }

        .hero-subtitle {
            font-size: 64px;
            color: var(--text-dim);
            margin-bottom: 30px;
            opacity: 0;
            animation: fadeIn 0.8s ease 0.4s forwards;
            line-height: 1.1;
        }

        .hero-description {
            max-width: 600px;
            color: var(--text-dim);
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 50px;
            opacity: 0;
            animation: fadeIn 0.8s ease 0.6s forwards;
        }

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

        .terminal-box {
            background: rgba(10, 14, 39, 0.9);
            border: 1px solid rgba(0, 255, 136, 0.3);
            border-radius: 5px;
            padding: 20px;
            margin-top: 40px;
            font-family: 'Consolas', monospace;
            font-size: 14px;
            opacity: 0;
            animation: fadeIn 0.8s ease 0.8s forwards;
        }

        .terminal-header {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
        }

        .terminal-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .dot-red { background: #ff5f56; }
        .dot-yellow { background: #ffbd2e; }
        .dot-green { background: #27c93f; }

        .terminal-line {
            margin: 8px 0;
        }

        .terminal-prompt {
            color: var(--primary);
        }

        .terminal-command {
            color: var(--secondary);
        }

        .terminal-output {
            color: var(--text-dim);
            margin-left: 20px;
        }

        .cta-button {
            display: inline-block;
            margin-top: 30px;
            padding: 18px 35px;
            border: 1px solid var(--primary);
            color: var(--primary);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s ease;
            background: transparent;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .cta-button:hover {
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
            transform: translateX(5px);
            background: rgba(0, 255, 136, 0.1);
        }

        /* Stats Section */
        .stats-section {
            position: relative;
            padding: 100px 80px;
            z-index: 10;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            max-width: 1200px;
        }

        .stat-card {
            background: rgba(10, 14, 39, 0.6);
            border: 1px solid rgba(0, 255, 136, 0.2);
            padding: 40px 30px;
            position: relative;
            transition: all 0.3s ease;
        }

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

        .stat-icon {
            font-size: 40px;
            margin-bottom: 20px;
        }

        .stat-number {
            font-size: 48px;
            color: var(--primary);
            font-weight: bold;
            margin-bottom: 10px;
        }

        .stat-label {
            color: var(--text-dim);
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .stat-description {
            color: var(--text-dim);
            font-size: 13px;
            margin-top: 15px;
            line-height: 1.6;
        }

        /* Tech Stack */
        .tech-stack {
            margin-top: 80px;
            text-align: center;
        }

        .tech-title {
            color: var(--text-dim);
            font-size: 14px;
            margin-bottom: 30px;
            text-transform: uppercase;
            letter-spacing: 3px;
        }

        .tech-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            max-width: 800px;
            margin: 0 auto;
        }

        .tech-item {
            padding: 12px 24px;
            background: rgba(10, 14, 39, 0.6);
            border: 1px solid rgba(0, 255, 136, 0.2);
            color: var(--text-dim);
            font-size: 13px;
            transition: all 0.3s ease;
        }

        .tech-item:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 768px) {
            nav {
                padding: 20px;
            }
            .nav-links {
                display: none;
            }
            .hero {
                padding: 0 20px;
            }
            .hero-title {
                font-size: 48px;
            }
            .hero-subtitle {
                font-size: 40px;
            }
            .stats-section {
                padding: 50px 20px;
            }
        }
/* About Section */
.about-section {
    position: relative;
    padding: 100px 80px;
    z-index: 1;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
}

.section-number {
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
}

.section-title {
    color: var(--text);
    font-size: 32px;
    white-space: nowrap;
}

.section-line-horizontal {
    height: 1px;
    background: rgba(0, 255, 136, 0.3);
    flex-grow: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
}

.about-text {
    color: var(--text-dim);
}

.about-paragraph {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
}

.highlight {
    color: var(--primary);
    font-weight: normal;
}

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

.skill-category {
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary);
    background: rgba(10, 14, 39, 0.6);
}

.category-title {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 15px;
}

.skills-list {
    list-style: none;
    color: var(--text-dim);
}

.skills-list li {
    margin-bottom: 8px;
    font-size: 13px;
    padding-left: 20px;
    position: relative;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.about-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 30px;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: var(--primary);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.info-icon {
    font-size: 24px;
}

.info-header h3 {
    color: var(--text);
    font-size: 18px;
}

.info-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-year {
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-title {
    color: var(--text);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.info-location {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 8px;
}

.info-detail {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interest-tag {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    transition: all 0.3s ease;
    cursor: default;
}

.interest-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 136, 0.15);
}



/* Projects Section */
.projects-section {
    position: relative;
    padding: 100px 80px;
    z-index: 1;
    background: rgba(5, 8, 16, 0.5);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-intro {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
}

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

/* Sur grands écrans, force une grille de 2 colonnes minimum */
@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sur très grands écrans, permet 3 colonnes */
@media (min-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary));
    transition: left 0.5s ease;
}

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

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
}

.project-card.featured {
    grid-column: 1 / -1; /* Prend toute la largeur disponible */
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid var(--primary);
}

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

.project-label {
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 12px;
    border: 1px solid var(--primary);
    background: rgba(0, 255, 136, 0.1);
}

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

.project-link {
    color: var(--text-dim);
    transition: color 0.3s ease;
}

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

.project-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.project-title {
    color: var(--text);
    font-size: 22px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary);
}

.project-description {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.project-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
}

.projects-footer {
    text-align: center;
    padding: 40px;
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-text {
    color: var(--text-dim);
    font-size: 14px;
    grid-column: 1 / -1;
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Consolas', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-btn.disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.download-btn.disabled:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .projects-section {
        padding: 50px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: 1;
    }

    .project-card {
        padding: 25px;
    }

    .project-title {
        font-size: 18px;
    }
}


/* Skills Section */
.skills-section {
    position: relative;
    padding: 100px 80px;
    z-index: 1;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
}

.skills-intro {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
}

.technical-skills {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 80px;
}

.skill-category-large {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--accent-02);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
}

.skill-category-large:hover {
    border-color: var(--primary);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-03);
}

.category-icon {
    font-size: 36px;
}

.category-header h3 {
    color: var(--text);
    font-size: 26px;
}

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

.skill-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--accent-015);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.skill-box:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.skill-title {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
}

.skill-percentage {
    color: var(--secondary);
    font-size: 14px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 136, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
    transition: width 1.5s ease;
}

.skill-list {
    list-style: none;
    color: var(--text-dim);
    font-size: 13px;
}

.skill-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 16px;
}

/* Tools Section */
.tools-software-section {
    margin-bottom: 80px;
}

.subsection-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text);
    font-size: 26px;
    margin-bottom: 40px;
}

.title-icon {
    font-size: 32px;
}

.tools-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 20px;
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background: rgba(10, 14, 39, 0.8);
}

.tool-icon-box {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.tool-info {
    flex: 1;
}

.tool-name {
    color: var(--text);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.tool-desc {
    color: var(--text-dim);
    font-size: 12px;
}

/* Additional Skills */
.additional-skills-section {
    margin-bottom: 40px;
}

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

.additional-box {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 30px;
    transition: all 0.3s ease;
}

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

.additional-box h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.box-icon {
    font-size: 24px;
}

/* Languages */
.lang-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.lang-name {
    color: var(--text);
    font-size: 14px;
}

.lang-dots {
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 3px;
}

/* Qualities */
.qualities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quality-tag {
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.quality-tag:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

/* Other list */
.other-list {
    list-style: none;
    color: var(--text-dim);
    font-size: 14px;
}

.other-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.other-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 18px;
}
/* Contact Section */
.contact-section {
    position: relative;
    padding: 100px 80px;
    z-index: 1;
    background: rgba(5, 8, 16, 0.5);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-intro {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 22px;
    margin-bottom: 30px;
}

.subtitle-icon {
    font-size: 28px;
}

/* Contact Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--accent-02);
    border-radius: 10px;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
}

.info-card-icon {
    font-size: 32px;
    min-width: 40px;
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-card-value {
    color: var(--text);
    font-size: 16px;
    font-weight: bold;
}

.info-card-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card-value a:hover {
    color: var(--secondary);
}

.info-card-value.hidden {
    display: none;
}

/* Reveal Button */
.reveal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-01);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.reveal-btn:hover {
    background: var(--accent-02);
    transform: translateX(3px);
}

.reveal-btn.revealed {
    display: none;
}

.reveal-icon {
    font-size: 14px;
}

/* Contact Form */
.contact-form-section {
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--text);
    padding: 12px 16px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px 30px;
    font-family: 'Consolas', monospace;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 136, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Form Status */
.form-status {
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.form-status.error {
    display: block;
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid #ff5757;
    color: #ff5757;
}

/* Social Section */
.social-section {
    text-align: center;
    padding: 40px;
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.social-title {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--text);
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-section {
        padding: 25px;
    }
}
/* Bouton Épreuve E5 */
.btn-e5 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    margin-top: 25px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-e5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 136, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-e5:hover::before {
    left: 0;
}

.btn-e5::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-e5:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.btn-e5:hover::after {
    transform: translateX(5px);
}

.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(0, 173, 181, 0.3);
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-link {
    color: #00adb5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #00d4dd;
    text-decoration: underline;
}

.footer-content strong {
    font-weight: 600;
}
:root,
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.4);
    --nav-bg: rgba(10, 10, 15, 0.95);
    --terminal-bg: #0d0d1a;
    --input-bg: rgba(99, 102, 241, 0.05);
    --input-border: rgba(99, 102, 241, 0.2);
    --table-header-bg: rgba(99, 102, 241, 0.15);
    --table-row-even: rgba(99, 102, 241, 0.03);
    --table-row-hover: rgba(99, 102, 241, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --grid-color: rgba(99, 102, 241, 0.03);
}
 
/* --- Variables mode jour --- */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.5);
    --nav-bg: rgba(248, 250, 252, 0.95);
    --terminal-bg: #1e1e2e;
    --input-bg: rgba(99, 102, 241, 0.04);
    --input-border: rgba(99, 102, 241, 0.25);
    --table-header-bg: rgba(99, 102, 241, 0.1);
    --table-row-even: rgba(99, 102, 241, 0.02);
    --table-row-hover: rgba(99, 102, 241, 0.06);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --grid-color: rgba(99, 102, 241, 0.05);
}
 
/* Applique les variables aux éléments de base */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
 
/* Sections */
.about-section,
.stats-section,
.skills-section,
.projects-section,
.contact-section {
    background-color: var(--bg-primary);
}
 
/* Cards */
.stat-card,
.project-card,
.info-box,
.skill-box,
.tool-item,
.additional-box,
.contact-form-section {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
 
.stat-card:hover,
.project-card:hover,
.tool-item:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}
 
/* Textes secondaires */
.stat-description,
.project-description,
.info-detail,
.tool-desc,
.about-paragraph,
.skills-intro p,
.projects-intro p,
.contact-intro p,
.stat-label,
.hero-description {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
 
/* Nav */
nav {
    background: var(--nav-bg);
    border-bottom-color: var(--border-color);
    transition: background 0.3s ease;
}
 
/* Inputs */
.contact-form input,
.contact-form textarea {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
 
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}
 
.contact-form label {
    color: var(--text-secondary);
}
 
/* Grid background en mode jour */
[data-theme="light"] .grid-background {
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
}
 
/* --- Bouton toggle thème --- */
.theme-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-card);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
 
.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary, #6366f1);
}
 
/* --- À propos simplifié — 3 panels en ligne --- */
.about-panels-only {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
 
/* --- Skill box sans barre de progression --- */
.skill-box.no-bar .skill-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
 
.skill-box.no-bar {
    padding: 1.2rem;
}
 
/* --- Tableau E5 --- */
.e5-table-section {
    margin: 2.5rem 0 3rem;
}
 
.e5-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
 
.e5-icon {
    font-size: 1.2rem;
}
 
.e5-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
 
.e5-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--bg-card);
}
 
.e5-table thead tr {
    background: var(--table-header-bg);
}
 
.e5-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--primary, #6366f1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
 
.e5-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: background 0.2s ease;
}
 
.e5-table tbody tr:nth-child(even) {
    background: var(--table-row-even);
}
 
.e5-table tbody tr:hover td {
    background: var(--table-row-hover);
    color: var(--text-primary);
}
 
.e5-table tbody tr:last-child td {
    border-bottom: none;
}
 
.e5-num {
    font-weight: 700;
    color: var(--primary, #6366f1) !important;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}
 
.e5-project {
    font-weight: 600;
    color: var(--text-primary) !important;
    min-width: 200px;
}
 
.e5-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary, #6366f1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px 2px 2px 0;
    white-space: nowrap;
}
 
.e5-dl-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary, #6366f1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}
 
.e5-dl-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}
 
.e5-na {
    color: var(--text-muted);
    font-size: 1rem;
}
 
/* Responsive tableau */
@media (max-width: 768px) {
    .e5-table th,
    .e5-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
 
    .about-panels-only {
        grid-template-columns: 1fr;
    }
 
    .theme-toggle {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
/* ── Contact info section : conteneur sans fond propre ── */
.contact-info-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* MODE CLAIR ── contact ── */
[data-theme="light"] .contact-info-card {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

[data-theme="light"] .contact-info-card:hover {
    border-color: #2563eb;
    background: #f0f4ff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .info-card-label {
    color: #64748b;
}

[data-theme="light"] .info-card-value {
    color: #1e293b;
    font-weight: 600;
}

[data-theme="light"] .contact-subtitle {
    color: #1e293b;
}

[data-theme="light"] .reveal-btn {
    background: rgba(37, 99, 235, 0.07);
    border-color: #2563eb;
    color: #2563eb;
}

[data-theme="light"] .reveal-btn:hover {
    background: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .contact-form-section {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.07);
    border-radius: 12px;
}

[data-theme="light"] .contact-section {
    background: transparent;
}

[data-theme="light"] .contact-intro p {
    color: #475569;
}
/* ================================================================
   MODE CLAIR — overrides complets
   ================================================================ */

/* Textes généraux */
[data-theme="light"] .section-title {
    color: #1e293b;
}
[data-theme="light"] .section-number {
    color: #2563eb;
}
[data-theme="light"] .section-line-horizontal {
    background: rgba(37, 99, 235, 0.2);
}

/* Hero */
[data-theme="light"] .hero-title {
    color: #1e293b;
}
[data-theme="light"] .hero-subtitle {
    color: #334155;
}
[data-theme="light"] .hero-intro {
    color: #2563eb;
}
[data-theme="light"] .hero-description {
    color: #475569;
}

/* Nav */
[data-theme="light"] nav {
    background: rgba(248, 250, 252, 0.97);
    border-bottom-color: rgba(37, 99, 235, 0.1);
}
[data-theme="light"] .logo {
    color: #2563eb;
}
[data-theme="light"] .nav-links a {
    color: #334155;
}
[data-theme="light"] .nav-links a::before {
    color: #2563eb;
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: #2563eb;
}

/* Stats */
[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.07);
}
[data-theme="light"] .stat-number {
    color: #2563eb;
}
[data-theme="light"] .stat-label {
    color: #64748b;
}
[data-theme="light"] .stat-description {
    color: #475569;
}

/* Tech stack */
[data-theme="light"] .tech-title {
    color: #64748b;
}
[data-theme="light"] .tech-item {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.15);
    color: #334155;
}
[data-theme="light"] .tech-item:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* À propos */
[data-theme="light"] .info-box {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}
[data-theme="light"] .info-header h3 {
    color: #1e293b;
}
[data-theme="light"] .info-year {
    color: #2563eb;
}
[data-theme="light"] .info-title {
    color: #1e293b;
    font-weight: 700;
}
[data-theme="light"] .info-location {
    color: #64748b;
}
[data-theme="light"] .info-detail {
    color: #475569;
}
[data-theme="light"] .interest-tag {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}
[data-theme="light"] .highlight {
    color: #2563eb;
}

/* Compétences — blocs principaux */
[data-theme="light"] .skill-category-large {
    background: #f8fafc;
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.07);
}
[data-theme="light"] .skill-category-large:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .category-header {
    border-bottom-color: rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .category-header h3 {
    color: #1e293b;
}

/* Compétences — skill-box */
[data-theme="light"] .skill-box {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.05);
}
[data-theme="light"] .skill-box:hover {
    background: #f0f4ff;
    border-color: #2563eb;
}
[data-theme="light"] .skill-title {
    color: #2563eb;
}
[data-theme="light"] .skill-list {
    color: #334155;
}
[data-theme="light"] .skill-list li {
    color: #334155;
}
[data-theme="light"] .skill-list li::before {
    color: #2563eb;
}

/* Outils */
[data-theme="light"] .subsection-title {
    color: #1e293b;
}
[data-theme="light"] .tool-item {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .tool-item:hover {
    border-color: #2563eb;
    background: #f0f4ff;
}
[data-theme="light"] .tool-name {
    color: #1e293b;
}
[data-theme="light"] .tool-desc {
    color: #64748b;
}

/* Langues / Qualités / Autres */
[data-theme="light"] .additional-box {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .additional-box h4 {
    color: #1e293b;
}
[data-theme="light"] .lang-name {
    color: #334155;
}
[data-theme="light"] .lang-dots {
    color: #2563eb;
}
[data-theme="light"] .quality-tag {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}
[data-theme="light"] .other-list li {
    color: #334155;
}
[data-theme="light"] .other-list li::before {
    color: #2563eb;
}

/* Projets */
[data-theme="light"] .projects-intro p {
    color: #475569;
}
[data-theme="light"] .project-card {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.15);
}
[data-theme="light"] .project-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .project-card.featured {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .project-title {
    color: #1e293b;
}
[data-theme="light"] .project-description {
    color: #475569;
}
[data-theme="light"] .project-label {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.07);
}
[data-theme="light"] .tech-tag {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}
[data-theme="light"] .download-btn {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.25);
    color: #2563eb;
}
[data-theme="light"] .download-btn:hover {
    background: rgba(37, 99, 235, 0.15);
}
[data-theme="light"] .project-stats .stat-label {
    color: #64748b;
}
[data-theme="light"] .project-stats .stat-value {
    color: #1e293b;
    font-weight: 600;
}

/* CTA button */
[data-theme="light"] .cta-button {
    border-color: #2563eb;
    color: #2563eb;
}
[data-theme="light"] .cta-button:hover {
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

/* Footer */
[data-theme="light"] .site-footer {
    background: #f1f5f9;
    border-top-color: rgba(37, 99, 235, 0.1);
    color: #475569;
}
[data-theme="light"] .footer-link {
    color: #2563eb;
}

/* Skills intro */
[data-theme="light"] .skills-intro p {
    color: #475569;
}