@/* 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: #fff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

/* Header */
header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    height: 40px;
    width: 66px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    overflow: visible;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #00d4ff;
}

/* Ajout de la couleur pour tous les liens du site */
a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://via.placeholder.com/1920x1080") no-repeat center/cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
}

/* Projects */
.projects {
    padding: 5rem 2rem;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    aspect-ratio: 3.09 / 1;
    object-fit: contain;
}

.project-card h3 {
    padding: 1rem;
    text-align: center;
}

.project-card p {
    padding: 0 1rem 1rem;
    text-align: center;
}

/* Contact */
.contact {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
    padding: 2rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 0.8rem;
    background: #00d4ff;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin: 0 auto;
}

#contact-form button:hover {
    background: #00a8cc;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo-container {
        justify-content: center;
    }

    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }

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

    .project-card img {
        aspect-ratio: 3.09 / 1;
    }

    #contact-form {
        padding: 1rem;
    }
}
