/* --- Variables & Reset --- */
:root {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --primary-color: #38bdf8;
    --secondary-color: #7e22ce;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

code {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: monospace;
}

/* --- Fond Animé --- */
.area {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.circles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px; height: 20px;
    background: rgba(255, 255, 255, 0.05);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate {
    0%{ transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* --- En-tête (Navbar) --- */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 15px 30px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.author-tag {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 5px;
}

nav ul {
    display: flex;
    gap: 15px;
    align-items: center;
}

nav ul a {
    font-size: 14px;
    font-weight: 500;
}

nav ul a:hover, nav ul a.active {
    color: var(--primary-color);
}

.btn-support {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 13px !important;
}

.btn-support:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-invite {
    padding: 8px 18px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    font-weight: 600;
    color: white !important;
}

.btn-invite:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* --- Section Héro & Version Badge --- */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 130px 20px 60px 20px;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-size: 13px;
}

.v-tag {
    color: var(--primary-color);
    font-weight: 600;
}

.v-date {
    color: #94a3b8;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto 30px auto;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main {
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.btn-main:hover {
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- Section Guide --- */
.guide-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.about-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card p {
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 300;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.step-number {
    width: 40px; height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card h4 { font-size: 18px; margin-bottom: 10px; }
.step-card p { font-size: 14px; opacity: 0.8; line-height: 1.5; font-weight: 300; }

/* --- Section Configuration Details --- */
.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-top: -35px;
    margin-bottom: 40px;
    font-weight: 300;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.config-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.config-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.config-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.config-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.config-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    font-weight: 300;
}

/* --- Section Commandes --- */
.commands {
    padding: 60px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.command-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.command-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.command-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.command-slash {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
    margin-right: 2px;
}

.command-header h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.arg { color: #94a3b8; font-weight: 400; font-size: 13px; }

.command-card p {
    font-weight: 300;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.command-footer {
    margin-top: auto;
}

.perm {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-block;
}

.perm-all { background-color: rgba(56, 189, 248, 0.15); color: var(--primary-color); }
.perm-mod { background-color: rgba(126, 34, 206, 0.15); color: #c084fc; }
.perm-admin { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* --- Pied de page --- */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.8;
    font-weight: 300;
    font-size: 14px;
}

/* --- Animations --- */
.animate-pop-in {
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes popIn {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    header { padding: 12px 15px; }
    nav { flex-direction: column; gap: 12px; }
    nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; }
    nav ul a { font-size: 12px; }
    .hero { padding-top: 180px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .version-badge { font-size: 11px; padding: 4px 12px; }
}
