/* CSS pour Typewriter Manifesto avec effet Terminal */
.typewriter-manifesto {
    position: relative !important; /* Dans le flux normal pour empiler */
    width: 100% !important;
    height: auto !important; /* S'adapte à la hauteur du contenu */
    padding: 20px !important;
    margin: 0 !important; /* Pas de marge pour commencer en haut à gauche */
    background-color: #000 !important; /* Fond noir */
    font-family: 'Courier New', Courier, monospace !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important; /* Ombre verte */
    text-align: left !important; /* Alignement à gauche */
    /* Ajout d'un effet de scintillement pour simuler un écran CRT */
    animation: flicker 0.1s infinite !important;
}

/* Effet de scintillement */
@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.98; }
    100% { opacity: 1; }
}

/* Effet de grille scanline et bruit */
.typewriter-manifesto::before {
    content: "";
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 0, 0.05) 50%,
        transparent 50%
    ) !important;
    background-size: 100% 4px !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: scanline 4s linear infinite !important;
}

/* Ajouter un effet de bruit (noise) pour simuler un écran CRT */
.typewriter-manifesto::after {
    content: "";
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAAXNSR0IArs4c6QAAAB5JREFUGFdjZGBg+M/AwMDI8N/AwMCwsDCwsLCwMAAA0u4X6P0kLsoAAAAASUVORK5CYII=') repeat !important;
    opacity: 0.05 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Style pour l'en-tête et le contenu */
.typewriter-manifesto {
    counter-reset: line-number !important; /* Initialisation du compteur */
}

/* Style pour l'en-tête */
.typewriter-header {
    width: 100% !important;
    margin-bottom: 10px !important; /* Espacement entre l'en-tête et le contenu principal */
}

.typewriter-header p.header-line {
    font-size: 12px !important;
    line-height: 1 !important;
    color: #00ff00 !important; /* Texte vert */
    margin: 0 !important;
    padding-left: 30px !important; /* Espace pour les numéros de ligne */
    position: relative !important;
}

/* Numérotation des lignes pour l'en-tête */
.typewriter-header p.header-line::before {
    content: counter(line-number) "> ";
    counter-increment: line-number !important;
    position: absolute !important;
    left: 0 !important;
    color: #00ff00 !important;
    font-size: 12px !important; /* Taille ajustée */
}

/* Style du contenu principal */
.typewriter-content {
    width: 100% !important;
    display: block !important; /* Assure que le contenu est visible */
}

/* Style du texte avec numérotation de ligne */
.typewriter-content p#manifesto-text {
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: pre-wrap !important;
    margin: 0 !important;
    color: #00ff00 !important; /* Texte vert */
    position: relative !important;
    padding-left: 30px !important; /* Espace pour les numéros de ligne */
    z-index: 2 !important;
    display: block !important; /* Assure que le texte est visible */
}

/* Numérotation des lignes pour le contenu */
.typewriter-content p#manifesto-text::before {
    content: counter(line-number) "> ";
    counter-increment: line-number !important;
    position: absolute !important;
    left: 0 !important;
    color: #00ff00 !important;
    font-size: 12px !important; /* Taille ajustée */
}

/* Style des liens cliquables */
.typewriter-manifesto a.clickable-word {
    color: #00ff00 !important; /* Vert pour cohérence avec le terminal */
    text-decoration: underline !important;
    text-decoration-color: #00ff00 !important;
    text-decoration-thickness: 2px !important;
    cursor: pointer !important;
}

.typewriter-manifesto a.clickable-word:hover {
    color: #a8d8de !important; /* Couleur au survol (bleu clair pour contraste) */
}

/* Curseur clignotant uniquement pour le contenu principal */
.typewriter-content p#manifesto-text::after {
    content: "";
    display: inline-block !important;
    width: 6px !important; /* Ajusté pour un curseur plus fin */
    height: 12px !important; /* Ajusté pour correspondre à la taille de la police */
    background-color: #00ff00 !important; /* Vert */
    vertical-align: middle !important;
    margin-left: 5px !important;
    animation: blink-cursor 0.8s step-end infinite !important;
    z-index: 2 !important;
}

/* Animations */
@keyframes scanline {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes blink-cursor {
    50% {
        opacity: 0;
    }
}