/* =========================================================
   LACASE — PAGES GÉNÉRALES
========================================================= */

.page-body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;

    background: #050505;
    color: #ffffff;
}

/* =========================================================
   ARRIÈRE-PLAN
========================================================= */

.page-background {
    position: fixed;
    inset: 0;
    z-index: 0;

    overflow: hidden;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 70% 35%,
            rgba(255, 59, 47, 0.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #050505 0%,
            #111111 50%,
            #050505 100%
        );
}

.page-background::before {
    content: "";

    position: absolute;
    width: 55vw;
    height: 55vw;

    top: -20vw;
    right: -12vw;

    border-radius: 50%;

    background: rgba(255, 59, 47, 0.08);
    filter: blur(100px);

    animation: ambientMove 12s ease-in-out infinite alternate;
}

@keyframes ambientMove {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-8vw, 10vh, 0) scale(1.15);
    }
}

/* =========================================================
   CONTENU PRINCIPAL
========================================================= */

.page-content {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding:
        150px
        52px
        60px;
}

.page-eyebrow {
    margin-bottom: 18px;

    color: #ff3b2f;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.page-title {
    max-width: 1050px;

    font-size: clamp(64px, 10vw, 170px);
    line-height: 0.82;

    font-weight: 700;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.page-description {
    max-width: 650px;

    margin-top: 32px;

    color: rgba(255, 255, 255, 0.65);

    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.7;
    font-weight: 300;
}

.page-link {
    width: fit-content;

    margin-top: 36px;
    padding-bottom: 7px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;

    border-bottom: 1px solid #ff3b2f;
}

.projects-page {
    justify-content: flex-start;
}

.projects-intro {
    padding-top: 70px;
    margin-bottom: 70px;
}

.projects-title {
    font-size: clamp(55px, 8vw, 130px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;

    padding-bottom: 60px;
}

.project-card {
    position: relative;

    min-height: 420px;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    text-decoration: none;
    color: #ffffff;
}

.project-card-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255, 59, 47, 0.22),
            transparent 42%
        );
}

.project-card-content {
    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 28px;

    z-index: 2;
}

.project-number {
    display: block;

    margin-bottom: 12px;

    color: #ff3b2f;

    font-size: 11px;
    letter-spacing: 0.22em;
}

.project-name {
    margin: 0;

    font-size: clamp(30px, 3.5vw, 54px);
    line-height: 0.95;

    font-weight: 600;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.project-type {
    display: block;

    margin-top: 14px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* =========================================================
   COMMERCIALS — WORK IN PROGRESS
========================================================= */

.work-progress-page {
    align-items: center;
    justify-content: center;
    padding: 120px 52px 52px;
    text-align: center;
}

.work-progress-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4.5vw, 72px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.work-progress-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    margin: 22px auto 0;
    background: #ff3b2f;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);

    gap: 80px;
    align-items: end;
}

.about-text {
    max-width: 760px;
}

.about-information {
    padding-bottom: 10px;
}

.about-label {
    display: block;

    margin-top: 25px;
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.38);

    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.about-value {
    color: #ffffff;

    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
}

@media (max-width: 900px) {
    .page-content {
        padding:
            130px
            28px
            40px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 680px) {
    .page-content {
        padding:
            110px
            20px
            30px;
    }

    .page-title {
        font-size: clamp(55px, 19vw, 90px);
    }

    .page-description {
        margin-top: 24px;
        font-size: 14px;
    }

    .project-card {
        min-height: 330px;
    }

    .projects-intro {
        padding-top: 35px;
        margin-bottom: 45px;
    }

    .work-progress-page {
        min-height: 100dvh;
        padding: 100px 24px 36px;
    }

    .work-progress-title {
        font-size: clamp(24px, 8vw, 42px);
        letter-spacing: 0.12em;
    }
}

/* =========================================================
   HOME — INTRO VIDÉO LACASE
========================================================= */

html.home-document {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.home-page {
    height: auto;
    min-height: 100%;
    overflow: visible;
    background: #000;
}

.home-media {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(255, 59, 47, 0.13),
            #000 58%
        );
}

.home-hero-video {
    --hero-parallax-y: 0px;
    --hero-parallax-scale: 1;
    width: min(68vw, 1100px);
    height: min(68vh, 720px);
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    translate: 0 var(--hero-parallax-y);
    scale: var(--hero-parallax-scale);
    will-change: translate, scale;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(
        ellipse 78% 80% at 50% 50%,
        #000 0%,
        #000 58%,
        rgba(0, 0, 0, 0.96) 68%,
        rgba(0, 0, 0, 0.62) 82%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 78% 80% at 50% 50%,
        #000 0%,
        #000 58%,
        rgba(0, 0, 0, 0.96) 68%,
        rgba(0, 0, 0, 0.62) 82%,
        transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.home-city-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
    filter: brightness(0.86) contrast(1.05) saturate(0.92);
    transform: scale(1.015);
    pointer-events: none;
}

.home-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.34) 0%,
            transparent 24%,
            transparent 62%,
            rgba(0, 0, 0, 0.76) 100%
        );
}

.home-stars {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.home-star-link {
    --parallax-y: 0px;
    --parallax-scale: 1;
    position: absolute;
    width: var(--star-size);
    height: var(--star-size);
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    translate: 0 var(--parallax-y);
    scale: var(--parallax-scale);
    will-change: translate, scale;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.home-star {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: var(--star-opacity, 0.88);
    filter: drop-shadow(0 0 18px rgba(255, 0, 0, 0.18));
    pointer-events: none;
    will-change: transform;
    animation: homeStarSpin var(--star-speed) linear infinite;
    animation-direction: var(--star-direction, normal);
}

.home-star-label {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    max-width: 78%;
    color: #fff;
    font-size: clamp(8px, 0.75vw, 14px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transition:
        letter-spacing 0.3s ease,
        text-shadow 0.3s ease;
}

.home-star-link:hover {
    z-index: 3;
    transform: scale(1.08);
    filter: brightness(1.08);
}

.home-star-link:hover .home-star-label,
.home-star-link:focus-visible .home-star-label {
    letter-spacing: 0.18em;
    text-shadow:
        0 1px 2px #000,
        0 0 14px rgba(255, 255, 255, 0.45);
}

.home-star-link:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 6px;
    border-radius: 50%;
}

.home-star-one {
    --star-size: clamp(92px, 9vw, 168px);
    --star-speed: 18s;
    --star-depth: 0.72;
    top: 12%;
    left: 7%;
}

.home-star-two {
    --star-size: clamp(150px, 15vw, 280px);
    --star-speed: 31s;
    --star-opacity: 0.72;
    --star-direction: reverse;
    --star-depth: 1.28;
    top: 18%;
    right: 5%;
}

.home-star-two .home-star-label {
    font-size: clamp(7px, 0.62vw, 11px);
    letter-spacing: 0.09em;
}

.home-star-three {
    --star-size: clamp(86px, 8vw, 150px);
    --star-speed: 14s;
    --star-opacity: 0.82;
    --star-depth: 0.82;
    left: 36%;
    bottom: 4%;
}

.home-star-four {
    --star-size: clamp(105px, 10vw, 190px);
    --star-speed: 23s;
    --star-opacity: 0.78;
    --star-direction: reverse;
    --star-depth: 0.96;
    right: 19%;
    bottom: 5%;
}

.home-star-five {
    --star-size: clamp(72px, 6vw, 112px);
    --star-speed: 8s;
    --star-opacity: 0.68;
    --star-depth: 0.54;
    top: 47%;
    left: 3%;
}

@keyframes homeStarSpin {
    to {
        transform: rotate(360deg);
    }
}

.home-content {
    position: relative;
    z-index: 3;
    justify-content: flex-end;
    pointer-events: none;
}

.home-intro {
    width: fit-content;
    pointer-events: auto;
}

.home-description {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.2em;
}

.home-page .page-link {
    margin-top: 22px;
}

.home-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-decoration: none;
    pointer-events: auto;
    transform: translateX(-50%);
    transition: color 0.25s ease;
}

.home-scroll-cue span:last-child {
    color: #ff3b2f;
    font-size: 14px;
    animation: homeScrollCue 1.5s ease-in-out infinite;
}

.home-scroll-cue:hover {
    color: #fff;
}

@keyframes homeScrollCue {
    0%,
    100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(4px);
    }
}

.home-youtube {
    position: relative;
    z-index: 4;
    min-height: 100vh;
    padding: 150px 52px 70px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(255, 59, 47, 0.13),
            transparent 28%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.72) 12%,
            #050505 38%
        );
}

.home-youtube-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 62px;
}

.home-youtube-profile {
    display: flex;
    align-items: center;
    gap: 22px;
}

.home-youtube-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.12);
}

.home-youtube-kicker {
    margin-bottom: 8px;
    color: #ff3b2f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.28em;
}

.home-youtube h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.home-youtube-stats {
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    letter-spacing: 0.14em;
}

.home-youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 15px 19px;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.home-youtube-button span {
    color: #ff3b2f;
    font-size: 14px;
}

.home-youtube-button:hover {
    color: #000;
    background: #ff3b2f;
    border-color: #ff3b2f;
}

.home-youtube-button:hover span {
    color: #000;
}

.home-youtube-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-youtube-video {
    display: block;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.home-youtube-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.home-youtube-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72),
            transparent 48%
        );
    pointer-events: none;
}

.home-youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.08);
    transition:
        filter 0.45s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-youtube-thumbnail > span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.17em;
}

.home-youtube-video-title {
    display: block;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.09em;
    transition: color 0.25s ease;
}

.home-youtube-video:hover .home-youtube-thumbnail img {
    filter: saturate(1) contrast(1.04);
    transform: scale(1.035);
}

.home-youtube-video:hover .home-youtube-video-title {
    color: #ff3b2f;
}

.home-motion-ready .home-youtube-heading,
.home-motion-ready .home-youtube-video {
    opacity: 0;
    transform: translateY(42px);
}

.home-motion-ready .home-youtube-heading {
    transition:
        opacity 0.75s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-motion-ready .home-youtube-video {
    transition:
        opacity 0.7s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-motion-ready .home-youtube-video:nth-child(2) {
    transition-delay: 0.1s;
}

.home-motion-ready .home-youtube-video:nth-child(3) {
    transition-delay: 0.2s;
}

.home-motion-ready .home-youtube.is-visible .home-youtube-heading,
.home-motion-ready .home-youtube.is-visible .home-youtube-video {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 760px) {
    .home-hero-video {
        position: relative;
        left: auto;
        width: 88vw;
        height: 58dvh;
        max-width: 88vw;
        object-fit: contain;
        transform: none;
    }

    .home-city-background {
        object-position: 51% center;
        filter: brightness(0.78) contrast(1.08) saturate(0.9);
        transform: scale(1.02);
    }

    .home-content {
        padding-bottom: 28px;
    }

    .home-description {
        max-width: 280px;
        font-size: 9px;
        line-height: 1.7;
        letter-spacing: 0.16em;
    }

    .home-page .page-eyebrow {
        margin-bottom: 10px;
    }

    .home-page .page-link {
        margin-top: 18px;
    }

    .home-scroll-cue {
        bottom: 24px;
    }

    .home-youtube {
        min-height: auto;
        padding: 112px 20px 50px;
    }

    .home-youtube-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        margin-bottom: 38px;
    }

    .home-youtube-profile {
        gap: 15px;
    }

    .home-youtube-avatar {
        width: 58px;
        height: 58px;
    }

    .home-youtube h2 {
        font-size: 40px;
    }

    .home-youtube-stats {
        max-width: 230px;
        font-size: 7px;
        line-height: 1.7;
    }

    .home-youtube-button {
        width: 100%;
        justify-content: space-between;
    }

    .home-youtube-grid {
        grid-template-columns: 82vw 82vw 82vw;
        gap: 14px;
        margin-right: -20px;
        padding-right: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-youtube-grid::-webkit-scrollbar {
        display: none;
    }

    .home-youtube-video {
        scroll-snap-align: start;
    }

    .home-star-one {
        --star-size: 86px;
        top: 13%;
        left: -18px;
    }

    .home-star-two {
        --star-size: 142px;
        top: 25%;
        right: -38px;
    }

    .home-star-three {
        --star-size: 78px;
        left: 37%;
        bottom: 16%;
    }

    .home-star-four {
        --star-size: 92px;
        right: 7%;
        bottom: 9%;
    }

    .home-star-five {
        --star-size: 70px;
        top: 54%;
        left: 3%;
    }

    .home-star-label {
        font-size: 7px;
        letter-spacing: 0.08em;
    }

    .home-star-two .home-star-label {
        font-size: 6px;
        letter-spacing: 0.06em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-star {
        animation-play-state: paused;
    }

    .home-star-link {
        translate: 0;
        scale: 1;
    }

    .home-hero-video {
        translate: 0;
        scale: 1;
    }

    .home-motion-ready .home-youtube-heading,
    .home-motion-ready .home-youtube-video {
        opacity: 1;
        transform: none;
        transition: none;
    }

}
