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

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

/* Tool */
.tool {
    text-align: center;
}
.tool input {
    width: 100%;
    max-width: 600px;
    background: #111;
    color: #fff;
    border: 2px solid #00cc00;
    padding: 10px;
    margin: 10px 0;
    font-family: inherit;
    transition: all 0.3s;
}
.tool input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}
.tool button {
    background: linear-gradient(45deg, #00cc00, #00ff00, #00cc00);
    background-size: 200% 200%;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 0 10px #00cc00;
    transition: all 0.3s ease;
    animation: gradient-shift 3s ease infinite;
}
.tool button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ff00;
}
.tool button:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px #00cc00;
}
#result {
    margin-top: 10px;
    color: #00ff00;
}
.tool a {
    color: #00ff00;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}
.tool a:hover {
    text-shadow: 0 0 5px #00ff00;
}

/* Green Glow */
.green-glow {
    animation: greenGlow 1.5s infinite alternate;
}
@keyframes greenGlow {
    from { text-shadow: 0 0 5px #00cc00; }
    to { text-shadow: 0 0 15px #00ff00, 0 0 25px #00cc00; }
}

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

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 10px #00ff00; }
    to { text-shadow: 0 0 20px #00cc00, 0 0 30px #00ff00; }
}
@keyframes glow-reverse {
    from { text-shadow: 0 0 10px #00cc00; }
    to { text-shadow: 0 0 20px #00ff00, 0 0 30px #00cc00; }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 600px) {
    .neon-green { 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(0, 255, 0, 0.5);
    }
    nav ul.active { display: flex; }
    .nav-link {
        padding: 10px;
        text-align: center;
        width: 100%;
    }
    .nav-progress { height: 2px; }
}