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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

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

/* Header et Navigation */
header {
    background-color: #000000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #ffffff;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #cccccc;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background-color: #222222;
    color: #cccccc;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #333333;
    color: #ffffff;
    border-color: #666;
}

.lang-btn.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, #000000 0%, #333333 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #cccccc;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: #111111;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

/* À propos */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

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

.skill-category {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.skill-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #cccccc;
}

/* Section Formations */
.education-subsection {
    margin-bottom: 3rem;
}

.education-subsection h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: #ffffff;
}

/* Timeline pour formations */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: linear-gradient(135deg, #222222 0%, #1a1a1a 100%);
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff 0%, #cccccc 100%);
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.timeline-date {
    font-weight: bold;
    color: #ffffff;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.timeline-content p {
    color: #bbbbbb;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content li:before {
    content: "▸";
    color: #ffffff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.cv-preview h3,
.cv-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cv-viewer {
    background-color: #222222;
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.cv-viewer iframe {
    border: none;
    border-radius: 15px;
}

.cv-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pdf-btn {
    background-color: #dc3545;
    color: #ffffff;
}

.pdf-btn:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.drive-btn {
    background-color: #1f73e6;
    color: #ffffff;
}

.drive-btn:hover {
    background-color: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 115, 230, 0.3);
}

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

.project-card {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

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

.project-tech span {
    background-color: #333333;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

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

.project-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Veille technologique */
.tech-watch-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tech-watch-content > p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #cccccc;
}

.watch-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.watch-item {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.watch-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.watch-item p {
    color: #cccccc;
}

.sources {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.sources h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.sources ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.sources li {
    background-color: #333333;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    align-items: start;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #cccccc;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    background-color: #222222;
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-item a {
    color: #cccccc;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
}

.contact-form-card {
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.contact-form-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #ffffff;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-size: 0.95rem;
    color: #cccccc;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #666666;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.contact-form button {
    margin-top: 0.5rem;
    padding: 0.85rem 1.2rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-form button:hover {
    background-color: #cccccc;
    transform: translateY(-2px);
}

.contact-form button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.contact-form-status {
    min-height: 1.2rem;
    font-size: 0.95rem;
    color: #cccccc;
}

.contact-form-status.success {
    color: #9ad29a;
}

.contact-form-status.error {
    color: #f5a3a3;
}

.contact-honeypot {
    display: none;
}

/* Footer */
footer {
    background-color: #111111;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

footer p {
    color: #cccccc;
}

.footer-link {
    margin-top: 0.5rem;
    background: none;
    border: none;
    color: #cccccc;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #ffffff;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #222222;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
}

.modal-close:hover {
    background-color: #333333;
}

.modal-body p {
    color: #cccccc;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Section Technologies */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    background-color: #111111;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.tech-item h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.tech-badge {
    background-color: #222222;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background-color: #333333;
    border-color: #666;
    transform: scale(1.05);
}

/* Section Langages de Programmation */
.languages-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.language-item {
    background-color: #111111;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: translateX(10px);
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.language-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
}

.level {
    background-color: #222222;
    color: #cccccc;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #444;
}

.progress-bar {
    background-color: #222222;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.progress-fill {
    background: linear-gradient(90deg, #666666 0%, #999999 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-viewer iframe {
        height: 400px;
    }

    .cv-buttons {
        flex-direction: column;
    }

    .cv-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .language-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    .hamburger {
        order: 3;
    }

    .nav-menu {
        order: 4;
        flex-basis: 100%;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid #333;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

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

    .timeline-item {
        flex-direction: column;
    }

    .timeline-content {
        margin-left: 0;
        margin-top: 1rem;
    }

    .education-subsection h3 {
        font-size: 1.2rem;
    }

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

    .sources ul {
        flex-direction: column;
        align-items: center;
    }

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

    .contact-form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid,
    .watch-categories,
    .contact-details {
        grid-template-columns: 1fr;
    }
}