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

:root {
    --bg: #0F0F0F;
    --surface: #1A1A1A;
    --border: #2A2A2A;
    --text: #EAEAEA;
    --muted: #B0B0B0;
    --accent: #4A90E2;
    --accent-glow: rgba(74, 144, 226, 0.15);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Navigation ──────────────────────────────────── */
nav {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text);
    border-color: var(--border);
    background-color: #1E1E1E;
}

.nav-links a.active {
    color: var(--text);
    border-color: var(--accent);
}

.nav-name {
    border: 2px solid var(--border) !important;
}

.ml-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background-color: var(--surface);
    color: var(--text);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
}

.ml-button:hover {
    border-color: var(--accent);
}

/* ─── Container ───────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Section titles ──────────────────────────────── */
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.75rem auto 0;
}

/* ─── SECTION 1: Présentation ─────────────────────── */
#presentation {
    padding: 5rem 0 4rem;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.photo-wrapper {
    position: relative;
}

.photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    opacity: 0.3;
    pointer-events: none;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--muted);
    overflow: hidden;
    position: relative;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.photo-placeholder svg {
    opacity: 0.3;
}

.photo-placeholder span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.bio-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.bio-content h1 span {
    color: var(--accent);
}

.bio-subtitle {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.bio-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.bio-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4caf7d;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: 'Syne', sans-serif;
}

.bio-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf7d;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.bio-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.bio-btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    border-radius: 6px;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.bio-btn--primary {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.bio-btn--primary:hover {
    background: transparent;
    color: var(--accent);
}

.bio-btn--secondary {
    background: transparent;
    color: var(--muted);
    border: 2px solid var(--border);
}

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

.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.bio-tag {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.bio-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── Separator ───────────────────────────────────── */
.section-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ─── SECTION 2: Expérience professionnelle ───────── */
#experience {
    padding: 5rem 0;
}

/* ─── SECTION 3: Parcours scolaire ───────────────── */
#parcours {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(74,144,226,0.02) 50%, transparent 100%);
}

/* ─── Timeline shared ─────────────────────────────── */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline-axis {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding-right: 3rem;
    margin-bottom: 3.5rem;
    position: relative;
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 3rem;
    margin-left: 50%;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.55s; }

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

.timeline-item::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -6px;
}

.timeline-year {
    position: absolute;
    top: 0.8rem;
    right: -90px;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-align: center;
    white-space: nowrap;
}

.timeline-item:nth-child(even) .timeline-year {
    right: auto;
    left: -90px;
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.6rem 1.8rem;
    max-width: 360px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.timeline-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.timeline-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.timeline-card .card-category {
    display: block;
    font-size: 0.7rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    opacity: 0.7;
}

.timeline-card .card-school {
    font-size: 0.78rem;
    font-family: 'Syne', sans-serif;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.timeline-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-card ul li {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}

.timeline-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 0.1rem;
}

.timeline-card .card-meta {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    opacity: 0.8;
}

/* ─── SECTION 4: Compétences ──────────────────────── */
#competences {
    padding: 5rem 0;
}

.skills-carousel-outer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skills-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 8px 0;
}

.skills-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.skill-card {
    min-width: 200px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.skill-logo {
    width: 64px;
    height: 64px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.skill-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
}

.skill-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
    letter-spacing: 0.05em;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px rgba(74, 144, 226, 0.4);
}

/* ─── Footer ──────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.1em;
}
