:root {
    --bg-dark: #0b0e14;
    --card-bg: #161b22;
    --primary: #7289da;
    --accent: #9b59b6;
    --text: #f0f6fc;
    --gradient: linear-gradient(135deg, #7289da, #9b59b6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-weight: 800;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
    padding-left: 40px;
}

.btn-nav {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar .container { justify-content: space-between; }
    .nav-menu { display: none; }
    .hamburger { display: block; cursor: pointer; }
}

/* Hero */
.hero { padding: 180px 0 100px; display: flex; align-items: center; }
.hero .container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.badge-new { background: rgba(155, 89, 182, 0.2); color: var(--accent); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; border: 1px solid var(--accent); }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin: 20px 0; }
.gradient-text { background: var(--gradient); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-cta { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; align-items: flex-start; }
.hero-cta-row { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-main {
    background: var(--gradient);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(114, 137, 218, 0.3);
    min-width: 220px;
    text-align: center;
}
.btn-sub { border: 1px solid #30363d; padding: 15px 35px; border-radius: 8px; text-decoration: none; color: white; transition: 0.3s; }
.btn-sub:hover { background: #30363d; }

.btn-addbot {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(114, 137, 218, 0.5);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 18px rgba(114, 137, 218, 0.2);
    min-width: 220px;
    text-align: center;
}
.btn-addbot:hover { background: rgba(114, 137, 218, 0.1); transform: translateY(-2px); box-shadow: 0 12px 22px rgba(114, 137, 218, 0.3); }

.hero-img { flex: 1; text-align: right; }
.hero-img img { width: 80%; animation: float 4s ease-in-out infinite; border-radius: 20px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Services */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.services { padding: 100px 0; background: #0d1117; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card { background: var(--card-bg); padding: 40px; border-radius: 15px; border: 1px solid #30363d; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* FAQ */
.faq { padding: 100px 0; background: #0d1117; }
.faq-grid { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border: 1px solid #30363d; border-radius: 20px; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.faq-item:hover { border-color: var(--primary); transform: translateY(-3px); }
.faq-question { width: 100%; text-align: left; padding: 22px 25px; border: none; background: transparent; color: white; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question span { max-width: 85%; }
.faq-question i { transition: transform 0.3s ease; color: var(--accent); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; padding: 0 25px; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { padding: 15px 25px 25px; max-height: 200px; }
.faq-answer p { color: #c9d1d9; line-height: 1.6; }

/* Pricing */
.pricing { padding: 100px 0; }
.pricing-wrapper { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.price-box { background: var(--card-bg); padding: 50px; border-radius: 20px; width: 350px; position: relative; border: 1px solid #30363d; }
.price-box.premium { border: 2px solid var(--accent); }
.price-box.promo { position: relative; background-color: #303d34; }
.price-box.promo .promo-ribbon { position: absolute; top: -8px; right: -8px; background: #ff3b3f; color: #fff; padding: 4px 8px; font-size: 0.75rem; font-weight: 700; transform: rotate(15deg); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.price { font-size: 3rem; font-weight: 800; margin: 20px 0; }
.price span { font-size: 1rem; color: #8b949ef5; }
.price-box ul { list-style: none; margin-bottom: 30px; text-align: left; }
.price-box li { margin: 10px 0; color: #c9d1d9; }
.price-box li i { color: #238636; margin-right: 10px; }
.btn-price { display: block; text-align: center; padding: 15px; background: #30363d; text-decoration: none; color: white; border-radius: 8px; transition: 0.3s; }
.btn-price:hover { background: var(--primary); }
.popular { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent); padding: 5px 20px; border-radius: 20px; font-size: 0.8rem; }

/* Contact */
.contact { padding: 100px 0; text-align: center; }
.contact-card { background: var(--gradient); padding: 60px; border-radius: 30px; color: white; }
.steps { display: flex; justify-content: space-around; margin: 40px 0; flex-wrap: wrap; gap: 20px; }
.step span { display: block; font-size: 2rem; font-weight: 800; opacity: 0.5; }
.btn-discord { background: white; color: var(--primary); padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 1.2rem; display: inline-block; transition: 0.3s; }
.btn-discord:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Responsive */
@media (max-width: 768px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-img { display: none; }
    .nav-menu { display: none; }
    .hero-cta { align-items: center; }
    .hero-cta-row { justify-content: center; }
}

html { scroll-behavior: smooth; }

/* --- STYLE PAGE COMMANDES --- */
.commands-hero { padding: 150px 0 60px; text-align: center; }
.command-category { margin-bottom: 50px; }
.command-category h2 { color: var(--primary); margin-bottom: 25px; border-left: 4px solid var(--accent); padding-left: 15px; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cmd-item { background: var(--card-bg); padding: 20px; border-radius: 12px; border: 1px solid #30363d; transition: 0.3s; }
.cmd-item:hover { border-color: var(--accent); transform: translateY(-5px); }
.cmd-name { display: block; color: var(--accent); font-weight: 800; font-family: 'Courier New', Courier, monospace; margin-bottom: 10px; font-size: 1.1rem; }
.cmd-item p { font-size: 0.9rem; color: #8b949e; }

/* --- NAVIGATION --- */
.nav-menu a { position: relative; text-decoration: none; color: var(--text); transition: 0.3s; }

.nav-menu li a:not(.btn-nav):not(.btn-discord-login)::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background: var(--gradient); transition: 0.3s;
}
.nav-menu li a:not(.btn-nav):not(.btn-discord-login):hover::after { width: 100%; }

/* --- BOUTON REJOINDRE --- */
.btn-nav {
    background: var(--gradient);
    padding: 10px 36px;
    border-radius: 50px;
    font-weight: 600 !important;
    color: white !important;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: none;
}
.btn-nav:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(114, 137, 218, 0.4); opacity: 0.9; }
.btn-nav::after { display: none !important; }

/* --- BOUTON CONNEXION DISCORD --- */
.btn-discord-login {
    background: transparent !important;
    padding: 8px 15px !important;
    font-weight: 400;
    color: var(--text) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}
.btn-discord-login:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-discord-login::after { display: none !important; }

/* État chargement */
.btn-discord-login.btn-discord-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* État connecté */
.btn-discord-login.btn-discord-logged {
    color: #2ecc71 !important;
}
.btn-discord-login.btn-discord-logged:hover {
    color: #27ae60 !important;
    opacity: 1;
}

/* --- FOOTER MODERNE --- */
.main-footer { background-color: #080a0d; padding: 80px 0 0; margin-top: 100px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-about p { color: #8b949e; margin-top: 20px; max-width: 350px; line-height: 1.6; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; text-decoration: none; transition: 0.3s; }
.social-links a:hover { background: var(--gradient); transform: translateY(-3px); }
.footer-links h4 { color: white; font-size: 1.2rem; margin-bottom: 25px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: #8b949e; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { background: rgba(0, 0, 0, 0.3); padding: 25px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-bottom p { color: #484f58; font-size: 0.9rem; }
.footer-bottom strong { color: var(--primary); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-about p { margin: 20px auto; }
    .social-links { justify-content: center; }
    .footer-links a:hover { padding-left: 0; }
}

/* --- ENCADRÉ PAIEMENT --- */
.payment-alert { background: rgba(255, 166, 0, 0.05); border: 1px solid rgba(255, 166, 0, 0.3); border-left: 5px solid #ffcc00; border-radius: 12px; padding: 25px; margin: 40px auto; display: flex; align-items: center; gap: 20px; max-width: 900px; transition: transform 0.3s ease; }
.payment-alert:hover { transform: translateY(-5px); background: rgba(255, 166, 0, 0.08); }
.alert-icon { font-size: 2.5rem; color: #0070ba; }
.alert-content h4 { color: #ffcc00; margin-bottom: 8px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
.alert-content p { color: #c9d1d9; font-size: 0.95rem; line-height: 1.5; margin: 0; }
.alert-content strong { color: white; text-decoration: underline #ffcc00; }
.alert-content a { color: var(--primary); text-decoration: none; font-weight: bold; }

@media (max-width: 600px) {
    .payment-alert { flex-direction: column; text-align: center; padding: 20px; }
    .alert-icon { margin-bottom: 10px; }
}

/* --- TOGGLE SWITCH TARIFS --- */
.pricing-toggle { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 40px; }
.pricing-toggle span { font-weight: 600; color: #8b949e; transition: 0.3s; }
.pricing-toggle span.active { color: white; }
.promo { background: #238636; color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; margin-left: 5px; }
.switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #30363d; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background: var(--gradient); }
input:checked + .slider:before { transform: translateX(30px); }

/* Bouton tarif */
.btn-price { display: block; text-align: center; padding: 15px; background: #30363d; color: white; text-decoration: none; border-radius: 8px; font-weight: 700; position: relative; z-index: 1; overflow: hidden; transition: all 0.4s ease; border: none; }
.btn-price::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: linear-gradient(135deg, #7289da 0%, #9b59b6 100%); transition: all 0.4s ease; z-index: -1; }
.btn-price:hover::before { width: 100%; }
.btn-price:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(155, 89, 182, 0.4); color: white; }
.price-box.premium .btn-price { background: var(--gradient); }
.price-box.premium .btn-price:hover { filter: brightness(1.2); box-shadow: 0 0 25px rgba(155, 89, 182, 0.6); }

.price-box .promo-tag { position: absolute; top: -10px; right: -12px; width: 80px; padding: 4px 0; background: linear-gradient(135deg, #ff3b3f 0%, #ff6a60 100%); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; transform: rotate(12deg); box-shadow: 0 2px 6px rgba(0,0,0,0.25); z-index: 5; }
.price-box:has(.popular) .promo-tag { top: -5px; }
.price-original { text-decoration: line-through; color: rgba(255, 255, 255, 0.85); font-size: 1rem; margin-right: 6px; }
.price-promo { font-size: 2rem; font-weight: bold; color: #fff; }
.price-promo .period { font-size: 1rem; font-weight: normal; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 30px; z-index: 2000; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.modal-content { position: relative; background: var(--card-bg); border: 1px solid #30363d; border-radius: 20px; padding: 30px; max-width: 500px; width: 100%; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.5); text-align: left; }
.modal-content h2 { margin-top: 0; margin-bottom: 15px; }
.modal-content p, .modal-content ol { color: #c9d1d9; line-height: 1.6; }
.modal-content ol { margin: 16px 0 24px; padding-left: 20px; }
.modal-content ol li { margin-bottom: 10px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: none; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.25rem; cursor: pointer; transition: background 0.3s; }
.modal-close:hover { background: rgba(255, 255, 255, 0.17); }
@media (max-width: 600px) { .modal-content { padding: 24px; } }

/* --- MENU DÉROULANT DU PROFIL --- */
.user-dropdown { position: relative; display: inline-block; }

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 65px;
    background-color: var(--card-bg);
    min-width: 200px;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-content.show { display: block; }

.dropdown-header { padding: 12px 16px; font-size: 12px; color: #8b949e; text-transform: uppercase; border-bottom: 1px solid #30363d; }

.dropdown-content a { color: white !important; padding: 12px 16px; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: 0.2s; font-size: 14px; }
.dropdown-content a::after { display: none !important; }
.dropdown-content a i { width: 20px; color: var(--primary); }
.dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.05); }
.logout-link { color: #ff4757 !important; }
.dropdown-content hr { border: 0; border-top: 1px solid #30363d; margin: 5px 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}