/* --- Variables & Reset --- */
:root {
    --primary-color: #2980b9;   /* Bleu plus 'Corporate' */
    --secondary-color: #2c3e50; /* Bleu nuit */
    --light-bg: #f8f9fa;        /* Gris clair */
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; }
.hero p { font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 600px; opacity: 0.9; text-align: center; }
.highlight { color: #6dd5fa; }

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Layout Général --- */
.container { padding: 5rem 10%; }
.bg-light { background-color: var(--light-bg); }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    font-weight: 600;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Grid Compétences --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: var(--white);
    padding: 2.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 3px solid transparent;
}
.skill-card:hover { 
    transform: translateY(-10px); 
    border-bottom: 3px solid var(--primary-color);
}
.skill-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.skill-card h3 { margin-bottom: 1rem; font-size: 1.3rem;}

/* --- Grid Projets --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-8px); }

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info { padding: 1.8rem; }
.project-info h3 { margin-bottom: 0.8rem; color: var(--secondary-color); }
.project-info p { font-size: 0.95rem; color: #666; margin-bottom: 1.5rem; }

.tags span {
    display: inline-block;
    background: #eef2f5;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 8px;
}

/* --- Contact & Footer --- */
.contact-wrapper { text-align: center; }
.contact-wrapper p { font-size: 1.2rem; margin-bottom: 2rem; }

footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 1rem; }
    .nav-links { margin-top: 1rem; gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .container { padding: 4rem 5%; }
}