/* =============================================
   PASCAL CESCON - Portfolio
   DA inspirée SoftAI : Dark mode + accent vif
   ============================================= */

/* ---------- Variables ---------- */
:root {
    /* Couleurs principales - Dark Mode */
    --bg-primary: #0f1012;
    --bg-secondary: #1a1b1e;
    --bg-tertiary: #252629;

    /* Texte */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accent - Jaune/Lime énergique */
    --accent: #d4ff00;
    --accent-light: #e8ff66;
    --accent-dark: #a3cc00;
    --accent-glow: rgba(212, 255, 0, 0.15);

    /* Accent secondaire - Cyan tech */
    --accent-secondary: #00d4ff;
    --accent-secondary-glow: rgba(0, 212, 255, 0.15);

    /* Utilitaires */
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.06);

    /* Typographie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Raleway', 'Inter', sans-serif;

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-light);
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

/* ---------- Section ---------- */
.section {
    padding: 5rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-logo {
    height: 2.5rem;
    width: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle + .section-alt-link {
    display: block;
    text-align: center;
    margin-top: -2.5rem;
    margin-bottom: 4rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.section-alt-link:hover {
    color: var(--accent);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 16, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 6rem 2rem 2rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--card-bg-hover);
    color: var(--accent);
}

@media (min-width: 768px) {
    .navbar {
        padding: 1rem 3rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background: none;
        padding: 0;
        gap: 0;
    }

    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Gradient orbs background */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--accent-secondary-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition);
}

.hero-image:hover img {
    filter: grayscale(0%);
}

.hero-greeting {
    color: var(--accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-titles {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-titles::before {
    content: '// ';
    color: var(--accent);
}

.hero-location {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-intro {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 650px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 480px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
}

.hero-alt-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.hero-alt-link:hover {
    color: var(--accent);
}

@media (min-width: 768px) {
    .hero {
        padding: 10rem 3rem 6rem;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
    }

    .hero-image {
        width: 220px;
        height: 220px;
        flex-shrink: 0;
    }

    .hero-cta {
        justify-content: flex-start;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 1;
}

.scroll-indicator {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* =============================================
   BD READER - CV en BD
   ============================================= */
.parcours {
    background: var(--bg-secondary);
}

.bd-reader {
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
}

/* Timeline navigation */
.bd-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.timeline-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.timeline-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

@media (min-width: 768px) {
    .timeline-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* BD Viewer */
.bd-viewer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: visible;
}

.bd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-nav:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.bd-prev { left: -60px; }
.bd-next { right: -60px; }

@media (min-width: 768px) {
    .bd-nav {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .bd-prev { left: -80px; }
    .bd-next { right: -80px; }
}

/* BD Page Container */
.bd-page-container {
    flex: 1;
    overflow: visible;
}

.bd-page {
    display: none;
    flex-direction: column;
    gap: 2rem;
    animation: slideIn 0.5s ease;
}

.bd-page.active {
    display: flex;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.bd-page img {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    transition: transform var(--transition), box-shadow var(--transition), z-index 0s;
    position: relative;
    z-index: 1;
}

.bd-page img:hover {
    transform: scale(1.5);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    z-index: 100;
}

.bd-caption {
    text-align: center;
    padding: 0 1rem;
}

.bd-year {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.bd-caption h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bd-caption p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bd-page {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .bd-page img {
        width: 45%;
        max-width: 480px;
    }

    .bd-caption {
        flex: 1;
        text-align: left;
        padding: 0;
    }

    .bd-caption h3 {
        font-size: 1.75rem;
    }

    .bd-caption p {
        margin: 0;
    }
}

/* Progress bar */
.bd-progress {
    height: 2px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    margin-top: 3rem;
    overflow: hidden;
}

.bd-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    width: 6.25%;
    transition: width 0.3s ease;
}

.bd-counter {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* =============================================
   COMPETENCES
   ============================================= */
.competences {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-level.expert {
    background: rgba(212, 255, 0, 0.15);
    color: var(--accent);
}

.skill-level.advanced {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-secondary);
}

.skill-level.intermediate {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* =============================================
   POCs
   ============================================= */
.pocs {
    background: var(--bg-secondary);
}

.pocs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .pocs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .pocs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.poc-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.poc-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.poc-image {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.poc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poc-image-text {
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--bg-primary) 100%);
}

.poc-initials {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.8;
}

.poc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 18, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.poc-card:hover .poc-overlay {
    opacity: 1;
}

.poc-link {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.poc-link:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
    transform: scale(1.05);
}

.poc-content {
    padding: 1.5rem;
}

.poc-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.poc-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.poc-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.poc-tech span {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* =============================================
   VEILLE TECHNIQUE
   ============================================= */
.veille {
    background: var(--bg-primary);
}

.mindset-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.mindset-content p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.mindset-content p:last-child {
    margin-bottom: 0;
}

.mindset-content strong {
    color: var(--accent);
    font-weight: 600;
}

.mindset-conclusion {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-muted) !important;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-info {
        flex-direction: row;
    }
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    flex: 1;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin: 0 auto 1rem;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   UTILITIES
   ============================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   PAGE HEADER (pour pages secondaires)
   ============================================= */
.page-header {
    padding: 10rem 1.5rem 4rem;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-logo {
    height: 3rem;
    width: auto;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* =============================================
   TIMELINE - Parcours Professionnel
   ============================================= */
.timeline-section {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

/* Ligne verticale de la timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--accent),
        var(--accent-secondary) 50%,
        var(--border-color)
    );
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Marqueur sur la timeline */
.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-sm);
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px var(--accent-glow), var(--shadow-md);
}

.timeline-marker.marker-large {
    width: 20px;
    height: 20px;
    background: var(--accent-secondary);
    box-shadow: 0 0 0 3px var(--accent-secondary-glow), var(--shadow-sm);
}

.timeline-marker.marker-small {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    box-shadow: none;
    border: 2px solid var(--bg-primary);
}

/* Items enfants (sous-missions) */
.timeline-child {
    padding-left: 2rem;
    border-left: 1px dashed var(--border-color);
    margin-left: 0.5rem;
}

.timeline-child .timeline-marker {
    left: -2.5rem;
}

/* Premier item (début de carrière) */
.timeline-first .timeline-marker {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
}

/* Contenu de chaque item */
.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content.has-watermark::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 80%;
    background-image: var(--watermark-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.06;
    filter: invert(1) grayscale(100%);
    pointer-events: none;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content.has-watermark::before {
    opacity: 0.12;
    filter: invert(0) grayscale(0%);
}

.timeline-item:hover .timeline-content {
    background: var(--card-bg-hover);
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

/* Header de l'item */
.timeline-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-duration {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* Entreprise et poste */
.timeline-company {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: transparent;
    padding: 0.5rem;
    flex-shrink: 0;
    filter: invert(1) grayscale(100%) brightness(0.9);
    opacity: 0.8;
    transition: var(--transition);
}

.timeline-item:hover .company-logo {
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-glow);
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.timeline-company h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.company-name {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

.contract-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(212, 255, 0, 0.15);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Localisation */
.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-location::before {
    content: '📍';
    font-size: 0.75rem;
}

/* Description */
.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-description p {
    margin-bottom: 1rem;
}

.timeline-description p:last-child {
    margin-bottom: 0;
}

.timeline-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-description ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.timeline-description li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.timeline-description li::before {
    content: '→';
    position: absolute;
    left: -1rem;
    color: var(--accent);
    font-weight: 600;
}

/* Tags / Technologies */
.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.timeline-tags span {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
}

.timeline-tags span:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* CTA en bas de la timeline */
.timeline-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 480px) {
    .timeline-cta {
        flex-direction: row;
    }
}

/* Responsive pour la timeline */
@media (min-width: 768px) {
    .timeline {
        padding-left: 4rem;
    }

    .timeline-marker {
        left: -4rem;
    }

    .timeline-child .timeline-marker {
        left: -3.5rem;
    }

    .timeline-content {
        padding: 2.5rem;
    }

    .timeline-company h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
        width: 12px;
        height: 12px;
    }

    .timeline-marker.marker-large {
        width: 16px;
        height: 16px;
    }

    .timeline-marker.marker-small {
        width: 8px;
        height: 8px;
    }

    .timeline-child {
        padding-left: 1rem;
    }

    .timeline-child .timeline-marker {
        left: -1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   PRESENTATION TEASER (Homepage)
   ============================================= */
.presentation-teaser {
    background: var(--bg-primary);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .teaser-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.teaser-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.teaser-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.teaser-card:hover::before {
    transform: scaleX(1);
}

.teaser-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.teaser-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.teaser-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.teaser-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.teaser-card:hover .teaser-link {
    color: var(--accent-light);
    transform: translateX(5px);
}
