* {
    margin: 0;
    padding: 0;
}

html,
body {
    overflow: hidden;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

.jitter {
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: jittery;
    z-index: -10;
}

.interface-wrapper {
    width: 100%;
    top: 64px;
    left: 64px;
}

/* Boutons son / camera : symetriques du logo FORASTECH de .interface-wrapper. */
.top-right-controls {
    top: 64px;
    right: 64px;
}

.icon-control-container {
    height: 26.5px;
    width: 26.5px;
}

/* Mode jeu (src/Game) : les salles sont tantot claires (couloir), tantot
   sombres (CTF, salle serveur). Les icones passent en clair sur une pastille
   sombre, lisible partout ; les marges negatives gardent les icones en place. */
body.game-mode .top-right-controls {
    padding: 8px 14px;
    margin: -8px -14px;
    border-radius: 999px;
    background: rgba(13, 12, 11, 0.6);
    backdrop-filter: blur(6px);
}
body.game-mode .top-right-controls img {
    filter: invert(1);
}
.map-toggle {
    color: #f4efe6;
}
/* Bouton camera actif = halo vert ForAsTech : un clic ramene au bureau. */
.icon-control-container.is-game-active img {
    filter: invert(1) drop-shadow(0 0 6px rgba(192, 254, 4, 0.9));
}

@media only screen and (max-width: 768px) {
    .interface-wrapper {
        width: 100%;
        top: 24px;
        left: 24px;
    }

    .top-right-controls {
        top: 24px;
        right: 24px;
    }

    .icon-control-container {
        height: 19.5px;
        width: 19.5px;
    }
}

@keyframes jittery {
    10% {
        transform: translate(-0.1px, -0.15px) scale(1, 1);
    }

    20% {
        transform: translate(0.15px, 0.1px) scale(1, 1);
    }

    30% {
        transform: translate(-0.2px, -0.25px) scale(1, 1);
    }

    40% {
        transform: translate(0.05px, 0.1px) scale(1, 1);
    }

    50% {
        transform: translate(-0.025px, -0.05px) scale(1, 1);
    }

    60% {
        transform: translate(0px, 0.075px) scale(1, 1);
    }

    70% {
        transform: translate(-0.075px, -0.1px) scale(1, 1);
    }

    80% {
        transform: translate(0.075px, 0.125px) scale(1, 1);
    }

    90% {
        transform: translate(-0.125px, -0.075px) scale(1, 1);
    }

    100% {
        transform: translate(0.075px, 0.025px) scale(1, 1);
    }
}

/* Interface 2D de la scene.
   Couleurs et police reprises du kit logo (2/public/brand/), pour que
   l'habillage de la scene suive la meme charte que le site. */
@font-face {
    /* Syne, graisse 700 : police des titres, la meme que sur le site. */
    font-family: 'Syne UI';
    src: url(assets/fonts/be1f73a793f6d6a1.woff2) format('woff2-variations');
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    /* Montserrat auto-hebergee, sous-ensemble latin : texte courant de
       l'interface, proche du logotype FORASTECH. */
    font-family: 'Montserrat UI';
    src: url(assets/fonts/a838cfed199e32f6.woff2) format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --fat-navy-900: #0a1730;
    --fat-blue-600: #2f6bff;
    --fat-teal-500: #12c2b0;
    --fat-orange-600: #ff7a1a;
    --fat-slate-200: #d7dde6;
}

h1,
h2,
h3,
h4,
h5,
p {
    font-family: 'Montserrat UI', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.01em;
    /* Etait rgb(58, 46, 219), un bleu-violet sans origine. */
    color: var(--fat-navy-900);
    /* mobile friendly font size */
    font-size: 16px;
}

/* if on mobile */
@media only screen and (max-width: 768px) {
    h1,
    h2,
    h3,
    h4,
    h5,
    p {
        font-size: 10px;
    }
}

br {
    padding-top: 8px;
    padding-bottom: 8px;
    height: 16px;
}

.loading::after {
    display: inline-block;
    animation: dotty steps(1, end) 1s infinite;
    content: '';
}

@keyframes dotty {
    0% {
        content: '   ';
    }
    25% {
        content: '. ';
    }
    50% {
        content: '.. ';
    }
    75% {
        content: '...';
    }
    100% {
        content: '   ';
    }
}
/* Etait #fff dans une boite blanche : invisible. */
.blinking-cursor {
    background-color: var(--fat-teal-500);
    width: 0.8em;
    height: 0.15em;
    -webkit-animation: 0.65s blink step-end infinite;
    -moz-animation: 0.65s blink step-end infinite;
    -ms-animation: 0.65s blink step-end infinite;
    -o-animation: 0.65s blink step-end infinite;
    animation: 0.65s blink step-end infinite;
}

@keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: var(--fat-teal-500);
    }
}

@-moz-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: var(--fat-teal-500);
    }
}

@-webkit-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: var(--fat-teal-500);
    }
}

@-ms-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: var(--fat-teal-500);
    }
}

@-o-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: var(--fat-teal-500);
    }
}

.bios-start-button {
    background-color: var(--fat-navy-900);
    border: 4px solid var(--fat-teal-500);
    border-width: 4px 3px 4px 3px;
}

.bios-start-button p {
    box-sizing: border-box;
    padding: 8px;
    /* La regle globale met <p> en navy : sur le fond navy du bouton, le
       libelle deviendrait invisible. La couleur est donc forcee ici. */
    color: #ffffff;
}

.bios-start-button:hover p {
    background-color: var(--fat-teal-500);
    cursor: pointer;
    color: var(--fat-navy-900);
}

.loading-screen-header {
    padding: 48px;
}

.loading-screen-body {
    padding-left: 48px;
    padding-right: 48px;
}

.loading-screen-footer {
    padding: 48px;
    padding-bottom: 64px;
}

.info-wrapper {
    top: 64px;
    left: 64px;
}

/* if on mobile make all loading screen elements have a padding of 16 */
@media only screen and (max-width: 768px) {
    .loading-screen-header {
        padding: 16px;
    }

    .info-wrapper {
        top: 16px;
        left: 16px;
    }

    .blinking-cursor {
        background-color: var(--fat-teal-500);
        width: 0.4em;
        height: 0.08em;
        -webkit-animation: 0.65s blink step-end infinite;
        -moz-animation: 0.65s blink step-end infinite;
        -ms-animation: 0.65s blink step-end infinite;
        -o-animation: 0.65s blink step-end infinite;
        animation: 0.65s blink step-end infinite;
    }
    
    .loading-screen-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .loading-screen-footer {
        padding: 16px;
        padding-bottom: 32px;
    }
}



/* Chargement : le cube ForAsTech respire pendant que la scene se charge. */
.fora-loader-logo {
    animation: fora-breathe 1.6s ease-in-out infinite;
}

/* Anneau de chargement autour du logo : piste discrete + arc lime qui
   tourne, comme le loader Hostinger. */
.fora-loader-ring {
    position: relative;
    display: flex;
    width: 116px;
    height: 116px;
    align-items: center;
    justify-content: center;
}

.fora-loader-ring::before,
.fora-loader-ring::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    content: '';
}

.fora-loader-ring::before {
    border: 3px solid rgba(192, 254, 4, 0.14);
}

.fora-loader-ring::after {
    border: 3px solid transparent;
    border-top-color: #c0fe04;
    border-right-color: #c0fe04;
    filter: drop-shadow(0 0 6px rgba(192, 254, 4, 0.55));
    animation: fora-spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

@keyframes fora-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fora-breathe {
    0%,
    100% {
        opacity: 0.75;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reflet qui file le long de la barre, comme chez Hostinger. */
.fora-topbar-fill {
    position: relative;
}

.fora-topbar-fill::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: fora-shine 1.2s linear infinite;
}

@keyframes fora-shine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fora-loader-logo,
    .fora-loader-ring::after,
    .fora-topbar-fill::after {
        animation: none;
    }
}

/* ==========================================================
   Mode jeu : calque de capture, HUD, overlay "ecran", carte
   Sous les boutons du haut a droite (z-index 1000), au-dessus de la scene.
   ========================================================== */
.game-root {
    position: fixed;
    inset: 0;
    z-index: 900;
    color: #f4efe6;
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}
.game-root[hidden],
.game-root [hidden] {
    display: none !important;
}
/* Calque transparent sur la scene de la landing : recoit la souris en mode
   jeu (et le pointer lock), pour que rien n'atteigne l'iframe du moniteur. */
.game-capture {
    position: absolute;
    inset: 0;
}
.game-root kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 0.1em 0.4em;
    margin: 0 1px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    font-family: Consolas, ui-monospace, monospace;
    font-size: 0.8em;
    text-align: center;
}

.game-fade {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #0d0c0b;
    opacity: 0;
    pointer-events: none;
    transition-property: opacity;
    transition-timing-function: ease;
}

/* ---------- HUD ---------- */
.game-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.game-room {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 6px;
    background: rgba(13, 12, 11, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font: 600 13px Consolas, ui-monospace, monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5ad1c4;
}
.game-prompt {
    position: absolute;
    left: 50%;
    bottom: 22vh;
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(13, 12, 11, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    white-space: nowrap;
}
.game-prompt kbd {
    color: #ffb454;
    border-color: rgba(255, 180, 84, 0.5);
}
.game-lock {
    position: absolute;
    left: 50%;
    top: 108px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(13, 12, 11, 0.78);
    font-size: 13px;
    color: #b9ad9c;
}
.game-controls {
    position: absolute;
    left: 24px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    max-width: calc(100vw - 48px);
    font-size: 12px;
    color: #b9ad9c;
}

/* ---------- Overlay "ecran" ---------- */
.game-overlay,
.game-map {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(5, 5, 8, 0.68);
    backdrop-filter: blur(4px);
    animation: game-pop 0.22s ease;
}
@keyframes game-pop {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.game-window,
.game-map-panel {
    display: flex;
    flex-direction: column;
    background: #141219;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.game-window {
    width: min(1100px, 94vw);
    height: min(720px, 88vh);
}
.game-window header,
.game-map-panel header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #1c1922;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.game-window h2 {
    flex: 1;
    margin: 0;
    font: 600 14px Consolas, ui-monospace, monospace;
    color: #b9ad9c;
}
.game-dots {
    display: flex;
    gap: 6px;
}
.game-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}
.game-dots i:nth-child(2) {
    background: #febc2e;
}
.game-dots i:nth-child(3) {
    background: #28c840;
}
.game-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f4efe6;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    flex: none;
}
.game-close:hover {
    background: rgba(255, 255, 255, 0.08);
}
.game-window-body {
    flex: 1;
    overflow: auto;
    padding: 28px 32px;
    line-height: 1.6;
}
.game-window-body.gm-body--frame {
    padding: 0;
    overflow: hidden;
}
.gm-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.gm-lead {
    font-size: 18px;
    margin: 0 0 16px;
}
.gm-list {
    margin: 0 0 20px 20px;
}
.gm-list li::marker {
    color: var(--accent);
}
.gm-muted {
    color: #8f8678;
}
.gm-pre {
    font-family: Consolas, ui-monospace, monospace;
    background: #0c0b10;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 12px 0;
}
.gm-flag {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.gm-flag input {
    flex: 1;
    max-width: 360px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0c0b10;
    color: #f4efe6;
    font-family: Consolas, ui-monospace, monospace;
}
.gm-flag button,
.game-map-list button {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--accent, #ff4fa3);
    background: transparent;
    color: var(--accent, #ff4fa3);
    font-weight: 600;
    cursor: pointer;
}
.gm-flag button:hover,
.game-map-list button:hover {
    background: rgba(255, 255, 255, 0.06);
}
.gm-feedback.is-ok {
    color: #22c55e;
}
.gm-feedback.is-ko {
    color: #ef4444;
}

/* ---------- Carte ---------- */
.game-map-panel {
    width: min(880px, 94vw);
    max-height: 90vh;
}
.game-map-panel header h2 {
    margin: 0;
    font-size: 18px;
    color: #f4efe6;
}
.game-map-panel header p {
    flex: 1;
    margin: 0;
    color: #8f8678;
    font-size: 13px;
}
.game-map-plan {
    display: block;
    width: 100%;
    max-height: 38vh;
    background: #0f0e14;
    padding: 12px;
    box-sizing: border-box;
}
.game-map-dot {
    fill: #ff3b3b;
    stroke: #fff;
    stroke-width: 0.1;
    animation: game-dot 1.2s ease-in-out infinite;
}
@keyframes game-dot {
    50% {
        opacity: 0.45;
    }
}
.game-map-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    overflow: auto;
}
.game-map-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.game-map-list li.is-here {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}
.game-map-list li.is-here button::after {
    content: ' (ici)';
}
.game-map-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex: none;
}
.game-map-list li div {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #b9ad9c;
}
.game-map-list li strong {
    font-size: 15px;
    color: var(--accent);
}

@media (max-width: 768px) {
    .game-controls {
        display: none;
    }
    .game-room {
        top: 24px;
    }
}

/* Message d'accueil : pas de touche E devant */
.game-prompt.is-flash kbd {
    display: none;
}

/* Couleurs de l'intro, reprises du systeme visuel de LOVA (DESIGN.md du
   depot songomby-D1/devfest2026, branche develop) : fond de galerie sombre,
   encre claire, et le lime comme unique accent. Seule l'intro change ici ;
   le reste de la scene garde ses couleurs. */
:root {
    --lova-gallery-900: #0d0c0b;
    --lova-ink-light: rgb(243, 239, 230);
    --lova-lime: #c0fe04;
}

@font-face {
    font-family: 'ModernSans-Light';
    src: url(assets/fonts/8b74dc20bfce2481.otf) format('opentype');
}
@font-face {
    font-family: 'VenusRising-Regular';
    src: url(assets/fonts/6e445fb5f9c09315.ttf) format('truetype');
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* dvh suit la barre d'outils mobile qui se replie : avec 100% seul,
       l'overlay depassait le bas de l'ecran sur iOS et le texte centre
       n'etait plus centre. Declare apres, donc ignore la ou dvh manque. */
    height: 100dvh;
    background: var(--lova-gallery-900);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

#intro-overlay.intro-hidden {
    opacity: 0;
    pointer-events: none;
}

#intro-message {
    position: relative;
    width: 100%;
    height: 100%;
}

#intro-message h3 {
    position: absolute;
    margin: 0;
    color: var(--lova-ink-light);
    font-size: 7vw;
    font-family: 'VenusRising-Regular';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
}

/* La lettre mise en avant porte le lime de LOVA, seule couleur d'accent du
   systeme. Sur le fond de galerie sombre son contraste reste franc, ce qui
   n'aurait pas ete le cas sur le fond papier clair. */
#intro-message h3 span {
    color: var(--lova-lime);
}

/* Mobile et tablette recoivent la meme intro que le bureau. 7vw y donne un
   texte minuscule (~27px sur un telephone) perdu au milieu de l'ecran : on
   remonte la taille, le mot le plus long (PRESERVING) tenant encore sur une
   ligne sans retour, ce que white-space: nowrap impose. */
@media (max-width: 900px) {
    #intro-message h3 {
        font-size: 12vw;
    }
}


/*# sourceMappingURL=main.ffe732f654e4c5ac.css.map*/