/* =========================================================
   Ryan YOVO — Portfolio — warm light theme
   ========================================================= */

:root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-2: #f3efe6;
    --ink: #1a1714;
    --ink-2: #4a433d;
    --ink-soft: #8a8178;
    --border: #ecdfc9;
    --border-soft: #f0e8d8;
    --accent: #e85d1a;
    --accent-2: #ff7a3d;
    --accent-soft: #fff0e4;
    --accent-ring: rgba(232, 93, 26, 0.18);
    --radius: 14px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --container: 960px;
    --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.04);
    --shadow: 0 6px 20px -10px rgba(26, 23, 20, 0.15);
    --shadow-lg: 0 20px 40px -20px rgba(232, 93, 26, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Cursor halo — suit la souris en arrière-plan */
.halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.halo.on { opacity: 1; }
.halo::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 93, 26, 0.18) 0%, rgba(255, 122, 61, 0.08) 35%, transparent 70%);
    filter: blur(20px);
    transform: translate3d(var(--mx, 50vw), var(--my, 50vh), 0) translate(-50%, -50%);
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.halo::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 61, 0.22) 0%, transparent 65%);
    filter: blur(8px);
    transform: translate3d(var(--mx, 50vw), var(--my, 50vh), 0) translate(-50%, -50%);
    will-change: transform;
    transition: transform 0.09s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav, main, .footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

/* ================= Navbar ================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 20px 0;
    background: rgba(250, 248, 243, 0.8);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
    border-bottom-color: var(--border-soft);
    padding: 14px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 15px;
}
.nav-brand .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}
.nav-brand .soft { color: var(--ink-soft); font-weight: 400; }

.nav-links {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: 999px;
    transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }

.nav-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    position: relative;
}
.nav-burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: 0.25s var(--ease);
}
.nav-burger span:first-child { transform: translate(-50%, -5px); }
.nav-burger span:last-child { transform: translate(-50%, 5px); }
.nav-burger.open span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-mobile {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s var(--ease);
}
.nav-mobile.open {
    opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-mobile ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.nav-mobile a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-2);
}
.nav-mobile a.active { background: var(--accent-soft); color: var(--accent); }

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ================= Hero (home) ================= */
.hero {
    padding: 70px 0 50px;
    position: relative;
    isolation: isolate;
}

/* Hero banner — pleine largeur en arrière-plan, fondu doux */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('/assets/img/hero-banner.jpg');
    background-size: cover;
    background-position: center 50%;
    opacity: 0.50;
    filter: saturate(0.85) contrast(0.95);
    z-index: -2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(250, 248, 243, 0.35) 30%, rgba(250, 248, 243, 0.25) 70%, var(--bg) 100%),
        linear-gradient(180deg, rgba(255, 240, 228, 0.2), transparent 50%);
    z-index: -1;
}
.hero > * { position: relative; z-index: 1; }

.hero-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: center;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.hero .eyebrow .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero h1 {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
}
.hero-lead {
    font-size: 1rem;
    color: var(--ink-2);
    margin: 0 0 24px;
    max-width: 52ch;
}

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

/* Profile photo slot */
.avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: center;
}
.avatar::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--accent-soft), transparent 40%, var(--accent-soft));
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
            mask: radial-gradient(circle, transparent 62%, #000 63%);
    pointer-events: none;
}
.avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.avatar .placeholder {
    padding: 20px;
    line-height: 1.4;
}
.avatar .placeholder::before {
    content: '';
    display: block;
    width: 40px; height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--accent-soft), #fff);
    border: 1px dashed var(--accent);
}

/* ================= Sections ================= */
.section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.section-head h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}
.section-head .side {
    font-size: 13px;
    color: var(--ink-soft);
}
.section-head .side a { color: var(--accent); }
.section-head .side a:hover { text-decoration: underline; }

/* Selected work — list style */
.works {
    display: grid;
    gap: 4px;
}
.work {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.25s var(--ease);
    position: relative;
}
.work:hover {
    background: var(--surface);
    border-color: var(--border);
}
.work-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.work-title .tag {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 999px;
}
.work-desc {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
}
.work-arrow {
    color: var(--ink-soft);
    font-size: 16px;
    transition: all 0.25s var(--ease);
}
.work:hover .work-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* About — intro */
.intro {
    padding: 60px 0 20px;
    max-width: 640px;
}
.intro .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.intro h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 0 14px;
}
.intro p {
    color: var(--ink-2);
    margin: 0 0 10px;
    font-size: 15px;
}
.intro .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}
.intro .tags span,
.intro .tags .tag-link {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
}
.intro .tags .tag-link {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
    transition: all 0.2s var(--ease);
}
.intro .tags .tag-link:hover {
    background: var(--accent);
    color: #fff;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.pcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}
.pcard:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.pcard-media {
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}
.pcard-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media.placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
    font-size: 44px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.pcard-media .tag-overlay {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    padding: 4px 9px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-soft);
}
.pcard-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pcard-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.pcard-body h3 .arrow { color: var(--ink-soft); transition: all 0.25s var(--ease); }
.pcard:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }
.pcard-body p {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}
.pcard-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}
.pcard-stack span {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-2);
}

/* Passions grid — drawings */
.passions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.passion {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: all 0.35s var(--ease);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.passion:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.passion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.passion:hover img { transform: scale(1.05); }
.passion .ph {
    padding: 20px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
}
.passion .ph::before {
    content: '✏';
    display: block;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 8px;
}
.passion .label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-soft);
}

/* CV callout */
.cv-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 22px 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    transition: all 0.25s var(--ease);
}
.cv-cta:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.cv-cta .txt { display: flex; flex-direction: column; gap: 2px; }
.cv-cta .lbl { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
.cv-cta .val { font-size: 15px; font-weight: 600; color: var(--ink); }

/* Filters */
.filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink-2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s var(--ease);
}
.filter-btn:hover { background: var(--surface); color: var(--ink); }
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Contact */
.contact-wrap { max-width: 560px; }
.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}
.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
}
.contact-row:hover {
    border-color: var(--accent);
    transform: translateX(2px);
}
.contact-row .left {
    display: flex; align-items: center; gap: 14px;
}
.contact-row .ic {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: grid; place-items: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-row .lbl { font-size: 12px; color: var(--ink-soft); }
.contact-row .val { font-size: 14px; font-weight: 500; }
.contact-row .cta {
    font-size: 13px; color: var(--accent);
    display: flex; align-items: center; gap: 4px;
}
.contact-row:hover .cta { gap: 8px; }
.copy-badge { font-size: 11px; }

/* Footer */
.footer {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--ink-soft);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer a { color: var(--ink-2); transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-links {
    display: flex; gap: 18px;
}

/* Animated title — word-by-word stagger */
.title-anim { display: block; }
.title-anim .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    animation: wordIn 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}
.title-anim .accent-under {
    position: relative;
    display: inline-block;
}
.title-anim .accent-under::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.02em;
    height: 0.22em;
    width: 100%;
    background: var(--accent-soft);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineIn 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) 0.6s forwards;
}
@keyframes wordIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@keyframes underlineIn {
    to { transform: scaleX(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }

/* Page fade */
.page-fade { animation: pageFade 0.5s var(--ease) both; }
@keyframes pageFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 760px) {
    .hero-row { grid-template-columns: 1fr; gap: 28px; text-align: left; }
    .avatar { width: 140px; height: 140px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 560px) {
    .nav-links { display: none; }
    .nav-burger { display: grid; place-items: center; }
    .hero { padding: 40px 0 30px; }
    .hero h1 { font-size: 1.55rem; }
    .intro h1 { font-size: 1.35rem; }
    .work { grid-template-columns: 48px 1fr auto; padding: 12px 10px; }
    .work-thumb { width: 48px; height: 48px; }
}