/* Style pour centrer l'image et gérer le fond */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Un dégradé sombre pour l'ambiance militaire/geek */
    background: radial-gradient(circle, #2c3e50 0%, #000000 100%);
    overflow: hidden; /* Empêche le scroll */
}

.logo-container {
    width: 90%; /* Largeur sur l'écran */
    max-width: 900px; /* Taille maximum */
    text-align: center;
}

img {
    width: 100%;
    height: auto;
    /* Effet de lueur légère pour détacher le blason du fond */
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

/* Petit effet au survol, parce que c'est un Homelab ! */
img:hover {
    transform: scale(1.02);
}

.copyright {
    font-size: 14px;
    text-align: center;
    color: #fff;
}

a {
    outline: none;
    text-decoration: none;
}

a:link {
    color: #fff;
}

a:visited {
    color: #fff;
}

a:hover {
    border-bottom: 1px solid;
}

/* Fond de la modale avec Flexbox pour centrer parfaitement */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;     /* Centrage vertical */
    justify-content: center; /* Centrage horizontal */
    opacity: 0;
    transition: opacity 0.3s ease; /* Animation de fondu */
    /* On force le curseur par défaut pour ne pas suggérer un clic possible */
    cursor: default;
}

/* Affichage actif (ajouté via JS) */
.modal.show {
    display: flex;
    opacity: 1;
}

/* Le conteneur s'adapte à la taille de la vidéo */
.modal-content {
    position: relative;
    max-width: 500px;
    /* max-width: 90vw; */ /* Maximum 90% de la largeur écran */
    max-height: 80vh; /* Maximum 80% de la hauteur écran */
    background: #000;
    line-height: 0;   /* Supprime l'espace sous la vidéo */
    /* On empêche les clics de traverser vers le fond */
    pointer-events: auto;
}

/* La vidéo remplit le conteneur sans déformer */
video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px; /* Optionnel : coins arrondis */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Bouton de fermeture repositionné */
.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    font-family: sans-serif;
}

.terminal-counter {
    font-family: "Courier New", monospace;
    color: #00ff9c;
    background: #0d1117;
    padding: 15px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.3);
    font-size: 1.0rem;
}

.prompt {
    color: #58a6ff;
    margin-right: 10px;
}

.cursor {
    animation: blink 1s infinite;
    margin-left: 5px;
}

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