/* 
 * Styles pour les effets glitch et pixel art 
 * Ce fichier contient tous les styles liés aux effets visuels pixel art et glitch
 */

/* Effets glitch pour l'image de profil */
.profile-picture:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    animation: glitch 0.3s infinite;
    z-index: 2;
    mix-blend-mode: hue;
}

.profile-picture:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('pp.webp');
    background-size: cover;
    animation: glitch-shift 0.2s infinite;
    opacity: 0.3;
    z-index: 1;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* Animation de glitch principal */
@keyframes glitch {
    0% { 
        opacity: 1;
        transform: translate(0);
        background: rgba(0, 255, 0, 0.1);
    }
    20% { 
        opacity: 0.8;
        transform: translate(5px, 0);
        background: rgba(255, 0, 0, 0.1);
    }
    40% { 
        opacity: 0.9;
        transform: translate(-5px, 0);
        background: rgba(0, 0, 255, 0.1);
    }
    60% { 
        opacity: 0.6;
        transform: translate(0, 3px);
        background: rgba(0, 255, 0, 0.1);
    }
    80% { 
        opacity: 0.8;
        transform: translate(0, -3px);
        background: rgba(255, 0, 255, 0.1);
    }
    100% { 
        opacity: 1;
        transform: translate(0);
        background: rgba(0, 255, 0, 0.1);
    }
}

/* Animation de déplacement glitch avec clip path */
@keyframes glitch-shift {
    0% { 
        transform: translate(-5px, -5px) scale(1.05);
        clip-path: inset(10% 0 0 0);
    }
    25% { 
        transform: translate(5px, 5px) scale(1.05);
        clip-path: inset(0 10% 0 0);
    }
    50% { 
        transform: translate(-3px, 2px) scale(1.05);
        clip-path: inset(0 0 10% 0);
    }
    75% { 
        transform: translate(3px, -2px) scale(1.05);
        clip-path: inset(0 0 0 10%);
    }
    100% { 
        transform: translate(-5px, -5px) scale(1.05);
        clip-path: inset(10% 0 0 0);
    }
}

/* Styles pour le conteneur du personnage pixel art */
.pixel-character-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 50px 20px;
    background-color: #333;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

/* Effet de lignes de scan CRT pour le conteneur pixel */
.pixel-character-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px 50px 20px;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* Texte dans le conteneur pixel art */
.pixel-character-text {
    color: white;
    font-family: 'Press Start 2P', cursive, var(--main-font-family);
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 10px;
    max-width: 400px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.7);
}

.pixel-character-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FF9800;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.pixel-character-text p {
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.5;
    color: #E0E0E0;
}

/* Animation de rebond pour le pixel-character au survol */
.pixel-character:hover {
    animation: pixel-bounce 0.5s infinite alternate;
}

@keyframes pixel-bounce {
    from { transform: scale(1.5) translateY(0); }
    to { transform: scale(1.5) translateY(-5px); }
}

/* Styles pour la bulle de profil pixel déplacés vers pixel-container-styles.css */

/* Styles responsifs pour les éléments pixel */
@media only screen and (max-width: 768px) {
    .pixel-character-container {
        padding: 30px 10px;
        flex-direction: column;
        gap: 15px;
    }

    .pixel-character {
        transform: scale(1.2);
    }

    .pixel-character-text h3 {
        font-size: 18px;
    }

    .pixel-character-text p {
        font-size: 12px;
    }

    .pixel-character:hover {
        animation: pixel-bounce 0.5s infinite alternate;
    }

    @keyframes pixel-bounce {
        from { transform: scale(1.2) translateY(0); }
        to { transform: scale(1.2) translateY(-5px); }
    }

    /* Ajustements pour la bulle de profil sur mobile déplacés vers pixel-container-styles.css */

