/* ========================================
   MATTHIEU DAUMAIN — SITE PERSONNEL
   Design: Sombre, sobre, accent cuivre
   ======================================== */

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

:root {
    --bg: #0f1117;
    --bg-alt: #161820;
    --bg-card: #1c1e28;
    --bg-card-hover: #22252f;
    --text: #e4e4e7;
    --text-muted: #9ca3af;
    --accent: #d4956a;
    --accent-hover: #e0a87d;
    --accent-soft: rgba(212, 149, 106, 0.12);
    --border: #2a2d38;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1140px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
}

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

.nav-lang {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.nav-lang a { color: var(--text-muted); font-weight: 500; }
.nav-lang a.active { color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

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

/* --- HERO --- */
.hero {
    padding: 140px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-photo-placeholder {
    width: 280px;
    height: 340px;
    border-radius: var(--radius);
    overflow: hidden;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.05em;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* --- SECTIONS --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- SKILLS GRID --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    color: var(--text);
}

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

.skill-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--accent);
}

.skill-icon svg { width: 100%; height: 100%; }

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.skill-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.skill-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* --- PROJECTS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

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

.project-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--bg), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.project-content {
    padding: 24px;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
}

.project-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-link {
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- TOOLS TEASER --- */
.tools-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.tools-teaser h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tools-teaser p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

.tools-teaser-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tool-logo-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

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

.blog-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 8px 0;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- ABOUT TEASER --- */
.about-teaser {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.footer-role, .footer-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text); }

.footer-contact a {
    font-size: 0.9rem;
}

.footer-lang {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-lang a { color: var(--text-muted); }
.footer-lang a:hover { color: var(--text); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual { order: -1; }
    .hero-photo-placeholder { width: 180px; height: 220px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-teaser { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }
    .nav-lang { display: none; }
    .hero { padding: 110px 0 60px; min-height: auto; }
    .hero h1 { font-size: 1.8rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
