/* Fonts */
@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-Hairline.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-HairlineItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Rebond Grotesque';
    src: url('../assets/fonts/RebondGrotesque-Extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

:root {
    --projects-stick: 0.4;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Cursor */
html,
body,
*,
*:before,
*:after,
*:hover,
*:focus,
*:active {
    cursor: none !important;
}

#custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

#custom-cursor img {
    width: 100%;
    height: 100%;
    display: block;
}

body {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    overflow-x: hidden;
    background-color: #FCFCFC;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}

/* Curtains - black blocks that split */
.curtain {
    position: absolute;
    width: 100vw;
    height: 50vh;
    background-color: #000000;
    z-index: 2;
    transition: transform 1s cubic-bezier(0.4, 0, 1, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.curtain-top {
    top: 0;
    align-items: flex-start;
}

.curtain-bottom {
    bottom: 0;
    align-items: flex-end;
}

.splash-screen.split-animation .curtain-top {
    transform: translateY(-100%);
}

.splash-screen.split-animation .curtain-bottom {
    transform: translateY(100%);
}

/* Star Container - positioned in top curtain, half visible */
.curtain-top .star-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    height: 300px;
}

.curtain-top .rotating-star {
    max-width: 600px;
    max-height: 600px;
    width: 600px;
    height: auto;
    margin-top: -300px;
    animation: rotate 3s linear infinite;
}

/* Logo Container - positioned in bottom curtain */
.curtain-bottom .logo-container {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
}

.curtain-bottom .logo {
    width: 100%;
    height: auto;
}

/* Rotation Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    position: relative;
    z-index: 100;
}

.main-content.visible {
    opacity: 1;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========== MAIN PAGE ========== */

/* App Bar */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 7vh;
    background-color: #FCFCFC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 2000;
    border-bottom: 1px solid #000000;
}

.app-bar-left {
    font-size: 14px;
    flex: 1;
}

.bold {
    font-weight: 700;
}

.light {
    font-weight: 300;
}

.app-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 700;
    text-transform: lowercase;
}

.app-bar-right {
    font-size: 30px;
    font-weight: 600;
    flex: 1;
    text-align: right;
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7vh;
    background-color: #FCFCFC;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #000000;
}

/* Landing Section */
.landing {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Hidden Projects Titles */
.hidden-projects-titles {
    position: fixed;
    top: 7dvh;
    left: 0;
    width: 100%;
    height: calc(var(--projects-stick) * 100dvh - 7dvh);
    display: flex;
    flex-direction: row;
    padding-left: 7dvw;
    padding-right: 7dvw;
    align-items: center;
    gap: 8px;
    z-index: 1601;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Safari smooth scrolling */
}

.hidden-projects-titles::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

.hidden-project-title {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: #FCFCFC;
    border: 1px solid black;
    padding-inline: 8px;
    padding-block: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.hidden-project-title.removing {
    opacity: 0;
    transform: scale(0.8);
}

.logo-stars-container {
    height: calc(var(--projects-stick) * 100dvh - 7dvh);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 7dvh;
    z-index: 1600;
    overflow: hidden;
    margin-top: calc(50vh - 16.5dvh - 3.5vh);
}


.landing-logo {
    width: calc((1 - var(--projects-stick)) * 100dvw);
    height: auto;
    z-index: 10;
    transition: width 0.1s ease-out;
    flex-shrink: 0;
    flex-grow: 0;
}

.landing-logo svg {
    max-width: 100%;
    height: auto;
}

/* Side Stars */
.star-left,
.star-right {
    position: absolute;
    height: calc(var(--projects-stick) * 100dvh - 7dvh);
    display: flex;
    align-items: center;
    transition: transform 0.1s ease-out;
}

.star-left {
    left: 0;
}

.star-right {
    right: 0;
}

.star-left img,
.star-right img {
    height: calc(var(--projects-stick) * 100dvh - 7dvh);
    width: auto;
}

.star-left img {
    transform: translateX(-50%);
}

.star-right img {
    transform: translateX(50%);
}

/* Spin animation with deceleration */
@keyframes spinStar {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes spinStarRight {
    0% {
        transform: translateX(50%) rotate(0deg);
    }

    100% {
        transform: translateX(50%) rotate(-360deg);
    }
}

@keyframes spinStarMobile {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.star-left img.spinning {
    animation: spinStar 1500ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.star-right img.spinning {
    animation: spinStarRight 1500ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.star-mobile.spinning {
    animation: spinStarMobile 1500ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.landing-logo svg path {
    transition: fill 0.3s ease;
}

/* Divider animé */
.divider {
    width: 100%;
    height: 1px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background-color: #000000;
    animation: slideIn 1.5s ease-out forwards;
}

@keyframes slideIn {
    to {
        left: 0;
    }
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
}

.scroll-arrow {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1;
    color: #000000;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Project Sections - Portfolio Scroll */
.project-section {
    position: sticky;
    top: calc(var(--projects-stick) * 100dvh);
    height: 0;
    width: 100%;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.project-content {
    height: calc((1 - var(--projects-stick)) * 100dvh);
    width: 100%;
    border-top: 1px solid #000000;
    display: flex;
    flex-direction: row;
    background-color: #FCFCFC;
}

.project-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid black;
}

.project-right {
    width: 50%;
    overflow: hidden;
}

.project-right img,
.project-right video,
.project-right picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-right picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header {
    height: 8dvh;
    border-bottom: 1px solid #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    overflow: hidden;
}

.project-info {
    display: flex;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
}

.project-title {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #000000;
    flex-shrink: 0;
}

.project-separator {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-weight: 400;
    font-size: 30px;
    color: #000000;
    margin: 0 8px;
}

.project-demand {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #757575;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.project-dates {
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    margin-top: 16px;
    color: #757575;
    font-style: italic;
}

/* Color Selector */
.color-selector {
    position: fixed;
    bottom: calc(7dvh + 15px);
    right: 30px;
    display: flex;
    align-items: end;
    justify-items: end;
    gap: 5px;
    z-index: 1000;
}

.color-option {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid transparent;
}

.color-option.active {
    border: 1px solid #000000;
}

.color-option[data-color="#D3E9DA"] {
    background-color: #D3E9DA;
}

.color-option[data-color="#D6E7F8"] {
    background-color: #D6E7F8;
}

.color-option[data-color="#FFF1CE"] {
    background-color: #FFF1CE;
}

.color-option[data-color="#F9DAE2"] {
    background-color: #F9DAE2;
}

/* Final Footer */
.final-footer {
    width: 100%;
    height: calc(var(--projects-stick) * 100dvh - 7dvh);
    background-color: #FCFCFC;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rebond Grotesque', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    position: relative;
    z-index: 3000;
    border-top: 1px solid black;
}

.footer-text {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-right: 16px;
    padding-left: 16px;
    padding-top: 8px;
}

.footer-rs {
    display: flex;
    flex-direction: column;
    font-weight: 200;
    font-size: 18px;
    align-items: end;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.line-wrapper {
    overflow: hidden;
}

.line {
    transform: translateY(100%);
    animation: revealUp 0.6s ease forwards;
    animation-play-state: paused;
}

.contact-body {
    height: 100%;
    padding-top: 7dvh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.contact-left {
    width: 50%;
    height: 100%;
    border-right: 1px solid black;
}

.contact-right {
    width: 50%;
    height: 100%;
    background-color: #e9eae4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-albane {
    object-fit: cover;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    border: 1px solid black;
    padding: 10px 14px;
    font-style: italic;
    color: black;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border: 1.5px solid black;
    font-style: normal;
}

.btn-envoyer {
    width: 240px;
    background-color: white;
    border: 1px solid black;
    padding: 8px 40px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    text-align: center;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    height: 120px;
}

@keyframes revealUp {
    to {
        transform: translateY(0);
    }
}

/* Responsive Main Page */
@media (max-width: 1000px) {
    .curtain-top .rotating-star {
        width: 400px;
        max-width: 400px;
        margin-top: -200px;
    }

    .curtain-top .star-container {
        height: 200px;
    }

    .app-bar {
        padding: 0 20px;
    }

    .app-bar-left {
        font-size: 10px;
    }

    .app-bar-center {
        font-size: 14px;
    }

    .color-selector {
        right: 20px;
        gap: 6px;
        top: calc(7dvh + 20px);
        flex-direction: column;
        z-index: 2000;
    }

    .color-option {
        width: 25px;
        height: 25px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .project-content {
        flex-direction: column;
    }

    .project-left {
        width: 100%;
        border-right: 0px solid black;
    }

    .project-right {
        width: 100%;
        overflow: hidden;

    }

    .bottom-bar {
        border-top: 0px solid #000000;
    }

    :root {
        --projects-stick: 0.27;
    }

    .informations-content {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .logo-stars-container {
        overflow: visible;
    }

    .contact-left {
        display: none;
    }

    .contact-right {
        width: 100%;
    }
}