/* ================================
   FASTPANEL - CATALOGUE GAME SERVERS
   ================================ */

:root {
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --primary-400: #94a3b8;
    --primary-300: #cbd5e1;
    --primary-200: #e2e8f0;
    --primary-100: #f1f5f9;

    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;

    --green-500: #22c55e;
    --green-400: #4ade80;

    --orange-500: #f97316;
    --orange-400: #fb923c;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ================================
   STICKY FILTER BAR
   ================================ */

.sticky-bar {
    /* display:none = complètement retiré du render tree → zéro artefact GPU */
    display: none;
    position: fixed;
    top: 0; /* overridden by JS */
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.sticky-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Search */
.sticky-search-box {
    position: relative;
    flex-shrink: 0;
    width: 200px;
}

.sticky-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-400);
    font-size: 13px;
    pointer-events: none;
}

#stickySearch {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
}

#stickySearch:focus {
    outline: none;
    border-color: var(--green-400);
    background: rgba(255, 255, 255, 0.1);
}

#stickySearch::placeholder { color: var(--primary-500); }

/* Tags wrapper - scrollable horizontally */
.sticky-tags-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sticky-tags-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.sticky-tags-row::-webkit-scrollbar { display: none; }

.stag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 5px 14px;
    color: var(--primary-400);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.stag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.stag.active {
    background: var(--green-500);
    border-color: var(--green-500);
    color: var(--white);
}

.stag-more {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--blue-400);
}

/* Dropdown "voir plus" dans la sticky bar */
.sticky-more-wrap {
    position: relative;
    flex-shrink: 0;
}

.sticky-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 999;
    flex-direction: column;
    gap: 2px;
}

.sticky-dropdown.open {
    display: flex;
}

.sticky-dd-item {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--primary-300);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.sticky-dd-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}

.sticky-dd-item.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green-400);
}

/* View toggle buttons */
.sticky-view-btns,
.desktop-view-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.view-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--primary-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s ease;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.view-btn.active {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: var(--white);
}

/* ================================
   PAGE HEADER COMPACT
   ================================ */

.page-header {
    background:
        radial-gradient(ellipse at 10% 100%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90%  50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        var(--primary-900);
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

/* Ligne du haut : titre + barre de recherche */
.ph-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
}

/* Groupe titre */
.ph-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ph-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--green-400) 0%, var(--blue-500) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.ph-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 4px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ph-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.ph-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-400);
    font-size: 12px;
    font-weight: 500;
}

.ph-chip i { color: var(--green-400); font-size: 11px; }

/* Groupe droite : search + bouton filtres */
.ph-search-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Barre de recherche */
.ph-search-box {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ph-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-400);
    font-size: 14px;
    pointer-events: none;
}

.ph-search-input {
    width: 100%;
    padding: 12px 40px 12px 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 15px;
    transition: all 0.2s ease;
}

.ph-search-input::placeholder { color: var(--primary-500); }

.ph-search-input:focus {
    outline: none;
    border-color: var(--green-400);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.ph-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--primary-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s ease;
}

.ph-search-clear:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }

/* Bouton Filtres */
.ph-filter-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    height: 44px; /* aligne avec la hauteur du search input */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-300);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ph-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.ph-filter-btn.active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--green-400);
}

/* Reste allumé si un filtre est actif (même panneau fermé) */
.ph-filter-btn.has-filter {
    border-color: rgba(34, 197, 94, 0.5);
    color: var(--green-400);
}

.ph-filter-btn i { font-size: 14px; }
.ph-filter-label { /* masqué sur petits écrans */ }

/* Badge nombre de filtres actifs */
.ph-filter-count {
    width: 18px;
    height: 18px;
    background: var(--green-500);
    border-radius: 50%;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

/* Panneau de tags dépliable */
.ph-tags-panel {
    display: none; /* ouvert via JS */
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
    animation: panelSlideDown 0.2s ease;
}

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

/* Compat : ces classes sont utilisées dans ph-tags-row ET sticky bar */
.tag-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 7px 15px;
    color: var(--primary-300);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-filter:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

.tag-filter.active {
    background: var(--green-500);
    border-color: var(--green-500);
    color: var(--white);
}

.hidden-tags { display: contents; }

.tag-toggle {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    padding: 7px 14px;
    color: var(--blue-400);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tag-toggle:hover { background: rgba(59, 130, 246, 0.22); }
.tag-toggle.expanded { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.tag-toggle .toggle-icon { font-size: 10px; transition: transform 0.2s ease; }
.tag-toggle.expanded .toggle-icon { transform: rotate(180deg); }

/* Gradient text (utilisé dans le titre compact) */
.gradient-text {
    background: linear-gradient(135deg, var(--green-400) 0%, var(--blue-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-orange {
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   RESULTS BAR
   ================================ */

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 2px;
}

.results-info {
    color: var(--primary-400);
    font-size: 0.875rem;
}

#resultsCount {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

/* ================================
   CATALOG SECTION
   ================================ */

.catalog-section {
    background: var(--primary-900);
    padding: 32px 0 80px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 48px;
}

.catalog-header.upcoming-header { margin-top: 80px; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green-400) 0%, var(--green-500) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.title-icon.upcoming-icon {
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
}

.section-subtitle {
    color: var(--primary-300);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ================================
   GAMES GRID & CARDS
   ================================ */

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card base — flex column so footer stays at bottom */
.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-400);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

.game-card.upcoming { opacity: 0.85; }
.game-card.upcoming:hover {
    border-color: var(--orange-400);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

/* Scroll-in animation */
.game-card.will-animate {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
}
.game-card.will-animate.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Status badge */
.card-status {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.card-status.available {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-400);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-status.upcoming {
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange-400);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

/* Popular badge */
.popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: var(--white);
    padding: 5px 11px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Card image */
.card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.game-card:hover .card-image img { transform: scale(1.06); }

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.95) 100%);
}

.upcoming-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(15, 23, 42, 0.97) 100%);
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(249, 115, 22, 0.9);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    white-space: nowrap;
}

/* Card content */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.card-top { flex: 1; }

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.game-description {
    font-size: 0.875rem;
    color: var(--primary-300);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.game-tags .tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-300);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 500;
}

/* Card footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.price { display: flex; flex-direction: column; }
.price-from   { font-size: 11px; color: var(--primary-400); }
.price-value  { font-size: 1.2rem; font-weight: 700; color: var(--green-400); }
.price-period { font-size: 11px; color: var(--primary-400); }

.btn-order {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--green-400) 0%, var(--green-500) 100%);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
    color: var(--white);
    text-decoration: none;
}

.btn-notify {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-400);
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    flex-shrink: 0;
}

/* ================================
   LIST VIEW MODE
   ================================ */

.games-grid.view-list {
    grid-template-columns: 1fr;
    gap: 10px;
}

.games-grid.view-list .game-card {
    flex-direction: row;
    max-height: 140px;
}

.games-grid.view-list .game-card:hover {
    transform: translateX(4px) translateY(-2px);
}

.games-grid.view-list .card-image {
    width: 170px;
    min-width: 170px;
    height: 100%;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.games-grid.view-list .card-content {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
}

.games-grid.view-list .card-top {
    flex: 1;
    min-width: 0;
}

.games-grid.view-list .game-description {
    -webkit-line-clamp: 1;
    margin-bottom: 8px;
}

.games-grid.view-list .game-tags { margin-bottom: 0; }

.games-grid.view-list .card-footer {
    border-top: none;
    padding-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* Badge "Populaire" en vue liste : sort du flux absolu, s'affiche au-dessus du titre */
.games-grid.view-list .popular-badge {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 6px;
    font-size: 10px;
    padding: 3px 8px;
}

/* ================================
   NO RESULTS
   ================================ */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-400);
}

.no-results i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; display: block; }
.no-results h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.no-results p  { font-size: 0.9375rem; }

/* ================================
   NO UPCOMING CARD
   ================================ */

.no-upcoming-card {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.no-upcoming-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    flex-shrink: 0;
}

.btn-proposal {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
    color: var(--white);
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-proposal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-proposal-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-proposal-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    text-decoration: none;
}

/* ================================
   STEPS SECTION
   ================================ */

.steps-section {
    background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
    padding: 80px 0;
}

.section-header { text-align: center; margin-bottom: 48px; }

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--blue-400);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-400);
    font-size: 24px;
}

.step-card h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { color: var(--primary-300); font-size: 0.875rem; line-height: 1.5; margin: 0; }

.step-connector { color: var(--primary-500); font-size: 16px; }

/* ================================
   SUPPORT SECTION
   ================================ */

.support-section { background: var(--primary-800); padding: 60px 0; }

.support-card {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.support-content { display: flex; align-items: center; gap: 24px; flex: 1; }

.support-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    flex-shrink: 0;
}

.support-text h3 { color: var(--white); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.support-text p  { color: var(--primary-300); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.support-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-support {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    color: var(--white);
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-support-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 13px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-support-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    text-decoration: none;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-900) 0%, #0c1929 100%);
    padding: 80px 0;
}

.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-content p  { color: var(--primary-300); font-size: 1rem; margin-bottom: 32px; }
.cta-buttons { margin-bottom: 24px; }

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--green-400) 0%, var(--green-500) 100%);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
    color: var(--white);
    text-decoration: none;
}

.cta-features { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

.cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-400);
    font-size: 14px;
    font-weight: 500;
}

.cta-features span i { color: var(--green-400); }

/* ================================
   BACK TO TOP BUTTON
   ================================ */

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--green-400) 0%, var(--green-500) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.back-to-top:hover {
    box-shadow: 0 6px 22px rgba(34, 197, 94, 0.55);
    transform: translateY(-3px) scale(1);
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.15); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE — 1200px
   ================================ */

@media (max-width: 1200px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   RESPONSIVE — 992px
   ================================ */

@media (max-width: 992px) {
    .hero-title   { font-size: 2.25rem; }
    .section-title { font-size: 1.75rem; }

    .steps-grid   { flex-direction: column; gap: 24px; }
    .step-card    { max-width: 100%; width: 100%; }
    .step-connector { transform: rotate(90deg); }

    .support-card,
    .no-upcoming-card {
        flex-direction: column;
        text-align: center;
    }

    .support-content,
    .no-upcoming-card .support-content { flex-direction: column; }

    .support-actions,
    .no-upcoming-card .support-actions { justify-content: center; }

    /* List view on tablet: slightly smaller image */
    .games-grid.view-list .card-image { width: 140px; min-width: 140px; }
}

/* ================================
   RESPONSIVE — 768px
   ================================ */

@media (max-width: 768px) {
    /* Header compact : titre + search en colonne */
    .ph-top { flex-direction: column; align-items: stretch; gap: 14px; }
    .ph-title-group { justify-content: flex-start; }
    .ph-search-group { max-width: 100%; }
    .ph-title { font-size: 1.35rem; }
    .ph-sub { gap: 6px; }
    .ph-filter-label { display: none; }   /* juste l'icône sur tablette */

    .games-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 1.5rem; flex-direction: column; gap: 8px; }
    .cta-content h2 { font-size: 1.5rem; }

    /* Sticky bar : top corrigé — navbar passe à 60px+1px=61px à ce breakpoint
       !important pour override le style inline posé par le JS (navEl.offsetHeight) */
    .sticky-bar { top: 61px !important; }

    /* Cacher les tags (trop étroits), garder search + dropdown */
    .sticky-tags-wrap { display: none; }
    .sticky-search-box { flex: 1; width: auto; }

    /* Boutons vue desktop cachés (sticky les remplace) */
    .desktop-view-btns { display: none; }
}

/* ================================
   RESPONSIVE — 640px (mobile compact cards)
   ================================ */

@media (max-width: 640px) {
    /* Force vue liste sur mobile — le toggle grid/liste est ignoré */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .game-card {
        flex-direction: row;
        max-height: 130px;
    }

    .card-image {
        width: 100px;
        min-width: 100px;
        height: 100%;
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    }

    .card-content {
        flex-direction: row;
        align-items: center;
        padding: 12px 14px;
        gap: 12px;
    }

    .card-top {
        flex: 1;
        min-width: 0;
    }

    .game-title    { font-size: 0.95rem; margin-bottom: 4px; }
    .game-description { display: none; }
    .game-tags     { margin-bottom: 0; }
    .game-tags .tag:nth-child(n+2) { display: none; }

    .card-footer {
        border-top: none;
        padding-top: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        flex-shrink: 0;
    }

    .btn-order, .btn-notify { padding: 7px 12px; font-size: 12px; }

    /* Masquer les boutons vue (inutiles sur mobile) */
    .sticky-view-btns, .desktop-view-btns { display: none; }

    /* Badge populaire : déjà en flux statique via card-top */
    .popular-badge {
        position: static;
        display: inline-flex;
        align-self: flex-start;
        font-size: 10px;
        padding: 3px 8px;
        margin-bottom: 4px;
    }

    .card-status { font-size: 10px; padding: 3px 8px; top: 8px; left: 8px; }
    .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 14px; }
}

/* ================================
   RESPONSIVE — 480px
   ================================ */

@media (max-width: 480px) {
    .page-header { padding: 16px 0 16px; }
    .ph-title    { font-size: 1.2rem; }
    .ph-chip     { font-size: 11px; }
    .ph-search-input { font-size: 14px; }
    .ph-filter-btn { padding: 0 12px; }
    .tag-filter  { padding: 6px 12px; font-size: 12px; }
    .ph-icon     { width: 38px; height: 38px; font-size: 17px; }

    .support-card { padding: 24px; }
    .support-actions { flex-direction: column; width: 100%; }

    .btn-support,
    .btn-support-secondary,
    .btn-proposal,
    .btn-proposal-secondary { width: 100%; justify-content: center; }

    .cta-features { flex-direction: column; gap: 12px; }

    .no-upcoming-card { padding: 24px; flex-direction: column; text-align: center; }
    .no-upcoming-card .support-actions { flex-direction: column; width: 100%; }

    .step-card { padding: 24px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .game-card.will-animate { opacity: 1; transform: none; transition: border-color 0.2s, box-shadow 0.2s; }
    .game-card:hover { transform: none; }
    .status-dot { animation: none; }
}
