* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: #f0f0f0;
    line-height: 1.6;
    background: #16213e;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #444;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff8c42;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.nav-links button:hover {
    color: #ff8c42;
}

.nav-links button.active {
    color: #ff8c42;
}

section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#accueil {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #ff8c42;
    box-shadow: 0 0 30px rgba(255, 140, 66, 0.3);
    object-fit: cover;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-age {
    font-size: 1.5rem;
    color: #ff8c42;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff8c42;
    color: white;
}

.btn-primary:hover {
    background: #ff7320;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #444;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

#apropos {
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid #ff8c42;
    display: inline-block;
}

.title-container {
    text-align: center;
    margin-bottom: 3rem;
}

.apropos-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #444;
}

.apropos-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.apropos-highlight {
    background: rgba(255, 140, 66, 0.1);
    padding: 1.5rem;
    border-left: 4px solid #ff8c42;
    border-radius: 8px;
    margin-top: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid #444;
    transition: all 0.3s;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: #ff8c42;
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.2);
    transform: translateY(-5px);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top: 1px solid #444;
    margin-top: auto;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
}

.project-image:hover {
    object-fit: contain;
    transform: scale(0.98);
    opacity: 0.95;
    padding: 1rem;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 140, 66, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff8c42;
}

.project-card:hover {
    border-color: #ff8c42;
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.2);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.3rem;
    color: #ff8c42;
    font-weight: 600;
}

.project-date {
    color: #888;
    font-size: 0.9rem;
}

.project-description {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 140, 66, 0.2);
    color: #ffb380;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #555;
    display: flex;
    justify-content: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid #ff8c42;
    border-radius: 8px;
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.github-link:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: scale(1.05);
}

.ECW-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid #ff8c42;
    border-radius: 8px;
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.ECW-link:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: scale(1.05);
}

.Notion-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid #ff8c42;
    border-radius: 8px;
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.Notion-link:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: scale(1.05);
}

#competences {
    background: rgba(0, 0, 0, 0.2);
}

.skills-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem;
    border-radius: 15px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-align: center;
}

.skill-item:hover {
    border-color: #ff8c42;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #444;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.contact-icon {
    background: #ff8c42;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info-label {
    font-size: 0.9rem;
    color: #888;
}

.contact-info-value {
    color: #ff8c42;
    font-weight: 600;
}

.cv-button-container {
    text-align: center;
}

.contact-form-container {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid #555;
}

.form-title {
    font-size: 1.5rem;
    color: #ff8c42;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c42;
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #e57373;
    display: block;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #444;
    color: #888;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links button {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 180px;
    }
}