/*! Fonts de Google (pas supp important)!*/
@import url('https://fonts.googleapis.com/css2?family=Micro+5&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@500&display=swap');

@font-face {
    font-family: "Microsoft 98";
    src: url("/MSW98UI-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -1; /* derrière tout */
}

.container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.slider {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

.accueil {
    justify-content: flex-start;

    padding-left: 8vw;
}

.browser {
    width: 48vw;
    height: 64vh;
    max-width: 900px;
    max-height: 600px;

    border: 12px solid black;
    background: white;
}

.browser-top {
    height: 60px;
    border-bottom: 12px solid black;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;
}

.browser-app {
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-app img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.browser-actions {
    display: flex;
    gap: 12px;
}

.browser-actions span {
    width: 24px;
    height: 24px;
    background: black;
}

.browser-content {
    padding: 30px;
}

.project {
    justify-content: space-between;
    align-items: center;
    padding: 2vh 4vw;
    position: relative;
    overflow: hidden;
}
.project::before {
    content: "";
    position: absolute;
    inset: 0;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Le flou est visible à gauche puis disparaît */
    mask-image: linear-gradient(
        to right,
        black 0%,
        black 30%,
        transparent 100%
    );

    -webkit-mask-image: linear-gradient(
        to right,
        black 0%,
        black 30%,
        transparent 100%
    );

    pointer-events: none;
}
.project-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-200px);
}

.project-logo {
    width: 30vw;
    height: auto;
}

.project-left p {
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    opacity: 0.8;
}

.browser-btn {
    padding: 12px 20px;
    border: 12px solid black;
    background: white;
    font-family: "Oswald", sans-serif;
    font-size: 3vh;
    cursor: pointer;
    transition: 0.2s ease;

}

.browser-btn:hover {
    background: black;
    color: white;
}

.project-browser-overlay {
    position: fixed;
    inset: 0;
    

    display: none;

    z-index: 9999;
}

.project-browser {
    position: relative  ;
    width: 100%;
    height: 100%;

    border: 12px solid black;
    background: white;

    display: flex;
    flex-direction: column;

    min-height: 400px;
}

.project-browser-top {
    height: 60px;
    border-bottom: 12px solid black;
    flex-shrink: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.project-browser-app {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-browser-app img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.project-browser-actions {
    display: flex;
    gap: 12px;
    padding-right: 20px;    
}

.project-browser-actions span {
    width: 24px;
    height: 24px;
    background: black;
    cursor: pointer;
}

.project-browser-content {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: center;

    text-align: left;

    padding: 2rem 2rem 2.5rem;
    overflow-y: auto;
    background: white;
    color: black;
    scrollbar-color: #000 #f0f0f0;
    scrollbar-width: auto;
}

.project-browser-content::-webkit-scrollbar {
    width: 18px;
}

.project-browser-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-left: 4px solid #000;
}

.project-browser-content::-webkit-scrollbar-thumb {
    background: #000;
    border: 4px solid #f0f0f0;
}

.project-browser-content::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.project-text {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.project-text h1 {
    margin: 0 0 0.7rem;
    font-family: "Microsoft 98", sans-serif;
    font-size: 2.4rem;
    text-transform: uppercase;
}

.project-text h2 {
    margin: 0 0 0.4rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.project-text h3 {
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.project-text p {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 900px;
    color: black;
    text-align: left;
}

.project-visuals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 900px;
}

.project-visuals img {
    width: min(540px, 100%);
    height: auto;
    object-fit: cover;
    border: 4px solid black;
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.project-browser-overlay.active {
    display: block;

    animation: openWindow 0.3s ease;
}

@keyframes openWindow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-size: 8.7vw;
    font-family: "Oswald", sans-serif;
    margin: 0;
}

h2 {
    font-size: 3.4vw;
    font-family: "Montserrat", sans-serif;
    margin: 0;
}

h3 {
    font-family: "Microsoft 98", sans-serif;
    font-size: 20px;
    margin: 0;
}

p{
    font-size: 24px;
    font-family: "Montserrat", sans-serif;
    margin: 0;
}

.project-left.visible {
    animation: slideInFromLeft 0.8s ease-out forwards 0.6s;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}