@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #60a5fa;
    --accent-secondary: #8b5cf6;
    --border: #27272a;
    --hover: #18181b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fond minimaliste */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Conteneur principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header épuré */
header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

header > div:first-child {
    margin-bottom: 1.5rem;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header .muted {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Contact épuré */
.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    font-size: 0.875rem;
}

.contact div {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.contact div:hover {
    color: var(--text-primary);
}

.contact a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact a:hover {
    color: var(--text-primary);
}

/* Bouton retour minimaliste */
a[href*="index.html"] {
    position: fixed !important;
    top: 1.5rem !important;
    left: 1.5rem !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid var(--border) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
}

a[href*="index.html"]:hover {
    background: var(--hover) !important;
    border-color: var(--accent) !important;
    transform: translateX(-2px) !important;
}

/* Main content */
main {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

/* Sections */
section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }

section h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 1rem;
}

section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
    border-radius: 2px;
}

/* Section Profil */
.summary {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.summary p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Articles/Items */
article {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

article:hover {
    border-color: var(--accent);
    background: var(--hover);
}

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

.meta::before {
    content: none;
}

.muted {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-style: normal;
}

/* Listes épurées */
ul {
    list-style: none;
    margin: 0.75rem 0 0 0;
}

li {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

li:hover {
    color: var(--text-primary);
    transform: none;
}

li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Projets */
.projects article {
    border-color: var(--border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    color: var(--accent);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.project-link:hover {
    background: var(--hover);
    border-color: var(--accent);
    transform: translateX(2px);
}

/* Témoignages épurés */
.testimonials {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.testimonials h2 {
    color: var(--text-primary);
}

.testimonial {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    border-left: 2px solid var(--accent);
    position: relative;
}

.testimonial::before {
    content: none;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-style: normal;
}

.testimonial-author {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: right;
}

/* Download section épurée */
.download-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.download-content {
    flex: 1;
    min-width: 200px;
}

.download-content h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
}

.download-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.download-icon {
    font-size: 1.125rem;
}

.qr-code-container {
    text-align: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.qr-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Education */
.education .meta,
.education p {
    margin-left: 0;
}

.education .meta::before {
    content: none;
}

.education p {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.education a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.education a:hover {
    color: var(--text-primary);
}

/* Compétences */
.skills > div {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.skills > div strong {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Badges technologiques épurés */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tech-badge-icon {
    font-size: 1.125rem;
}

/* Veille technologique */
.tech-watch {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.tech-watch ul li {
    background: var(--bg-tertiary);
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tech-watch ul li:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.tech-watch ul li::before {
    left: 0.75rem;
}

/* Langues et Centres d'intérêt */
.languages ul li::before {
    content: '→';
    font-size: 1em;
}

.interests ul li::before {
    content: '→';
    font-size: 1em;
}

.interests > div {
    margin-top: 1.5rem;
}

.interests > div strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Footer épuré */
footer {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    margin-top: 3rem;
    background: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations au scroll */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 2rem 0;
    }
    
    section {
        margin-bottom: 3rem;
    }
    
    article {
        padding: 1.25rem;
    }
    
    .contact {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .download-section {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-code {
        width: 90px;
        height: 90px;
    }
    
    a[href*="index.html"] {
        top: 1rem !important;
        left: 1rem !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.8125rem !important;
    }
    
    .tech-badges {
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 1.375rem;
        padding-left: 0.75rem;
    }
    
    .summary,
    .testimonials,
    .tech-watch {
        padding: 1.25rem;
    }
    
    article {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
    
    header,
    main,
    section,
    article {
        animation: none;
        opacity: 1;
    }
    
    a[href*="index.html"] {
        display: none !important;
    }
    
    .download-section {
        display: none;
    }
    
    article {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}
