/* DARK MODE IMPROVEMENTS */
[data-bs-theme=dark] {
    --bs-body-bg: #0d1117;
    --bs-body-color: #f0f6fc;
    --bs-emphasis-color: #f0f6fc;
    --bs-secondary-color: rgba(240, 246, 252, 0.75);
    --bs-tertiary-color: rgba(240, 246, 252, 0.5);
    --bs-border-color: #30363d;
    --bs-secondary-bg: #161b22;
    --bs-tertiary-bg: #0d1117;
}

/* Admin header text in dark mode */
[data-bs-theme=dark] .sidebar-text {
    color: #f0f6fc !important;
}

/* ===============================================
   DASHBOARD LINK STYLING (Public Site)
   =============================================== */

/* Dashboard link for connected users - Style minimaliste avec bordure verte */
.navbar-nav .nav-item .dashboard-link {
    color: #10b981 !important; /* Vert comme l'indicateur connecté */
    font-weight: 600 !important;
}

.navbar-nav .nav-item .dashboard-link:hover {
    color: white !important;
    background: #10b981 !important; /* Fond vert au hover */
    border-color: #10b981 !important;
    text-decoration: none !important;
}

.navbar-nav .nav-item .dashboard-link.active {
    color: white !important;
    background: #059669 !important; /* Fond vert plus foncé quand actif */
    border-color: #059669 !important;
}

.navbar-nav .nav-item .dashboard-link.active:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
}


/* Dark mode adaptations - Style minimaliste cohérent */
[data-bs-theme="dark"] .navbar-nav .nav-item .dashboard-link {
    color: #10b981 !important; /* Même vert en mode dark */
    border-color: #10b981 !important;
    background: transparent !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-item .dashboard-link:hover {
    color: white !important;
    background: #10b981 !important;
    border-color: #10b981 !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-item .dashboard-link.active {
    color: white !important;
    background: #059669 !important;
    border-color: #059669 !important;
}

/* Amélioration du contraste pour les cartes en mode dark */
[data-bs-theme=dark] .card {
    --bs-card-bg: #161b22;
    --bs-card-border-color: #30363d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Amélioration des boutons en mode dark - utilisation du bleu du mode normal */
[data-bs-theme=dark] .btn-primary {
    --bs-btn-bg: #6257ff;
    --bs-btn-border-color: #6257ff;
    --bs-btn-hover-bg: #5146e5;
    --bs-btn-hover-border-color: #5146e5;
    --bs-btn-active-bg: #4135cc;
    --bs-btn-active-border-color: #4135cc;
}

/* Amélioration du contraste pour les liens - blanc au lieu de bleu */
[data-bs-theme=dark] a {
    color: #f0f6fc;
}

[data-bs-theme=dark] a:hover {
    color: #e6e6e6;
}

/* Supprimer l'arrière-plan des sections hero en mode dark pour laisser la vidéo visible */
[data-bs-theme=dark] .bg-dark {
    background-color: transparent !important;
}

/* Restauration de l'opacité normale */
[data-bs-theme=dark] .opacity-50 {
    opacity: 0.5 !important;
}

/* Amélioration des formulaires en mode dark */
[data-bs-theme=dark] .form-control {
    background-color: #21262d;
    border-color: #30363d;
    color: #f0f6fc;
}

[data-bs-theme=dark] .form-control:focus {
    background-color: #21262d;
    border-color: #58a6ff;
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

/* Amélioration de la navbar en mode dark */
[data-bs-theme=dark] .navbar {
    background-color: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Amélioration des ombres en mode dark */
[data-bs-theme=dark] .shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme=dark] .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme=dark] .shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.6) !important;
}

/* Amélioration des bordures en mode dark */
[data-bs-theme=dark] .border {
    border-color: #30363d !important;
}

/* AMÉLIORATIONS SPÉCIFIQUES POUR LA PAGE D'ACCUEIL */

/* Amélioration du hero section pour un meilleur contraste */
[data-bs-theme=dark] .hero-section {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

/* Amélioration du texte sur les backgrounds dark */
[data-bs-theme=dark] .text-white {
    color: #f0f6fc !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Overlay coloré au lieu d'opacité sur les images */
[data-bs-theme=dark] .swiper-main {
    opacity: 1 !important;
}

[data-bs-theme=dark] .swiper-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.7) 0%, rgba(22, 27, 34, 0.8) 100%);
    z-index: 1;
}

/* Assurer que les slides restent en arrière-plan */
[data-bs-theme=dark] .swiper-slide {
    z-index: 0;
}

/* S'assurer que le contenu texte reste visible au-dessus */
[data-bs-theme=dark] .position-relative.z-1 {
    z-index: 10 !important;
}

/* Alternative avec filtre pour préserver la qualité d'image */
[data-bs-theme=dark] .hero-image-filter {
    filter: brightness(0.4) contrast(1.2);
}

/* Amélioration du contraste des sections hero avec overlay personnalisé */
[data-bs-theme=dark] .hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(13, 17, 23, 0.6) 0%, rgba(13, 17, 23, 0.8) 100%);
    z-index: 1;
}

/* STYLES POUR LA VIDÉO HERO */

/* Conteneur vidéo hero - approche responsive mobile-first */
.hero-video-container {
    position: relative;
    overflow: hidden;
    height: 60vh; /* Plus compact pour mobile */
    min-height: 400px;
    max-height: 600px;
}

/* Vidéo hero - styles de base */
.hero-video {
    object-fit: cover;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

/* Mode normal - légère overlay pour lisibilité */
.hero-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Mode dark - overlay plus prononcé */
[data-bs-theme=dark] .hero-video-container::before {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.6) 0%, rgba(22, 27, 34, 0.7) 100%);
}

/* Mode dark - ajustement de la vidéo */
[data-bs-theme=dark] .hero-video {
    filter: brightness(0.7) contrast(1.1);
}

/* Assurer que le contenu texte reste au premier plan */
.hero-video-container .position-relative.z-1 {
    z-index: 10 !important;
}

/* RESPONSIVE - Optimisé pour audience mobile */

/* Très petits écrans (smartphones portrait) */
@media (max-width: 576px) {
    .hero-video-container {
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
    }
}

/* Tablettes et petits ordinateurs portables */
@media (min-width: 768px) {
    .hero-video-container {
        height: 65vh;
        min-height: 500px;
        max-height: 700px;
    }
}

/* Ordinateurs portables et écrans moyens */
@media (min-width: 992px) {
    .hero-video-container {
        height: 70vh;
        min-height: 550px;
        max-height: 750px;
    }
}

/* Grands écrans - limité pour éviter les bannières trop hautes */
@media (min-width: 1400px) {
    .hero-video-container {
        height: 65vh;
        max-height: 700px;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-video-container {
        height: 80vh;
        min-height: 300px;
        max-height: 500px;
    }
}

/* Performance - optimisation pour le chargement */
.hero-video {
    will-change: transform;
    backface-visibility: hidden;
}

/* Supprimer le fond des éléments avec fond transparent en mode dark pour éviter le bloc noir */
[data-bs-theme=dark] .position-relative.overflow-hidden {
    background: transparent !important;
}

/* Amélioration du contraste des titres */
[data-bs-theme=dark] .display-4 {
    color: #f0f6fc;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Amélioration du contraste pour les paragraphes lead */
[data-bs-theme=dark] .lead {
    color: rgba(240, 246, 252, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Supprimer le fond des sections avec padding pour laisser la vidéo transparaître */
[data-bs-theme=dark] .py-12,
[data-bs-theme=dark] .py-lg-15 {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Amélioration des dividers SVG */
[data-bs-theme=dark] svg {
    filter: brightness(0.8);
}

/* Amélioration des boutons d'action principaux */
[data-bs-theme=dark] .btn-lg {
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

[data-bs-theme=dark] .btn-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Amélioration des icônes dans les boutons */
[data-bs-theme=dark] .btn i {
    filter: brightness(1.1);
}

/* AMÉLIORATIONS GÉNÉRALES POUR L'ACCESSIBILITÉ */

/* Amélioration des modals en mode dark */
[data-bs-theme=dark] .modal-content {
    background-color: #161b22;
    border-color: #30363d;
}

[data-bs-theme=dark] .modal-header {
    border-bottom-color: #30363d;
}

[data-bs-theme=dark] .modal-footer {
    border-top-color: #30363d;
}

/* Amélioration des tooltips */
[data-bs-theme=dark] .tooltip .tooltip-inner {
    background-color: #21262d;
    color: #f0f6fc;
}

/* Amélioration des dropdowns */
[data-bs-theme=dark] .dropdown-menu {
    background-color: #21262d !important;
    border-color: #30363d !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    z-index: 1050 !important;
}

[data-bs-theme=dark] .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force l'affichage du dropdown en mode dark avec z-index très élevé */
[data-bs-theme="dark"] .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    position: fixed !important;
    top: 60px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 99999 !important;
    min-width: 10rem !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Aussi forcer le dropdown au clic pour mode dark */
[data-bs-theme="dark"] .nav-item.dropdown .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important;
    top: 60px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 99999 !important;
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
}

/* S'assurer que le dropdown toggle fonctionne */
[data-bs-theme="dark"] .dropdown-toggle {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .dropdown-toggle:hover {
    color: #fff !important;
}

/* Correction du dropdown en mode dark */

/* Neutraliser les z-index de la section vidéo qui interfèrent */
[data-bs-theme="dark"] .hero-video-container,
[data-bs-theme="dark"] .hero-video-container *,
[data-bs-theme="dark"] .hero-video,
[data-bs-theme="dark"] section.position-relative,
[data-bs-theme="dark"] .position-relative.z-1 {
    z-index: -1 !important;
}

/* S'assurer que le header reste au premier plan */
[data-bs-theme="dark"] header,
[data-bs-theme="dark"] .navbar {
    z-index: 9999 !important;
    position: relative !important;
}

/* Styling du dropdown en mode dark */
[data-bs-theme="dark"] #customDropdownMenu {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 99999 !important;
    min-width: 10rem !important;
    padding: 0.5rem 0 !important;
    margin: 0.125rem 0 0 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Affichage au hover ou avec la classe .show */
[data-bs-theme="dark"] #customDropdownMenu.show,
[data-bs-theme="dark"] #customDropdown:hover #customDropdownMenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #30363d !important;
    color: #f0f6fc !important;
}


[data-bs-theme=dark] .dropdown-item {
    color: #f0f6fc;
}

[data-bs-theme=dark] .dropdown-item:hover,
[data-bs-theme=dark] .dropdown-item:focus {
    background-color: #30363d;
    color: #f0f6fc;
}

[data-bs-theme=dark] .dropdown-header {
    color: #8b949e;
}

[data-bs-theme=dark] .dropdown-divider {
    border-color: #30363d;
}

/* Amélioration des alertes */
[data-bs-theme=dark] .alert-primary {
    background-color: #1f2937;
    border-color: #374151;
    color: #93c5fd;
}

[data-bs-theme=dark] .alert-success {
    background-color: #065f46;
    border-color: #047857;
    color: #a7f3d0;
}

[data-bs-theme=dark] .alert-warning {
    background-color: #92400e;
    border-color: #b45309;
    color: #fcd34d;
}

[data-bs-theme=dark] .alert-danger {
    background-color: #991b1b;
    border-color: #dc2626;
    color: #fca5a5;
}

/* Amélioration des badges */
[data-bs-theme=dark] .badge {
    background-color: #374151 !important;
    color: #f0f6fc !important;
}

/* Amélioration des breadcrumbs */
[data-bs-theme=dark] .breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

/* Amélioration des tables */
[data-bs-theme=dark] .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
}

/* Focus states améliorés pour l'accessibilité */
[data-bs-theme=dark] *:focus {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

[data-bs-theme=dark] .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.5);
}

/* CORRECTIONS SPÉCIFIQUES POUR LES PROBLÈMES DE LISIBILITÉ */

/* Correction des textes noirs en mode dark */
[data-bs-theme=dark] .color-black {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] .text-black {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] .carousel-caption {
    color: #f0f6fc !important;
}

/* Correction de la taille et alignement du logo en mode dark */
[data-bs-theme=dark] .navbar-brand {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

[data-bs-theme=dark] .navbar-expand-lg .navbar-brand {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Assurer que les images du logo gardent leur taille appropriée */
[data-bs-theme=dark] .navbar-brand img {
    width: 2.5rem;
    height: auto;
}

[data-bs-theme=dark] .navbar-expand-lg .navbar-brand img {
    width: 3rem;
    height: auto;
}

/* Style du texte accompagnant le logo */
[data-bs-theme=dark] .navbar-brand span {
    color: #f0f6fc;
    white-space: nowrap;
    font-weight: 500;
}

/* Remplacer les textes bleus par du blanc en mode dark */
[data-bs-theme=dark] .text-primary,
[data-bs-theme=dark] .link-primary {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] .text-info,
[data-bs-theme=dark] .link-info {
    color: #f0f6fc !important;
}

/* S'assurer que tous les liens Bootstrap utilisent le blanc */
[data-bs-theme=dark] .link-secondary,
[data-bs-theme=dark] .link-success,
[data-bs-theme=dark] .link-warning,
[data-bs-theme=dark] .link-danger,
[data-bs-theme=dark] .link-light,
[data-bs-theme=dark] .link-dark {
    color: #f0f6fc !important;
}

/* Navigation links en blanc */
[data-bs-theme=dark] .nav-link {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] .nav-link:hover,
[data-bs-theme=dark] .nav-link:focus {
    color: #e6e6e6 !important;
}

/* Correction des boutons avec texte noir */
[data-bs-theme=dark] .btn-light {
    --bs-btn-color: #0d1117;
    --bs-btn-bg: #f0f6fc;
    --bs-btn-border-color: #f0f6fc;
    --bs-btn-hover-color: #0d1117;
    --bs-btn-hover-bg: #e6e6e6;
    --bs-btn-hover-border-color: #e6e6e6;
}

/* Correction spécifique du bouton btn-white */
[data-bs-theme=dark] .btn-white {
    --bs-btn-color: #000000;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: #000000;
    --bs-btn-hover-bg: #f0f0f0;
    --bs-btn-hover-border-color: #f0f0f0;
    --bs-btn-active-color: #000000;
    --bs-btn-active-bg: #e0e0e0;
    --bs-btn-active-border-color: #e0e0e0;
}

/* Assurer que le texte et l'icône du bouton white restent noirs */
[data-bs-theme=dark] .btn-white span,
[data-bs-theme=dark] .btn-white i {
    color: #000000 !important;
}

/* Correction des badges avec texte noir */
[data-bs-theme=dark] .badge-light {
    background-color: #f0f6fc !important;
    color: #0d1117 !important;
}

/* Correction des alertes avec texte noir */
[data-bs-theme=dark] .alert-light {
    background-color: #2d333b;
    border-color: #444c56;
    color: #f0f6fc;
}

/* Forcer le texte blanc sur tous les éléments avec couleur noire */
[data-bs-theme=dark] * {
    color: inherit;
}

[data-bs-theme=dark] .text-dark {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] .btn-outline-dark {
    --bs-btn-color: #f0f6fc;
    --bs-btn-border-color: #f0f6fc;
    --bs-btn-hover-color: #0d1117;
    --bs-btn-hover-bg: #f0f6fc;
    --bs-btn-hover-border-color: #f0f6fc;
}

/* Correction des éléments avec background noir */
[data-bs-theme=dark] .bg-black {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}

/* Amélioration du contraste pour tous les liens */
[data-bs-theme=dark] a:not(.btn):not(.navbar-brand) {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] a:not(.btn):not(.navbar-brand):hover {
    color: #e6e6e6 !important;
}

/* CORRECTIONS SUPPLÉMENTAIRES POUR LA PAGE D'ACCUEIL */

/* Correction des éléments de navigation */
[data-bs-theme=dark] .navbar-nav .nav-link {
    color: #f0f6fc !important;
}

[data-bs-theme=dark] .navbar-nav .nav-link:hover {
    color: #e6e6e6 !important;
}

/* Correction des éléments avec ombre portée trop foncée */
[data-bs-theme=dark] .hover-shadow-3d:hover {
    box-shadow: 5px 5px 0px 0px #30363d !important;
}

/* Amélioration des dividers et séparateurs */
[data-bs-theme=dark] .grid-separator > * {
    box-shadow: -1px -1px 0px 0px #30363d;
}

/* Correction des éléments de pagination */
[data-bs-theme=dark] .page-link {
    background-color: #21262d;
    border-color: #30363d;
    color: #f0f6fc;
}

[data-bs-theme=dark] .page-link:hover {
    background-color: #30363d;
    border-color: #444c56;
    color: #f0f6fc;
}

[data-bs-theme=dark] .page-item.active .page-link {
    background-color: #6257ff;
    border-color: #6257ff;
}

/* Correction des éléments de liste */
[data-bs-theme=dark] .list-group-item {
    background-color: #21262d;
    border-color: #30363d;
    color: #f0f6fc;
}

[data-bs-theme=dark] .list-group-item:hover {
    background-color: #30363d;
}

/* Amélioration des headers et titres */
[data-bs-theme=dark] h1, 
[data-bs-theme=dark] h2, 
[data-bs-theme=dark] h3, 
[data-bs-theme=dark] h4, 
[data-bs-theme=dark] h5, 
[data-bs-theme=dark] h6 {
    color: #f0f6fc;
}

/* Correction pour les éléments avec class text-muted */
[data-bs-theme=dark] .text-muted {
    color: rgba(240, 246, 252, 0.6) !important;
}

/* VIGNETTES GAMING STYLE - ÉNIGMES */

/* Style gaming de base pour les cards d'énigmes */
.story-card-gaming,
.card.story-card,
.story-col .card {
    border-radius: 12px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 2px solid #0f3460;
    box-shadow: 0 0 20px rgba(15, 52, 96, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Border animé au hover */
.story-card-gaming::before,
.card.story-card::before,
.story-col .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6257ff, #d419ae, #00d4ff, #6257ff);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-card-gaming:hover::before,
.card.story-card:hover::before,
.story-col .card:hover::before {
    opacity: 1;
}

.story-card-gaming:hover,
.card.story-card:hover,
.story-col .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(98, 87, 255, 0.4),
                0 0 40px rgba(212, 25, 174, 0.3);
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Images des énigmes */
.story-card-gaming .card-img-top,
.card.story-card .card-img-top,
.story-col .card .card-img-top {
    height: 200px;
    object-fit: cover;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.story-card-gaming .card-img-top::after,
.card.story-card .card-img-top::after,
.story-col .card .card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(98, 87, 255, 0.2), rgba(212, 25, 174, 0.2));
    transition: opacity 0.3s ease;
}

.story-card-gaming:hover .card-img-top::after,
.card.story-card:hover .card-img-top::after,
.story-col .card:hover .card-img-top::after {
    opacity: 0.8;
}

/* Corps de la card */
.story-card-gaming .card-body,
.card.story-card .card-body,
.story-col .card .card-body {
    background: rgba(26, 26, 46, 0.8);
    color: #f0f6fc;
}

/* Titres avec effet néon */
.story-card-gaming .card-title,
.card.story-card .card-title,
.story-col .card .card-title {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Texte descriptif */
.story-card-gaming .card-text,
.card.story-card .card-text,
.story-col .card .card-text {
    color: #b0b8c5;
    font-size: 14px;
    line-height: 1.5;
}

/* Badges gaming style */
.story-badge-gaming,
.badge.story-badge {
    background: linear-gradient(135deg, #ff0080, #ff8c00) !important;
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
    animation: pulse 2s infinite;
    border: none !important;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 0, 128, 0.8);
        transform: scale(1.05);
    }
}

/* Stats gaming avec barres */
.story-stats-gaming {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.story-stat-gaming {
    flex: 1;
    min-width: 60px;
    padding: 6px 8px;
    background: rgba(15, 52, 96, 0.5);
    border-radius: 8px;
    border: 1px solid #0f3460;
    text-align: center;
    backdrop-filter: blur(5px);
}

.story-stat-gaming .label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-stat-gaming .value {
    font-size: 13px;
    color: #00d4ff;
    font-weight: bold;
    margin-top: 2px;
}

/* Boutons d'action gaming style */
.story-card-gaming .btn,
.card.story-card .btn,
.story-col .card .btn {
    background: linear-gradient(135deg, #6257ff, #8b7fff) !important;
    border: none !important;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(98, 87, 255, 0.3);
}

.story-card-gaming .btn:hover,
.card.story-card .btn:hover,
.story-col .card .btn:hover {
    background: linear-gradient(135deg, #5146e5, #7c6bff) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(98, 87, 255, 0.5) !important;
}

/* Mode light - adaptation pour cohérence */
[data-bs-theme=light] .story-card-gaming,
[data-bs-theme=light] .card.story-card,
[data-bs-theme=light] .story-col .card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 2px solid #6257ff;
    color: #333;
}

[data-bs-theme=light] .story-card-gaming .card-body,
[data-bs-theme=light] .card.story-card .card-body,
[data-bs-theme=light] .story-col .card .card-body {
    background: rgba(248, 249, 250, 0.9);
    color: #333;
}

[data-bs-theme=light] .story-card-gaming .card-title,
[data-bs-theme=light] .card.story-card .card-title,
[data-bs-theme=light] .story-col .card .card-title {
    color: #6257ff !important;
    text-shadow: 0 0 10px rgba(98, 87, 255, 0.3);
}

/* UTIL */
.text-capitalize {
    text-transform: capitalize;
}

.text-normal {
    text-transform: none !important;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.margin-top-5 {
    margin-top: 5px;
}
.margin-top-10 {
    margin-top: 10px;
}
.margin-top-30 {
    margin-top: 30px;
}

.margin-top-50 {
    margin-top: 50px;
}

.margin-left-2 {
    margin-left: 2px;
}
.margin-left-5 {
    margin-left: 5px;
}
.margin-left-10 {
    margin-left: 10px;
}
.margin-right-5 {
    margin-right: 5px !important;
}
.margin-right-10 {
    margin-right: 10px !important;
}
.margin-right-20 {
    margin-right: 20px !important;
}

.margin-bottom-0 {
    margin-bottom: 0px !important;
}
.margin-bottom-10 {
    margin-bottom: 10px !important;
}
.margin-bottom-20 {
    margin-bottom: 20px !important;
}
.margin-bottom-30 {
    margin-bottom: 30px !important;
}

.margin-bottom-50 {
    margin-bottom: 50px !important;
}

.margin-top-10 {
    margin-top: 10px !important;
}

.margin-top-20 {
    margin-top: 20px !important;
}

.padding-0 {
    padding: 0px !important;
}

.padding-20 {
    padding: 20px;
}

.padding-top-0 {
    padding-top: 0;
}
.padding-top-10 {
    padding-top: 10px !important;
}
.padding-top-20 {
    padding-top: 20px !important;
}
.padding-bottom-10 {
    padding-bottom: 10px !important;
}
.padding-bottom-20 {
    padding-bottom: 20px !important;
}

.padding-left-0 {
    padding-left: 0;
}
/***** FONT COLOR ********/
.color-blue {
    color: #2196f3;
}
.color-grey {
    color: #848484;
}
.color-white {
    color: #FFF;
}
.color-black {
    color: #000;
}
.color-red {
    color: red;
}
.w15 {
    width: 15%;
}
.w50 {
    width: 50%;
}

/* Gaming Style pour les vignettes d'énigmes */
.card.rounded-4 {
    border-radius: 12px !important;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(45, 74, 135, 0.3);
    box-shadow: 
        0 0 20px rgba(15, 52, 96, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card.rounded-4::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.3), rgba(212, 25, 174, 0.2), rgba(0, 212, 255, 0.2), rgba(33, 150, 243, 0.3));
    background-size: 400% 400%;
    animation: borderGlow 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card.rounded-4:hover::before {
    opacity: 0.7;
}

.card.rounded-4:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(15, 52, 96, 0.5),
        0 16px 64px rgba(0, 212, 255, 0.15);
    border-color: rgba(74, 111, 165, 0.5);
}

/* Enlever l'arrondi des images pour éviter le doublon */
.card.rounded-4 .rounded-top-4 {
    border-radius: 12px 12px 0 0 !important;
}

.card.rounded-4 .card-body {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 0 0 11px 11px;
    position: relative;
    color: #e0e6ed;
    padding: 1.5rem !important;
}

.card.rounded-4 h5 {
    color: #fff !important;
    text-shadow: none;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card.rounded-4 .text-body-secondary {
    color: #94a3b8 !important;
}

.card.rounded-4 .border-bottom {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.card.rounded-4 .badge {
    background: linear-gradient(135deg, #2196f3, #d419ae) !important;
    border: none;
    animation: pulse 2s infinite;
    color: white;
    font-weight: 500;
}

/* Animation pour les bordures gaming */
@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animation pulse pour les badges */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

/* Mode light - adaptation pour cohérence */
[data-bs-theme=light] .card.rounded-4 {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #333;
}

[data-bs-theme=light] .card.rounded-4 .card-body {
    background: rgba(248, 249, 250, 0.9) !important;
    color: #333;
}

[data-bs-theme=light] .card.rounded-4 h5 {
    color: #000 !important;
    text-shadow: none;
}
}
.w85 {
    width: 85%;
}

/* Styles pour les pages de contenu modernes */
.modern-content-card {
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

.modern-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.content-wrapper {
    line-height: 1.7;
    font-size: 1.05rem;
}

.content-wrapper h1, 
.content-wrapper h2, 
.content-wrapper h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2196f3;
}

.content-wrapper h1:first-child,
.content-wrapper h2:first-child,
.content-wrapper h3:first-child {
    margin-top: 0;
}

.content-wrapper p {
    margin-bottom: 1.25rem;
}

.content-wrapper ul, 
.content-wrapper ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: #2196f3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #1976d2;
}

.content-wrapper blockquote {
    border-left: 4px solid #2196f3;
    background: rgba(33, 150, 243, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.content-wrapper table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-wrapper th,
.content-wrapper td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.content-wrapper th {
    background: #2196f3;
    color: white;
    font-weight: 600;
}

.content-wrapper tr:nth-child(even) {
    background: rgba(33, 150, 243, 0.02);
}

/* Mode dark pour le contenu */
[data-bs-theme=dark] .modern-content-card {
    background: rgba(26, 26, 46, 0.95) !important;
    border: 1px solid #2d4a87;
}

[data-bs-theme=dark] .content-wrapper {
    color: #e0e6ed;
}

[data-bs-theme=dark] .content-wrapper h1,
[data-bs-theme=dark] .content-wrapper h2,
[data-bs-theme=dark] .content-wrapper h3 {
    color: #7dd3fc;
}

[data-bs-theme=dark] .content-wrapper blockquote {
    background: rgba(33, 150, 243, 0.1);
    border-color: #7dd3fc;
}

[data-bs-theme=dark] .content-wrapper th {
    background: #2196f3;
}

[data-bs-theme=dark] .content-wrapper tr:nth-child(even) {
    background: rgba(33, 150, 243, 0.05);
}
.w100 {
    width: 100%;
}

/* Section de transition entre les types d'énigmes */
.cta-gaming-section {
    background: #f8f9ff;
    position: relative;
    border-top: 2px solid rgba(33, 150, 243, 0.3);
    border-bottom: 2px solid rgba(33, 150, 243, 0.3);
}

/* Accent visuel marqué en mode normal */
.cta-gaming-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(33, 150, 243, 0.05) 0%, 
            rgba(33, 150, 243, 0.15) 25%, 
            rgba(33, 150, 243, 0.2) 50%, 
            rgba(33, 150, 243, 0.15) 75%, 
            rgba(33, 150, 243, 0.05) 100%);
    pointer-events: none;
}

/* Mode dark - délimitation conservée */
[data-bs-theme=dark] .cta-gaming-section {
    background: var(--bs-body-bg);
    border-top: 1px solid rgba(33, 150, 243, 0.25);
    border-bottom: 1px solid rgba(33, 150, 243, 0.25);
}

[data-bs-theme=dark] .cta-gaming-section::before {
    background: 
        linear-gradient(135deg, 
            transparent 0%, 
            rgba(33, 150, 243, 0.08) 25%, 
            rgba(33, 150, 243, 0.12) 50%, 
            rgba(33, 150, 243, 0.08) 75%, 
            transparent 100%);
}

/* Séparateur de transition - plus compact */
.transition-separator {
    padding: 0.5rem;
    position: relative;
    z-index: 2;
}

.separator-icon {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.separator-icon:hover {
    opacity: 1;
}

/* Ligne de séparation - plus visible */
.separator-line {
    height: 2px;
    width: 120px;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.4), transparent);
    border-radius: 1px;
}

/* Mode dark - ligne plus visible */
[data-bs-theme=dark] .separator-line {
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.6), transparent);
}

.separator-badge {
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.4);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.separator-badge .text-primary {
    color: rgba(33, 150, 243, 0.8) !important;
}

/* Mode dark - badge plus marqué */
[data-bs-theme=dark] .separator-badge {
    background: var(--bs-dark);
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
}

[data-bs-theme=dark] .separator-badge .text-primary {
    color: var(--bs-primary) !important;
}

.separator-badge:hover {
    transform: rotate(180deg);
    border-color: rgba(33, 150, 243, 0.5);
}

/* Texte de transition - noir pour la lisibilité */
.separator-content h4 {
    color: #000;
    font-weight: 600;
}

.separator-content p {
    color: #333 !important;
    font-weight: 500;
}

/* Texte des icônes en noir */
.cta-gaming-section .text-muted {
    color: #555 !important;
    font-weight: 500;
}

/* Mode dark - retour aux couleurs automatiques */
[data-bs-theme=dark] .separator-content h4 {
    color: var(--bs-body-color);
    text-shadow: none;
}

[data-bs-theme=dark] .separator-content p {
    color: var(--bs-secondary-color) !important;
    font-weight: normal;
}

[data-bs-theme=dark] .cta-gaming-section .text-muted {
    color: var(--bs-secondary-color) !important;
    font-weight: normal;
}

/* Bouton cohérent avec le thème */
.cta-gaming-section .btn-primary {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
    border: none !important;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.cta-gaming-section .btn-primary:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6) !important;
}

/* Section de présentation moderne */
.modern-presentation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.content-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.icon-badge {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.feature-card.featured {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    border-width: 2px;
}

.feature-card.featured:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.feature-content {
    flex-grow: 1;
}

.feature-cta {
    margin-left: 1rem;
}

/* Conteneur vidéo moderne */
.video-container {
    position: relative;
}

.video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    background: linear-gradient(45deg, #2196f3, #1976d2);
    padding: 4px;
}

.video-wrapper .player {
    border-radius: 12px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.video-badge {
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* Mode dark */
[data-bs-theme=dark] .modern-presentation-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-bs-theme=dark] .content-card {
    background: rgba(26, 26, 46, 0.8);
    color: #e0e6ed;
}

[data-bs-theme=dark] .feature-card {
    background: rgba(26, 26, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .feature-card:hover {
    background: rgba(26, 26, 46, 0.9);
}

[data-bs-theme=dark] .feature-card.featured {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
}

[data-bs-theme=dark] .feature-icon {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Testimonials moderne */
.modern-testimonials-section {
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    position: relative;
}

.modern-testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.03), transparent);
    pointer-events: none;
}

/* Header des testimonials */
.testimonials-header {
    position: relative;
    z-index: 2;
}

.testimonials-icon-badge {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Stats */
.testimonials-stats {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-item {
    padding: 0.5rem;
}

/* Navigation moderne */
.modern-nav-controls {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.nav-button.swiper-button-disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Cards testimonials modernes */
.modern-testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.modern-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Story section */
.testimonial-story {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.story-image {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.story-image:hover .story-overlay {
    opacity: 1;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.story-info {
    text-align: center;
}

.story-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Content testimonial */
.testimonial-content {
    padding: 1.5rem;
}

.testimonial-quote {
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    position: absolute;
    top: -5px;
    left: -5px;
    font-size: 2rem;
    color: rgba(33, 150, 243, 0.2);
    z-index: 1;
}

.quote-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
    padding-left: 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.author-date {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Mode dark */
[data-bs-theme=dark] .modern-testimonials-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-bs-theme=dark] .modern-testimonials-section::before {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), transparent);
}

[data-bs-theme=dark] .testimonials-stats {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .modern-nav-controls {
    background: rgba(26, 26, 46, 0.9);
}

[data-bs-theme=dark] .modern-testimonial-card {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .testimonial-story {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .story-title {
    color: #e0e6ed;
}

[data-bs-theme=dark] .quote-text {
    color: #b8c5d1;
}

[data-bs-theme=dark] .author-name {
    color: #e0e6ed;
}

[data-bs-theme=dark] .testimonial-author {
    border-color: rgba(255, 255, 255, 0.1);
}

/***** FONT TYPE ********/
.font-bold{
    font-weight: bold;
}
.font-italic{
    font-style: italic;
}

.flash-alert {
    margin-left: 1%;
    margin-right: 1%;
}

.isotopeSelector article:hover .overlay {
    opacity: 0.8;
    visibility: visible;
}
.font-size-2em {
    font-size: 2em;
}
.font-size-3em {
    font-size: 3em;
}
.font-size-1em {
    font-size: 1em;
}
.font-size-0-8em {
    font-size: 0.8em;
}
.font-size-0-5em {
    font-size: 0.5em;
}

.form-control ul li{
    color: red;
}

.border-grey {
    border: 1px solid var(--bs-list-group-border-color);
}

.d-contents {
    display: contents;
}

.sidebar-title-header {
    opacity: 1;
    color: #000;
    font-weight: bold;
}

.isotopeSelector .overlay {
    background-color: rgba(33, 150, 243, 0.8);
}

.image-clue-label {
    padding: 0 30px;
    height: 30px;
    line-height: 30px;
    display: inline-block;
    margin: 0 10px 0 0;
    font-weight: 400;
    font-size: 20px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    /*position: absolute;
    bottom: 10px;
    left: 25px;*/
}
.border-primary-clue {
    border: 3px solid #2196f3;
}
.color-primary {
    color: #2196f3;
}

.label-primary {
    background-color: #2196f3;
}

.icon-rotate-reply {
    transform: rotate(180deg);
}

a.reinit {
    font-family: 'Muli', sans-serif;
    font-size: 12px;
    padding: 3px 9px;
    font-weight: 400;
    margin: 0 auto;
}

.label-story {
    font-size: 14px;
    text-transform: uppercase;
    line-height: 40px;
}

.big-label-story-1, .big-label-story-2, .big-label-story-3, .big-label-story-4 {
    padding: 5px 20px !important;
    width: auto !important;
}

.label-story-1, .label-story-2, .label-story-3, .label-story-4 {
    padding: 5px 10px !important;
    width: auto !important;
    font-size: 100% !important;
}

.label-story-1, .big-label-story-1 {
    background-color: grey;
}

.label-story-2, .big-label-story-2 {
    background-color: #ec971f;
}

.label-story-3, .big-label-story-3 {
    background-color: #27ae60;
}

.label-story-4, .big-label-story-4 {
    background-color: #e74c3c;
}

.btn-img:hover {
    border: none;
    outline: 0;
    color: #000;
    box-shadow: none;
}

.bg-background-game {
    position:relative;
}
.bg-background {
    position:absolute;
    top:0px;
}

.about-verso {
    border : 1px solid #0f0f0f;
    background-color: #F6F6F6;
    margin-top: 0.5%;
}
.about-title {
    font-weight: bold;
    color: #24334A;
    margin-top: 5%;
    font-size: 1.2em;
}
.about-description {
    color: #000;
    margin-top: 3%;
    text-align: left;
}
.about-verso img {
    margin-top: 5%;
}
.about-url{
    font-weight: bold;
    color: #24334A;
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: 1.2em;
}

.card-label {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 1.2em;
    width: auto;
    text-align: left;
    transition: all 0.3s ease-in-out;
}
.card-label-success-rate {
    position: absolute;
    right: 20px;
    bottom: 10px;
    font-size: 1.2em;
    width: auto;
    text-align: left;
    transition: all 0.3s ease-in-out;
}
.avis {
     text-decoration: none;
     color: #848484;
 }
.avis a {
    text-decoration: none;
    color: #848484;
}

.color-trophy1 {
    color : #FFD700;
}
.color-trophy2 {
    color : #c0c0c0;
}
.color-trophy3 {
    color : #cd7f32;
}

/* Video Youtube */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*** RATING **/

.rating {
    /*width: 100px;*/
}
.rating .rating-stars {
    position: relative;
    color: #dddddd;
    width: 93px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    margin: 0 auto;
    display: grid;
}
.rating .rating-stars .rating-color {
    position: absolute;
    z-index: 1;
    color: #fc0;
    overflow: hidden;
    display: inline-flex;
}
.rating .rating-stars .rating-empty {
    position: absolute;
    z-index: 0;
    display: inline-flex;
}
.rating .rating-stars i {
    margin: 0;
}
.rating .rate {
    float: right;
    font-weight: bold;
    font-size: 15px;
    line-height: 20px;
    width: 20px;
    text-align: left;
}
.rating-color-yellow {
    color: #fc0;
}
.rating-color-grey {
    color: #dddddd;
}
.rating-unit {
    font-size: 20px;
}


.badge-story-1 {
    background-color: grey;
}

.badge-story-2 {
    background-color: #ec971f;
}

.badge-story-3 {
    background-color: #27ae60;
}

.badge-story-4 {
    background-color: #e74c3c;
}

.table-nowrap .table td, .table-nowrap .table th {
    white-space: normal !important;
}

.card-background {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== MODERN FOOTER STYLES ===== */
.modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(156, 39, 176, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    position: relative;
}

.footer-logo-container {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-brand a:hover .footer-brand-text {
    color: #2196f3;
    text-decoration: none;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-email {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-email:hover {
    color: #2196f3;
    text-decoration: none;
}

.footer-section {
    position: relative;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2196f3, #4caf50);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
    padding-left: 8px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #2196f3;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 4px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link.facebook:hover {
    background: rgba(59, 89, 152, 0.2);
    border-color: #3b5998;
    color: #3b5998;
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
    color: #e1306c;
}

.social-link.discord:hover {
    background: rgba(114, 137, 218, 0.2);
    border-color: #7289da;
    color: #7289da;
}

.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.credit-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-link:hover {
    color: #2196f3;
    text-decoration: none;
}

/* Mode sombre - ajustements si nécessaire */
[data-bs-theme="dark"] .modern-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

[data-bs-theme="dark"] .modern-footer::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(33, 150, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(156, 39, 176, 0.08) 0%, transparent 50%);
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom .row > div {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .footer-bottom .row > div:last-child {
        margin-bottom: 0;
    }
}

.btn {
    text-transform: none !important;
}

.dashbord-step-li {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
}
.list-group-item+.list-group-item {
    border: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
}

.subtitle-step {
    color: grey;
    font-weight: bold;
}
.subtitle-step-value {
    font-weight: bold;
    font-size: 1.8em;
}

.dashboard-label-success {
    color: green;
}
.dashboard-label-error {
    color: red;
}

/* About page - Modern feature card styling */
.modern-feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.feature-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-image-container:hover .feature-image {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196f3, #6257ff, #2196f3);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-image-container:hover .image-glow {
    opacity: 0.3;
}

.gaming-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(33, 150, 243, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.feature-content .feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content .feature-icon i {
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Dark mode styling for modern feature cards */
[data-bs-theme=dark] .modern-feature-card {
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(48, 54, 61, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme=dark] .feature-content .feature-icon {
    background: rgba(33, 150, 243, 0.2);
}

[data-bs-theme=dark] .gaming-badge {
    background: rgba(33, 150, 243, 0.8);
}

/* Steps list styling */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2196f3, #6257ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.step-content {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 1.05rem;
}

.step-content i {
    font-size: 1.3rem;
}

/* Dark mode styling for steps */
[data-bs-theme=dark] .step-item {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
}

[data-bs-theme=dark] .step-item:hover {
    background: rgba(33, 150, 243, 0.15);
}

/* Modern Page Header Styling */
.modern-page-header {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    color: white;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.8) 0%, 
        rgba(98, 87, 255, 0.8) 50%, 
        rgba(33, 150, 243, 0.8) 100%);
    z-index: 1;
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.header-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196f3, #6257ff, #2196f3);
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-badge:hover .badge-glow {
    opacity: 0.5;
}

.badge-icon {
    font-size: 1.2rem;
    color: #ffffff;
}

.badge-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.header-title {
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.title-glow {
    position: relative;
}

.title-glow::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2196f3, #6257ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header-title:hover .title-glow::after {
    opacity: 0.3;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.decoration-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.decoration-diamond {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.decoration-diamond i {
    font-size: 1rem;
    color: #ffffff;
}

.header-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

/* SVG styling for different themes */
.header-svg-gradient {
    fill: url(#headerGradientLight);
}

.header-svg-main {
    fill: var(--bs-body-bg);
}

/* Dark mode SVG adjustments */
[data-bs-theme=dark] .header-svg-gradient {
    fill: url(#headerGradientDark);
}

[data-bs-theme=dark] .header-svg-main {
    fill: var(--bs-body-bg);
}

/* Dark mode adjustments for header */
[data-bs-theme=dark] .header-overlay {
    background: linear-gradient(135deg, 
        rgba(13, 17, 23, 0.9) 0%, 
        rgba(22, 27, 34, 0.9) 50%, 
        rgba(13, 17, 23, 0.9) 100%);
}

[data-bs-theme=dark] .header-badge {
    background: rgba(22, 27, 34, 0.6);
    border-color: rgba(48, 54, 61, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-page-header {
        min-height: 200px;
    }
    
    .header-title {
        font-size: 2rem !important;
    }
    
    .decoration-line {
        width: 40px;
    }
    
    .header-badge {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
}

/* Modern Search Page Styling */

/* Sidebar moderne */
.modern-sidebar {
    position: sticky;
    top: 2rem;
}

/* Carte de statistiques */
.modern-stats-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196f3, #6257ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2196f3;
    line-height: 1;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-decoration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(98, 87, 255, 0.1));
    border-radius: 50%;
}

/* Carte de filtres */
.modern-filter-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-icon {
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196f3;
    font-size: 1.2rem;
}

.filter-title {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-label-modern i {
    color: #2196f3;
    font-size: 1rem;
}

.form-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-select-modern:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Bouton de recherche moderne */
.btn-modern-search {
    position: relative;
    background: linear-gradient(135deg, #2196f3, #6257ff);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.btn-modern-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196f3, #6257ff, #2196f3);
    border-radius: 14px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern-search:hover .btn-glow {
    opacity: 0.7;
}

/* Carte d'information */
.modern-info-card {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(98, 87, 255, 0.05));
    border-radius: 15px;
    padding: 1.25rem;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #2196f3;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-content p {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Cartes d'énigmes modernes - Structure repensée */
.modern-story-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.modern-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Main content area (image + contenu) */
.story-main-content {
    display: flex;
    flex-direction: row;
    min-height: 250px;
}

/* Section image repositionnée */
.story-image-container {
    position: relative;
    flex: 0 0 280px;
    height: 250px;
    overflow: hidden;
    margin: 1.5rem 0 1.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-image-link:hover .story-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(98, 87, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-image-link:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.story-image-link:hover .play-button {
    transform: scale(1);
}

/* Card Header avec disposition en 3 parties */
.story-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(98, 87, 255, 0.05));
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
    gap: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* Badges de type repositionnés */
.story-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.story-type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.home-type {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.nature-type {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.story-type-badge i {
    font-size: 0.9rem;
}

/* Section contenu repositionnée */
.story-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta informations compactes dans le header centrées */
.story-meta-compact {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
}

/* Meta item avec rating intégré */
.meta-item.rating-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-item .rating-stars {
    display: flex;
    align-items: center;
}

.rating-item .reviews-link {
    white-space: nowrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.meta-item i {
    font-size: 1.1rem;
}

/* Rating */
.story-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reviews-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.reviews-link:hover {
    color: #2196f3;
}

/* Titre */
.story-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
}

.story-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: #2196f3;
}

/* Description */
.story-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Footer */
.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(33, 150, 243, 0.1);
}

.story-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

/* CTA Button */
.story-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2196f3, #6257ff);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.story-cta-btn:hover {
    transform: translateX(3px) translateY(-1px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    color: white;
}

/* Dark mode adjustments */
[data-bs-theme=dark] .modern-stats-card,
[data-bs-theme=dark] .modern-filter-card,
[data-bs-theme=dark] .modern-story-card {
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(48, 54, 61, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme=dark] .story-card-header {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(98, 87, 255, 0.1));
    border-bottom-color: rgba(48, 54, 61, 0.3);
}

[data-bs-theme=dark] .filter-title,
[data-bs-theme=dark] .story-title a {
    color: #f0f6fc;
}

[data-bs-theme=dark] .form-label-modern {
    color: #c9d1d9;
}

[data-bs-theme=dark] .form-label-modern i {
    color: #58a6ff;
}

[data-bs-theme=dark] .form-select-modern {
    background: rgba(13, 17, 23, 0.8);
    border-color: rgba(48, 54, 61, 0.5);
    color: #f0f6fc;
}

[data-bs-theme=dark] .modern-info-card {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(98, 87, 255, 0.1));
}

/* Responsive design */
@media (max-width: 768px) {
    .modern-story-card {
        flex-direction: column;
    }
    
    .story-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left,
    .header-center,
    .header-right {
        justify-content: center;
        align-items: center;
    }
    
    .story-meta-compact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .meta-item.rating-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .story-type-badge {
        align-self: center;
    }
    
    .story-main-content {
        flex-direction: column;
    }
    
    .story-image-container {
        flex: none;
        height: 200px;
        margin: 1rem;
        align-self: center;
        max-width: calc(100% - 2rem);
    }
    
    .story-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .story-cta-btn {
        justify-content: center;
    }
}

/* Pagination moderne */
.modern-pagination-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 3rem;
    border: 1px solid rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
}

.results-count {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    justify-content: center;
}

/* Dark mode pour pagination */
[data-bs-theme=dark] .modern-pagination-wrapper {
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(48, 54, 61, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-bs-theme=dark] .results-count {
    color: #c9d1d9;
}

/* Page Créateur Moderne */

/* Hero Section Créateur */
.modern-creator-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.creator-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.1) 0%, 
        rgba(98, 87, 255, 0.1) 50%, 
        rgba(33, 150, 243, 0.1) 100%);
    z-index: 0;
}

.creator-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.creator-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.creator-badge .badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196f3, #6257ff, #2196f3);
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creator-badge:hover .badge-glow {
    opacity: 0.5;
}

.creator-badge i {
    font-size: 1.2rem;
    color: #2196f3;
}

.creator-badge span {
    font-weight: 600;
    color: #333;
}

.text-gradient {
    background: linear-gradient(135deg, #2196f3, #6257ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Avantages créateur */
.creator-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
}

.benefit-content h6 {
    font-weight: 600;
    color: #333;
}

/* Login prompt */
.creator-login-prompt .prompt-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.prompt-card i {
    font-size: 1.5rem;
}

.prompt-content h6 {
    font-weight: 600;
    color: #333;
}

/* Bouton créateur principal */
.btn-creator-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2196f3, #6257ff);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-creator-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    color: white;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.btn-glow-creator {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196f3, #6257ff, #2196f3);
    border-radius: 52px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-creator-primary:hover .btn-glow-creator {
    opacity: 0.7;
}

/* Images container */
.creator-images-container {
    position: relative;
    height: 500px;
}

.image-main {
    position: relative;
    width: 70%;
    margin-left: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.main-screenshot {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.8), rgba(98, 87, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-main:hover .image-overlay {
    opacity: 1;
}

.image-main:hover .main-screenshot {
    transform: scale(1.05);
}

.overlay-content {
    text-align: center;
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.image-secondary {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 50%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.secondary-screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Section processus */
.creator-process-section {
    background: rgba(248, 249, 250, 0.5);
}

.process-step {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2196f3, #6257ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-icon i {
    font-size: 2rem;
}

.step-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.step-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Dark mode pour la page créateur */
[data-bs-theme=dark] .creator-background {
    background: linear-gradient(135deg, 
        rgba(13, 17, 23, 0.8) 0%, 
        rgba(22, 27, 34, 0.8) 50%, 
        rgba(13, 17, 23, 0.8) 100%);
}

[data-bs-theme=dark] .creator-badge span,
[data-bs-theme=dark] .benefit-content h6,
[data-bs-theme=dark] .prompt-content h6,
[data-bs-theme=dark] .step-title {
    color: #f0f6fc;
}

[data-bs-theme=dark] .benefit-item,
[data-bs-theme=dark] .process-step {
    background: rgba(22, 27, 34, 0.8);
    border-color: rgba(48, 54, 61, 0.3);
}

[data-bs-theme=dark] .creator-process-section {
    background: rgba(13, 17, 23, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .creator-images-container {
        height: 400px;
    }
    
    .image-main {
        width: 85%;
    }
    
    .main-screenshot {
        height: 280px;
    }
    
    .image-secondary {
        width: 60%;
    }
    
    .creator-benefits {
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
}

/* ================================================
   ENIGMA TYPES SECTION STYLING
   ================================================ */

.enigma-types-section {
    position: relative;
    overflow: hidden;
}

.enigma-types-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.03) 0%,
        rgba(80, 227, 194, 0.03) 50%,
        rgba(184, 125, 255, 0.03) 100%);
    pointer-events: none;
}

.enigma-type-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.enigma-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.enigma-type-card.public-type::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.enigma-type-card.private-type::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.enigma-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
}

.type-icon.public-icon {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.type-icon.private-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.type-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.type-badge.public-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.type-badge.private-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.type-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.type-description {
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.type-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feature-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.type-ideal {
    padding: 1rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--bs-primary);
}

.ideal-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-primary);
}

.ideal-list {
    margin: 0;
    padding-left: 1rem;
}

.ideal-list li {
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.global-cta-card {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.1) 0%,
        rgba(80, 227, 194, 0.1) 50%,
        rgba(184, 125, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.cta-title {
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cta-description {
    color: var(--bs-secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Dark mode adjustments */
[data-bs-theme=dark] .enigma-type-card {
    background: rgba(22, 27, 34, 0.8);
    border-color: rgba(48, 54, 61, 0.3);
}

[data-bs-theme=dark] .enigma-type-card:hover {
    border-color: rgba(48, 54, 61, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-bs-theme=dark] .type-badge.public-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

[data-bs-theme=dark] .type-badge.private-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

[data-bs-theme=dark] .type-ideal {
    background: rgba(var(--bs-primary-rgb), 0.1);
}

[data-bs-theme=dark] .global-cta-card {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.08) 0%,
        rgba(80, 227, 194, 0.08) 50%,
        rgba(184, 125, 255, 0.08) 100%);
    border-color: rgba(48, 54, 61, 0.3);
}

/* Responsive adjustments for enigma types */
@media (max-width: 768px) {
    .enigma-type-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .global-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* ================================================
   MODERN LOGIN PAGE STYLING
   ================================================ */

.modern-login-section {
    min-height: 100vh;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.08) 0%,
        rgba(80, 227, 194, 0.08) 50%,
        rgba(184, 125, 255, 0.08) 100%);
    pointer-events: none;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(80, 227, 194, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.modern-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #50e3c2, #b87dff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.login-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Modern Alert Styling */
.modern-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modern-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.modern-alert .alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.modern-alert .alert-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* Modern Input Styling */
.modern-input-group {
    margin-bottom: 1.5rem;
}

.modern-input-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modern-input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.modern-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.modern-input:focus + .input-focus-border {
    width: 100%;
}

/* Forgot Password Link */
.forgot-password-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.forgot-password-link:hover {
    color: #4a90e2;
    transform: translateX(2px);
}

/* Modern Login Button */
.modern-login-btn {
    position: relative;
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.modern-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.modern-login-btn:active {
    transform: translateY(0);
}

.modern-login-btn .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-glow-login {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4a90e2, #50e3c2, #b87dff);
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    filter: blur(8px);
}

.modern-login-btn:hover .btn-glow-login {
    opacity: 0.7;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 3;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login Divider */
.login-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.divider-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Register Link */
.register-prompt {
    color: var(--bs-secondary-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.register-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: #357abd;
    transform: translateY(-1px);
}

.link-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    transition: width 0.3s ease;
}

.register-link:hover .link-underline {
    width: 100%;
}

/* Decorative Section */
.login-decoration {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
}

.decoration-content {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 227, 194, 0.1));
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.stats-preview {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}

/* Dark mode adjustments */
[data-bs-theme=dark] .modern-login-card {
    background: rgba(22, 27, 34, 0.95);
    border-color: rgba(48, 54, 61, 0.3);
}

[data-bs-theme=dark] .modern-input {
    background: rgba(22, 27, 34, 0.8);
    border-color: rgba(48, 54, 61, 0.3);
    color: var(--bs-body-color);
}

[data-bs-theme=dark] .modern-input:focus {
    background: rgba(22, 27, 34, 0.95);
    border-color: #4a90e2;
}

[data-bs-theme=dark] .divider-text {
    background: rgba(22, 27, 34, 0.95);
}

[data-bs-theme=dark] .stats-preview {
    background: rgba(22, 27, 34, 0.9);
    border-color: rgba(48, 54, 61, 0.3);
}

[data-bs-theme=dark] .login-background {
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.05) 0%,
        rgba(80, 227, 194, 0.05) 50%,
        rgba(184, 125, 255, 0.05) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stats-preview {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}