/* ================= VARIABLES & THEMES ================= */
:root {
    color-scheme: light;
    --bs-body-bg: #f4f5f7;
    --bs-body-color: #1d1d1f;
    --bs-primary: #0066cc;
    --bs-primary-light: #0b7dff;
    --bs-secondary: #6e6e73;
    --text-muted: #6e6e73;
    --accent-color: #0066cc;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    --bg-light: #f8f9fa;
    --panel: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(229, 229, 230, 0.65) 100%);
    --neon-color: #0066cc;
    --neon-color-bright: #38a0ff;
    --neon-glow: rgba(0, 102, 204, 0.22);
    --neon-ambient: rgba(0, 102, 204, 0.08);
    --neon-navbar-border: rgba(0, 102, 204, 0.35);
}

/* --- THEME VARIATIONS PAR PAGE (Nuances Bleu & Violet) --- */

/* Page Web : Bleu Cyan / Azur & Océan */
body.page-web, [data-page="web"] {
    --bs-primary: #0284c7;
    --bs-primary-light: #0ea5e9;
    --accent-color: #0284c7;
    --neon-color: #0284c7;
    --neon-color-bright: #38bdf8;
    --neon-glow: rgba(2, 132, 199, 0.25);
    --neon-ambient: rgba(2, 132, 199, 0.08);
    --neon-navbar-border: rgba(2, 132, 199, 0.4);
}

/* Page VPS : Bleu Indigo / Nuit Saphir */
body.page-vps, [data-page="vps"] {
    --bs-primary: #4338ca;
    --bs-primary-light: #6366f1;
    --accent-color: #4f46e5;
    --neon-color: #4f46e5;
    --neon-color-bright: #818cf8;
    --neon-glow: rgba(79, 70, 229, 0.26);
    --neon-ambient: rgba(79, 70, 229, 0.08);
    --neon-navbar-border: rgba(79, 70, 229, 0.4);
}

/* Page Jeux & Apps : Violet Électrique / Pourpre Gamer */
body.page-jeux, [data-page="jeux"],
body.page-jeuxapp, [data-page="jeuxapp"] {
    --bs-primary: #7c3aed;
    --bs-primary-light: #9333ea;
    --accent-color: #7c3aed;
    --neon-color: #7c3aed;
    --neon-color-bright: #a855f7;
    --neon-glow: rgba(124, 58, 237, 0.26);
    --neon-ambient: rgba(124, 58, 237, 0.08);
    --neon-navbar-border: rgba(124, 58, 237, 0.4);
}

/* Page Bots Discord : Blurple Discord / Lavande Électrique */
body.page-bots, [data-page="bots"] {
    --bs-primary: #5865f2;
    --bs-primary-light: #7289da;
    --accent-color: #5865f2;
    --neon-color: #5865f2;
    --neon-color-bright: #7983f5;
    --neon-glow: rgba(88, 101, 242, 0.26);
    --neon-ambient: rgba(88, 101, 242, 0.08);
    --neon-navbar-border: rgba(88, 101, 242, 0.4);
}

/* Page Légal : Bleu Cobalt Pur / Saphir Institutionnel */
body.page-legal, [data-page="legal"] {
    --bs-primary: #1d4ed8;
    --bs-primary-light: #2563eb;
    --accent-color: #1d4ed8;
    --neon-color: #1d4ed8;
    --neon-color-bright: #60a5fa;
    --neon-glow: rgba(29, 78, 216, 0.22);
    --neon-ambient: rgba(29, 78, 216, 0.08);
    --neon-navbar-border: rgba(29, 78, 216, 0.35);
}

/* Mode Sombre */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bs-body-bg: #0b0b0f;
        --bs-body-color: #f5f5f7;
        --bs-primary: #052244;
        --bs-primary-light: #0b7dff;
        --bs-secondary: #86868b;
        --text-muted: rgb(134, 134, 139);
        --accent-color: #2997ff;
        --glass-bg: rgba(22, 22, 25, 0.70);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        --bg-light: #1a1a1f;
        --panel: linear-gradient(135deg, rgba(22, 22, 25, 0.75) 0%, rgba(22, 22, 25, 0.75) 100%);
        --neon-color: #2997ff;
        --neon-color-bright: #64d2ff;
        --neon-glow: rgba(41, 151, 255, 0.45);
        --neon-ambient: rgba(41, 151, 255, 0.18);
        --neon-navbar-border: rgba(64, 210, 255, 0.5);
    }

    body.page-web, [data-page="web"] {
        --bs-primary: #0369a1;
        --bs-primary-light: #38bdf8;
        --accent-color: #38bdf8;
        --neon-color: #38bdf8;
        --neon-color-bright: #7dd3fc;
        --neon-glow: rgba(56, 189, 248, 0.45);
        --neon-ambient: rgba(56, 189, 248, 0.18);
        --neon-navbar-border: rgba(125, 211, 252, 0.5);
    }

    body.page-vps, [data-page="vps"] {
        --bs-primary: #312e81;
        --bs-primary-light: #6366f1;
        --accent-color: #818cf8;
        --neon-color: #818cf8;
        --neon-color-bright: #a5b4fc;
        --neon-glow: rgba(99, 102, 241, 0.48);
        --neon-ambient: rgba(99, 102, 241, 0.2);
        --neon-navbar-border: rgba(165, 180, 252, 0.5);
    }

    body.page-jeux, [data-page="jeux"],
    body.page-jeuxapp, [data-page="jeuxapp"] {
        --bs-primary: #581c87;
        --bs-primary-light: #a855f7;
        --accent-color: #a855f7;
        --neon-color: #a855f7;
        --neon-color-bright: #c084fc;
        --neon-glow: rgba(168, 85, 247, 0.48);
        --neon-ambient: rgba(168, 85, 247, 0.2);
        --neon-navbar-border: rgba(192, 132, 252, 0.5);
    }

    body.page-bots, [data-page="bots"] {
        --bs-primary: #3c45a5;
        --bs-primary-light: #5865f2;
        --accent-color: #7983f5;
        --neon-color: #7983f5;
        --neon-color-bright: #9ba2f8;
        --neon-glow: rgba(88, 101, 242, 0.48);
        --neon-ambient: rgba(88, 101, 242, 0.2);
        --neon-navbar-border: rgba(121, 131, 245, 0.5);
    }

    body.page-legal, [data-page="legal"] {
        --bs-primary: #1e3a8a;
        --bs-primary-light: #3b82f6;
        --accent-color: #60a5fa;
        --neon-color: #60a5fa;
        --neon-color-bright: #93c5fd;
        --neon-glow: rgba(59, 130, 246, 0.42);
        --neon-ambient: rgba(59, 130, 246, 0.16);
        --neon-navbar-border: rgba(96, 165, 250, 0.5);
    }
}

[data-theme="dark"] {
    color-scheme: dark;
    --bs-body-bg: #0b0b0f;
    --bs-body-color: #f5f5f7;
    --bs-primary: #052244;
    --bs-primary-light: #0b7dff;
    --bs-secondary: #86868b;
    --text-muted: rgb(134, 134, 139);
    --accent-color: #2997ff;
    --glass-bg: rgba(22, 22, 25, 0.70);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --bg-light: #1a1a1f;
    --panel: linear-gradient(135deg, rgba(22, 22, 25, 0.75) 0%, rgba(22, 22, 25, 0.75) 100%);
    --neon-color: #2997ff;
    --neon-color-bright: #64d2ff;
    --neon-glow: rgba(41, 151, 255, 0.45);
    --neon-ambient: rgba(41, 151, 255, 0.18);
    --neon-navbar-border: rgba(64, 210, 255, 0.5);
}

[data-theme="dark"] body.page-web, [data-theme="dark"] [data-page="web"] {
    --bs-primary: #0369a1;
    --bs-primary-light: #38bdf8;
    --accent-color: #38bdf8;
    --neon-color: #38bdf8;
    --neon-color-bright: #7dd3fc;
    --neon-glow: rgba(56, 189, 248, 0.45);
    --neon-ambient: rgba(56, 189, 248, 0.18);
    --neon-navbar-border: rgba(125, 211, 252, 0.5);
}

[data-theme="dark"] body.page-vps, [data-theme="dark"] [data-page="vps"] {
    --bs-primary: #312e81;
    --bs-primary-light: #6366f1;
    --accent-color: #818cf8;
    --neon-color: #818cf8;
    --neon-color-bright: #a5b4fc;
    --neon-glow: rgba(99, 102, 241, 0.48);
    --neon-ambient: rgba(99, 102, 241, 0.2);
    --neon-navbar-border: rgba(165, 180, 252, 0.5);
}

[data-theme="dark"] body.page-jeux, [data-theme="dark"] [data-page="jeux"],
[data-theme="dark"] body.page-jeuxapp, [data-theme="dark"] [data-page="jeuxapp"] {
    --bs-primary: #581c87;
    --bs-primary-light: #a855f7;
    --accent-color: #a855f7;
    --neon-color: #a855f7;
    --neon-color-bright: #c084fc;
    --neon-glow: rgba(168, 85, 247, 0.48);
    --neon-ambient: rgba(168, 85, 247, 0.2);
    --neon-navbar-border: rgba(192, 132, 252, 0.5);
}

[data-theme="dark"] body.page-bots, [data-theme="dark"] [data-page="bots"] {
    --bs-primary: #3c45a5;
    --bs-primary-light: #5865f2;
    --accent-color: #7983f5;
    --neon-color: #7983f5;
    --neon-color-bright: #9ba2f8;
    --neon-glow: rgba(88, 101, 242, 0.48);
    --neon-ambient: rgba(88, 101, 242, 0.2);
    --neon-navbar-border: rgba(121, 131, 245, 0.5);
}

[data-theme="dark"] body.page-legal, [data-theme="dark"] [data-page="legal"] {
    --bs-primary: #1e3a8a;
    --bs-primary-light: #3b82f6;
    --accent-color: #60a5fa;
    --neon-color: #60a5fa;
    --neon-color-bright: #93c5fd;
    --neon-glow: rgba(59, 130, 246, 0.42);
    --neon-ambient: rgba(59, 130, 246, 0.16);
    --neon-navbar-border: rgba(96, 165, 250, 0.5);
}


/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ================= GLASS EFFECT ================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ================= EFFET NÉON HAUT DE PAGE / NAVBAR ================= */
.top-neon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    pointer-events: none;
    z-index: 1025;
    overflow: hidden;
    display: flex;
    justify-content: center;
    transition: opacity 0.15s ease-out;
    will-change: opacity, transform;
}

/* Grand halo d'ambiance diffus projeté vers le bas sur la navbar */
.top-neon-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 98vw);
    height: 260px;
    background: radial-gradient(
        ellipse 65% 85% at 50% 0%,
        var(--neon-glow) 0%,
        var(--neon-ambient) 45%,
        transparent 75%
    );
    filter: blur(35px);
    opacity: 0.95;
    animation: neonGlowPulse 4s ease-in-out infinite alternate;
}

/* Émanation centrale plus lumineuse au sommet */
.top-neon-core {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 70vw);
    height: 120px;
    background: radial-gradient(
        ellipse at center top,
        var(--neon-color-bright) 0%,
        var(--neon-glow) 40%,
        transparent 75%
    );
    filter: blur(22px);
    opacity: 0.85;
}

@keyframes neonGlowPulse {
    0% {
        opacity: 0.8;
        transform: translateX(-50%) scaleY(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.08);
    }
}

/* ================= NAVBAR ================= */
header {
    z-index: 1000;
    width: 100%;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.navbar {
    width: 100%;
    max-width: 1100px;
    border-radius: 99px;
    padding: 12px 24px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-top: 1px solid var(--neon-navbar-border) !important;
    box-shadow: 0 -2px 16px var(--neon-glow), var(--glass-shadow) !important;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* Fix navbar sur tous les écrans */
.navbar.fixed-top {
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    border-radius: 99px;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.logo-icon {
    display: block;
    height: 32px;
    width: 32px;
}

.brand-name {
    color: var(--bs-body-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    padding: 0.5rem 0 !important;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-body-color) !important;
    font-weight: 500;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bs-primary);
    border-radius: 2px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
    order: -1;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.navbar-collapse {
    align-items: center;
}

#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 4px 8px !important;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

#theme-toggle:hover {
    transform: scale(1.2);
}

#theme-toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* ================= HERO SECTION ================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

.hero-dynamic-word {
    display: inline-block;
    color: var(--accent-color, #0066cc);
    position: relative;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.hero-dynamic-word.word-exit {
    opacity: 0;
    transform: translateY(-8px);
}

.hero-dynamic-word.word-enter {
    opacity: 0;
    transform: translateY(8px);
    transition: none !important;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    word-break: break-word;
}

.hero-logo {
    display: block;
    height: auto;
    width: 100%;
    object-fit: contain;
    max-width: 400px;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    transform: scale(1.03);
}

.btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--bs-primary-light) !important;
    background-color: rgba(11, 125, 255, 0.815) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--bs-primary) !important;
    filter: brightness(1.1);
}

.btn-outline-primary {
    background-color: transparent !important;
    color: var(--bs-primary-light) !important;
    border: 2px solid var(--bs-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.btn-link {
    color: var(--bs-primary-light) !important;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ================= CARDS & SECTIONS ================= */
.card {
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.card-body {
    padding: 2rem;
}
#pricing .card-body {
    display: flex;
    flex-direction: column;
}

#pricing .card-body .btn {
    margin-top: auto;
}

.card-title {
    color: var(--bs-body-color);
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
}


/* ================= BACKGROUNDS ================= */
.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary) 100%) !important;
    color: white;
}

.bg-gradient h2,
.bg-gradient p,
.bg-gradient button {
    color: white;
}

/* ================= SPACING ================= */
.pt-8 {
    padding-top: 6rem !important;
}

.pb-8 {
    padding-bottom: 6rem !important;
}

.py-8 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-9 {
    padding-top: 7rem !important;
    padding-bottom: 6rem !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.gap-lg-3 {
    gap: 1rem;
}

@media (min-width: 992px) {
    .gap-lg-3 {
        gap: 1.5rem !important;
    }
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--bs-body-color);
    font-weight: 600;
    word-break: break-word;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.6;
}

.display-5 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1.2;
}

.display-6 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.fw-500 {
    font-weight: 500;
}

.fw-bold {
    font-weight: 700;
}

/* ================= FLOATING DISCORD BUTTON ================= */
.btn-discord-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: #5865F2;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-discord-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-discord-float:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.btn-discord-float svg {
    width: 24px;
    height: 24px;
}




/* ================= FOOTER & CONTENEUR ================= */
.footer-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    padding-bottom: 24px;
}

footer {
    position: relative;
    z-index: 2; /* Calque au-dessus de l'émanation */
    margin: 0 24px 24px;
    padding: 36px 32px;
    border-radius: 24px !important; /* Tous les coins arrondis (inférieurs et supérieurs) */
    background: var(--glass-bg) !important; /* Translucide / Verre */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    width: calc(100% - 48px);
    max-width: 1200px;
}

/* ================= EFFET NÉON BAS DE PAGE (CALQUE EN DESSOUS DU FOOTER) ================= */
.bottom-neon-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    pointer-events: none;
    z-index: 1; /* Calque d'émanation en dessous */
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Grand halo d'ambiance diffus en arrière-plan projeté à travers et autour du footer */
.bottom-neon-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1300px, 98vw);
    height: 380px;
    background: radial-gradient(
        ellipse 70% 85% at 50% 100%,
        var(--neon-glow) 0%,
        var(--neon-ambient) 45%,
        transparent 75%
    );
    filter: blur(40px);
    opacity: 0.95;
    animation: neonGlowPulse 4s ease-in-out infinite alternate;
}

/* Cœur d'émanation plus concentré derrière le footer */
.bottom-neon-core {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 80vw);
    height: 190px;
    background: radial-gradient(
        ellipse at center bottom,
        var(--neon-color-bright) 0%,
        var(--neon-glow) 40%,
        transparent 75%
    );
    filter: blur(25px);
    opacity: 0.9;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--bs-body-color);
    text-decoration: underline;
}

footer h3 {
    color: var(--bs-body-color);
}

/* ================= CONTACT SECTION ================= */
#contact {
    margin: 3rem 24px;
    border-radius: 24px;
}

#contact .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

#contact .btn-outline-primary {
    border: 2px solid white !important;
    border-radius: 8px !important;
    color: white !important;
    background-color: transparent !important;
}

#contact .btn-outline-primary:hover,
#contact .btn-outline-primary:focus-visible {
    color: #ffffff !important;
    background-color: white !important;
    border-color: white !important;
    filter: brightness(0.9);
}

/* ================= BUTTON SIZE MODIFIERS ================= */
.btn-lg {
    border-radius: 8px !important;
    border-width: 2px !important;
}

.btn-primary.btn-lg {
    border: 2px solid var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary.btn-lg {
    border: 2px solid white !important;
    color: white !important;
    background-color: transparent !important;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 991px) {
    header {
        padding: 0 12px;
    }

    .navbar {
        border-radius: 20px;
        padding: 12px 16px !important;
    }

    .navbar-brand {
        margin-right: 1rem;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .btn-discord-float {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    #contact {
        margin: 2rem 12px;
    }

    .btn-discord-float svg {
        width: 20px;
        height: 20px;
    }

    .navbar.fixed-top {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .features-logo,
    .hero-logo {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        border-top: 1px solid var(--glass-border);
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .navbar-nav {
        gap: 0.5rem !important;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-section .row {
        flex-direction: column-reverse;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .pt-8,
    .pb-8,
    .py-8 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-9 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    footer {
        padding: 2.5rem 1.25rem !important;
        margin: 0 12px 16px !important;
        width: calc(100% - 24px) !important;
        border-radius: 20px !important;
    }

    .container-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .features-logo,
    .hero-logo {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .navbar.fixed-top {
        top: 8px;
        left: 8px;
        right: 8px;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .navbar {
        border-radius: 16px;
        padding: 8px 12px !important;
    }

    .navbar-brand {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: 40px;
        min-width: 40px;
    }

    .btn-primary,
    .btn-outline-primary {
        width: 100%;
    }

    .d-flex.gap-3.flex-wrap > .btn {
        width: 100%;
    }

    .hero-section {
        padding-top: 90px;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    #contact {
        margin: 1.5rem 8px;
    }
}

/* ================= UTILITIES ================= */
.container-lg {
    max-width: 1100px;
    margin: 0 auto;
}

.text-muted {
    color: var(--text-muted) !important;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.gap-5 {
    gap: 3rem;
}

hr {
    border-color: var(--glass-border);
    opacity: 0.3;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease;
}

/* ================= ACCESSIBILITY ================= */
:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Réduction des animations pour les utilisateurs qui l'ont demandé */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================= PRINT STYLES ================= */
@media print {
    header,
    footer,
    .btn-discord-float {
        display: none;
    }
}

/* ================= IMAGE OPTIMIZATION ================= */

/* Light theme navigation link adjustments */
[data-theme="light"] .nav-link.fw-500 {
    color: #212529 !important; /* dark charcoal */
    font-weight: 600;
}
[data-theme="light"] .nav-link.fw-500:hover {
    color: #007bff !important;
    text-decoration: underline;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ================= PAGES D'AUTHENTIFICATION ================= */
/* login, register, forgot-password, reset-password, 2FA...      */
/* Réutilise les variables et classes déjà définies plus haut     */
/* (--glass-bg, --neon-color, --neon-glow, .glass-card, .btn)     */

body.auth-page {
    min-height: 100vh;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 3rem;
}

.auth-wrapper.align-top {
    align-items: flex-start;
    padding-top: 5rem;
}

.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
}

.auth-card.wide {
    max-width: 520px;
}

.auth-card .brand-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.auth-card .brand-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-body-color);
}

.auth-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-card .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--neon-ambient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--neon-color-bright);
}

.auth-card .form-label {
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: .4rem;
    display: block;
}

.auth-card .form-hint {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .35rem;
}

.auth-card .form-control {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: .75rem;
    color: var(--bs-body-color);
    padding: .65rem 1rem;
    width: 100%;
}

.auth-card .form-control:focus {
    background: var(--glass-bg);
    border-color: var(--neon-color);
    box-shadow: 0 0 0 3px var(--neon-glow);
    outline: none;
}

.auth-card .code-input {
    font-size: 1.5rem;
    letter-spacing: .5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Boutons pleine largeur, coins arrondis modérés — variante des .btn existants,
   pensés ici pour des formulaires empilés verticalement plutôt que des CTA inline */
.btn-auth-primary {
    width: 100%;
    padding: .7rem;
    border-radius: .75rem;
    background: var(--neon-color);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity .2s, box-shadow .2s;
    cursor: pointer;
}

.btn-auth-primary:hover:not(:disabled) {
    opacity: .9;
    box-shadow: 0 0 16px var(--neon-glow);
}

.btn-auth-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-auth-secondary {
    width: 100%;
    padding: .65rem;
    border-radius: .75rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--bs-body-color);
    font-weight: 500;
    font-size: .92rem;
    margin-top: .75rem;
    cursor: pointer;
}

.btn-auth-danger {
    width: 100%;
    padding: .7rem;
    border-radius: .75rem;
    background: rgba(220, 53, 69, .1);
    border: 1px solid rgba(220, 53, 69, .3);
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
    transition: background .2s;
    cursor: pointer;
}

.btn-auth-danger:hover:not(:disabled) {
    background: rgba(220, 53, 69, .18);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
}

.status-badge.enabled {
    background: rgba(22, 163, 74, .12);
    color: #16a34a;
}

.status-badge.disabled {
    background: rgba(107, 118, 129, .12);
    color: var(--text-muted);
}

.alert-error {
    background: rgba(220, 53, 69, .1);
    border: 1px solid rgba(220, 53, 69, .3);
    border-radius: .75rem;
    padding: .75rem 1rem;
    color: #dc3545;
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

.alert-status,
.alert-success {
    background: rgba(25, 135, 84, .1);
    border: 1px solid rgba(25, 135, 84, .3);
    border-radius: .75rem;
    padding: .75rem 1rem;
    color: #198754;
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

.warning-box {
    background: rgba(217, 155, 28, .1);
    border: 1px solid rgba(217, 155, 28, .3);
    border-radius: .75rem;
    padding: .9rem 1.1rem;
    font-size: .87rem;
    color: #8a6314;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .88rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--neon-color-bright);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Étapes basculables (activation 2FA multi-étapes) */
.auth-step { display: none; }
.auth-step.active { display: block; }

.qr-container {
    background: #ffffff;
    border-radius: .75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0;
}

.qr-container img,
.qr-container svg {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.secret-fallback {
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.secret-fallback code {
    display: inline-block;
    margin-top: .35rem;
    padding: .4rem .7rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: .5rem;
    font-size: .85rem;
    letter-spacing: .05rem;
    word-break: break-all;
}

.recovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin: 1.25rem 0;
}

.recovery-code {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: .5rem;
    padding: .6rem .8rem;
    font-family: 'DejaVu Sans Mono', monospace;
    font-size: .88rem;
    text-align: center;
}

.auth-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .recovery-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= AUTH : BOUTONS SOCIAUX & DIVERS ================= */

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .65rem 1rem;
    border-radius: .75rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--bs-body-color);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    transition: box-shadow .2s, border-color .2s;
    margin-bottom: .75rem;
}

.btn-social:hover {
    border-color: var(--neon-color);
    box-shadow: 0 0 0 3px var(--neon-glow);
    color: var(--bs-body-color);
}

.btn-social img { width: 20px; height: 20px; }

.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: .85rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.invalid-feedback {
    font-size: .82rem;
    color: #dc3545;
    margin-top: .3rem;
}
