/* ============================================
   JULIEN SÉRIÉ - AUTEUR-RÉALISATEUR
   Portfolio minimaliste
   ============================================ */

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #111;
    color: #eee;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHY --- */
h1, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

h1 {
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #fff;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 400;
    color: #ddd;
    margin-top: 1.25rem;
}

p {
    max-width: 42em;
    color: #bbb;
}

a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fff;
}

/* --- LAYOUT --- */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 10vw;
}

.role {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 1.5rem;
    color: #888;
    letter-spacing: 0.02em;
}

.tagline {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.5rem;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 100;
}

nav a {
    margin-left: 2rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
}

nav a:hover {
    color: #ddd;
}

nav a.lang {
    border: 1px solid #333;
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
}

nav a.lang:hover {
    border-color: #555;
}

/* --- SECTIONS --- */
main {
    padding: 0 10vw 10rem;
}

section {
    margin-bottom: 10rem;
}

/* --- WORKS --- */
.works {
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

/* Featured work (documentary) */
.work--featured .work__item {
    max-width: 900px;
}

.work--featured .video-container {
    margin-bottom: 1.5rem;
}

.work--featured h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #eee;
}

.work__description {
    margin-top: 1rem;
    color: #888;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Work grid */
.work__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
}

.work__item {
    /* individual work item */
}

.work__meta {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.4rem;
    letter-spacing: 0.01em;
}

/* Section intro text */
.work__intro {
    color: #666;
    font-size: 0.95rem;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Sub-section intro (for nested sections like Snapshot Sessions) */
.work__intro--sub {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Sub-section title (h3 used as section divider) */
.work__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
    margin-top: 4rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

/* Secondary works */
.work--secondary h2 {
    color: #555;
}

/* Archive works */
.work--archive h2 {
    color: #444;
}

.work--archive .video-container {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.work--archive .work__item:hover .video-container {
    opacity: 1;
}

/* Large item (live session) */
.work__item--large {
    max-width: 900px;
}

/* --- VIDEO CONTAINER (RESPONSIVE) --- */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #1a1a1a;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    background: #1a1a1a;
}

/* Video preview link */
.video-preview {
    display: block;
    position: relative;
    cursor: pointer;
}

.video-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 55% 50%;
    background-size: 28px;
}

.video-preview:hover::after {
    opacity: 1;
}

/* Subtle hover */
.work__item:hover .video-container {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* --- ABOUT --- */
.about {
    max-width: 540px;
}

.about p {
    color: #999;
    line-height: 1.9;
    font-size: 1rem;
}

/* --- CONTACT --- */
.contact a {
    font-size: 1rem;
    color: #777;
    border-bottom: 1px solid #333;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
    color: #ddd;
    border-color: #555;
}

/* --- FOOTER --- */
footer {
    padding: 5rem 10vw;
    color: #333;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero {
        min-height: 45vh;
        padding: 5rem 7vw;
    }

    nav {
        position: static;
        padding: 0 7vw 3rem;
        display: flex;
        gap: 1.25rem;
    }

    nav a {
        margin-left: 0;
    }

    main {
        padding: 0 7vw 6rem;
    }

    .work__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section {
        margin-bottom: 6rem;
    }

    .works {
        gap: 6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 6vw;
    }

    nav {
        padding: 0 6vw 2.5rem;
        flex-wrap: wrap;
    }

    main {
        padding: 0 6vw 5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .work--featured h3 {
        font-size: 1.25rem;
    }

    /* Smaller play button on mobile */
    .video-preview::after {
        width: 50px;
        height: 50px;
        background-size: 22px;
    }
}
