/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Corps */
body {
    background: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}
.neon-rainbow {
    position: relative;
    font-size: 4em;
    color: #fff;
    text-shadow: 0 0 15px #ff00ff, 0 0 25px #00ffff, 0 0 35px #ff4500;
    animation: rainbow-glow 2s infinite alternate;
}
.neon-rainbow::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    text-shadow: 0 0 20px #00ff00, 0 0 30px #ff0000, 0 0 40px #ff69b4;
    animation: rainbow-glow-reverse 2s infinite alternate;
    z-index: -1;
}
.intro {
    font-size: 1.4em;
    color: #ccc;
    margin-top: 20px;
    text-shadow: 0 0 5px #888;
    animation: intro-pulse 3s infinite;
}

/* Showcase des grimoires */
.rainbow-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.grimoire {
    position: relative;
    width: 300px;
    padding: 30px;
    text-align: center;
    border: 5px solid;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.9);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    overflow: hidden;
    cursor: pointer;
}
.grimoire h2 {
    font-size: 2em;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.grimoire p {
    font-size: 1.2em;
    color: #ddd;
}
.grimoire-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    color: #fff;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.grimoire-link:hover {
    background: currentColor;
    color: #000;
    box-shadow: 0 0 15px currentColor;
}

/* Couleurs spécifiques */
.green { border-color: #00ff00; text-shadow: 0 0 6px #00ff00; }
.orange { border-color: #ff4500; text-shadow: 0 0 6px #ff4500; }
.pink { border-color: #ff69b4; text-shadow: 0 0 6px #ff69b4; }
.devil { border-color: #ff0000; text-shadow: 0 0 6px #ff0000; }
.red { border-color: #8b0000; text-shadow: 0 0 6px #8b0000; }
.dragon { border-color: #ff8c00; text-shadow: 0 0 6px #ff8c00; }

/* Effets au survol avec mouvements */
.grimoire:hover {
    box-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
    z-index: 10;
}
.green:hover {
    animation: green-bounce 0.5s infinite, green-spark 0.5s infinite;
}
.orange:hover {
    animation: orange-shake 0.8s infinite, orange-pulse 0.8s infinite;
}
.pink:hover {
    animation: pink-twist 1s infinite; /* Gardé tel quel, ton préféré ! */
}
.devil:hover {
    animation: devil-wobble 0.6s infinite, devil-flame 0.6s infinite;
}
.red:hover {
    animation: red-sway 0.7s infinite, red-blood 0.7s infinite;
}
.dragon:hover {
    animation: dragon-flip 0.9s infinite, dragon-breath 0.9s infinite;
}

/* Étincelles */
.sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 1.1em;
    color: #888;
    text-shadow: 0 0 5px #666;
}

/* Animations */
@keyframes rainbow-glow {
    0% { text-shadow: 0 0 15px #ff00ff, 0 0 25px #00ffff; }
    50% { text-shadow: 0 0 20px #00ff00, 0 0 30px #ff4500; }
    100% { text-shadow: 0 0 25px #ff69b4, 0 0 35px #ff0000; }
}
@keyframes rainbow-glow-reverse {
    0% { text-shadow: 0 0 20px #00ff00, 0 0 30px #ff0000; }
    50% { text-shadow: 0 0 25px #ff69b4, 0 0 35px #00ffff; }
    100% { text-shadow: 0 0 15px #ff4500, 0 0 25px #ff00ff; }
}
@keyframes intro-pulse {
    0% { text-shadow: 0 0 5px #888; }
    50% { text-shadow: 0 0 10px #ccc; }
    100% { text-shadow: 0 0 5px #888; }
}
@keyframes green-spark {
    0% { box-shadow: 0 0 15px #00ff00; }
    50% { box-shadow: 0 0 40px #00cc00, 0 0 60px #00ff00; }
    100% { box-shadow: 0 0 15px #00ff00; }
}
@keyframes orange-pulse {
    0% { border-color: #ff4500; }
    50% { border-color: #ff8c00; box-shadow: 0 0 50px #ff4500; }
    100% { border-color: #ff4500; }
}
@keyframes pink-twist {
    0% { transform: scale(1.15) rotate(3deg); }
    50% { transform: scale(1.2) rotate(-3deg); }
    100% { transform: scale(1.15) rotate(3deg); }
}
@keyframes devil-flame {
    0% { box-shadow: 0 0 20px #ff0000; }
    50% { box-shadow: 0 0 45px #ff4500, 0 0 70px #ff0000; }
    100% { box-shadow: 0 0 20px #ff0000; }
}
@keyframes red-blood {
    0% { border-color: #8b0000; }
    50% { border-color: #ff0000; box-shadow: 0 0 55px #8b0000; }
    100% { border-color: #8b0000; }
}
@keyframes dragon-breath {
    0% { box-shadow: 0 0 25px #ff8c00; }
    50% { box-shadow: 0 0 60px #ff4500, 0 0 80px #ff8c00; }
    100% { box-shadow: 0 0 25px #ff8c00; }
}
/* Nouveaux mouvements */
@keyframes green-bounce {
    0% { transform: scale(1.15) translateY(0); }
    50% { transform: scale(1.2) translateY(-10px); }
    100% { transform: scale(1.15) translateY(0); }
}
@keyframes orange-shake {
    0% { transform: scale(1.15) translateX(0); }
    25% { transform: scale(1.15) translateX(-5px); }
    75% { transform: scale(1.15) translateX(5px); }
    100% { transform: scale(1.15) translateX(0); }
}
@keyframes devil-wobble {
    0% { transform: scale(1.15) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}
@keyframes red-sway {
    0% { transform: scale(1.15) rotate(0deg); }
    50% { transform: scale(1.15) rotate(4deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}
@keyframes dragon-flip {
    0% { transform: scale(1.15) translateY(0); }
    50% { transform: scale(1.2) translateY(5px) rotate(2deg); }
    100% { transform: scale(1.15) translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .rainbow-showcase { gap: 20px; padding: 30px; }
    .neon-rainbow { font-size: 2.5em; }
    .intro { font-size: 1.1em; }
    .grimoire { width: 100%; max-width: 300px; }
    .grimoire h2 { font-size: 1.6em; }
}