/* Styles pour l'animation d'introduction */
.intro-overlay {
    /* Désactiver sur mobile */
    @media (max-width: 768px) {
        display: none !important;
    }
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #5865F2;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.intro-overlay.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.discord-container {
    width: 1100px;
    max-width: 95%;
    height: 750px;
    max-height: 92vh;
    background-color: #36393F;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.discord-header {
    background-color: #2F3136;
    padding: 15px 20px;
    border-bottom: 1px solid #202225;
    display: flex;
    align-items: center;
}

.channel-name {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.channel-name i {
    margin-right: 8px;
    color: #B9BBBE;
}

.discord-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Style personnalisé pour la barre de défilement */
    scrollbar-width: thin;
    scrollbar-color: #202225 #2F3136;
}

/* Style de la barre de défilement pour Chrome, Edge, et Safari */
.discord-messages::-webkit-scrollbar {
    width: 8px;
}

.discord-messages::-webkit-scrollbar-track {
    background: #2F3136;
    border-radius: 4px;
}

.discord-messages::-webkit-scrollbar-thumb {
    background-color: #202225;
    border-radius: 4px;
    border: 2px solid #2F3136;
}

.discord-messages::-webkit-scrollbar-thumb:hover {
    background-color: #40444B;
}

.message {
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    animation-delay: calc(var(--index) * 0.8s);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7289DA;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.message-content {
    flex: 1;
}

.message-author {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.message-author .bot-tag {
    background-color: #5865F2;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 8px;
}

.message-text {
    color: #DCDDDE;
    line-height: 1.5;
}

.message-embed {
    margin-top: 10px;
    border-left: 4px solid #5865F2;
    background-color: #2F3136;
    border-radius: 4px;
    padding: 12px;
}

.message-embed-title {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.message-embed-description {
    color: #DCDDDE;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.discord-button {
    background-color: #4F545C;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.discord-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-button:hover::after {
    opacity: 1;
    animation: buttonShine 1s forwards;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(300%) rotate(30deg); }
}

.discord-button i {
    margin-right: 6px;
}

.discord-button.primary {
    background-color: #5865F2;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
}

.discord-button:hover {
    background-color: #72767D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.discord-button.primary:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.6);
}

.discord-input {
    padding: 10px 20px;
    background-color: #40444B;
    border-top: 1px solid #202225;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espacement entre les éléments */
    height: 40px; /* Réduit pour gagner de l'espace */
    margin-top: 10px; /* Espace au-dessus */
    order: 1; /* Ordre dans le flexbox pour apparaître avant l'indicateur de frappe */
}

.input-box {
    flex: 1;
    background-color: #40444B;
    border: none;
    color: #DCDDDE;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    margin-right: 10px; /* Ajouter une marge à droite pour séparer du bouton */
}

.input-box::placeholder {
    color: #72767D;
}

.typing-indicator {
    position: relative; /* Position relative au lieu d'absolute */
    margin-top: 15px; /* Marge supérieure augmentée pour l'éloigner davantage de discord-input */
    margin-bottom: 20px; /* Marge en bas augmentée pour plus d'espace */
    margin-left: 20px; /* Alignement avec le reste du contenu */
    color: #B9BBBE;
    font-size: 0.7rem; /* Taille de police réduite */
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    animation-delay: 3s;
    height: 14px; /* Hauteur réduite */
    background-color: transparent; /* Fond transparent */
    padding: 1px 0;
    z-index: 2; /* Z-index réduit */
    max-width: 180px; /* Limiter la largeur */
    white-space: nowrap; /* Éviter le retour à la ligne */
    overflow: hidden; /* Cacher le débordement */
    text-overflow: ellipsis; /* Ajouter des points de suspension si nécessaire */
    order: 3; /* Ordre dans le flexbox pour apparaître après la zone de saisie */
    align-self: flex-start; /* Alignement au début de la ligne */
}

.typing-indicator::before {
    content: "";
    width: 20px;
    height: 10px;
    background-image: url('data:image/gif;base64,R0lGODlhHgAKAJEAAP///6qqqv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAHgAKAAACL4yPF8vtD6OctNqLs94XeB5mhgEG6oZhKwLLJJvNwTp7mt/JnWL9HWh6U6hEAgAh+QQFCgACACwAAAAAHgAKAAACL4SPF8vtD6OctNqLs94XeB5mhgEG6oZhKwLLJJvNwTp7mt/JnWL9HWh6U6hEAgAh+QQFCgACACwAAAAAHgAKAAACL4SPF8vtD6OctNqLs94XeB5mhgEG6oZhKwLLJJvNwTp7mt/JnWL9HWh6U6hEAgA7');
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 4px;
    vertical-align: middle;
}

.ephemeral {
    background-color: rgba(32, 34, 37, 0.9);
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 5px;
    position: relative;
}

.ephemeral::before {
    content: "Seulement visible par vous • Éphémère";
    display: block;
    color: #B9BBBE;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.stats-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    flex: 1;
    background-color: #2F3136;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.stat-number {
    color: #5865F2;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
    background: linear-gradient(90deg, #5865F2, #EB459E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #B9BBBE;
    font-size: 0.8rem;
}

.continue-button {
    position: relative; /* Position relative au lieu d'absolute */
    background: linear-gradient(90deg, #5865F2, #EB459E, #7289DA, #5865F2);
    background-size: 400% 400%;
    animation: chromaFlow 8s ease infinite;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5), 0 0 5px rgba(235, 69, 158, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Empêcher le bouton de rétrécir */
    height: 30px; /* Hauteur fixe pour s'aligner avec la zone de saisie */
    min-width: 30px; /* Largeur minimale pour le bouton avec juste la flèche */
    overflow: hidden; /* Pour contenir l'effet de brillance */
}

.continue-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    animation: shineEffect 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chromaFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shineEffect {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(300%) rotate(30deg); }
}

.continue-button::before {
    content: '→'; /* Flèche vers la droite */
    font-size: 1.2rem;
    transition: margin-right 0.3s;
}

.continue-button span {
    display: none;
    margin-left: 8px;
    white-space: nowrap;
}

.continue-button:hover {
    width: auto;
    min-width: 180px; /* Assez large pour contenir le texte */
}

.continue-button:hover::before {
    margin-right: 8px;
}

.continue-button:hover span {
    display: inline;
}

.continue-button:hover {
    padding: 8px 16px;
    background-color: #4752C4;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.5);
    width: auto;
}

/* Styles pour les particules de thème */
.theme-particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* Animations de particules pour les thèmes */
@keyframes particleAnimation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--random-x, 100px), var(--random-y, 100px)) scale(0);
        opacity: 0;
    }
}

/* Animation horizontale pour le thème Bot */
@keyframes particleHorizontalAnimation {
    0% {
        transform: translateX(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
}

/* Animation vers le haut pour le thème Dashboard */
@keyframes particleUpwardAnimation {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120%) scale(0.8);
        opacity: 0;
    }
}

/* Animation radiale pour le thème Community */
@keyframes particleRadialAnimation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--random-x, 100px), var(--random-y, -100px)) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Styles pour le sélecteur de thèmes */
.theme-selector {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 60%; /* Plus petit */
    max-width: 400px; /* Plus petit */
    animation: fadeIn 1s forwards;
    animation-delay: 1.5s;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(54, 57, 63, 0.95); /* Couleur plus opaque pour meilleure visibilité */
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px; /* Padding réduit */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-selector-label {
    color: white;
    font-size: 0.8rem; /* Plus petit */
    font-weight: 500;
    margin-bottom: 8px; /* Marge réduite */
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-options {
    display: flex;
    gap: 15px; /* Espacement réduit */
    justify-content: center;
    width: 100%;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.theme-option:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.theme-option.active {
    opacity: 1;
    transform: translateY(-5px);
}

.theme-preview {
    width: 60px; /* Plus petit */
    height: 45px; /* Plus petit */
    border-radius: 6px;
    margin-bottom: 6px; /* Marge réduite */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option.active .theme-preview {
    border-color: #FFF;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.theme-option span {
    color: white;
    font-size: 0.7rem; /* Plus petit */
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Aperçus des thèmes */
/* Thème Bot - Création de bots sur mesure */
.discord-bot {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid #0F3460;
    box-shadow: 0 0 10px rgba(15, 52, 96, 0.5);
}

.discord-bot::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 15%;
    background: linear-gradient(90deg, #0F3460, #5089C6);
    border-radius: 3px;
}

.discord-bot::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 10%;
    width: 80%;
    height: 40%;
    background-color: #16213E;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(80, 137, 198, 0.5) inset;
}

/* Thème Dashboard - Dashboards & Analytiques */
.discord-dashboard {
    background: linear-gradient(135deg, #0A1128 0%, #001F54 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid #034078;
    box-shadow: 0 0 10px rgba(3, 64, 120, 0.5);
}

.discord-dashboard::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 15%;
    background: linear-gradient(90deg, #1282A2, #0A9396);
    border-radius: 3px;
}

.discord-dashboard::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 10%;
    width: 80%;
    height: 40%;
    background-color: #001F54;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(18, 130, 162, 0.5) inset;
}

/* Thème Community - Gestion de communauté */
.discord-community {
    background: linear-gradient(135deg, #3D348B 0%, #7678ED 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid #7678ED;
    box-shadow: 0 0 10px rgba(118, 120, 237, 0.5);
}

.discord-community::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 15%;
    background: linear-gradient(90deg, #F7B801, #F18701);
    border-radius: 3px;
}

.discord-community::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 10%;
    width: 80%;
    height: 40%;
    background-color: #5D54A4;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(247, 184, 1, 0.5) inset;
}

/* Logos des thèmes */
.brand-logo-preview {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.bot-logo {
    background: radial-gradient(circle, #0F3460, #5089C6);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(80, 137, 198, 0.8);
}

.dashboard-logo {
    background: radial-gradient(circle, #1282A2, #0A9396);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(10, 147, 150, 0.8);
}

.community-logo {
    background: radial-gradient(circle, #F7B801, #F18701);
    border-radius: 50%;
}

/* Classes pour les thèmes */
.theme-bot {
--bg-primary: #16213E;
--bg-secondary: #0F3460;
--accent-color: #533483;
--accent-secondary: #E94560;
--text-color: #FFFFFF;
--text-muted: #A3A6AA;
--button-primary: #533483;
--button-primary-hover: #E94560;
--button-secondary: #0F3460;
--button-secondary-hover: #16213E;
}

/* Désactiver certaines animations sur mobile */
@media (max-width: 768px) {
.theme-bot .theme-specific-animation,
.theme-bot .theme-particle {
display: none !important;
}
}

.theme-dashboard {
--bg-primary: #001F54;
--bg-secondary: #034078;
--accent-color: #1282A2;
--accent-secondary: #0A9396;
--text-color: #FFFFFF;
--text-muted: #A3A6AA;
--button-primary: #1282A2;
--button-primary-hover: #0A9396;
--button-secondary: #034078;
--button-secondary-hover: #001F54;
}

/* Désactiver certaines animations sur mobile */
@media (max-width: 768px) {
.theme-dashboard .theme-specific-animation,
.theme-dashboard .theme-particle {
display: none !important;
}
}

.theme-community {
--bg-primary: #3D348B;
--bg-secondary: #7678ED;
--accent-color: #F7B801;
--accent-secondary: #F18701;
--text-color: #FFFFFF;
--text-muted: #A3A6AA;
--button-primary: #F7B801;
--button-primary-hover: #F18701;
--button-secondary: #7678ED;
--button-secondary-hover: #3D348B;
}

/* Désactiver certaines animations sur mobile */
@media (max-width: 768px) {
.theme-community .theme-specific-animation,
.theme-community .theme-particle {
display: none !important;
}
}

/* Styles pour le thème Bot - Création de bots sur mesure */
.discord-theme-bot .discord-container {
    background-color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(15, 52, 96, 0.4);
    border: 1px solid var(--accent-color);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Animation unique pour le thème Bot - Effet de code qui s'exécute */
.discord-theme-bot .discord-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(80, 137, 198, 0.03) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: codeScan 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes codeScan {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animation pour simuler des commandes de bot */
.discord-theme-bot .discord-container::after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    opacity: 0.7;
    animation: botPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-secondary);
}

@keyframes botPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.discord-theme-bot .discord-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--accent-color);
    position: relative;
}

/* Effet de commande en cours dans l'en-tête */
.discord-theme-bot .discord-header::after {
    content: "> executing command...";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--accent-secondary);
    opacity: 0;
    animation: typeCommand 4s ease-in-out infinite;
}

@keyframes typeCommand {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.discord-theme-bot .channel-name {
    color: var(--text-normal);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.discord-theme-bot .channel-name i {
    color: var(--accent-secondary);
    animation: blinkCursor 1.5s step-end infinite;
}

@keyframes blinkCursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.discord-theme-bot .discord-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.discord-theme-bot .discord-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary));
    border: 2px solid var(--bg-secondary);
    border-radius: 10px;
}

.discord-theme-bot .message-author {
    color: var(--accent-secondary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.discord-theme-bot .message-text {
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

/* Effet de code dans les messages */
.discord-theme-bot .message-text code {
    background-color: rgba(15, 52, 96, 0.3);
    color: var(--accent-secondary);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.discord-theme-bot .message-embed {
    background-color: var(--embed-bg);
    border-left: 4px solid var(--accent-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
}

.discord-theme-bot .discord-button {
    background-color: var(--button-color);
    border: 1px solid var(--accent-secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.discord-theme-bot .discord-button:hover {
    background-color: var(--button-hover);
    border: 1px solid var(--accent-secondary);
    box-shadow: 0 0 10px rgba(80, 137, 198, 0.4);
}

/* Animation de bouton style terminal */
.discord-theme-bot .discord-button.primary {
    background-color: var(--button-primary);
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.discord-theme-bot .discord-button.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: buttonScan 2s linear infinite;
}

@keyframes buttonScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.discord-theme-bot .discord-button.primary:hover {
    background-color: var(--button-primary-hover);
    box-shadow: 0 0 15px rgba(80, 137, 198, 0.6);
    transform: translateY(-2px);
}

.discord-theme-bot .discord-input {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--accent-color);
}

.discord-theme-bot .input-box {
    background-color: rgba(22, 33, 62, 0.7);
    color: var(--text-normal);
    border: 1px solid var(--accent-color);
    font-family: 'Courier New', monospace;
}

/* Effet de curseur clignotant dans l'input */
.discord-theme-bot .input-box::after {
    content: "|";
    animation: blinkCursor 1s step-end infinite;
}

.discord-theme-bot .stat-number {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.discord-theme-bot .continue-button {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 0 15px rgba(15, 52, 96, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.discord-theme-bot .continue-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonScan 2s linear infinite;
}

/* Styles pour le thème Dashboard - Dashboards & Analytiques */
.discord-theme-dashboard .discord-container {
    background-color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(3, 64, 120, 0.4);
    border: 1px solid var(--accent-color);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Animation unique pour le thème Dashboard - Effet de graphiques qui se dessinent */
.discord-theme-dashboard .discord-container::before {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 60px;
    background: 
        linear-gradient(90deg, transparent 50%, var(--accent-secondary) 50%, var(--accent-secondary) 52%, transparent 52%) 0 0 / 10px 10px,
        linear-gradient(0deg, var(--accent-secondary) 20%, transparent 20%) 0 0 / 20px 20px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Effet de données analytiques qui se chargent */
.discord-theme-dashboard .discord-container::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 40px;
    background: 
        linear-gradient(90deg, var(--accent-secondary) 60%, transparent 60%) 0 0 / 20px 10px,
        linear-gradient(90deg, var(--accent-secondary) 30%, transparent 30%) 0 10px / 20px 10px,
        linear-gradient(90deg, var(--accent-secondary) 80%, transparent 80%) 0 20px / 20px 10px,
        linear-gradient(90deg, var(--accent-secondary) 40%, transparent 40%) 0 30px / 20px 10px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    animation: dataLoad 3s ease-in-out infinite;
}

@keyframes dataLoad {
    0% { opacity: 0.05; }
    50% { opacity: 0.2; }
    100% { opacity: 0.05; }
}

.discord-theme-dashboard .discord-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--accent-color);
    position: relative;
}

/* Effet d'indicateurs de données dans l'en-tête */
.discord-theme-dashboard .discord-header::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 10px;
    background: linear-gradient(90deg, 
        var(--accent-secondary) 70%, 
        transparent 70%, 
        transparent 75%, 
        var(--accent-secondary) 75%, 
        var(--accent-secondary) 90%, 
        transparent 90%);
    border-radius: 2px;
    opacity: 0.7;
    animation: dataUpdate 2s ease-in-out infinite;
}

@keyframes dataUpdate {
    0% { width: 40px; }
    50% { width: 60px; }
    100% { width: 40px; }
}

.discord-theme-dashboard .channel-name {
    color: var(--text-normal);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.discord-theme-dashboard .channel-name i {
    color: var(--accent-secondary);
}

.discord-theme-dashboard .discord-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.discord-theme-dashboard .discord-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary));
    border: 2px solid var(--bg-secondary);
    border-radius: 10px;
}

.discord-theme-dashboard .message-author {
    color: var(--accent-secondary);
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.discord-theme-dashboard .message-text {
    color: var(--text-muted);
    font-family: 'Roboto', sans-serif;
}

/* Effet de données dans les messages */
.discord-theme-dashboard .message-text:nth-child(2n) {
    position: relative;
}

.discord-theme-dashboard .message-text:nth-child(2n)::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary));
    opacity: 0.5;
}

.discord-theme-dashboard .message-embed {
    background-color: var(--embed-bg);
    border-left: 4px solid var(--accent-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Effet de graphique dans les embeds */
.discord-theme-dashboard .message-embed::before {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 20px;
    background: linear-gradient(0deg, var(--accent-secondary) 10%, transparent 10%, transparent 30%, var(--accent-secondary) 30%, var(--accent-secondary) 60%, transparent 60%, transparent 80%, var(--accent-secondary) 80%);
    background-size: 6px 100%;
    opacity: 0.3;
}

.discord-theme-dashboard .discord-button {
    background-color: var(--button-color);
    border: none;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.discord-theme-dashboard .discord-button:hover {
    background-color: var(--button-hover);
    box-shadow: 0 0 10px rgba(3, 64, 120, 0.4);
    transform: translateY(-2px);
}

/* Animation de bouton style dashboard */
.discord-theme-dashboard .discord-button.primary {
    background: linear-gradient(135deg, var(--button-primary), var(--button-primary-hover));
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.discord-theme-dashboard .discord-button.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: translateX(-100%) skewX(-15deg);
    animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

.discord-theme-dashboard .discord-button.primary:hover {
    background: linear-gradient(135deg, var(--button-primary-hover), var(--button-primary));
    box-shadow: 0 0 15px rgba(18, 130, 162, 0.6);
}

.discord-theme-dashboard .discord-input {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--accent-color);
}

.discord-theme-dashboard .input-box {
    background-color: rgba(0, 31, 84, 0.7);
    color: var(--text-normal);
    border: 1px solid var(--accent-color);
    font-family: 'Roboto', sans-serif;
}

.discord-theme-dashboard .stat-number {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.discord-theme-dashboard .continue-button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 0 15px rgba(3, 64, 120, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.discord-theme-dashboard .continue-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: translateX(-100%) skewX(-15deg);
    animation: buttonGlow 3s ease-in-out infinite;
}

/* Styles pour le thème Community - Gestion de communauté */
.discord-theme-community .discord-container {
    background: linear-gradient(135deg, #3D348B 0%, #5D54A4 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(118, 120, 237, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid var(--accent-color);
}

/* Animation unique pour le thème Community - Effet de bulles de discussion */
.discord-theme-community .discord-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(247, 184, 1, 0.05) 0%, rgba(247, 184, 1, 0) 20%),
        radial-gradient(circle at 80% 60%, rgba(247, 184, 1, 0.05) 0%, rgba(247, 184, 1, 0) 20%),
        radial-gradient(circle at 40% 80%, rgba(247, 184, 1, 0.05) 0%, rgba(247, 184, 1, 0) 20%),
        radial-gradient(circle at 70% 20%, rgba(247, 184, 1, 0.05) 0%, rgba(247, 184, 1, 0) 20%);
    pointer-events: none;
    z-index: 1;
    animation: communityPulse 8s ease-in-out infinite alternate;
}

@keyframes communityPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Effet de personnes qui rejoignent */
.discord-theme-community .discord-container::after {
    content: "";
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 15px;
    background-image: 
        radial-gradient(circle at 10% 50%, var(--accent-secondary) 0%, var(--accent-secondary) 30%, transparent 30%),
        radial-gradient(circle at 30% 50%, var(--accent-secondary) 0%, var(--accent-secondary) 30%, transparent 30%),
        radial-gradient(circle at 50% 50%, var(--accent-secondary) 0%, var(--accent-secondary) 30%, transparent 30%),
        radial-gradient(circle at 70% 50%, rgba(247, 184, 1, 0.3) 0%, rgba(247, 184, 1, 0.3) 30%, transparent 30%),
        radial-gradient(circle at 90% 50%, rgba(247, 184, 1, 0.3) 0%, rgba(247, 184, 1, 0.3) 30%, transparent 30%);
    opacity: 0.3;
    animation: memberJoin 5s ease-in-out infinite;
}

@keyframes memberJoin {
    0% { opacity: 0.2; width: 40px; }
    50% { opacity: 0.4; width: 60px; }
    100% { opacity: 0.2; width: 40px; }
}

.discord-theme-community .discord-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--accent-secondary);
    position: relative;
}

/* Indicateur d'activité communautaire dans l'en-tête */
.discord-theme-community .discord-header::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(247, 184, 1, 0.6);
    animation: communityPing 2s infinite;
}

@keyframes communityPing {
    0% { box-shadow: 0 0 0 0 rgba(247, 184, 1, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(247, 184, 1, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 184, 1, 0); }
}

.discord-theme-community .channel-name {
    color: var(--text-normal);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.discord-theme-community .channel-name i {
    color: var(--accent-secondary);
}

.discord-theme-community .discord-messages::-webkit-scrollbar-track {
    background: rgba(93, 84, 164, 0.5);
}

.discord-theme-community .discord-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-color));
    border: none;
    border-radius: 10px;
}

/* Animation d'apparition des messages */
.discord-theme-community .message {
    animation: messageFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.discord-theme-community .message-author {
    color: var(--accent-secondary);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Badge de membre actif */
.discord-theme-community .message-author::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    margin-left: 5px;
    vertical-align: middle;
}

.discord-theme-community .message-text {
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
}

.discord-theme-community .message-embed {
    background-color: rgba(93, 84, 164, 0.7);
    border-left: 4px solid var(--accent-secondary);
    box-shadow: 0 0 20px rgba(247, 184, 1, 0.2);
    border-radius: 0 8px 8px 0;
}

/* Effet d'interaction communautaire */
.discord-theme-community .message-embed::before {
    content: "\f075"; /* Icône de bulle de discussion */
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: var(--accent-secondary);
    opacity: 0.5;
}

.discord-theme-community .discord-button {
    background-color: var(--button-color);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.discord-theme-community .discord-button:hover {
    background-color: var(--button-hover);
    box-shadow: 0 0 10px rgba(118, 120, 237, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* Animation de bouton style communauté */
.discord-theme-community .discord-button.primary {
    background: var(--button-primary);
    color: #333;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.discord-theme-community .discord-button.primary::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transform: scale(0);
    transition: transform 0.5s;
}

.discord-theme-community .discord-button.primary:hover::before {
    transform: scale(1);
}

.discord-theme-community .discord-button.primary:hover {
    background: var(--button-primary-hover);
    box-shadow: 0 0 15px rgba(247, 184, 1, 0.6);
}

.discord-theme-community .discord-input {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--accent-color);
}

.discord-theme-community .input-box {
    background-color: rgba(61, 52, 139, 0.7);
    color: var(--text-normal);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    padding: 8px 15px;
}

.discord-theme-community .input-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.discord-theme-community .stat-number {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.discord-theme-community .continue-button {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-color));
    color: #333;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(247, 184, 1, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.discord-theme-community .continue-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(247, 184, 1, 0.7);
}

/* Animation d'interaction communautaire */
.discord-theme-community .continue-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transform: scale(0);
    transition: transform 0.5s;
}

.discord-theme-community .continue-button:hover::after {
    transform: scale(1);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Animation pour le bouton de continuation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(88, 101, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .discord-container {
        width: 95%;
        height: 85vh;
    }
    
    .message-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 10px;
    }
}
