/* Variables de couleur et reset général */
:root {
    --bg-color: #0d1117;
    --primary-text-color: #e6edf3;
    --secondary-text-color: #8b949e;
    --accent-color: #58a6ff;
    --cursor-color: #f778ba;
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    overflow-x: hidden;
}

/* Arrière-plan animé */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header et Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 35px;
}

nav a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

nav a.active {
    color: var(--accent-color);
    font-weight: bold;
}

/* Section principale (Hero) - Page Accueil */
main.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 0 20px;
}

.intro-text {
    font-size: 1.2em;
    color: var(--secondary-text-color);
}

h1 {
    font-size: 5em;
    margin: 10px 0;
    font-weight: 700;
    color: var(--primary-text-color);
}

h2 {
    font-size: 1.8em;
    color: var(--secondary-text-color);
    font-weight: 400;
}

.description {
    max-width: 600px;
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--secondary-text-color);
}

h3 {
    font-size: 1.3em;
    margin-top: 20px;
    color: var(--primary-text-color);
}

/* Animation de frappe */
.typing-text {
    color: var(--accent-color);
    font-weight: bold;
}

.cursor {
    color: var(--cursor-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Bouton d'appel à l'action */
.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Styles pour les pages de contenu génériques */
.content-page {
    padding: 50px 10%;
    animation: fadeIn 1s ease-in-out;
    max-width: 1000px;
    margin: 0 auto;
}

.page-title-center {
    font-size: 3em;
    color: var(--primary-text-color);
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 10px;
    position: relative;
}

.page-title-center::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Style pour les cartes de contenu (Veille) */
.card {
    background-color: rgba(36, 41, 47, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.card h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.card-description {
    color: var(--secondary-text-color) !important;
    font-size: 0.9em !important;
    margin-bottom: 0 !important;
}

.card .card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}
.card .card-link:hover {
    text-decoration: underline;
}


/* --- PAGE PROJETS --- */
.project-category-title {
    color: var(--cursor-color);
    font-size: 1.6em;
    margin-top: 60px;
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: rgba(36, 41, 47, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.project-card h3 {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--secondary-text-color);
    font-size: 0.9em;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tags span {
    background-color: var(--border-color);
    color: var(--secondary-text-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}


/* --- STYLE DE LA FRISE CHRONOLOGIQUE (TIMELINE) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    z-index: 1;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    z-index: 2;
    top: 25px;
}

.timeline-item.left { left: 0; padding-right: 45px; }
.timeline-item.right { left: 50%; padding-left: 45px; }
.timeline-item.left .timeline-dot { right: -13px; }
.timeline-item.right .timeline-dot { left: -13px; }

.timeline-content {
    padding: 20px 25px;
    background-color: rgba(36, 41, 47, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    text-align: left;
}

.timeline-item.left .timeline-content::after {
    content: ''; position: absolute; top: 30px; right: -12px;
    border-width: 10px; border-style: solid;
    border-color: transparent transparent transparent rgba(36, 41, 47, 0.7);
}

.timeline-item.right .timeline-content::after {
    content: ''; position: absolute; top: 30px; left: -12px;
    border-width: 10px; border-style: solid;
    border-color: transparent rgba(36, 41, 47, 0.7) transparent transparent;
}

.timeline-content h3 { margin-top: 0; color: var(--primary-text-color); font-size: 1.2em; margin-bottom: 5px; }
.timeline-content .date-range { font-size: 0.9em; color: var(--accent-color); font-weight: bold; margin-bottom: 10px; }
.timeline-content h4 { font-weight: normal; color: var(--secondary-text-color); margin-top: 5px; font-size: 0.95em; margin-bottom: 10px; }
.timeline-content ul { list-style: none; padding-left: 0; margin-top: 10px; }
.timeline-content ul li { font-size: 0.9em; color: var(--secondary-text-color); line-height: 1.5; position: relative; padding-left: 15px; }
.timeline-content ul li::before { content: '•'; color: var(--accent-color); position: absolute; left: 0; top: 0; }


/* --- PAGE COMPÉTENCES (TABLEAU) --- */
.table-container {
    overflow-x: auto; /* Active le scroll horizontal sur mobile */
    margin-top: -30px;
}

.skills-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 0.9em;
}

.skills-table th, .skills-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.skills-table thead th {
    background-color: #343a40;
    color: var(--primary-text-color);
    font-weight: bold;
    position: sticky;
    top: 0;
}

.skills-table .section-header {
    background-color: rgba(36, 41, 47, 0.9);
    color: var(--primary-text-color);
    font-size: 1em;
    font-weight: bold;
}

.skills-table .check-cell {
    text-align: center;
    font-size: 1.2em;
    color: var(--accent-color);
}

/* Style pour la cellule "À venir" */
.skills-table .coming-soon-cell {
    text-align: center;
    font-style: italic;
    color: var(--secondary-text-color);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Header et Navigation */
    header { flex-direction: column; padding: 20px 5%; }
    .logo { margin-bottom: 20px; }
    nav ul { flex-direction: column; align-items: center; }
    nav li { margin-left: 0; margin: 10px 0; }

    /* Typographie générale */
    h1 { font-size: 3em; }
    .page-title-center { font-size: 2em; margin-bottom: 40px; width: 100%; }
    h2 { font-size: 1.3em; }
    .description { font-size: 0.95em; }
    .project-category-title { font-size: 1.4em; }

    /* Layout général */
    .content-page { padding: 40px 5%; }
    
    /* Grille de projets sur mobile (1 colonne) */
    .project-grid { grid-template-columns: 1fr; }

    /* RESPONSIVE FRISE CHRONOLOGIQUE */
    .timeline::after { left: 20px; margin-left: 0; }
    .timeline-item { width: 100%; margin-bottom: 40px; }
    .timeline-item.left, .timeline-item.right { left: 0; padding-left: 60px; padding-right: 15px; text-align: left; }
    .timeline-dot { left: 10px; transform: none; }
    .timeline-item.left .timeline-content::after { display: none; }
    .timeline-item.right .timeline-content::after { left: -12px; border-color: transparent rgba(36, 41, 47, 0.7) transparent transparent; }
}