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

body {
    font-family: "Inter", sans-serif;
    color: #000000;
    background-color: #f5f5f5;
    font-weight: 600;
}

html {
    scroll-behavior: smooth;

    html {
        -webkit-text-size-adjust: none;
    }
}


@view-transition {
    navigation: auto;
}

.name-morph {
    view-transition-name: laurine-name;
}

::view-transition-old(laurine-name),
::view-transition-new(laurine-name) {
    animation-duration: 420ms;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Project pages: hero header image (half viewport height) */
.project-page .project-hero {
    height: 50vh;
    min-height: 320px;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    position: relative;
}

.project-page .project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.project-page .project-hero-title {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    z-index: 1;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: clamp(40px, 6vw, 60px);
    color: #fff;
}

.project-page .project-hero-meta {
    position: absolute;
    right: 32px;
    bottom: 36px;
    z-index: 1;
    text-align: right;
    color: #fff;
    font-size: clamp(17px, 1.3vw, 9px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 400;
}

.project-page .project-hero-meta p {
    margin: 0;
    line-height: 1.4;
}

.project-page .project-hero-meta .meta-label {
    font-weight: 700;
}

.project-page .project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Prevent title/meta overlap on narrower screens */
@media (max-width: 1200px) {
    .project-page .project-hero-title {
        right: auto;
        max-width: min(62vw, 820px);
    }

    .project-page .project-hero-meta {
        max-width: min(34vw, 420px);
    }
}

@media (max-width: 800px) {
    .project-page .project-hero-title {
        left: 20px;
        right: 20px;
        bottom: 112px;
        max-width: none;
    }

    .project-page .project-hero-meta {
        left: 20px;
        right: 20px;
        bottom: 22px;
        text-align: left;
        font-size: clamp(14px, 2.8vw, 18px);
        max-width: none;
    }
}

/* Top navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    color: #fff;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 34px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease;
    transform-origin: left center;
    position: relative;
    top: 4px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 34px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.22s ease, color 0.2s ease;
    transform-origin: right center;
    position: relative;
    top: 4px;
}

.logo:hover,
.nav-links a:hover {
    transform: scale(1.5);

}

/* Hero slideshow */
#hero {
    position: relative;
    height: 100vh;
    /* full screen */
    width: 100%;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Dark overlay with text on top of images */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* left aligned */
    justify-content: flex-end;
    /* bottom */
    padding: 0 32px 80px;
    /* <-- was 0 8vw 100px */
    color: #ffffff;
}

.hero-overlay h1 {
    font-size: clamp(32px, 8vw, 75px);
    margin-bottom: 12px;
}


.hero-overlay p {
    font-size: clamp(16px, 2vw, 30px);
    max-width: 720px;
    opacity: 0.9;
    color: #ffffff;
}

/* Content sections below hero */
main {
    background-color: #efe8efd2;

}

.content-section {
    padding: 80px 32px;
    max-width: 1200px;
    /* optional: a bit wider */
    margin: 0 auto;
}

.content-section h2 {
    font-size: 49px;
    margin-bottom: 16px;
}

.content-section p {
    line-height: 1.6;
    max-width: 640px;
}

/* Make sure content below hero isn't hidden behind fixed nav */
#PROJECT,
#electronics {
    color: #ffffff;
    scroll-margin-top: 16px;
}

#nails {
    color: #ffffff;
    scroll-margin-top: 72px;
}

#three-d {
    color: #ffffff;
    scroll-margin-top: 72px;
}

#about {
    scroll-margin-top: 72px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .top-nav {
        padding: 0 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }
}

/* About Me page: text at bottom-left */

/* About Me page: text at bottom-left */

/* =========================
   ABOUT PAGE LAYOUT
========================= */

.about-page main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    gap: 60px;
}


/* =========================
   LEFT TEXT COLUMN
========================= */

.about-page .content-section {
    flex: 1;
    max-width: 600px;
    padding: 0;
}

.about-page .content-section p {
    overflow-wrap: break-word;
}

/* =========================
   TITLE
========================= */

.about-page .name-morph {
    font-size: clamp(32px, 4vw, 68px);
    margin-bottom: 16px;
}

/* =========================
   RIGHT COLUMN (IMAGE + LINKS)
========================= */

.about-page .about-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.about-page .about-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

/* =========================
   SOCIAL LINKS
========================= */

.about-page .about-social-links {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.about-page .about-social-links a {
    color: inherit;
    text-decoration: none;
    font-size: clamp(14px, 1.2vw, 20px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    display: inline-block;
}

.about-page .about-social-links a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgb(255, 80, 200),
        0 0 18px rgb(255, 80, 179);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
    .about-page main {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 30px;
    }

    .about-page .content-section {
        max-width: 100%;
    }

    .about-page .about-right-column {
        align-items: flex-start;
        width: 100%;
    }

    .about-page .about-portrait {
        max-width: 100%;
    }

    .about-page .name-morph {
        font-size: 32px;
    }
}


.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 👈 magique */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Project grid (Elodie Anglade–style) */
.projects-wrapper {
    padding: 80px 32px 120px;
    /* same 32px as header/hero */
    max-width: 1200px;
    margin: 0 auto;
}

.project-category {
    margin: 0 0 80px 0;
    /* no auto → no centering */
    padding: 80px 32px 0 32px;
    /* 32px left, same as header/hero */
    max-width: none;
    /* let it span full width */
}

.project-category h2 {
    font-size: 28px;
    margin-bottom: 32px;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    border-color: #999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.projects-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
}

@media (max-width: 900px) {
    .projects-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    isolation: isolate;
    z-index: 1;
}

.project-tile:hover {
    z-index: 100;
}

.project-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee;
    transition: transform 0.25s ease;
    z-index: 1;
}

.project-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.project-tile:hover .project-main {
    transform: scale(1.05);
}

/* .project-tile:hover .project-main img {
    transform: scale(1.03);
} */

.project-meta {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: baseline;
    position: relative;
    z-index: 30;
}








/* 1. On prépare le titre pour qu'il s'anime en douceur */
/* --- ÉTAT DE BASE (Au repos) --- */

.project-title {
    font-size: 19px;
    /* On garde la taille de base fixe */
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
    color: #000000;

    /* On prépare les couches et l'origine de l'agrandissement */
    position: relative;
    z-index: 10;
    display: inline-block;
    /* Important pour que le transform fonctionne bien */
    transform-origin: left;
    /* Pour qu'il grandisse vers la droite et pas vers le centre */

    /* On anime uniquement les propriétés "légères" */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
    will-change: transform;
    /* Prévient le navigateur pour une fluidité max */
}

/* L'état au survol */
.project-tile:hover .project-title {
    color: #ffffff;
    /* Au lieu de font-size: 24px, on utilise un multiplicateur (24/19 ≈ 1.26) */
    transform: scale(2.26);
    z-index: 40;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* On garde ton bandeau thumbs qui fonctionne */
.project-thumbs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
    pointer-events: none;
    /* Évite que le bandeau bloque le survol du titre */
}

.project-tile:hover .project-thumbs {
    opacity: 1;
    transform: translateY(0);
}



.project-thumbs img {
    width: 100%;
    aspect-ratio: 4/ 5;
    /* square and taller → looks bigger */
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

/* Project pages: full-width main */
/* Project page: title in the middle, bigger, not stuck to top */
.project-page main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* vertical center */
    padding: 80px 32px 120px;

    /* make main full width, not a centered band */
    width: 100%;
    max-width: none;
    margin: 0;

    text-align: center;
    /* keep title centered */
}

/* When a hero exists, reduce the gap before the first text */
.project-page .project-hero+main {
    padding-top: 96px;
}

.project-page main h2 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 600;
    margin: 0 0 24px 0;
}

.project-page main p {
    max-width: 1120px;
    margin: 0 auto 48px;
    font-size: clamp(18px, 2.2vw, 19px);
    line-height: 1.55;
}

.project-page main>p:first-of-type {
    text-align: left;
}

.project-page main p.project-note {
    max-width: 1120px;
    text-align: right;
    font-size: 18px;
    font-weight: 400;
    margin: 0 auto 48px;
}

.project-page .project-text-block {
    max-width: 1120px;
    margin: 0 auto 48px;
    text-align: left;
}

.project-page .project-text-block p {
    margin: 0 0 24px;
}

.project-page .project-text-block p:last-child {
    margin-bottom: 0;
}

/* Images on project pages: left-aligned while title stays centered */
.project-page .project-media {
    align-self: flex-start;
    /* overrides align-items:center on main */
    text-align: left;
    margin-top: 32px;
    max-width: 1200px;
}

/* Single row of media (same size) on project pages */
.project-media-row {

    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
}

/* Full width for project media row so it occupies most of the screen */
.project-page .project-media-row {
    width: 100%;
    max-width: none;
    align-self: stretch;
    /* overrides align-self: flex-start from .project-media */
}

.project-media-row img,
.project-media-row .project-video {
    flex: 1;
    min-width: 0;
}

.project-media-row .project-video {
    margin-top: 0;
}

/* Two images centered (side-by-side) */
.project-page .project-media.project-media-pair {
    width: 100%;
    max-width: 1120px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.project-page .project-media.project-media-pair img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .project-page .project-media.project-media-pair {
        max-width: 720px;
    }
}

@media (max-width: 600px) {
    .project-page .project-media.project-media-pair {
        grid-template-columns: 1fr;
    }
}

.project-page .project-media img {
    width: 100%;
    max-width: 900px;
    /* adjust to taste */
    display: block;
}

/* Project pages: smaller responsive image grid (opt-in per page) */
.project-page .project-media.project-media-grid {
    width: 100%;
    max-width: 1120px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Design Friction (DESIGNFRICTION.html): 3 columns */
.project-page .project-media.project-media-grid.project-media-3x3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1400px;
    gap: 10px;
}

.project-page .project-media.project-media-grid.project-media-3x3 img,
.project-page .project-media.project-media-grid.project-media-3x3 .project-video {
    height: auto;
    object-fit: contain;
}

.project-page .project-media.project-media-grid.project-media-3x3 img,
.project-page .project-media.project-media-grid.project-media-3x3 .project-video {
    width: 100%;
    height: auto;
    display: block;
}


.project-page .project-media.project-media-grid img,
.project-page .project-media.project-media-grid .project-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .project-page .project-media.project-media-grid {
        max-width: 720px;
    }
}

@media (max-width: 600px) {
    .project-page .project-media.project-media-grid {
        grid-template-columns: 1fr;
    }
}

/* Garden island: full-width grid under Vimeo */
.project-page .project-media.project-media-grid.project-media-grid-full {
    max-width: none;
    margin: 32px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.project-page .project-media.project-media-grid.project-media-grid-full img,
.project-page .project-media.project-media-grid.project-media-grid-full .project-video {
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    width: 100%;
    display: block;
}



@media (max-width: 900px) {
    .project-page .project-media.project-media-grid.project-media-grid-full {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .project-page .project-media.project-media-grid.project-media-grid-full {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.project-page .project-video {
    width: 100%;
    max-width: 900px;
    display: block;
}

/* Center project-page embedded videos (e.g. Vimeo iframe) */
.project-page main iframe {
    display: block;
    margin: 0 auto;
    border: 0;
}

/* Local video (Mirror Mirror) sized like Vimeo embeds */
.project-page .project-video.project-video-iframe {
    max-width: 1280px;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 auto;
}