/*  File: style.css
 *  By: WireGency <contact@wiregency.com>
 *  Discord: <discord.wiregency.com>
 *  Created with Trae IDE <traeide.com>
 *  For the project Nomad
 */

/* ============================================
   VARIABLES CSS PERSONNALISÉES - THÈME SOMBRE
   ============================================ */
:root {
    --banner-height: 44px;
    --banner-height-md: 40px;
    --banner-height-sm: 36px;
    
    /* Couleurs de fond */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1e1e1e;
    --navbar-bg: rgba(10, 10, 10, 0.85);
    --dropdown-bg: rgba(20, 20, 20, 0.98);
    --footer-bg: #0a0a0a;
    --cta-bg: #141414;
    --card-bg: #1a1a1a;
    
    /* Couleurs de texte */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-light: rgba(255, 255, 255, 0.75);
    --text-muted: #8b8b8b;
    --text-dark: #2c3e50;
    
    /* Bordures */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(255, 255, 255, 0.05);
    
    /* Bordures arrondies */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 15px;
    --border-radius-pill: 50px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    
    /* Ombres */
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --box-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.5);
    --box-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
}

/* ============================================
   TYPOGRAPHIE DE BASE - THÈME SOMBRE
   ============================================ */
body {
    font-family: inherit;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
}

*,
body * {
    font-family: inherit;
}

/* ============================================
   BANNIÈRE SUPÉRIEURE
   ============================================ */
.top-banner {
    background-color: #ff3e3e;
    height: var(--banner-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-banner .container {
    width: 1455px;
    max-width: 1455px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.top-banner .banner-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    font-family: "Montserrat", sans-serif;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition-base);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
}

.navbar.banner-enabled {
    top: var(--banner-height);
}

.navbar-nav {
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition-base);
    position: relative;
    text-transform: uppercase;
    padding: 0.5rem 0 !important;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link .bi-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-link.dropdown-toggle::after {
    display: none;
}

.nav-link.dropdown-toggle.show {
    color: var(--primary-color) !important;
}

.dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Logo de navigation */
.nav-logo {
    height: 40px;
    width: auto;
}

/* Avatar de navigation */
.nav-avatar {
    border-radius: 4px;
    box-shadow: var(--box-shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-avatar:hover {
    transform: scale(1.1);
}

/* Boutons d'authentification */
.auth-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.auth-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Bouton joueur */
.player-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    transition: var(--transition-base);
}

.player-btn:hover {
    color: var(--primary-color);
}

.player-btn::after {
    display: none;
}

.player-name {
    font-weight: 600;
    color: white;
}

/* ============================================
   MENUS DÉROULANTS
   ============================================ */
.dropdown-menu {
    background-color: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: var(--box-shadow-md);
}

.dropdown-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    transition: var(--transition-base);
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.dropdown-item::after {
    display: none;
}

/* Menu déroulant de l'avatar */
.nav-avatar + .dropdown-menu {
    margin-top: 0.5rem;
    background-color: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    box-shadow: var(--box-shadow-md);
}

.nav-avatar + .dropdown-menu .dropdown-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
    border-radius: 4px;
}

.nav-avatar + .dropdown-menu .dropdown-item:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    cursor: pointer;
}

.nav-avatar + .dropdown-menu .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.nav-avatar + .dropdown-menu .text-danger {
    color: #ff4444 !important;
}

.nav-avatar + .dropdown-menu .text-danger:hover {
    color: #ff6666 !important;
}

/* ============================================
   SECTION HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 1rem;
    margin-bottom: -5rem;
    display: flex;
    align-items: center;
}

.hero-section.banner-enabled {
    padding-top: calc(1rem + var(--banner-height));
}

.hero-content {
    width: 100%;
    padding: 150px 0;
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: logoBreathing 4s ease-in-out infinite;
}

@keyframes logoBreathing {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
}

.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: var(--bg-primary);
    clip-path: ellipse(75% 100% at 50% 100%);
}

/* ============================================
   SECTION BLOG
   ============================================ */
.blog-section {
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
}

.blog-section .container {
    max-width: 1600px;
    padding-left: 240px;
    padding-right: 240px;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-base);
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
}

.blog-content {
    padding: 1.5rem;
    padding-bottom: 3rem;
    background: var(--card-bg);
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-meta {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.blog-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-date {
    background: var(--bg-tertiary);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-pill);
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* ============================================
   SECTION À PROPOS
   ============================================ */
.about-section {
    padding: 60px 0;
}

.about-section .container {
    max-width: 1600px;
    padding-left: 240px;
    padding-right: 240px;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-content {
    margin-top: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.description {
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: justify;
}

/* ============================================
   SECTION STATISTIQUES
   ============================================ */
.stats-section {
    padding: 40px 0;
}

.stats-section .container {
    max-width: 1600px;
    padding-left: 240px;
    padding-right: 240px;
}

.stats-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--box-shadow-md);
    height: 100%;
    border: 1px solid var(--border-color);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.stats-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(var(--glow-primary));
}

.stats-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION CTA (CALL TO ACTION)
   ============================================ */
.cta-section {
    padding: 40px 0;
    margin: 20px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--cta-bg) 0%, #1f1f1f 100%);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(255, 167, 38, 0.2), var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 167, 38, 0.15) 0%, rgba(255, 167, 38, 0) 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    border: none;
    transition: var(--transition-base);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    width: auto;
    min-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(255, 167, 38, 0.4);
}

.cta-button:focus,
.cta-button:active,
.cta-button:hover {
    outline: none !important;
    box-shadow: 0 5px 25px rgba(255, 167, 38, 0.4) !important;
    background-color: var(--primary-color) !important;
}

/* ============================================
   SECTION VOTE
   ============================================ */
.vote-section {
    padding: 40px 0;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Items du classement */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.leaderboard-item:hover {
    background-color: #f8f9fa;
}

.leaderboard-item .nav-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-sm);
}

.rank {
    font-size: 1.2rem;
    font-weight: 600;
    width: 50px;
    color: var(--text-primary);
}

.player-info {
    display: flex;
    align-items: center;
    flex: 1;
    color: var(--text-secondary);
}

.vote-count {
    color: var(--text-muted);
    font-weight: 500;
}

/* Formulaires */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.4);
}

.form-control {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
    color: var(--text-primary);
}

/* Items de récompense */
.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.reward-item:hover {
    background-color: #f8f9fa;
}

.reward-name {
    color: #2c3e50;
    font-weight: 500;
}

.reward-chance {
    color: var(--text-muted);
    font-weight: 600;
}

.vote-timer {
    background-color: #e9ecef !important;
    color: #495057 !important;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--footer-bg);
    padding: 40px 0 0;
    color: #fff;
    margin-top: 40px;
}

.footer .container {
    max-width: 1400px;
    padding-left: 120px;
    padding-right: 120px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: var(--transition-base);
    opacity: 0.8;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
    filter: drop-shadow(var(--glow-primary));
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    max-width: 1400px;
    padding-left: 120px;
    padding-right: 120px;
}

.copyright-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.copyright-main,
.copyright-sub {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copyright-sub {
    font-size: 0.85rem;
}

.copyright-sub a {
    text-decoration: none;
}

.copyright-sub a:not(.footer-author) {
    color: var(--primary-color);
}

.copyright-sub a:not(.footer-author):hover {
    color: var(--primary-color);
    filter: brightness(1.2);
}

.footer-author {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-author:hover {
    filter: brightness(1.2);
}

.footer-bottom-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE - BREAKPOINT 1500PX
   ============================================ */
@media (max-width: 1500px) {
    .top-banner .container {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        margin: 0 20px;
    }
}

/* ============================================
   RESPONSIVE - BREAKPOINT 1400PX
   ============================================ */
@media (max-width: 1400px) {
    .blog-section .container,
    .about-section .container,
    .stats-section .container {
        padding-left: 180px;
        padding-right: 180px;
    }
}

/* ============================================
   RESPONSIVE - BREAKPOINT 992PX
   ============================================ */
@media (max-width: 992px) {
    .blog-section .container,
    .stats-section .container {
        padding-left: 100px;
        padding-right: 100px;
    }

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

    .about-image {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .description {
        font-size: 1.125rem;
        text-align: center;
    }

    .footer .container,
    .footer-bottom .container {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* ============================================
   RESPONSIVE - BREAKPOINT 768PX
   ============================================ */
@media (max-width: 768px) {
    :root {
        --banner-height: var(--banner-height-md);
    }

    .top-banner {
        height: var(--banner-height-md);
    }

    .top-banner .banner-text {
        font-size: 0.9rem;
    }

    .top-banner .container {
        padding: 0 1rem;
    }

    .navbar.banner-enabled {
        top: var(--banner-height-md);
    }

    .navbar-nav {
        text-align: center;
        margin: 1rem 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .ms-auto.d-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        margin-top: 1rem;
        align-items: center;
    }

    .auth-button,
    .player-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 0 !important;
        padding: 0.5rem;
        border-radius: var(--border-radius-pill);
    }

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

    .dropdown-menu {
        text-align: center;
        width: 100%;
        max-width: 300px;
        white-space: normal;
        word-wrap: break-word;
    }

    .dropdown-item {
        text-align: center;
        padding: 0.75rem 1rem;
        white-space: normal;
        line-height: 1.2;
    }

    .hero-section.banner-enabled {
        padding-top: calc(1rem + var(--banner-height-md));
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 100px 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-logo {
        max-width: 280px;
        margin-bottom: 2rem;
    }

    .hero-curve {
        height: 100px;
        clip-path: ellipse(100% 100% at 50% 100%);
    }

    .blog-section {
        padding: 40px 0;
    }

    .blog-section .container,
    .about-section .container,
    .stats-section .container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .description {
        font-size: 1rem;
        text-align: left;
    }

    .stats-section {
        padding: 30px 0;
    }

    .stats-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .stats-value {
        font-size: 2rem;
    }

    .stats-label {
        font-size: 0.85rem;
    }

    .footer,
    .footer-bottom {
        text-align: center;
    }

    .footer .container,
    .footer-bottom .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }

    .footer-bottom-link {
        display: inline-block;
        margin: 0.5rem 0.75rem;
    }

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

    .copyright-main,
    .copyright-sub {
        white-space: normal;
        line-height: 1.4;
    }

    .cta-section {
        padding: 40px 0;
        margin: 20px 0;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .cta-button {
        width: 100%;
        min-width: unset;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .vote-section {
        padding: 60px 0 30px;
    }

    .vote-section .section-title {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .btn-primary {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .d-flex.justify-content-center.gap-3.flex-wrap {
        gap: 0.5rem !important;
    }

    .leaderboard-item {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .player-info {
        order: 2;
        width: calc(100% - 50px);
    }

    .rank {
        order: 1;
        width: 40px;
    }

    .vote-count {
        order: 3;
        width: 100%;
        text-align: right;
        margin-top: 0.5rem;
        padding-left: 50px;
    }

    .reward-item {
        padding: 0.75rem;
    }

    .form-control {
        font-size: 16px;
    }

    .col-md-6.col-lg-4 {
        padding: 0 1rem;
    }

    .leaderboard-item .nav-avatar {
        width: 42px;
        height: 42px;
    }
}

/* ============================================
   RESPONSIVE - BREAKPOINT 576PX
   ============================================ */
@media (max-width: 576px) {
    :root {
        --banner-height: var(--banner-height-sm);
    }

    .top-banner {
        height: var(--banner-height-sm);
    }

    .top-banner .banner-text {
        font-size: 0.8rem;
    }

    .top-banner .container {
        padding: 0 0.5rem;
    }

    .navbar.banner-enabled {
        top: var(--banner-height-sm);
    }

    .hero-section.banner-enabled {
        padding-top: calc(1rem + var(--banner-height-sm));
    }

    .hero-logo {
        max-width: 220px;
        margin-bottom: 1.5rem;
    }

    .blog-section .container,
    .about-section .container,
    .stats-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cta-wrapper {
        padding: 30px 20px;
    }

    .cta-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .vote-section {
        padding: 40px 0 20px;
    }

    .vote-section .section-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 20px;
    }

    .leaderboard-item .nav-avatar {
        width: 38px;
        height: 38px;
    }

    .nav-avatar {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   AMÉLIORATIONS D'ACCESSIBILITÉ
   ============================================ */

/* Focus visible pour tous les éléments interactifs */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Réduction des animations pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-logo {
        animation: none;
    }
}

/* ============================================
   AMÉLIORATIONS DE PERFORMANCE
   ============================================ */

/* Optimisation du rendu pour les éléments transformés */
.blog-card,
.stats-card,
.nav-avatar,
.auth-button,
.cta-button {
    will-change: transform;
}

/* Suppression du will-change après l'animation */
.blog-card:hover,
.stats-card:hover,
.nav-avatar:hover,
.auth-button:hover,
.cta-button:hover {
    will-change: auto;
}

/* ============================================
   UTILITAIRES SUPPLÉMENTAIRES
   ============================================ */

/* Amélioration de la lisibilité du texte */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll fluide pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Désactivation du scroll fluide pour ceux qui préfèrent */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
