:root {
    --primary: #2563eb;
    --bg: #fdfdfd;
    --text: #334155;
    --light-grey: #f8fafc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header & Nav */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; background: white; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.logo { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { text-decoration: none; color: #64748b; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }

/* Sections */
.section-center { padding: 80px 10%; text-align: center; }
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 30px; }
h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.subtitle { color: var(--primary); font-weight: 600; margin-bottom: 40px; }

/* Cards */
.card {
    background: white; border-radius: 16px; padding: 35px;
    box-shadow: var(--shadow); margin: 0 auto; max-width: 850px;
}

/* Profile */
.profile-card { display: flex; align-items: center; gap: 30px; text-align: left; }
.avatar-blue {
    min-width: 90px; height: 90px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700;
}
.avatar-img {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0;
}
.feature-item {
    background: var(--light-grey); padding: 15px; border-radius: 10px;
    border: 1px solid #e2e8f0; font-size: 0.85rem; text-align: left;
}

/* Timeline */
.timeline {
    margin: 40px auto; max-width: 700px; border-left: 2px solid #e2e8f0;
    padding-left: 40px; text-align: left;
}
.timeline-item { position: relative; margin-bottom: 35px; }
.dot-icon {
    position: absolute; left: -51px; top: 5px; background: white;
}
.timeline-card { background: white; padding: 20px; border-radius: 12px; box-shadow: var(--shadow); }
.tag { font-size: 0.75rem; color: var(--primary); font-weight: 700; }

/* Experience Details */
.exp-detail h4 { color: var(--primary); font-size: 0.9rem; margin: 10px 0 5px; font-weight: 700; }
.exp-detail ul { padding-left: 20px; font-size: 0.85rem; margin-bottom: 10px; }
.exp-detail li { margin-bottom: 4px; }

/* CV Box */
.cv-box { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.cv-icon { font-size: 2.5rem; }

/* Projets */
.projects-container {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 30px;
}
.p-card { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--shadow); text-align: left; }
.p-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 15px; }
.p-card h4 a { text-decoration: none; color: inherit; transition: color 0.2s; }
.p-card h4 a:hover { color: var(--primary); }

.border-blue { border-top: 4px solid #3b82f6; } .bg-blue { background: #3b82f6; }
.border-green { border-top: 4px solid #10b981; } .bg-green { background: #10b981; }
.border-purple { border-top: 4px solid #8b5cf6; } .bg-purple { background: #8b5cf6; }
.border-orange { border-top: 4px solid #f59e0b; } .bg-orange { background: #f59e0b; }
.border-red { border-top: 4px solid #ef4444; } .bg-red { background: #ef4444; }
.border-teal { border-top: 4px solid #14b8a6; } .bg-teal { background: #14b8a6; }

/* Veille */
.veille-banner { background: var(--primary); color: white; text-align: left; margin-bottom: 25px; }
.veille-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-width: 850px; margin: 0 auto; }
.v-card { background: white; padding: 15px; border-radius: 10px; box-shadow: var(--shadow); text-align: left; font-size: 0.85rem; }

/* Compétences */
.dark-section { background: #0f172a; color: white; padding: 80px 10%; text-align: center; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 35px; }
.comp-card { background: #1e293b; padding: 25px; border-radius: 12px; text-align: left; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tags span { background: #334155; padding: 4px 10px; border-radius: 15px; font-size: 0.7rem; }

/* Form */
.contact-card { text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.contact-links a { text-decoration: none; }
.group { margin-bottom: 15px; }
label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font-family: inherit; }

/* Buttons */
.btn-blue, .btn-blue-full {
    background: var(--primary); color: white; border: none; padding: 12px 25px;
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.btn-blue-full { width: 100%; margin-top: 10px; }
.btn-blue:hover { opacity: 0.9; }

footer { padding: 30px; text-align: center; font-size: 0.75rem; color: #94a3b8; border-top: 1px solid #e2e8f0; }