:root {
    --bg-color: #0c0c0d;
    --surface-color: #18181a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a5;
    --accent-color: #ff9d00;
    --border-color: #2d2d30;
    --header-bg: rgba(12, 12, 13, 0.7);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f5f5f7;
    --surface-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-color: #e67e22;
    --border-color: #d2d2d7;
    --header-bg: rgba(245, 245, 247, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0; width: 100%; height: 70px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; z-index: 1000;
}

.logo-img { height: 28px; width: auto; z-index: 1001; }

.nav-container { display: flex; align-items: center; gap: 1.5rem; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.nav-links a.accent-link { color: var(--accent-color); font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s var(--ease); }
.nav-links a.accent-link::after { width: 100%; }
.nav-links a:hover { color: var(--accent-color); }
.nav-links a:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 5px; }
.burger span { display: block; width: 25px; height: 2px; background-color: var(--text-primary); transition: 0.3s var(--ease); }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-switch {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px;
}

main {
    padding: 140px 20px 60px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; letter-spacing: -1px; }

/* Classe pour mettre en orange dans le titre */
.orange-text { color: var(--accent-color); }

#typewriter::after {
    content: ""; display: inline-block; width: 3px; height: 1em;
    background-color: var(--accent-color); margin-left: 6px;
    vertical-align: middle; animation: blink 0.8s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.subtitle { color: var(--text-secondary); margin-bottom: 3.5rem; opacity: 0; transform: translateY(10px); transition: 0.8s var(--ease); }
.links-grid { display: grid; gap: 1.2rem; opacity: 0; transform: translateY(20px); transition: 0.8s var(--ease); }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

.link-card {
    background-color: var(--surface-color); padding: 1.5rem; border-radius: 20px;
    text-decoration: none; color: var(--text-primary); border: 1px solid var(--border-color);
    display: block; text-align: left; transition: 0.3s var(--ease);
}
.link-card:hover { border-color: var(--accent-color); transform: translateY(-3px); }
.link-card h3 { color: var(--accent-color); margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .burger { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background-color: var(--surface-color); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transition: 0.4s var(--ease); box-shadow: -10px 0 30px rgba(0,0,0,0.3); z-index: 1000; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    .theme-text { display: none; }
}