/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f7f8fa;
    color: #333;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1100px;
    margin: auto;
}

header h1 {
    font-size: 1.5rem;
    color: #0078d7;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #0078d7;
}

/* Sections */
section {
    padding: 100px 20px 60px;
    max-width: 1100px;
    margin: auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0078d7;
}

section p {
    margin-bottom: 1rem;
}

/* Cards (Projets) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #0078d7;
    margin-bottom: 0.5rem;
}

.card a {
    display: inline-block;
    margin-top: 0.8rem;
    text-decoration: none;
    color: #0078d7;
    font-weight: 600;
}

/* Bouton CV */
.btn {
    background-color: #0078d7;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #005fa3;
}

/* Footer */
footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 1.5rem;
    margin-top: 40px;
}

footer .links {
    margin-top: 0.5rem;
}

footer a {
    color: #0078d7;
    margin: 0 10px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    section {
        padding: 80px 20px;
    }
}
