@charset "UTF-8";

@font-face {
    font-family: "WorkbenchRegular";
    src: url("../fonts/Workbench-Regular-VariableFont_BLED,SCAN.ttf")
        format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "VT323";
    src: url("../fonts/VT323-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Style général */
html,
body {
    height: 100%; /* Force le HTML et le body à occuper 100% de la hauteur de la fenêtre */
}

html {
    font-family: "VT323", monospace; /* Police VT323 */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    color: rgb(255, 0, 0); /* Texte rouge */
    min-width: 250px;
    text-align: center;
    margin: 0;
    padding: 0;
    cursor: none; /* Désactive le curseur par défaut */
}

/* Overlay pour l'effet CRT */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Couleur avec opacité */
    pointer-events: none; /* Empêche toute interaction avec cet élément */
    z-index: 1000; /* Place l'overlay au-dessus de tout */
    animation: flicker 0.2s steps(2) infinite; /* Animation brutale */
}

@keyframes flicker {
    0% {
        opacity: 0;
    }
    24% {
        opacity: 0;
    }
    25% {
        opacity: 0.2;
    }
    49% {
        opacity: 0.2;
    }
    50% {
        opacity: 0;
    }
    74% {
        opacity: 0;
    }
    75% {
        opacity: 0.1;
    }
    99% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
    }
}

/* Screen pour l'effet CRT */
#screen {
    position: fixed; /* Fixe l'élément à la fenêtre */
    top: 0;
    left: 0;
    width: 100vw; /* Prend toute la largeur de la fenêtre */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
    overflow: hidden; /* Empêche tout débordement */
    pointer-events: none; /* Empêche toute interaction avec cet élément */
    z-index: 2000; /* Place au-dessus de tout */
}

#scan {
    position: fixed; /* Fixe l'image à la fenêtre */
    top: 0;
    left: 0;
    width: 100%; /* Prend toute la largeur de la fenêtre */
    height: 100%; /* Prend toute la hauteur de la fenêtre */
    object-fit: cover; /* Ajuste l'image pour qu'elle remplisse l'espace */
    pointer-events: none; /* Empêche toute interaction avec cet élément */
    opacity: 0.5; /* Transparence pour l'effet CRT */
    z-index: 2001; /* Place au-dessus de #screen */
}

.cross-cursor {
    position: fixed;
    font-size: 30px; /* Taille du symbole + */
    color: red; /* Couleur de la croix */
    font-weight: bold; /* Rendre la croix plus visible */
    font-family: "Courier New", Courier, monospace; /* Police fixe pour une croix parfaite */
    transform: translate(
        -50%,
        -50%
    ); /* Centrer la croix par rapport à la position du curseur */
    pointer-events: none; /* Empêche la croix d'interférer avec les éléments cliquables */
    z-index: 1000; /* Assure que le curseur est au-dessus de tout */
}

/* Conteneur du formulaire */
.form-container {
    margin: 50px auto;
    padding: 20px;
    border: 3px solid red; /* Bordure rouge */
    border-radius: 0.3em;

    max-width: 600px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

.search-bar {
    position: fixed;
    top: 0;
    left: 12px;
    width: calc(100vw - 30px); /* Ajuste le width pour éviter de dépasser */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    border: 3px solid rgb(255, 0, 0); /* Bordure rouge */
    border-radius: 0.3em; /* Coins arrondis */
    padding: 6px 0;
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: rgb(255, 0, 0); /* Texte rouge */
    z-index: 1000; /* Place au-dessus du contenu */
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6); /* Glow CRT */
}

.url-box {
    font-family: "VT323", monospace; /* Police CRT */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    color: rgb(255, 0, 0); /* Texte rouge */
    padding: 6px 0; /* Espacement vertical */
    border-radius: 0.3em; /* Coins arrondis */
    font-size: 14px;
    border: 3px solid red; /* Bordure rouge */
    width: 95%; /* Prend presque toute la largeur */
    text-align: left; /* Aligne le texte à gauche */
}

/* Contenu texte URL */
.URL {
    font-family: "VT323", monospace; /* Police CRT */
    color: rgb(255, 0, 0); /* Texte rouge */
    font-size: 20px;
    border: none;
    margin: 0;
    padding: 0 10px; /* Espacement horizontal */
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute "..." pour indiquer le dépassement */
    display: block; /* Nécessaire pour text-overflow */
}
/* Titre du formulaire */
.form-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

/* Labels des champs */
.form-container label {
    display: block;
    margin: 10px 0 5px;
    font-family: "VT323", monospace; /* Police VT323 */
    font-size: 1.5rem;
    color: rgb(255, 0, 0); /* Texte rouge */
}

/* Champs de saisie */
.form-container input,
.form-container textarea {
    font-family: "VT323", monospace; /* Police VT323 */
    font-size: 1.2rem; /* Taille du texte */
    color: rgb(255, 0, 0); /* Texte rouge */
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6); /* Glow rouge */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    border: 3px solid red; /* Bordure rouge */
    border-radius: 0.3em; /* Coins arrondis */
    padding: 10px; /* Espacement interne */
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

/* Placeholder des champs */
.form-container input::placeholder,
.form-container textarea::placeholder {
    font-family: "VT323", monospace; /* Police VT323 */
    color: rgba(255, 0, 0, 0.6); /* Texte rouge semi-transparent */
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

/* Bouton de validation */
.form-container button {
    font-family: "VT323", monospace; /* Police VT323 */
    font-size: 1.5rem;
    color: rgb(255, 0, 0); /* Texte rouge */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    border: 3px solid red; /* Bordure rouge */
    border-radius: 0.3em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

/* Effet au survol du bouton */
.form-container button:hover {
    transform: scale(1.1); /* Zoom léger au survol */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6); /* Glow plus intense */
}

/* Conteneur pour la case à cocher et le texte */
.checkbox-container {
    margin: 20px 0;
    display: flex; /* Aligne la case et le texte sur la même ligne */
    align-items: center; /* Centre verticalement */
    font-family: "VT323", monospace; /* Police VT323 */
    font-size: 1.2rem;
    color: rgb(255, 0, 0); /* Texte rouge */
}

/* Style pour la case à cocher */
.checkbox-container input[type="checkbox"] {
    appearance: none; /* Supprime le style par défaut */
    width: 20px;
    height: 20px;
    margin-right: 10px; /* Espacement entre la case et le texte */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    border: 3px solid red; /* Bordure rouge */
    border-radius: 0.3em; /* Coins arrondis */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

/* Style pour la case cochée */
.checkbox-container input[type="checkbox"]:checked {
    background-color: red; /* Fond rouge lorsqu'elle est cochée */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow plus intense */
}

/* Style pour les liens dans la checkbox-container */
.checkbox-container a {
    color: rgb(255, 0, 0); /* Texte rouge */
    text-decoration: underline; /* Conserve le soulignement */
    cursor: pointer; /* Change le curseur pour indiquer un lien cliquable */
}

.checkbox-container a:hover {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow rouge au survol */
}

/* Style pour le bouton désactivé */
button:disabled {
    opacity: 0.5; /* Rend le bouton semi-transparent */
    cursor: not-allowed; /* Change le curseur pour indiquer qu'il est désactivé */
}

/* Police pour le titre "Subscribe Now" */
.subscribe-title {
    font-family: "WorkbenchRegular", serif; /* Police WorkbenchRegular */
    font-size: 25rem; /* Augmente considérablement la taille du texte */
    color: rgb(255, 0, 0); /* Texte rouge */
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6); /* Glow rouge plus intense */
    margin-bottom: 30px; /* Ajoute un espacement en dessous */
}

.back-button-container {
    margin-top: 20px; /* Ajoute un espacement au-dessus du bouton */
    text-align: center; /* Centre le bouton horizontalement */
}

.back-button-container button {
    font-family: "VT323", monospace; /* Police VT323 */
    font-size: 1.5rem;
    color: rgb(255, 0, 0); /* Texte rouge */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    border: 3px solid red; /* Bordure rouge */
    border-radius: 0.3em; /* Coins arrondis */
    padding: 10px 20px; /* Espacement interne */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow rouge */
}

.back-button-container button:hover {
    transform: scale(1.1); /* Zoom léger au survol */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6); /* Glow plus intense */
}

.form-container,
.submit,
.back-button-container {
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6);
}

.search-bar,
.submit {
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6);
    box-shadow: 0 0 7px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6);
}

/* Glow permanent pour les boutons */
.form-container button,
.back-button-container button {
    font-family: "VT323", monospace; /* Police VT323 */
    font-size: 1.5rem;
    color: rgb(255, 0, 0); /* Texte rouge */
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.6); /* Glow rouge */
    background-color: rgb(43, 0, 0); /* Fond CRT */
    border: 3px solid red; /* Bordure rouge */
    border-radius: 0.3em;
    padding: 10px 20px; /* Espacement interne */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6); /* Glow rouge permanent */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet au survol des boutons */
.form-container button:hover,
.back-button-container button:hover {
    transform: scale(1.1); /* Zoom léger au survol */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.6); /* Glow plus intense */
}

#glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 1500; /* Plus haut que la barre de recherche (1000), plus bas que #screen (2000) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.glitch-rects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.glitch-rect {
    position: absolute;
    background: #00ff00;
    box-shadow: 0 0 20px 5px #00ff00, 0 0 40px 10px #00ff00;
    opacity: 0.85;
    animation: glitch-rect-move 0.25s linear forwards;
}

@keyframes glitch-rect-move {
    0% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.85;
    }
    100% {
        opacity: 0;
    }
}

.glitch-text {
    color: #00ff00;
    font-family: "VT323", monospace;
    font-size: 4rem;
    text-align: center;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00,
        2px 2px 0 #003300, -2px -2px 0 #003300;
    letter-spacing: 0.1em;
    z-index: 2;
    /* Glitch sur X/Y uniquement */
    animation: glitch-text-chaos 0.18s steps(2) infinite;
}

@keyframes glitch-text-chaos {
    0% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(-6px, 2px);
    }
    40% {
        transform: translate(8px, -3px);
    }
    60% {
        transform: translate(-4px, 5px);
    }
    80% {
        transform: translate(7px, -2px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes red-shake {
    0% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-4px, 2px);
    }
    20% {
        transform: translate(3px, -3px);
    }
    30% {
        transform: translate(-2px, 4px);
    }
    40% {
        transform: translate(4px, 1px);
    }
    50% {
        transform: translate(-3px, -2px);
    }
    60% {
        transform: translate(2px, 3px);
    }
    70% {
        transform: translate(-1px, -4px);
    }
    80% {
        transform: translate(3px, 2px);
    }
    90% {
        transform: translate(-2px, -3px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.shake-red {
    animation: red-shake 0.15s steps(2) infinite;
}

.glitch-terminal {
    color: #00ff00;
    font-family: "VT323", monospace;
    font-size: 1.2rem;
    text-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00;
    background: transparent;
    margin-top: 30px;
    width: 90vw;
    max-width: 700px;
    height: 120px;
    overflow: hidden;
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 3;
    user-select: none;
}
