/* --- VARIABLES & THÈMES --- */
:root {
    --primary-color: #2563eb; /* Bleu SISR */
    --secondary-color: #1e40af;
    --accent-color: #10b981;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Couleurs spécifiques Timeline (Fixes pour ressembler à l'image) */
    --timeline-line-color: #2082af; /* Rouge bordeaux foncé */
    --timeline-dot-bg: #ffffff;     /* Point blanc */
    --timeline-dot-border: #2563eb; /* Bordure bleue du point */
    --timeline-date-bg: #cbd5e1;    /* Fond gris date */
    --timeline-date-text: #000000;  /* Texte noir date */
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg: #1e293b;
    --nav-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; transition: var(--transition); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }

/* --- NAVIGATION --- */
header { background-color: var(--nav-bg); padding: 1rem 2rem; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: bold; font-size: 1.5rem; color: var(--primary-color); }
nav ul { display: flex; gap: 2rem; align-items: center; }
nav a { font-weight: 500; transition: color 0.3s; }
nav a:hover, nav a.active { color: var(--primary-color); }

/* Toggle Button */
#theme-toggle { background: none; border: 2px solid var(--text-color); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: var(--transition); }
#theme-toggle:hover { background-color: var(--text-color); color: var(--bg-color); }

/* --- COMPOSANTS GÉNÉRAUX --- */
.btn { display: inline-block; background-color: var(--primary-color); color: white; padding: 0.8rem 1.5rem; border-radius: var(--border-radius); transition: var(--transition); font-weight: bold; border: none; cursor: pointer; }
.btn:hover { background-color: var(--secondary-color); transform: translateY(-2px); }
.card { background-color: var(--card-bg); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); }
.card:hover { transform: translateY(-5px); }

/* Titres */
h1, h2, h3 { color: var(--primary-color); margin-bottom: 1rem; }
h1 { font-size: 2.5rem; line-height: 1.2; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2rem; position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 4px; background: var(--accent-color); margin: 0.5rem auto 0; border-radius: 2px; }

/* --- PAGE ACCUEIL --- */
.hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 80vh; flex-direction: column; gap: 1.5rem; }
.hero h1 span { color: var(--text-color); font-size: 1.2rem; display: block; font-weight: normal; margin-bottom: 0.5rem; }

/* --- PAGE À PROPOS / COMPÉTENCES --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.skill-tag { display: inline-block; background: var(--primary-color); color: white; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.85rem; margin: 0.2rem; }

/* --- PAGE PROJETS --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card h3 { display: flex; justify-content: space-between; align-items: center; }
.project-badge { background: var(--accent-color); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; }

/* --- PAGE CONTACT --- */
.contact-container { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: var(--border-radius); background: var(--bg-color); color: var(--text-color); }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; }
.social-links i { font-size: 2rem; color: var(--text-color); transition: 0.3s; }
.social-links i:hover { color: var(--primary-color); }

/* --- RESPONSIVE HEADER --- */
@media (max-width: 768px) {
    nav ul { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--nav-bg); flex-direction: column; padding: 2rem; box-shadow: var(--shadow); }
    nav ul.show { display: flex; }
    .menu-toggle { display: block; font-size: 1.5rem; cursor: pointer; }
    header { flex-wrap: wrap; }
}
@media (min-width: 769px) { .menu-toggle { display: none; } }

