/* UI "mobile game" (dark) - Thème Hordes */
:root {
  --bg: #0b1020;
  --panel: #121a33;
  --panel2: #0f1630;
  --text: #f1f5f9;
  --muted: #a9b4d6;
  --brand: #fbbf24;
  --brand2: #f59e0b;
  --danger: #dc2626;
  --ok: #34d399;
  --border: rgba(251,191,36,.2);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    min-height: 100vh;
}

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

header {
    background: rgba(18, 26, 51, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    color: var(--brand);
}

.nav-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--brand);
    color: var(--bg);
}

/* Section Bouton Jouer */
.play-button-section {
    padding: 2rem 0;
    background: rgba(18, 26, 51, 0.3);
    border-bottom: 1px solid var(--border);
}

.play-button-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.play-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 80px rgba(251, 191, 36, 0.4);
    border-color: var(--brand);
}

/* Hero section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brand);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Content grid */
.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(18, 26, 51, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    color: var(--text);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--brand2);
}

/* Pages spécifiques */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(18, 26, 51, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    color: var(--text);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Items grid */
.items-grid, .monsters-grid, .skins-grid, .bonuses-grid, .gemmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.item-card, .monster-card, .skin-card, .bonus-card, .gemme-card {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    color: var(--text);
}

.item-card:hover, .monster-card:hover, .skin-card:hover, .bonus-card:hover, .gemme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.item-icon, .monster-icon, .skin-icon, .bonus-icon, .gemme-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
}

.item-name, .monster-name, .skin-name, .bonus-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text);
}

.item-stats, .monster-stats, .skin-stats, .bonus-stats {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
}

/* Rarity colors */
.rarity-common { color: #a0aec0; }
.rarity-uncommon { color: #68d391; }
.rarity-rare { color: #4299e1; }
.rarity-epic { color: #9f7aea; }
.rarity-legendary { color: #ed8936; }

/* Search bar */
.search-container {
    margin-bottom: 2rem;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--panel2);
    color: var(--text);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
}

/* Game principle page styles */
.game-overview {
    margin-bottom: 4rem;
}

.overview-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    color: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.overview-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.overview-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mechanic-card {
    background: var(--panel);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text);
}

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

.mechanic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mechanic-card h4 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-align: center;
}

.mechanic-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mechanic-card ul {
    color: var(--muted);
    padding-left: 1.5rem;
}

.mechanic-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand), var(--brand2));
    border-radius: 1px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 2;
}

.flow-arrow {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    color: #4a5568;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
}

.step-content {
    background: var(--panel);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
    color: var(--text);
}

.step-content h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.objective-card {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text);
}

.objective-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.objective-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.objective-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.objective-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.tips-list {
    display: grid;
    gap: 1rem;
}

.tip {
    background: var(--panel);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    color: var(--text);
}

.tip strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

/* Items and other wiki pages styles */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-size: 1.1rem;
}

.items-info {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.items-info h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    color: var(--text);
}

.info-card h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 0.5rem;
    color: var(--muted);
    line-height: 1.5;
}

.info-card li strong {
    color: var(--text);
}

.info-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
}

.info-note p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

/* Enhanced item cards */
.item-card {
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.item-card[data-rarity="common"]::before { background: #a0aec0; }
.item-card[data-rarity="uncommon"]::before { background: #68d391; }
.item-card[data-rarity="rare"]::before { background: #4299e1; }
.item-card[data-rarity="epic"]::before { background: #9f7aea; }
.item-card[data-rarity="legendary"]::before { background: var(--brand); }

.item-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Item drops styles */
.item-drops {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.item-drops h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.drop-monsters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    justify-content: center;
}

.drop-monster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--panel2);
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.8rem;
    min-width: 0;
}

.drop-monster:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.drop-monster-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 3px;
}

.drop-monster-name {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Monster and bonus specific styles */
.monster-card, .bonus-card {
    position: relative;
    overflow: hidden;
}

.monster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--danger), #dd6b20);
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ok), #3182ce);
}

.gemme-card {
    position: relative;
    overflow: hidden;
}

.gemme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.monster-name, .bonus-name, .gemme-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.monster-stats, .bonus-stats {
    margin-bottom: 0.5rem;
}

.bonus-description {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Monster loot styles */
.monster-loot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.monster-loot h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.loot-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    justify-content: center;
}

.loot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--panel2);
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.75rem;
    text-align: center;
    min-height: 70px;
}

.loot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.loot-item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 3px;
}

.loot-item-name {
    color: var(--text);
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* Skin specific styles */
.skin-card {
    position: relative;
    overflow: hidden;
}

.skin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.skin-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.skin-stats {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.skin-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.difficulty-note, .strategy-note {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    color: var(--text);
}

.difficulty-note h4, .strategy-note h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.difficulty-note p, .strategy-note p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.difficulty-note ul, .strategy-note ul {
    color: var(--muted);
    padding-left: 1.5rem;
}

.difficulty-note li, .strategy-note li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background: rgba(18, 26, 51, 0.8);
    color: var(--text);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

/* Changelog page styles */
.changelog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.changelog-entry {
    background: var(--panel);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
}

.changelog-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.date-badge, .version-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-badge {
    background: var(--brand);
    color: var(--bg);
}

.version-badge {
    background: var(--panel2);
    color: var(--brand);
    border: 1px solid var(--border);
}

.changelog-content h3 {
    color: var(--brand);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.changelog-content h3:first-child {
    margin-top: 0;
}

.changelog-content ul {
    color: var(--muted);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.changelog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.changelog-content li:last-child {
    margin-bottom: 0;
}

.changelog-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    /* Menu hamburger */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(18, 26, 51, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        max-height: 500px;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        text-align: center;
        width: 100%;
    }

    /* Bouton hamburger */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #4a5568;
        padding: 0.5rem;
    }

    /* Hero section mobile */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Content grid mobile */
    .content-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    /* Page content mobile */
    .page-content {
        margin: 1rem;
        padding: 1.25rem;
    }

    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .page-header h2 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Grids mobile */
    .items-grid, .monsters-grid, .skins-grid, .bonuses-grid, .gemmes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .item-card, .monster-card, .skin-card, .bonus-card, .gemme-card {
        padding: 1.25rem;
    }

    .item-icon, .monster-icon, .skin-icon, .bonus-icon, .gemme-icon {
        width: 56px;
        height: 56px;
    }

    .item-name, .monster-name, .skin-name, .bonus-name, .gemme-name {
        font-size: 1.1rem;
    }

    .item-stats, .monster-stats, .skin-stats, .bonus-stats {
        font-size: 0.85rem;
    }

    /* Mechanics grid mobile */
    .mechanics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mechanic-card {
        padding: 1.5rem;
    }

    .mechanic-icon {
        font-size: 2.5rem;
    }

    /* Flow steps mobile */
    .flow-steps::before {
        left: 20px;
    }

    .flow-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-left: 0;
    }

    .step-number, .flow-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content {
        width: 100%;
        margin-left: 0;
    }

    /* Objectives grid mobile */
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .objective-card {
        padding: 1.25rem;
    }

    .objective-icon {
        font-size: 2rem;
    }

    /* Info grid mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Changelog mobile */
    .changelog-entry {
        padding: 1.5rem;
    }

    .changelog-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .changelog-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Changelog très petits écrans */
    .changelog-entry {
        padding: 1rem;
    }

    .changelog-content h3 {
        font-size: 1.1rem;
    }

    .changelog-content ul {
        padding-left: 1rem;
    }

    .changelog-content li {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Search mobile */
    .search-container {
        padding: 0 1rem;
    }

    .search-input {
        width: 100%;
        max-width: 100%;
        font-size: 16px; /* Évite le zoom sur iOS */
    }

    /* Footer mobile */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .page-content {
        padding: 1rem;
    }

    .item-card, .monster-card, .skin-card, .bonus-card, .gemme-card {
        padding: 1rem;
    }

    .item-icon, .monster-icon, .skin-icon, .bonus-icon, .gemme-icon {
        width: 48px;
        height: 48px;
    }
}
