:root {
    --primary: #10161a; /* Bleu très sombre - Tech */
    --secondary: #1e2936; /* Anthracite sombre */
    --accent: #d4af37; /* Or brossé - Élégance/Sérieux */
    --text-main: #ecf0f1; /* Gris clair */
    --text-muted: #bdc3c7; /* Gris moyen */
    --white: #ffffff;
    --card-bg: #2a3845;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--primary);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 30px;
}

/* Base style for h2 and specific fonts */
h1, h2, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h3, h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

/* Sections */
section { padding: 100px 0; }
.bg-dark { background-color: var(--secondary); }
.bg-light { background-color: #ecf0f1; color: #10161a; }
.bg-light h3 { color: #10161a; }
.bg-light h4 { color: var(--accent); font-weight: 600;}

.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 1px;}
.line { width: 80px; height: 3px; background: var(--accent); margin-top: 15px; }

/* Navigation */
nav {
    background: rgba(16, 22, 26, 0.95);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.8rem; letter-spacing: 2px; color: var(--white); }
.logo span { color: var(--accent); font-family: sans-serif; }

nav ul { display: flex; list-style: none; }
nav ul li a { margin-left: 35px; text-decoration: none; color: var(--text-muted); font-weight: 400; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--accent); }

/* Hero */
.hero { background-color: var(--primary); padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center; }

.hero-text h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--white); }
.hero-text h2 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }

.hero-btns { display: flex; gap: 20px; }
.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.btn { display: inline-block; padding: 15px 35px; border-radius: 3px; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: all 0.3s; }
.btn-primary { background-color: var(--accent); color: var(--primary); }
.btn-primary:hover { background-color: #f1c40f; transform: translateY(-3px); }
.btn-secondary { background-color: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background-color: var(--accent); color: var(--primary); }

/* Profil */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.btn-download { display: inline-block; color: var(--accent); text-decoration: none; font-weight: 600; margin-top: 20px; border-bottom: 1px solid var(--accent); padding-bottom: 5px; }
.btn-download:hover { color: var(--white); border-color: var(--white); }

.about-highlights { display: flex; flex-direction: column; gap: 20px; }
.highlight-item { background: var(--card-bg); padding: 25px; border-radius: 5px; border-left: 3px solid var(--accent); }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.exp-card { background: var(--secondary); padding: 40px; border-radius: 5px; text-align: center; border: 1px solid rgba(255,255,255,0.03); transition: transform 0.3s, box-shadow 0.3s; }
.exp-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.exp-card i { font-size: 3rem; color: var(--accent); margin-bottom: 25px; display: inline-block; }
.exp-card h3 { color: var(--white); font-weight: 600; font-family: 'Poppins', sans-serif; margin-bottom: 20px; }
.exp-card ul { list-style: none; text-align: left; }
.exp-card ul li { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.exp-card ul li::before { content: "•"; color: var(--accent); margin-right: 10px; }

/* Experience (Light Section) */
.timeline { 
    position: relative; 
    max-width: 1000px; 
    margin: 40px auto; 
    padding-left: 180px; /* Espace suffisant pour la date à gauche */
}

.timeline::after { 
    content: ''; 
    position: absolute; 
    width: 3px; 
    background-color: #cbd5e0; 
    top: 0; 
    bottom: 0; 
    left: 180px; /* Aligné sur le padding-left */
}

.timeline-item { 
    position: relative; 
    margin-bottom: 60px; 
    padding-left: 40px; /* Distance entre la ligne et le contenu */
}

/* Le point doré sur la ligne */
.timeline-item::after { 
    content: ''; 
    position: absolute; 
    width: 15px; 
    height: 15px; 
    border: 3px solid var(--accent); 
    background-color: #ecf0f1; 
    border-radius: 50%; 
    left: -9px; /* Centré précisément sur la ligne de 3px */
    top: 5px; 
    z-index: 10; 
}

/* Positionnement de la date sans croquer la ligne */
.timeline-date { 
    position: absolute; 
    left: -190px; /* Décalé à gauche de la ligne */
    width: 150px; 
    font-weight: 700; 
    color: #7f8c8d; 
    text-align: right; 
    top: 2px; 
}

.timeline-content { 
    background: #fff; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.timeline-content h3 { margin-bottom: 3px; }
.timeline-content ul { list-style-position: outside; margin-left: 20px; margin-top: 15px;}
.timeline-content li { margin-bottom: 8px;}

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.portfolio-item { background: var(--secondary); padding: 50px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.03); transition: 0.3s; display: flex; align-items: center;}
.portfolio-item:hover { border-color: var(--accent); background-color: #1a232c;}
.port-text p { color: var(--text-muted); margin-bottom: 20px;}
.port-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.port-link i { font-size: 0.8rem; margin-left: 5px;}

/* Contact */
.contact-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-details p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-details i { color: var(--accent); margin-right: 15px; width: 20px; text-align: center; }
.contact-details a { color: var(--text-main); text-decoration: none; border-bottom: 1px solid #555; }
.contact-details a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form-area form { display: flex; flex-direction: column; gap: 20px; }
.contact-form-area input, .contact-form-area textarea { background: var(--primary); border: 1px solid rgba(255,255,255,0.05); padding: 20px; color: var(--white); border-radius: 3px; font-family: 'Poppins', sans-serif; }
.contact-form-area input:focus, .contact-form-area textarea:focus { border-color: var(--accent); outline: none; }

footer { text-align: center; padding: 40px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.02); }
footer p { color: #555; font-size: 0.85rem; margin-bottom: 10px; }

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 3rem; }
    .hero-image img { max-width: 300px; height: 300px; margin-top: 40px;}
    .hero-btns { justify-content: center; }
    .timeline::after { left: 0; }
    .timeline-item { grid-template-columns: 1fr; gap: 10px; }
    .timeline-item::after { left: -6px; top: 30px;}
    .timeline-date { text-align: left; margin-bottom: 10px; }
    .contact-text { text-align: left;}
}
@media (max-width: 768px) {
    nav ul { display: none; }
    .section-title h2 { font-size: 2rem; }
    .expertise-grid, .portfolio-grid { grid-template-columns: 1fr; }
}
.about-text p::first-line {
    font-weight: 600;
    color: var(--accent);
}

/* Ajout d'un badge d'expérience dans le Hero ou le Profil */
.experience-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Mise en avant du rôle pédagogique */
.highlight-role {
    border-top: 3px solid var(--accent);
    background: #fff !important;
}

/* Style pour les expériences plus anciennes/courtes */
.other-exp .timeline-content {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px 30px;
}

.other-exp .timeline-content h3 {
    font-size: 1.1rem;
    color: #555;
}

/* Animation des compétences clés */
.highlight-item { 
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 5px; 
    border-left: 5px solid var(--accent); /* Un peu plus épais pour l'impact */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.highlight-item:hover {
    transform: translateX(10px); /* Décalage vers la droite */
    background: #344453; /* Légèrement plus clair */
    box-shadow: -5px 5px 20px rgba(0,0,0,0.2);
}

/* Petit reflet brillant au survol */
.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: 0.5s;
}

.highlight-item:hover::before {
    left: 100%;
}