/* ============================================
   BENOIT TREMBLAY - Personal Site
   Playful Professional
   ============================================ */

:root {
    --bg: #FDFCFA;
    --text: #1a1a1a;
    --text-muted: #666;
    --accent: #c45656/*#2563EB*/;
    --accent-warm: #F59E0B;
    --surface: #fff;
    --border: #e5e5e5;

    --font-display: 'Newsreader', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: clamp(2rem, 6vmin, 4rem);
    --space-xl: clamp(3rem, 10vmin, 8rem);
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

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

/* ============================================
   LAYOUT
   ============================================ */
.site {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-sm);
}

@media (min-width: 480px) {
    .site {
        padding: var(--space-xl) var(--space-md);
    }
}

/* ============================================
   NAV
   ============================================ */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.nav-lang {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-lang:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    margin-bottom: var(--space-xl);
}

.hero-greeting {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
    cursor: default;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero-title .name {
    color: var(--accent);
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.5;
}

.hero-tagline strong {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
    .about {
        grid-template-columns: 160px 1fr;
        gap: var(--space-md);
        align-items: start;
    }
}

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid var(--border);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
    margin-bottom: var(--space-xl);
}

.skills-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill {
    background: var(--surface);
    padding: var(--space-sm) var(--space-md);
}

.skill h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.skill p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.skill p a {
    text-decoration: underline;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.contact-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.contact-email {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    color: var(--text);
    display: inline-block;
    position: relative;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-email:hover {
    color: var(--accent);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.contact-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }
.fade-in-5 { animation-delay: 0.5s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
