/* 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-red {
    position: relative;
    font-size: 3em;
    color: #8b0000;
    text-shadow: 0 0 10px #8b0000, 0 0 20px #ff0000;
    animation: glow 1.5s infinite alternate;
}
.neon-red::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
    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: #ff0000;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    text-shadow: 0 0 5px #ff0000;
    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: #ff0000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.nav-link:hover {
    text-shadow: 0 0 10px #ff0000, 0 0 20px #8b0000;
}
.nav-progress {
    height: 3px;
    background: linear-gradient(90deg, #8b0000, #ff0000);
    width: 0;
    transition: width 0.3s;
}

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

/* Tool */
.tool { text-align: center; }
.tool input {
    width: 100%;
    max-width: 600px;
    background: #111;
    color: #fff;
    border: 2px solid #8b0000;
    padding: 10px;
    margin: 10px 0;
    font-family: inherit;
    transition: all 0.3s;
}
.tool input:focus { border-color: #ff0000; box-shadow: 0 0 5px #ff0000; }
.tool button {
    background: linear-gradient(45deg, #8b0000, #ff0000, #8b0000);
    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 10px #8b0000;
    transition: all 0.3s ease;
    animation: gradient-shift 3s ease infinite;
}
.tool button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ff0000;
}
.tool button:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px #8b0000;
}
#result { margin-top: 10px; color: #ff0000; }
.tool a {
    color: #ff0000;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}
.tool a:hover { text-shadow: 0 0 5px #ff0000; }

/* RedNet Glow */
.red-glow {
    animation: redGlow 1.5s infinite alternate;
}
@keyframes redGlow {
    from { text-shadow: 0 0 5px #8b0000; }
    to { text-shadow: 0 0 15px #ff0000, 0 0 25px #8b0000; }
}

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

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 10px #8b0000; }
    to { text-shadow: 0 0 20px #ff0000, 0 0 30px #8b0000; }
}
@keyframes glow-reverse {
    from { text-shadow: 0 0 10px #ff0000; }
    to { text-shadow: 0 0 20px #8b0000, 0 0 30px #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-red { font-size: 1.8em; }
    section { padding: 10px; }
    .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, 0, 0, 0.5);
    }
    nav ul.active { display: flex; }
    .nav-link {
        padding: 10px;
        text-align: center;
        width: 100%;
    }
    .nav-progress { height: 2px; }
}