/* =========================
GLOBAL
========================= */

html {
    scroll-behavior: smooth;
}

/* =========================
LAYOUT
========================= */

.project-page {
    width: 100%;
    max-width: 1800px;

    margin: 0 auto;

    padding:
        clamp(120px, 8vw, 140px)
        clamp(20px, 3vw, 40px)
        clamp(20px, 2vw, 40px);
}

/* =========================
HERO
========================= */

.project-hero {
    margin-bottom: clamp(100px, 10vw, 180px);
}

/* =========================
TEXT
========================= */

.project-subtitle {
    display: inline-block;

    text-transform: uppercase;

    margin-bottom: clamp(24px, 3vw, 40px);

    padding:
        clamp(8px, 1vw, 10px)
        clamp(10px, 1.2vw, 14px);

    font-size: clamp(24px, 2vw, 32px);

    line-height: 1.1;

    letter-spacing: -0.05em;

    font-family: 'Font1572';

    color: #00FF00;

    background-color: #054423;
}

.project-title {
    width: min(85%, 1400px);

    margin-bottom: clamp(24px, 3vw, 40px);

    font-size: clamp(42px, 5vw, 72px);

    line-height: 0.9;

    font-weight: 300;

    letter-spacing: -0.06em;
}

.project-description {
    width: min(50%, 780px);

    margin-bottom: clamp(30px, 4vw, 50px);

    font-size: clamp(18px, 1.5vw, 24px);

    line-height: 1.35;

    font-weight: 300;

    letter-spacing: -0.03em;
}

/* =========================
VIDEO LINK
========================= */

.video-link {
    position: relative;

    width: fit-content;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.08em;

    color: black;

    margin-right: 20px;
}

/* ligne */

.video-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 100%;
    height: 1px;

    background: black;

    transform-origin: left;

    transition: transform 0.3s ease;
}

/* hover */

.video-link:hover::after {
    transform: scaleX(0.4);
}

/* =========================
GRID
========================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(8, 1fr);

    gap: clamp(8px, 1vw, 14px);

    margin-bottom: clamp(80px, 8vw, 140px);
}

/* =========================
ITEM
========================= */

.grid-item {
    position: relative;

    overflow: hidden;

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

.grid-item.visible {
    opacity: 1;

    transform: translateY(0);
}

/* =========================
IMAGES
========================= */

.grid-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}

.grid-item:hover img {
    transform: scale(1.02);
}

/* =========================
FORMATS
========================= */

.landscape {
    grid-column: span 4;

    aspect-ratio: 4 / 2;
}

.landscape2 {
    grid-column: span 4;

    aspect-ratio: 4 / 3;
}

.portrait {
    grid-column: span 4;

    aspect-ratio: 4 / 6;
}

.portrait2 {
    grid-column: span 2;

    aspect-ratio: 4 / 6;
}

.square {
    grid-column: span 2;

    aspect-ratio: 1 / 1;
}

.square2 {
    grid-column: span 4;

    aspect-ratio: 1 / 1;
}

.full {
    grid-column: span 8;

    aspect-ratio: 16 / 9;
}

.full2 {
    grid-column: span 8;

    aspect-ratio: 16 / 6;
}

/* =========================
NAVIGATION
========================= */

.project-navigation {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: clamp(14px, 2vw, 24px);

    padding-bottom: clamp(20px, 4vw, 40px);
}

/* =========================
LIENS
========================= */

.nav-project {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        clamp(8px, 1vw, 10px)
        clamp(12px, 1.5vw, 16px);

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* =========================
FOND HOVER
========================= */

.nav-project::before {
    content: "";

    position: absolute;

    inset: 0;

    background-color: #054423;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;

    z-index: 0;
}

/* =========================
TEXTE
========================= */

.nav-project span {
    position: relative;

    z-index: 2;

    font-size: clamp(18px, 1.6vw, 26px);

    line-height: 1;

    font-family: 'Font1572';

    letter-spacing: -0.05em;

    color: black;

    transition: color 0.3s ease;
}

/* =========================
SVG
========================= */

.nav-project img {
    position: relative;

    z-index: 2;

    width: 14px;

    height: auto;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

/* =========================
HOVER
========================= */

.nav-project:hover::before {
    transform: scaleX(1);
}

.nav-project:hover span {
    color: #00FF00;
}

/* animation fleches */

.nav-project:first-child:hover img {
    transform: translateX(-4px);

    filter:
        brightness(0)
        saturate(100%)
        invert(80%)
        sepia(88%)
        saturate(746%)
        hue-rotate(57deg)
        brightness(103%)
        contrast(104%);
}

.nav-project:last-child:hover img {
    transform: translateX(4px);

    filter:
        brightness(0)
        saturate(100%)
        invert(80%)
        sepia(88%)
        saturate(746%)
        hue-rotate(57deg)
        brightness(103%)
        contrast(104%);
}

/* =========================
REVEAL
========================= */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 1s ease,
        transform 1s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}

/* =========================
RESPONSIVE
========================= */

/* =========================
TABLETTE
========================= */

@media (max-width: 1024px) {

    .project-page {
        padding:
            120px
            30px
            120px;
    }

    .project-hero {
        margin-bottom: 100px;
    }

    .project-title {
        width: 100%;
    }

    .project-description {
        width: 70%;
    }

    /* grille */

    .project-grid {

        grid-template-columns: repeat(4, 1fr);

        gap: 12px;
    }

    /* formats */

    .landscape {
        grid-column: span 2;
    }

    .landscape2 {
        grid-column: span 2;
    }

    .portrait {
        grid-column: span 2;
    }

    .portrait2 {
        grid-column: span 1;
    }

    .square {
        grid-column: span 1;
    }

    .square2 {
        grid-column: span 2;
    }

    .full {
        grid-column: span 4;
    }

    .full2 {
        grid-column: span 4;
    }

}

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

@media (max-width: 768px) {

    .project-page {
        padding:
            120px
            20px
            100px;
    }

    .project-hero {
        margin-bottom: 80px;
    }

    .project-title {
        width: 100%;
        margin-bottom: 24px;
    }

    .project-description {
        width: 100%;
        margin-bottom: 30px;
    }

    /* grille */

    .project-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

        margin-bottom: 100px;
    }

    /* grands formats */

    .landscape {
        grid-column: span 2;
    }

    .landscape2 {
        grid-column: span 2;
    }

    .portrait {
        grid-column: span 2;
    }

    .square2 {
        grid-column: span 2;
    }

    .full {
        grid-column: span 2;
    }

    .full2 {
        grid-column: span 2;
    }

    /* petits formats */

    .portrait2 {
        grid-column: span 1;
    }

    .square {
        grid-column: span 1;
    }

    /* navigation */

    .project-navigation {

        gap: 20px;

        flex-wrap: wrap;
    }

}

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

@media (max-width: 480px) {

    .project-page {
        padding:
            110px
            16px
            80px;
    }

    /* grille */

    .project-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }

    /* grands formats */

    .landscape,
    .landscape2,
    .full,
    .full2 {

        grid-column: span 2;

        aspect-ratio: 4 / 2;
    }

    /* portraits façon story */

    .portrait {

        grid-column: span 1;

        aspect-ratio: 9 / 16;
    }

    .portrait2 {

        grid-column: span 1;

        aspect-ratio: 9 / 14;
    }

    .full-mobile {
        aspect-ratio: 4 / 3;
    }

    /* carrés = toujours deux côte à côte */

    .square {

        grid-column: span 1;

        aspect-ratio: 1 / 1;
    }

    .square2 {

        grid-column: span 2;

        aspect-ratio: 1 / 1;
    }

    /* navigation */

    .project-navigation {
        gap: 14px;
    }

}

/* =========================
BREAKS
========================= */

/* état par défaut */

.break-desktop,
.break-mobile {
    display: inline;
}

/* desktop */

.break-desktop {
    display: block;
}

/* mobile */

@media (max-width:768px){

    .break-desktop {
        display: inline;
    }

    .break-mobile {
        display: block;
    }

}