/* ============================================
   BOUTON DISCORD PREMIUM + MODALE
   Design ultra-premium aux couleurs Discord
   ============================================ */

/* ========== BOUTON DISCORD UNIQUEMENT ========== */
/* Classes très spécifiques pour ne pas affecter le chatbot */

/* Bouton Discord Premium (bleu Discord) - Styles inline dans le HTML */
#discordModalBtn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#discordModalBtn:hover {
    background: linear-gradient(135deg, #6b75ff 0%, #5865F2 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.4);
}

#discordModalBtn:active {
    transform: translateY(-3px) scale(1.02);
}

#discordModalBtn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

#discordModalBtn:hover::before {
    opacity: 0.6;
}

/* Icône Discord */
#discordModalBtn svg {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

#discordModalBtn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Animation pulse pour Discord */
#discordModalBtn .floating-btn-pulse {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid #5865F2;
    animation: discordPulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes discordPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
    

/* ========== PETIT RECTANGLE DISCORD (POPUP À GAUCHE DU BOUTON) ========== */
.discord-modal {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
}

.discord-modal.active {
    pointer-events: auto;
}

/* Pas d'overlay, juste le popup */
.discord-modal-overlay {
    display: none;
}

/* Petit rectangle qui se déplie à gauche du bouton - Couleur Discord officielle */
.discord-modal-content {
    position: fixed;
    bottom: 110px;
    right: 110px;
    width: 320px;
    background: linear-gradient(135deg, 
        #5865F2 0%, 
        #4752C4 50%, 
        #5865F2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 30px 25px;
    box-shadow: 
        0 8px 32px rgba(88, 101, 242, 0.6),
        0 0 60px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(71, 82, 196, 0.5);
    text-align: center;
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.discord-modal.active .discord-modal-content {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* Effet liquid ice - Sur fond Discord */
.discord-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(136, 169, 255, 0.1) 30%,
        transparent 60%
    );
    animation: liquidFlow 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes liquidFlow {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(15%, -15%) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(-15%, 15%) scale(0.85) rotate(240deg);
    }
}

/* Petite flèche pointant vers le bouton - Couleur Discord */
.discord-modal-content::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: 40px;
    width: 0;
    height: 0;
    border-left: 12px solid #5865F2;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    filter: drop-shadow(2px 0 6px rgba(88, 101, 242, 0.5));
}

/* Bouton fermer */
.discord-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.discord-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.discord-modal-close svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Logo Dragon Rep - Effet Liquid Glace */
.discord-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
    padding: 3px;
}

/* Effet liquid glace sur le logo */
.discord-modal-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    animation: liquidGlace 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.discord-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Titre */
.discord-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Bouton Join Discord - Effet Liquid Glace */
.discord-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.25) 100%);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 18px;
}

/* Effet liquid glace animé */
.discord-join-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%
    );
    animation: liquidGlace 6s ease-in-out infinite;
}

@keyframes liquidGlace {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20%, -20%) scale(1.2);
    }
}

/* Effet de brillance au survol */
.discord-join-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.discord-join-btn:hover::after {
    left: 100%;
}

.discord-join-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.35) 100%);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.discord-join-btn:active {
    transform: translateY(0);
}

.discord-join-btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* Informations de contact - Effet Liquid Glace */
.discord-contact-info {
    position: relative;
    z-index: 1;
}

.discord-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.discord-contact-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 60%
    );
    animation: liquidGlaceSmall 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidGlaceSmall {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(15%, -15%);
    }
}

.discord-contact-item:last-child {
    margin-bottom: 0;
}

.discord-contact-item:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-3px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.discord-contact-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.discord-contact-icon {
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #discordModalBtn {
        width: 56px;
        height: 56px;
        bottom: 90px !important;
        right: 20px !important;
    }

    #discordModalBtn svg {
        width: 28px;
        height: 28px;
    }

    .discord-modal-content {
        width: 280px;
        right: 90px;
        bottom: 90px;
        padding: 25px 20px;
    }

    .discord-modal-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 16px;
    }

    .discord-modal-icon svg {
        width: 30px;
        height: 30px;
    }

    .discord-modal-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .discord-join-btn {
        padding: 12px 24px;
        font-size: 15px;
        margin-bottom: 16px;
    }

    .discord-contact-item {
        padding: 9px 14px;
    }

    .discord-contact-item span {
        font-size: 12px;
    }

    .discord-contact-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #discordModalBtn {
        width: 56px;
        height: 56px;
        bottom: 90px !important;
        right: 10px !important;
    }

    #discordModalBtn svg {
        width: 28px;
        height: 28px;
    }

    .discord-modal-content {
        width: 260px;
        right: 75px;
        bottom: 90px;
        padding: 22px 18px;
    }

    .discord-modal-content::after {
        bottom: 30px;
    }

    .discord-modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }

    .discord-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .discord-modal-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .discord-join-btn {
        padding: 11px 20px;
        font-size: 14px;
        margin-bottom: 14px;
    }

    .discord-contact-item {
        padding: 8px 12px;
    }

    .discord-contact-item span {
        font-size: 11px;
    }

    .discord-contact-icon {
        font-size: 15px;
    }
}
