@font-face {
    font-family: 'SansPlomb-98';
    src: url('assets/fonts/SansPlomb-98.woff2') format('woff2'),
         url('assets/fonts/SansPlomb-98.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SansPlomb-95';
    src: url('assets/fonts/SansPlomb-95.otf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VictorNarrow-RegularItalic';
    src: url('assets/fonts/VictorNarrow-RegularItalic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Darkmode-Mono-Off-Trial';
    src: url('assets/fonts/DarkmodeMonoOn_Trial_Rg.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'VictorNarrow-RegularItalic', sans-serif;
    margin: 0;
    color: #1A1A1A;
    overflow-x: hidden;
    background-color: #FFF9F6;
}

header {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo{
    margin: auto;
}

header .logo img {
    height: 130px;
}

header nav {
    display: flex;
    gap: 2rem;
}

header nav a {
    text-decoration: none;
    color: #1A1A1A;
    font-family: 'SansPlomb-98', sans-serif;
    font-size: 1.5rem;
}

.hero {
    position: relative;
    top: -135px;
    height: 143vh;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    overflow: hidden;
    padding: 0;
}

.hero .video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
}

.hero h1 {
    font-family: 'SansPlomb-95', sans-serif;
    max-width: 750px;
    padding: 5rem;
    font-size: 4rem;
    position: relative;
    z-index: 1;
}


h2 {
    font-family: 'SansPlomb-98', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

section {
    padding: 4rem;
}

.philosophy{
    position: relative;
    top: -140px; 
}

.philosophy-container{
    background-color: #00E6FF;
    text-align: center;
    margin-left: 9rem;
    margin-right: 9rem;
}

.philosophy h2, .projects h2, .method h2, .process h2, .produits h2 {
    padding-top: 2rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    font-family: 'SansPlomb-95', sans-serif;
    font-size: 3rem;
}

.philosophy h2::after, .projects h2::after, .method h2::after, .process h2::after, .produits h2::after {
    content: "";
    display: block;
    width: 80%;
    height: 3px;
    background-color: #1A1A1A;
    position: absolute;
    bottom: 0;
    left: 10%;
}

.philosophy-content{
    display: flex;
    align-items: center;
    text-align: left;
}

.philosophy p{
    font-size: 24px;
    padding-right: 3rem;
    font-family: 'Darkmode-Mono-Off-Trial';
}

.philosophy img{
    width: 50%;
}


p {
    line-height: 1.6;
}

.projects {
    text-align: center;
    position: relative;
    top: -140px;
    padding: 0;
}

.projects h2{
    margin-bottom: 4rem;
}

.project-item {
    display: flex;
    text-align: left;
    cursor: pointer;
    align-items: center;
    position: relative;
}

.project-item img {
    width: 60%;
    display: block;
    position: relative;
    z-index: 2; /* Image on top of text animation if needed */
}

.project-item p {
    line-height: 1.9;
    font-size: 24px;
    padding: 3rem;
    margin-top: 0;
    width: 40%;
    transition: transform 0.6s ease-out;
    position: relative;
    z-index: 1;
}

/* Text on the right (default) comes from left (behind image) */
.project-item p {
    transform: translateX(-100%);
}

/* Text on the left (Grugerie) comes from right (behind image) */
.grugerie-project p {
    transform: translateX(100%);
}

.project-item:hover p {
    transform: translateX(0);
}

/* Darken image on hover */
.project-item:hover img {
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}

/* Play Icon */
.project-item::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0; 
    height: 0; 
    border-left: 30px solid white;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    left: 30%; /* Center of 60% image (Left aligned) */
}

/* Grugerie (Image Right): Icon at 70% (40% Text + 30% Half-Image) */
.grugerie-project::after {
    left: 70%;
}

.grugerie-project{
    top: -40px;
}

.premier-jour-project{
    top: -65px;
}

.project-item:hover::after {
    opacity: 1;
}

.method{
    position: relative;
    top: -180px; 
    text-align: center;
}

.method h2{
    margin-bottom: 4rem;
}

.method-img-wrapper {
    width: 65%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1; /* Define aspect ratio to maintain height */
    max-width: 1044px;
}

.method-img-wrapper img {
    width: 100%;
    height: 120%; /* Taller than container for parallax movement */
    object-fit: cover;
    display: block;
    position: absolute;
    top: -10%; /* Center vertically initially */
    left: 0;
    will-change: transform;
}

.method p {
    text-align: left;
    font-size: 24px;
    padding: 3rem;
    margin-top: 2rem;
    max-width: 60%;
    margin: auto;
    font-family: 'Darkmode-Mono-Off-Trial';
}

.process{
    position: relative;
    top: -140px; 
    text-align: center;
    background-color: #3FFFB3;
    padding-bottom: 11rem;
}

.process h2{
    margin-top: 0;
    margin-bottom: 4rem;
}

.process-content{
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
}

.process-item{
    width: 25%;
}

.process h3{
    font-size: 3rem;
    font-family: 'SansPlomb-98', sans-serif;
}

.process p{
    font-size: 25px;
    font-family: 'SansPlomb-95';
}


.produits{
    position: relative;
    top: -140px; 
    text-align: center;
}

.produits h2{
    margin-top: 0;
    margin-bottom: 4rem;
}

.produits-container {
    position: relative;
    width: 60%;
    /* margin: 0; Implicit left align */
}

.produits img{
    width: 60%;
    display: block;
}

/* Badges Styles */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation)); }
    50% { transform: translateY(-10px) rotate(var(--rotation)); }
}

.badge {
    position: absolute;
    background-color: #00E6FF;
    color: #1A1A1A;
    padding: 0.5rem 1.5rem;
    border-radius: 50%;
    font-family: 'VictorNarrow-RegularItalic', sans-serif;
    font-size: 1.2rem;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
}

.badge-portrait { top: 18%; left: 0%; --rotation: -5deg; animation-delay: 0s; }
.badge-live { top: 18%; left: 30%; --rotation: 5deg; animation-delay: 0.5s; }
.badge-reportage { top: 38%; left: 0%; --rotation: 5deg; animation-delay: 1s; }
.badge-corporate { top: 38%; left: 20%; --rotation: -5deg; animation-delay: 1.5s; }
.badge-interview { top: 35%; left: 40%; --rotation: 10deg; animation-delay: 2s; }
.badge-evenementiel { top: 60%; left: 20%; --rotation: -2deg; animation-delay: 0.8s; }
.badge-teaser { top: 80%; left: 10%; --rotation: -10deg; animation-delay: 2.5s; }
.badge-documentaire { top: 82%; left: 35%; --rotation: -10deg; animation-delay: 1.2s; }
.badge-onsenparle { top: 93%; left: 58%; --rotation: -10deg; animation-delay: 1.2s; background-color: #3FFFB3; padding: 18px;}


.mavericks{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(assets/images/COLLECTIF.png);
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    top: -140px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mavericks h3{
    font-family: 'SansPlomb-98', sans-serif;
    font-size: xx-large;
}

.mavericks p{
    font-size: 25px;
    margin: 0;
    max-width: 400px;
    text-align: left;
    position: relative;
    top: -20px;
    left: 140px;
    font-family: 'SansPlomb-95'
}


footer {
    text-align: center;
}

footer .footer-tagline{
    font-family: 'VictorNarrow-RegularItalic', sans-serif;
    max-width: 557px;
    margin: auto;
    font-size: 50px;
    padding-bottom: 50px;
}

footer img{
    width: 150px;
    padding-bottom: 100px;
}


.green{
    background-color: #3FFFB3;
    height: 80px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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


@media screen and (max-width: 1024px) {
    header .logo img {
        height: 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        padding: 3rem;
    }

    .philosophy-container {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .process-item {
        width: 45%;
    }
    .process-content {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }

    /* Header */
    header .logo img {
        height: 80px;
    }

    /* Hero */
    .hero {
        height: 100vh;
    }
    .hero h1 {
        font-size: 2rem;
        padding: 1.5rem;
        text-align: center;
        width: 100%;
        max-width: none;
    }

    /* Philosophy */
    .philosophy-container {
        margin: 0;
        width: 100%;
    }
    .philosophy-content {
        flex-direction: column;
    }
    .philosophy img {
        width: 100%;
    }
    .philosophy p {
        font-family: 'Darkmode-Mono-Off-Trial';
        padding: 1.5rem;
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    /* Projects */
    .project-item {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 2rem;
    }
    #grugerie-project {
        flex-direction: column-reverse;
    }
    .project-item img {
        width: 100%;
    }
    .project-item p {
        width: 100%;
        opacity: 1;
        transform: none !important; /* Disable animation on mobile */
        padding: 1.5rem;
        margin-top: 1rem;
        font-size: 1.2rem;
        text-align: left;
    }

    /* Center Play Icon on Mobile */
    .project-item::after, .grugerie-project::after {
        left: 50%;
    }

    /* Method */
    .method img {
        width: 100%;
    }
    .method p {
        font-family: 'Darkmode-Mono-Off-Trial';
        max-width: 100%;
        padding: 1.5rem;
        font-size: 1.2rem;
    }

    /* Process */
    .process-content {
        flex-direction: column;
    }
    .process-item {
        width: 100%;
        margin-bottom: 2rem;
    }
    .process h3 {
        font-family: 'SansPlomb-98', sans-serif;
        font-size: 2rem;
    }

    .process p {
        font-family: 'SansPlomb-95';
    }

    /* Produits */
    .produits-container {
        width: 100%; /* Full width on mobile */
    }
    .produits img {
        width: 100%;
    }
    /* Scale down badges on mobile */
    .badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Typography */
    h2 {
        font-family: 'SansPlomb-98', sans-serif;
        font-size: 2rem;
    }

    footer .footer-tagline {
        font-family: 'VictorNarrow-RegularItalic', sans-serif;
        font-size: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .mavericks h3 {
        font-family: 'SansPlomb-98', sans-serif;
    }
    
    .mavericks p{
        font-family: 'SansPlomb-95';
        left: 0px;
        text-align: center;
    }
    .badge-onsenparle{
        top:98%
    }
}
