/* --- Police Google --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* --- Variables globales --- */
:root {
    --primary: #1e3a8a; /* Bleu profond */
    --secondary: #0f172a; /* Presque noir */
    --accent: #60a5fa; /* Bleu clair */
    --light: #f8fafc; /* Blanc bleuté */
    --white: #ffffff;
}

/* --- Reset général --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* --- Corps du site --- */
body {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--secondary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navbar --- */
header {
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* --- Section Héro --- */
#hero {
    text-align: center;
    color: white;
    padding: 8rem 2rem 6rem 2rem;
}

#hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

#hero .btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#hero .btn:hover {
    background: var(--secondary);
    color: white;
}

/* --- Sections générales --- */
section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    padding: 4rem 2rem;
    border-radius: 20px;
    max-width: 1000px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
}

h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* --- À propos --- */
#about p {
    text-align: center;
    font-size: 1.05rem;
}

/* --- Compétences --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-card:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-4px);
}

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

.project-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.project-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* --- Contact --- */
#contact {
    text-align: center;
}

#contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

#contact a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background: rgba(15, 23, 42, 0.9);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    #hero h2 {
        font-size: 1.6rem;
    }

    section {
        padding: 3rem 1rem;
    }
}
