:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 16px;
    font-display: swap;
    position: relative;
    margin: 0;
    min-height: 100vh;
    
    /* Glassmorphism background - Dégradés subtils pour profondeur */
    background-color: #f0f4f8;
    background-image: 
        radial-gradient(at 30% 20%, #dde7f3 0px, transparent 50%),
        radial-gradient(at 80% 80%, #e2e8f0 0px, transparent 50%);
    background-attachment: fixed;
}

/* Remove pseudo-elements */
body::before,
body::after {
    display: none;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    transition: top 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
    pointer-events: auto;
    outline: 2px solid white;
    outline-offset: 2px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    
    /* Glassmorphism effect - Effet verre dépoli */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    border-radius: 24px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    margin: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.location {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.email,
.linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 500;
}

.email:hover,
.linkedin:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.email i,
.linkedin i {
    font-size: 1.1rem;
}

main {
    padding: 2rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.publication-item {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-title a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.publication-title a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.publication-title a i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.publication-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.publication-abstract {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

/* Tablet breakpoint for tech showcase */
@media (max-width: 1024px) and (min-width: 769px) {
    .tech-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-item-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    min-height: 160px;
}

.tech-item-large:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tech-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.tech-item-large:hover .tech-logo-wrapper {
    background-color: rgba(37, 99, 235, 0.05);
    transform: scale(1.05);
}

.tech-logo-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.openshift-logo {
    padding: 0.5rem;
}

.tech-item-large:hover .tech-logo-large {
    transform: scale(1.1);
}

.tech-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0.5rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.expertise-item {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.expertise-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.expertise-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.expertise-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.expertise-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.tech-logo {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    display: inline-block;
    vertical-align: middle;
}

.expertise-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.expertise-note p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.expertise-note p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.project-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.project-header {
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.project-period,
.project-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-type {
    color: var(--primary-color);
}

.project-achievement {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.project-achievement i {
    color: #ffc107;
    font-size: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.project-tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-tech-tag:hover {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.project-tech-tag .tech-logo {
    width: 14px;
    height: 14px;
    filter: none;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience-item:hover {
    box-shadow: var(--shadow-md);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.experience-period {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-duration {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background-color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
}

.experience-location {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.25rem;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.experience-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.education-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.education-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.education-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.education-school {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.education-period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.education-item-transition {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.education-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.languages-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.languages {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    display: inline-block;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .header {
        padding: 2rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    main {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .experience-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
    }

    .name {
        font-size: 1.75rem;
    }

    main {
        padding: 1rem;
    }

    .section {
        margin-bottom: 2rem;
    }

    .contact {
        flex-direction: column;
        align-items: stretch;
    }

    .email,
    .linkedin {
        justify-content: center;
    }

    .tech-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .tech-item-large {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }

    .tech-logo-wrapper {
        width: 64px;
        height: 64px;
    }

    .tech-name {
        font-size: 0.9rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    body::before,
    body::after {
        animation: none !important;
    }
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }

    .container {
        box-shadow: none;
    }

    .header {
        background: var(--primary-color);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .expertise-item,
    .experience-item,
    .education-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

