/**
 * Styles de boutons Halloween
 * Inspiré des effets CodePen modernes
 */

/* Boutons Halloween - effet gluant */
.halloween-button,
button.halloween-style,
input[type="submit"].halloween-style,
a.halloween-button {
    position: relative;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8800 100%);
    border: 3px solid #000;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow:
        0 4px 0 #000,
        0 8px 20px rgba(255, 107, 0, 0.4);
}

.halloween-button:hover,
button.halloween-style:hover,
input[type="submit"].halloween-style:hover,
a.halloween-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #000,
        0 10px 25px rgba(255, 107, 0, 0.6);
}

.halloween-button:active,
button.halloween-style:active,
input[type="submit"].halloween-style:active,
a.halloween-button:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #000,
        0 4px 10px rgba(255, 107, 0, 0.3);
}

/* Effet gluant/dripping */
.halloween-button::before,
button.halloween-style::before,
input[type="submit"].halloween-style::before,
a.halloween-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ff6b00;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.halloween-button:hover::before,
button.halloween-style:hover::before,
input[type="submit"].halloween-style:hover::before,
a.halloween-button:hover::before {
    opacity: 1;
    top: 0;
    animation: drip 1s ease-out infinite;
}

@keyframes drip {
    0% {
        top: -10px;
        opacity: 0;
    }
    50% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Effet lueur fantôme */
.halloween-button::after,
button.halloween-style::after,
input[type="submit"].halloween-style::after,
a.halloween-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.halloween-button:hover::after,
button.halloween-style:hover::after,
input[type="submit"].halloween-style:hover::after,
a.halloween-button:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Variante verte (type fantôme) */
.halloween-button.ghost-style,
button.halloween-style.ghost-style,
a.halloween-button.ghost-style {
    background: linear-gradient(135deg, #00ff88 0%, #00cc88 100%);
    box-shadow:
        0 4px 0 #000,
        0 8px 20px rgba(0, 255, 136, 0.4);
}

.halloween-button.ghost-style::before,
button.halloween-style.ghost-style::before,
a.halloween-button.ghost-style::before {
    background: #00ff88;
}

/* Variante violette (type sorcière) */
.halloween-button.witch-style,
button.halloween-style.witch-style,
a.halloween-button.witch-style {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow:
        0 4px 0 #000,
        0 8px 20px rgba(155, 89, 182, 0.4);
}

.halloween-button.witch-style::before,
button.halloween-style.witch-style::before,
a.halloween-button.witch-style::before {
    background: #9b59b6;
}

/* Variante rouge sang */
.halloween-button.blood-style,
button.halloween-style.blood-style,
a.halloween-button.blood-style {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow:
        0 4px 0 #000,
        0 8px 20px rgba(231, 76, 60, 0.4);
}

.halloween-button.blood-style::before,
button.halloween-style.blood-style::before,
a.halloween-button.blood-style::before {
    background: #e74c3c;
}

/* Effet yeux brillants au survol */
.halloween-button.eyes-effect,
button.halloween-style.eyes-effect,
a.halloween-button.eyes-effect {
    background: #1a1a1a;
}

.halloween-button.eyes-effect::before,
button.halloween-style.eyes-effect::before,
a.halloween-button.eyes-effect::before {
    content: '👻';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.halloween-button.eyes-effect:hover::before,
button.halloween-style.eyes-effect:hover::before,
a.halloween-button.eyes-effect:hover::before {
    opacity: 1;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 5px));
    }
}

/* Effet citrouille */
.halloween-button.pumpkin-effect,
button.halloween-style.pumpkin-effect,
a.halloween-button.pumpkin-effect {
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
    position: relative;
}

.halloween-button.pumpkin-effect::before,
button.halloween-style.pumpkin-effect::before,
a.halloween-button.pumpkin-effect::before {
    content: '🎃';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.halloween-button.pumpkin-effect:hover::before,
button.halloween-style.pumpkin-effect:hover::before,
a.halloween-button.pumpkin-effect:hover::before {
    transform: translateY(-50%) rotate(360deg);
}

/* Effet néon */
.halloween-button.neon-effect,
button.halloween-style.neon-effect,
a.halloween-button.neon-effect {
    background: transparent;
    color: #ff6b00;
    border: 3px solid #ff6b00;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
    box-shadow:
        0 0 10px rgba(255, 107, 0, 0.4),
        inset 0 0 10px rgba(255, 107, 0, 0.2);
}

.halloween-button.neon-effect:hover,
button.halloween-style.neon-effect:hover,
a.halloween-button.neon-effect:hover {
    background: rgba(255, 107, 0, 0.1);
    box-shadow:
        0 0 20px rgba(255, 107, 0, 0.8),
        inset 0 0 20px rgba(255, 107, 0, 0.4);
    text-shadow: 0 0 20px rgba(255, 107, 0, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .halloween-button,
    button.halloween-style,
    input[type="submit"].halloween-style,
    a.halloween-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}
