/* 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;
    padding: 20px;
}

/* Header */
header { text-align: center; padding: 30px; }
.neon-dragon {
    position: relative;
    font-size: 3em;
    color: #ff8c00;
    text-shadow: 0 0 10px #ff8c00, 0 0 20px #ff4500, 0 0 30px #ff0000;
    animation: glow 1.5s infinite alternate;
}
.neon-dragon::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ff4500;
    text-shadow: 0 0 10px #ff4500, 0 0 20px #ff8c00, 0 0 30px #ff0000;
    animation: glow-reverse 1.5s infinite alternate;
    z-index: -1;
}
.intro { color: #ccc; font-size: 1.1em; margin-top: 10px; }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: #000;
    padding: 10px 0;
    z-index: 1000;
}
.nav-toggle {
    display: none; /* Caché sur grand écran */
    background: none;
    border: none;
    color: #ff8c00;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    text-shadow: 0 0 5px #ff8c00;
    position: absolute;
    top: 10px;
    right: 10px;
}
nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}
.nav-link {
    color: #ff8c00;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    padding: 5px;
}
.nav-link:hover {
    text-shadow: 0 0 10px #ff8c00, 0 0 20px #ff4500, 0 0 30px #ff0000;
}
.nav-progress {
    height: 3px;
    background: linear-gradient(90deg, #ff8c00 0%, #ff4500 50%, #ff0000 100%);
    width: 0;
    transition: width 0.3s;
}

/* Sections */
section { margin: 20px 0; max-width: 800px; margin-left: auto; margin-right: auto; }
h2 { color: #ff8c00; text-shadow: 0 0 5px #ff8c00, 0 0 10px #ff4500; margin-bottom: 15px; }
h3 { color: #ff4500; text-shadow: 0 0 5px #ff0000; margin-top: 20px; }
p { color: #ddd; margin-bottom: 10px; }
ul { list-style: none; padding-left: 20px; }
li { margin: 15px 0; }
li strong { color: #ff8c00; }
code { background: #222; padding: 2px 6px; color: #ff4500; border-radius: 3px; }

/* Tool */
.tool { text-align: center; position: relative; }
.tool textarea {
    width: 100%;
    max-width: 600px;
    height: 150px;
    background: #111;
    color: #fff;
    border: 2px solid #ff8c00;
    padding: 10px;
    margin: 10px 0;
    font-family: inherit;
    resize: vertical;
    box-shadow: 0 0 10px #ff4500;
    transition: all 0.3s;
}
.tool button {
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ff0000, #ff8c00);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 0 15px #ff8c00, 0 0 25px #ff4500;
    transition: all 0.3s ease;
    animation: gradient-shift 3s ease infinite;
    position: relative;
    overflow: hidden;
}
.tool button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px #ff4500, 0 0 50px #ff0000;
}
.tool button:active {
    transform: scale(0.9);
    box-shadow: 0 0 10px #ff8c00;
}
#result { margin-top: 10px; color: #ff4500; font-weight: bold; position: relative; min-height: 150px; }
.tool a {
    color: #ff8c00;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}
.tool a:hover { text-shadow: 0 0 5px #ff8c00, 0 0 10px #ff4500; }

/* Animations DragonCode */
.dragon-glow { animation: dragonGlow 1s infinite alternate; }
@keyframes dragonGlow {
    from { text-shadow: 0 0 5px #ff8c00; }
    to { text-shadow: 0 0 20px #ff4500, 0 0 40px #ff0000; }
}
.dragon-flash {
    display: inline-block;
    animation: flash 0.5s ease-out;
}
@keyframes flash {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Flammes explosives (améliorées) */
.fire-particle-explosion {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, #ffff00 10%, #ff0000 30%, #ff4500 60%, #ff8c00 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff4500, 0 0 60px #ff8c00;
    animation: explodeAndFade linear forwards;
    z-index: 2;
}
@keyframes explodeAndFade {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    50% { opacity: 0.9; transform: scale(2) translateY(-30px); }
    100% { opacity: 0; transform: scale(0.3) translateY(-60px); }
}

/* Flammes autour du bouton (volcaniques) */
.flame-particle {
    position: absolute;
    width: 15px;
    height: 30px;
    background: linear-gradient(to top, #ff8c00, #ff4500, #ff0000, #ffff00);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 20px #ff4500, 0 0 40px #ff0000, 0 0 60px #ffff00;
    animation: flameFlicker linear forwards;
}
@keyframes flameFlicker {
    0% { opacity: 0.9; transform: translateY(0) scale(1); }
    50% { opacity: 1; transform: translateY(-20px) scale(1.5); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.6); }
}

/* Bouton activé */
.dragon-activated {
    box-shadow: 0 0 30px #ff4500, 0 0 60px #ff0000, 0 0 90px #ff8c00;
    animation: pulse 0.4s infinite alternate;
}
@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Glow sur le textarea */
.dragon-input-glow {
    border-color: #ff0000;
    box-shadow: 0 0 25px #ff4500, 0 0 50px #ff0000, 0 0 75px #ff8c00;
    animation: inputGlow 0.8s infinite alternate;
}
@keyframes inputGlow {
    from { box-shadow: 0 0 25px #ff4500; }
    to { box-shadow: 0 0 40px #ff0000, 0 0 75px #ff8c00; }
}

/* Footer */
footer { text-align: center; padding: 20px; color: #888; font-size: 0.9em; }

/* Animations générales */
@keyframes glow {
    from { text-shadow: 0 0 10px #ff8c00; }
    to { text-shadow: 0 0 20px #ff4500, 0 0 40px #ff0000; }
}
@keyframes glow-reverse {
    from { text-shadow: 0 0 10px #ff4500; }
    to { text-shadow: 0 0 20px #ff8c00, 0 0 40px #ff0000; }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 600px) {
    .neon-dragon { font-size: 1.8em; }
    section { padding: 10px; }
    .tool textarea { height: 100px; }
    .tool button { padding: 10px 20px; font-size: 1em; }
    /* Navigation responsive */
    .nav-toggle { display: block; }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: #000;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(255, 69, 0, 0.5);
    }
    nav ul.active { display: flex; }
    .nav-link {
        padding: 10px;
        text-align: center;
        width: 100%;
    }
    .nav-progress { height: 2px; }
}

/* Style pour le titre "Notre cadeau" */
.gift-title {
    text-align: center;
    font-size: 2.5em;
    color: #ffcc00;
    text-shadow: 
        0 0 10px #ffcc00, 
        0 0 20px #ff9900, 
        0 0 30px #ff6600;
    animation: glow-gift 1.5s infinite alternate, sparkle 2s infinite;
}

/* Animation de scintillement */
@keyframes sparkle {
    0% { text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff9900, 0 0 30px #ff6600; }
    50% { text-shadow: 0 0 15px #ffd700, 0 0 25px #ffcc00, 0 0 35px #ff9900; }
    100% { text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff9900, 0 0 30px #ff6600; }
}

/* Animation de glow pulsant */
@keyframes glow-gift {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}