:root {
    --bg: #0b0d12;
    --bg-soft: #111521;
    --bg-card: #141a27;
    --bg-card-2: #0f1420;
    --text: #f5f7fb;
    --text-muted: #b8c0cc;
    --text-soft: #9aa6b2;
    --accent: #ff8c00;
    --accent-2: #7a4dff;
    --accent-3: #ffcf66;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

body {
    background: radial-gradient(1200px 600px at 10% -10%, rgba(122,77,255,0.18), transparent 60%),
                radial-gradient(900px 500px at 90% -20%, rgba(255,140,0,0.20), transparent 55%),
                var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.2px;
}

.hero {
    background: #000;
    padding: 110px 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 32px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 25px auto;
    color: rgba(255,255,255,0.95);
}

.hero .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.hero .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.8);
}

.section {
    padding: 90px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 50px;
    letter-spacing: 0.4px;
}
.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 14px auto 0 auto;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.feature-card {
    background: linear-gradient(160deg, var(--bg-card), var(--bg-card-2));
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.35s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,140,0,0.35), rgba(122,77,255,0.35));
    opacity: 0;
    transition: 0.35s;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,140,0,0.6);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.feature-card h4,
.feature-card p {
    position: relative;
    z-index: 1;
}

.feature-card h4 {
    color: var(--accent-3);
    font-weight: 700;
    margin-bottom: 12px;
}

.cta {
    background: linear-gradient(135deg, rgba(122,77,255,0.95), rgba(255,140,0,0.95));
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.cta span {
    background: rgba(0,0,0,0.25);
    padding: 6px 14px;
    border-radius: 20px;
}

.navbar {
    background: rgba(11,13,18,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    position: relative;
    z-index: 1050;
}

.navbar a.nav-link,
.navbar-brand {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active-page {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent) !important;
}

.navbar-nav .nav-link.nav-pill-orange.active-page {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000 !important;
}

.navbar a.nav-link:hover {
    color: var(--accent) !important;
}

.navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: 6px;
}

.nav-pill {
    padding: 6px 16px !important;
    border-radius: 999px;
    font-weight: 500;
}

.nav-pill-orange {
    background: linear-gradient(90deg, var(--accent), #ffb24d);
    color: #000000 !important;
}

.nav-pill-orange:hover {
    background: linear-gradient(90deg, #ff9a2f, #ffc364);
    color: #000000 !important;
}

.nav-pill-red {
    background-color: #dc3545;
    color: #ffffff !important;
}

.nav-pill-red:hover {
    background-color: #ff7043 !important;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.user-chip img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
}

.user-chip span {
    font-size: 0.9rem;
}

.user-chip .dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
}

.navbar-collapse {
    position: relative;
}

.navbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* On cache la flèche Bootstrap par défaut et on utilise la nôtre */
.navbar .dropdown-toggle::after {
    display: none;
}

/* Boutique: layout, sidebar compacte, cartes produits */
.shop-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.shop-sidebar {
    flex: 0 0 210px;
    max-width: 210px;
}

.shop-sidebar .category-link {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.03);
    font-size: 0.9rem;
}

.shop-sidebar .category-link:hover {
    background: rgba(0,0,0,0.12);
}

.shop-sidebar .category-link.active {
    background: #ff8c00;
    color: #000000;
}

.shop-sidebar .card {
    font-size: 0.9rem;
    padding: 0;
}

.shop-sidebar .card .card-body {
    padding: 10px 12px;
}

.shop-sidebar .btn-sm {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.shop-products {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-product-card {
    background: linear-gradient(160deg, var(--bg-card), var(--bg-card-2));
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: 0.25s;
    border: 1px solid var(--border);
    max-width: 360px;
}

.shop-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,140,0,0.6);
    box-shadow: 0 16px 30px rgba(0,0,0,0.5);
}

.shop-product-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.shop-product-price {
    font-weight: 600;
    color: var(--accent-3);
    margin-bottom: 6px;
}

.shop-product-card button {
    pointer-events: auto;
}

.shop-product-image {
    display: block;
    max-width: 160px;
    max-height: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 12px auto;
}

.shop-modal-image {
    max-width: 220px;
    width: 100%;
    border-radius: 16px;
    object-fit: contain;
}

.shop-modal-body {
    background-color: var(--bg-card-2);
}

.shop-modal-body .modal-title {
    color: var(--accent-3);
}

/* Assure un texte lisible sur les cartes sombres partout sur le site */
.card.bg-dark,
.card.bg-dark .card-body,
.card.bg-dark p,
.card.bg-dark td,
.card.bg-dark th {
    color: var(--text) !important;
}
.card.bg-dark .text-muted {
    color: var(--text-muted) !important;
}
.card {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.btn-light {
    background: #ffffff;
    color: #10131a;
    border: none;
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.25);
}
.btn-warning {
    background: linear-gradient(90deg, var(--accent), #ffb84d);
    border: none;
    color: #10131a;
}
.btn-warning:hover {
    filter: brightness(1.05);
}
.form-control,
.form-select {
    background: #0f1420;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
}
.form-control:focus,
.form-select:focus {
    border-color: rgba(255,140,0,0.6);
    box-shadow: 0 0 0 0.15rem rgba(255,140,0,0.25);
}
.table {
    color: var(--text);
}
.table thead th {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(255,255,255,0.03);
}
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-border-color: var(--border);
}
.badge {
    border-radius: 999px;
    padding: 0.35em 0.65em;
    font-weight: 600;
}
.alert {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(20,26,39,0.9);
    color: var(--text);
}
.dropdown-menu {
    background: #101522;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 2000;
}
.dropdown-item {
    color: var(--text);
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}
.accordion-button {
    border-radius: 12px !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-secondary {
    color: var(--text-soft) !important;
}
.accordion-button,
.accordion-body {
    color: #f2f2f2;
}
.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #1b1b25;
}
.accordion-item.bg-dark {
    border-color: rgba(255,255,255,0.2) !important;
}

@media (max-width: 991.98px) {
    .navbar-center {
        position: static;
        transform: none;
        margin-top: 8px;
    }

    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        flex: 1 1 100%;
        max-width: none;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

.shop-sidebar .category-link {
        margin-bottom: 0;
    }
}

/* Mobile: ajustements pour petits écrans */
@media (max-width: 767.98px) {
    .hero {
        padding: 70px 16px;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section {
        padding: 50px 16px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 24px 18px;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn {
        width: 100%;
        text-align: left;
        margin-bottom: 4px;
    }

    .navbar-nav.ms-auto {
        margin-top: 8px;
    }
}

/* Tables: scroll horizontal sur mobile */
@media (max-width: 767.98px) {
    table.table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Bouton retour en haut + toast global */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1030;
    display: none;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.global-toast {
    position: fixed;
    right: 16px;
    bottom: 72px;
    z-index: 1030;
    background: #181824;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.global-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .back-to-top {
        right: 12px;
        bottom: 12px;
    }

    .global-toast {
        left: 12px;
        right: 12px;
        bottom: 70px;
    }
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Réponses du staff et actualités (HTML mis en forme) */
.ticket-rich,
.news-content {
    overflow-wrap: anywhere;
}
.ticket-rich img,
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.ticket-rich > :last-child,
.news-content > :last-child {
    margin-bottom: 0;
}
.ticket-rich a,
.news-content a {
    color: var(--accent-3);
}
.ticket-rich table,
.news-content table {
    max-width: 100%;
}

/* Respect du réglage système « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Bandeau d'accueil : voile sombre léger pour que le texte reste lisible sur la vidéo */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.45));
    pointer-events: none;
}
.hero p,
.hero h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
