﻿@charset "UTF-8";

/* ==========================================
   NWO.HAKEEMB.COM — CSS
   atelier bagarre — hakeem b — 2026
   ========================================== */

:root {
    --bg-color: #121212;
    --text-color: rgba(253,251,252,0.6);
    --text-color-faded: rgba(253,251,252,0.45);
    --text-bright: rgba(253,251,252,0.42);
    --border-color: rgba(253,251,252,0.3);
    --font: "argent-pixel-cf", sans-serif;
    --transition: 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "argent-pixel-cf", sans-serif;
    font-style: normal;
    font-weight: 200;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

body {
    background: #121212;
    overflow: hidden;
    font-family: "argent-pixel-cf", sans-serif;
    min-height: 100vh;
}

/* =====================
   CONTAINER IPHONE (desktop + iPad)
   ===================== */
#phone {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* scanlines */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
      0deg, transparent, transparent 3px,
      rgba(0,0,0,0.015) 3px, rgba(0,0,0,0.015) 4px
    );
    pointer-events: none;
    z-index: 200;
}

/* =====================
   LOADER SHAPES (cercle/carré/triangle)
   ===================== */
#loader-shapes {
    position: absolute; inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
    background: #121212;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}
#loader-shapes.hidden {
    opacity: 0;
}
.loader-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.shape {
    width: 20px;
    height: 20px;
    background: rgba(253,251,252);
    animation: bounce 1s infinite;
}
.circle {
    border-radius: 50%;
    animation-delay: 0s;
}
.square {
    animation-delay: 0.2s;
}
.triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid rgba(253,251,252);
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =====================
   LOADER NWO
   ===================== */
#loader {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.8s ease;
    background: #121212;
}

#ui {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    width: 100%;
    opacity: 0;
    animation: none;
}

#nwo-title {
    font-size: clamp(15px, 7vw, 10px);
    font-weight: 400;
    word-spacing: 0px;
    letter-spacing: 3px;
    color:  var(--text-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--border-color);
    transition: opacity 0.8s ease, max-height 0.8s ease, margin 0.8s ease;
    overflow: hidden;
    max-height: 2px;
    margin-bottom: 20px;
}
.divider.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
}

#sub-title {
    font-size: clamp(10px, 1.2vw, 13px);
    font-weight: 200;
    letter-spacing: 0.25em;
    color:  var(--text-color-faded);
    transition: opacity 0.8s ease, max-height 0.8s ease, margin 0.8s ease;
    overflow: hidden;
    max-height: 40px;
    margin-bottom: 20px;
}

#code-line {
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 200;
    letter-spacing: 0.2em;
    color:  var(--text-color-faded);
    transition: opacity 0.8s ease, max-height 0.8s ease, margin 0.8s ease;
    overflow: hidden;
    max-height: 40px;
    margin-bottom: 20px;
}

#sub-title.hidden, #code-line.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
}

/* =====================
   TYPEWRITER
   ===================== */
#typewriter-wrap {
    width: 100%;
    padding: 0 10px;
    text-align: left;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease;
    margin-top: 0;
}
#typewriter-wrap.visible {
    opacity: 1;
}
#typewriter-text {
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 0.06em;
    line-height: 1.8;
    color:  var(--text-color);
    word-break: break-word;
    font-family: "argent-pixel-cf", sans-serif;
    text-align: justify;
    display: block;
    width: 100%;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =====================
   BARRE DE BOUTONS
   ===================== */
#btn-bar {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}
#btn-bar.visible {
    opacity: 1;
    pointer-events: auto;
}

#btn-download, #btn-enter, #btn-pdf {
    border: 1px solid  var(--border-color);
    border-radius: 0px;
    background: #121212;
    color: var(--text-color-faded);
    font-family: "argent-pixel-cf", sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.3em;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s, background 0.3s;
}
#btn-download:hover, #btn-download:active,
#btn-enter:hover, #btn-enter:active,
#btn-pdf:hover, #btn-pdf:active {
    background: #C0C0C0;
    color: #121212;
}

/* =====================
   MODAL POLAROID
   ===================== */
#modal-poster {
    display: none;
    position: absolute; inset: 0;
    background: rgba(12,12,12,0.96);
    z-index: 50;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
}
#modal-poster.active {
    display: flex;
    opacity: 1;
}

#modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 280px;
    padding: 0 4px;
}

#modal-dl, #modal-close {
    border: 1px solid  var(--border-color);
    border-radius: 0px;
    background: transparent;
    color:  var(--text-color-faded);
    font-family: "argent-pixel-cf", sans-serif;
    font-size: 9px;
    font-weight: 200;
    letter-spacing: 0.3em;
    padding: 7px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s, background 0.3s;
    -webkit-tap-highlight-color: transparent;
}
#modal-dl:hover, #modal-dl:active,
#modal-close:hover, #modal-close:active {
    background: #C0C0C0;
    color: #121212;
}

#modal-img-wrap {
    width: 280px;
}
#modal-img {
    width: 100%;
    height: auto;
    display: block;
    clip-path: inset(0 0 100% 0);
}
#modal-img.develop {
    animation: polaroid-develop 2s ease-out forwards;
}
@keyframes polaroid-develop {
    0%   { clip-path: inset(0 0 100% 0); }
    100% { clip-path: inset(0 0 0% 0); }
}

@keyframes polaroid-retract {
    0%   { clip-path: inset(0 0 0% 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

/* =====================
   VIDEO PAGE
   ===================== */
#video-page {
    display: none;
    position: absolute; inset: 0;
    background: #121212;
    z-index: 20;
    justify-content: center;
    align-items: center;
}
#video-page.active {
    display: flex;
    animation: fin 1s both;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.video-label {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    font-family: "argent-pixel-cf", sans-serif;
    font-size: 0.6rem; font-weight: 200;
    text-align: center;
    color: rgba(253,251,252,0.42);
    white-space: nowrap;
    pointer-events: none;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
}

#btn-back {
    color: rgba(253,251,252,0.42);
    font-family: "argent-pixel-cf", sans-serif;
    font-size: 0.6rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    border: 1px solid rgba(253,251,252,0.2);
    border-radius: 0px;
    padding: 3px 7px;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
    -webkit-tap-highlight-color: transparent;
}
#btn-back:hover, #btn-back:active {
    background: rgba(253,251,252,0.1);
    color: rgba(253,251,252,0.8);
}

@keyframes fin {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0); }
}

/* =====================
   DESKTOP + IPAD : container iPhone
   ===================== */
@media (min-width: 769px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #121212;
		height: calc(var(--vh, 1vh) * 100);
        min-height: calc(var(--vh, 1vh) * 100);
    }
    #phone {
        width: 390px;
        height: 844px;
        border-radius: 0px;
        overflow: hidden;
        position: relative;
    }
    #nwo-title { font-size: 13px; }
    #sub-title  { font-size: 10px; }
    #code-line  { font-size: 9px; }
    #btn-enter  { font-size: 10px; }
    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* =====================
   LAPTOP / MACBOOK : hauteur contrainte
   ===================== */
@media (min-width: 769px) and (max-height: 860px) {
    #phone {
        width: auto;
        height: calc(var(--vh, 1vh) * 96);
        aspect-ratio: 390 / 844;
        border-radius: 0;
    }
    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        padding: 5px;
    }
}
/* =====================
   MOBILE : plein écran
   ===================== */
@media (max-width: 768px) {
    #phone {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}