/* Importation de la police "Plus Jakarta Sans" */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

:root {
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent-color: #2563eb;       /* Bleu IUT/Pro */
    --accent-dark: #1d4ed8;
    --border-color: #e5e7eb;
    --star-color: #fbbf24;         /* Couleur Or pour les étoiles */
    --star-empty: #e5e7eb;         /* Couleur grise pour étoiles vides */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* --- NAVIGATION --- */
nav {
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 20px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--text-primary); letter-spacing: -0.5px; }
.links { display: flex; align-items: center; gap: 30px; }
.links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.links a:hover { color: var(--text-primary); }
.btn-contact { background: var(--text-primary); color: white !important; padding: 8px 16px; border-radius: 6px; transition: background 0.2s; }
.btn-contact:hover { background: #000; }

/* --- HERO SECTION --- */
.hero-section { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 80px 0; }
.hero-text { flex: 1; }
.badge { display: inline-block; background: #eff6ff; color: var(--accent-color); padding: 6px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; }
h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; color: var(--text-primary); }
.subtitle { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; }

.btn { text-decoration: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.secondary { background: white; border: 1px solid var(--border-color); color: var(--text-primary); }
.secondary:hover { background: var(--bg-secondary); border-color: #d1d5db; }

/* --- PHOTO PROFIL --- */
.hero-image { flex-shrink: 0; }
.profile-pic { width: 300px; height: 300px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); transform: rotate(3deg); transition: transform 0.3s ease; }
.profile-pic:hover { transform: rotate(0deg); }

/* --- SECTIONS COMMUNES --- */
.section-spacing { padding: 60px 0; border-top: 1px solid var(--border-color); }
.section-header { margin-bottom: 40px; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.section-desc { color: var(--text-secondary); font-size: 1rem; }

/* --- GRILLE PROJETS (Version Compacte) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; /* Espace réduit */
}

.project-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px; /* Padding réduit pour prendre moins de place */
    transition: all 0.2s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.card-top { margin-bottom: 15px; }
.tag { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--accent-color); }
.project-card h3 { font-size: 1.1rem; margin-bottom: 8px; } /* Titre plus petit */
.project-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }

.tech-stack { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tech-stack span { background: var(--bg-secondary); color: var(--text-primary); padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }

.link-arrow { text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 0.85rem; border-bottom: 2px solid transparent; }
.link-arrow:hover { border-bottom-color: var(--accent-color); }

/* --- TIMELINE PARCOURS SCOLAIRE --- */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
    padding-left: 30px;
}

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }

/* Le petit point sur la ligne */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px; /* Ajustement pour centrer sur la ligne */
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-date { font-size: 0.85rem; font-weight: 600; color: var(--accent-color); display: block; margin-bottom: 5px; }
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 5px; }
.school-name { display: block; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; font-size: 0.95rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- COMPÉTENCES ÉTOILES --- */
.skills-grid-stars { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.skill-category h3 { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }

.star-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
}

.skill-name { font-weight: 500; font-size: 1rem; color: var(--text-primary); }
.stars { color: var(--star-color); letter-spacing: 2px; font-size: 1.1rem; }

/* --- FOOTER --- */
.footer-section { background: var(--bg-secondary); padding: 60px 0; text-align: center; border-top: 1px solid var(--border-color); }
.footer-content h2 { font-size: 1.8rem; margin-bottom: 16px; }
.footer-content p { color: var(--text-secondary); margin-bottom: 32px; }
.email-btn { display: inline-block; background: var(--accent-color); color: white; text-decoration: none; padding: 12px 28px; border-radius: 50px; font-weight: 600; margin-bottom: 40px; transition: background 0.2s; }
.email-btn:hover { background: var(--accent-dark); }
.footer-links { margin-bottom: 24px; font-weight: 500; }
.footer-links a { color: var(--text-primary); text-decoration: none; }
.separator { margin: 0 12px; color: var(--text-secondary); }
.copyright { color: var(--text-secondary); font-size: 0.9rem; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-section { flex-direction: column-reverse; text-align: center; gap: 40px; padding: 40px 0; }
    .hero-buttons { justify-content: center; }
    .profile-pic { width: 200px; height: 200px; }
    h1 { font-size: 2rem; }
    .skills-grid-stars { grid-template-columns: 1fr; gap: 40px; }
    .nav-content { flex-direction: column; gap: 15px; }
    .links { gap: 20px; font-size: 0.9rem; }
}