/**
 * Styles pour TCG Database
 * Design moderne, responsive et agréable
 */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #eab308;
    --bg-color: #1e293b;  /* Fond sombre */
    --card-bg: #334155;   /* Fond des cartes (légèrement plus clair) */
    --text-color: #f1f5f9; /* Texte clair */
    --text-light: #cbd5e1; /* Texte secondaire clair */
    --border-color: #475569; /* Bordures sombres */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
    overflow-y: scroll; /* Force toujours le scrollbar pour éviter les décalages */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header - Uniformisé pour toutes les pages */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    width: 100%;
    margin: 0;
    position: relative;
    left: 0;
    right: 0;
}

/* Container du header - uniformisé sur toutes les pages */
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Titre du header */
header h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

/* Sous-titre optionnel */
header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
}

/* Navigation */
header nav {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

/* Liens de navigation */
header nav a {
    color: white;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.1s;
    font-size: 0.875rem;
    display: inline-block;
}

/* Effet hover sur les liens */
header nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Utility class for hidden elements */
.hidden {
    display: none;
}

/* Filter controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Main content - Uniformisé pour toutes les pages */
main {
    flex: 1;
    padding: 2rem 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Navigation cards */
.navigation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Intro section */
.intro {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Rules section */
.rules-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.rule-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rule-number {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
}

.rule-header h3 {
    color: var(--text-color);
    font-size: 1.25rem;
}

.rule-content {
    color: var(--text-light);
    line-height: 1.8;
}

/* Cards section */
.filters-section {
    background: var(--card-bg);
    padding: 0.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

/* Section pleine largeur pour les filtres et cartes */
.full-width-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

/* Padding spécifique pour les sections pleine largeur */
.full-width-section {
    padding-left: 0;
    padding-right: 0;
}

/* Pour la grille de cartes, le padding est déjà géré par .full-width-section */
#cards-container.full-width-section {
    padding-top: 0;
    padding-bottom: 0;
}

.filters-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 0.75rem;
}

.filter-group input,
.filter-group select {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    color: #000;
}

.filter-group select option {
    background: white;
    color: #000;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cards-count {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
    padding: 0.35rem 0.75rem;
    background-color: var(--card-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Tableau d'affichage des cartes */
.cards-table-container {
    overflow-x: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.cards-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cards-table thead {
    background: var(--primary-color);
    color: white;
}

.cards-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    line-height: 1.2;
}

.cards-table tbody tr:hover {
    background: var(--bg-color);
}

.cards-table tbody tr:last-child {
    border-bottom: none;
}

.cards-table td {
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
    color: var(--text-color);
    font-size: 0.75rem;
}

.cards-table th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-card-name {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.table-card-name strong {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.75rem;
}

.table-type-badge {
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}

.table-color-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.table-no-color {
    color: var(--text-light);
    font-style: italic;
}

.table-na {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

.table-conditions,
.table-ability {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-light);
    font-size: 0.75rem;
}

.table-ability {
    cursor: help;
}

.table-rarity {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius);
    font-size: 0.65rem;
    font-weight: 600;
}

.card-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* ESSAI : Fond coloré selon les couleurs de la carte */
/* Pour revenir en arrière, supprimer les styles .card-color-background et .card-color-segment */
/* et remettre background: var(--card-bg); dans .card-item-colored */

.card-item-colored {
    border-top: none;
    color: white;
}

.card-item-colored .card-content {
    position: relative;
    z-index: 1;
}

.card-color-background-multi {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
}

.card-color-segment {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
}

/* Assurer la lisibilité du texte sur fond coloré */
.card-item-colored .card-name,
.card-item-colored .card-type-badge,
.card-item-colored .card-stats,
.card-item-colored .card-conditions,
.card-item-colored .card-ability,
.card-item-colored .card-description,
.card-item-colored .card-rarity {
    color: #000000;
    text-shadow: none;
}

.card-item-colored .card-type-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
}

.card-item-colored .color-badge {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Boutons dans les cartes : toujours fond noir et écriture blanche */
.card-item .btn,
.card-item-colored .btn {
    background: #000000;
    color: white;
}

.card-item .btn:hover,
.card-item-colored .btn:hover {
    background: #1a1a1a;
    color: white;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.card-name {
    font-size: 1.25rem;
    color: var(--text-color);
    flex: 1;
}

.card-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-personnage {
    background: #fef3c7;
    color: #000000;
}

.type-sort {
    background: #dbeafe;
    color: #000000;
}

.type-lieu {
    background: #d1fae5;
    color: #000000;
}

.card-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.no-color {
    color: var(--text-light);
    font-style: italic;
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.stat {
    font-weight: 500;
    color: var(--text-color);
}

.card-conditions,
.card-ability,
.card-description {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.card-conditions strong,
.card-ability strong {
    color: var(--text-color);
}

.card-rarity {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.rarity-commun {
    background: #e5e7eb;
    color: #000000;
}

.rarity-inhabituelle {
    background: #dbeafe;
    color: #000000;
}

.rarity-rare {
    background: #e9d5ff;
    color: #000000;
}

.rarity-légendaire {
    background: #fef3c7;
    color: #000000;
}

/* Admin section */
.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-nav a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.admin-nav a:hover {
    color: var(--primary-color);
}

.admin-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Section tableau de puissances : pleine largeur sans marges */
.admin-section-power {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0;
    max-width: 100vw;
    width: 100vw;
}

.admin-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* Forms */
#card-form-container,
#rule-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    box-shadow: var(--shadow);
}

#card-form-container h3,
#rule-form-container h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group select option {
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.login-form {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Admin items list */
.admin-cards-list,
.admin-rules-list {
    margin-top: 2rem;
}

.admin-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    gap: 1rem;
}

.admin-item-content {
    flex: 1;
}

.admin-item-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.admin-item-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Power table */
.power-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.power-table thead {
    background: var(--primary-color);
    color: white;
}

.power-table th {
    padding: 0.4rem 0.6rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    user-select: none;
}

.power-table th.sortable {
    cursor: pointer;
    transition: background-color 0.2s;
}

.power-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sort-indicator {
    margin-left: 0.3rem;
    font-size: 0.65rem;
    opacity: 0.7;
}

.power-table td {
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.75rem;
    line-height: 1.3;
}

.power-table td:nth-child(2) {
    white-space: nowrap;
}

.power-table tbody tr {
    line-height: 1.3;
}

.power-table tbody tr:hover {
    background: var(--bg-color);
}

.power-table tbody tr.power-row-mismatch {
    background-color: rgba(251, 191, 191, 0.3) !important;
}

.power-table tbody tr.power-row-mismatch:hover {
    background-color: rgba(251, 191, 191, 0.5) !important;
}

/* S'assurer que la classe est bien appliquée même avec d'autres classes */
.power-table tbody tr[class*="power-row-mismatch"] {
    background-color: rgba(251, 191, 191, 0.3) !important;
}

.power-table tbody tr:last-child td {
    border-bottom: none;
}

.color-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 0.35rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    flex-shrink: 0;
}

.no-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 1.5px dashed #9ca3af;
    margin-right: 0.35rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Modal pour afficher la capacité complète */
.ability-modal {
    display: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ability-modal[style*="display: flex"],
.ability-modal[style*="display:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ability-modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    padding: 2rem !important;
    border-radius: var(--radius-lg) !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 100000 !important;
}

.ability-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.ability-modal-close:hover {
    color: var(--primary-color);
}

.ability-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ability-modal-text {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-color);
}

.power-select,
.level-select,
.attack-select,
.health-select {
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.75rem;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    min-width: 50px;
}

.power-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.power-total {
    font-weight: 600;
    font-size: 0.85rem;
}

.power-total.power-over {
    color: var(--success-color);
}

.power-total.power-under {
    color: var(--danger-color);
}

.power-total.power-exact {
    color: var(--primary-color);
}

/* Actions sur les cartes */
.card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* Modal d'édition de carte */
.edit-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.edit-modal[style*="display: flex"],
.edit-modal[style*="display:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.edit-modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.edit-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.edit-modal-close:hover {
    color: var(--primary-color);
}

.edit-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header h1 {
        font-size: 1.1rem;
    }

    .navigation-cards {
        grid-template-columns: 1fr;
    }

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

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

    .cards-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .cards-table {
        font-size: 0.875rem;
        min-width: 800px;
    }

    .cards-table th,
    .cards-table td {
        padding: 0.75rem 0.5rem;
    }

    .table-conditions,
    .table-ability {
        max-width: 120px;
    }

    .admin-nav {
        flex-direction: column;
        gap: 0;
    }

    .admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .power-table {
        font-size: 0.7rem;
    }

    .power-table th,
    .power-table td {
        padding: 0.3rem 0.4rem;
    }

    .power-table th:nth-child(6),
    .power-table td:nth-child(6) {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header .container {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 1.1rem;
    }
    
    header nav {
        gap: 0.35rem;
    }
    
    header nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   STYLES SPÉCIFIQUES - FUSIONNÉS DE TOUS LES CSS
   ============================================ */

/* Styles pour play.php - Testeur de Deck */
.game-setup {
    background: #1e293b;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.setup-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.btn-start {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-start:hover {
    background: #059669;
}

.game-board {
    display: none;
    grid-template-columns: 300px 1fr;
    gap: 0.5rem;
}

.game-board.active {
    display: grid;
}

.game-stats {
    background: #1e293b;
    border-radius: 8px;
    padding: 0.75rem;
    height: fit-content;
    position: sticky;
    top: 0.5rem;
}

.stat-box {
    background: #0f172a;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.stats-inline {
    display: flex;
    gap: 0.5rem;
}

.stat-title {
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #3b82f6;
}

.stat-controls {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

.faction-bonus {
    margin-bottom: 0.5rem;
}

.faction-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
    font-size: 0.8rem;
}

.faction-count {
    color: #94a3b8;
    font-weight: normal;
    margin-left: auto;
}

.faction-bonus-list {
    font-size: 0.7rem;
    color: #cbd5e1;
    margin-left: 1rem;
}

.bonus-active {
    color: #10b981;
}

.bonus-inactive {
    color: #64748b;
}

.stat-btn {
    background: #475569;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.stat-btn:hover {
    background: #64748b;
}

/* Encart Puissance et Limites */
.power-limits-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.power-limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.power-limit-item:last-child {
    border-bottom: none;
}

.power-limit-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    flex: 1;
}

.power-limit-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #3b82f6;
    min-width: 30px;
    text-align: right;
}

.game-areas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-area {
    background: #1e293b;
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 120px;
}

.area-title {
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-count {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: normal;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.card-in-game {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
    user-select: none;
}

.card-in-game:active {
    cursor: grabbing;
}

.card-in-game:hover {
    transform: translateY(-4px) scale(1.05);
    z-index: 10;
    position: relative;
}

.card-in-game.dragging {
    opacity: 0.5;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
}

.card-image {
    width: 100%;
    aspect-ratio: 300/420;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.card-stats {
    position: absolute;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.card-stat-atk {
    bottom: 8px;
    left: 8px;
    font-size: 1.1rem;
}

.card-stat-def {
    bottom: 8px;
    right: 8px;
    font-size: 1.1rem;
}

.card-stat-level {
    top: 8px;
    right: 8px;
    font-size: 0.9rem;
    pointer-events: none;
}

.card-stat-value {
    pointer-events: none;
}

.card-stat-controls {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0.8;
}

.card-image-wrapper:hover .card-stat-controls {
    display: flex;
}

.card-stat-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.15s;
    user-select: none;
}

.card-stat-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.card-stat-btn:active {
    transform: scale(0.95);
}

.board-zone {
    background: #0f172a;
    border: 2px dashed #334155;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 150px;
}

.board-zone.has-cards {
    border-style: solid;
    border-color: #475569;
}

.board-zone.drag-over {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.land-zone {
    background: #0f172a;
    border: 2px dashed #334155;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 120px;
}

.land-zone.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.graveyard-display {
    background: #0f172a;
    border: 2px dashed #334155;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.graveyard-display:hover {
    border-color: #64748b;
}

.graveyard-card {
    width: 100%;
    max-width: 120px;
    pointer-events: none;
}

.graveyard-display::after {
    content: 'Cliquez pour voir toutes les cartes';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.graveyard-display:hover::after {
    opacity: 1;
}

.card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card-modal.active {
    display: flex;
}

.card-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.card-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.card-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.peek-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.peek-modal.active {
    display: flex;
}

.peek-modal-content {
    position: relative;
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.peek-modal-content h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.peek-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.peek-controls label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.peek-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.peek-card-item {
    position: relative;
    background: #0f172a;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.peek-card-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}

.peek-card-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.peek-card-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.peek-card-btn:hover {
    opacity: 0.8;
}

.peek-card-btn.to-hand {
    background: #10b981;
    color: white;
}

.peek-card-btn.to-bottom {
    background: #64748b;
    color: white;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.action-group {
    display: flex;
    gap: 0.35rem;
}

.action-group .btn-action {
    flex: 1;
}

.deck-count {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: -0.25rem;
}

.deck-count span {
    font-weight: bold;
    color: #3b82f6;
}

.btn-action {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-action:hover {
    background: #2563eb;
}

.btn-action.secondary {
    background: #64748b;
}

.btn-action.secondary:hover {
    background: #475569;
}

.hand-zone {
    background: #0f172a;
    border: 2px dashed #334155;
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 150px;
}

.hand-zone.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.cards-horizontal {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.card-hand {
    flex-shrink: 0;
    width: 140px;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0;
    cursor: grab;
    user-select: none;
}

.card-hand:active {
    cursor: grabbing;
}

.card-hand:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
    position: relative;
}

.card-hand.dragging {
    opacity: 0.5;
}

.card-hand .card-image {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.peek-count-input {
    width: 60px;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
}

/* Styles pour deck.php - Constructeur de Deck */
.deck-builder {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cards-list {
    background: #1e293b;
    border-radius: 6px;
    padding: 0.5rem;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.deck-panel {
    background: #1e293b;
    border-radius: 6px;
    padding: 0.5rem;
    position: sticky;
    top: 0.5rem;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.card-item.selected {
    background: #0ea5e9;
    border-color: #0284c7;
}

.btn-add {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-add:hover {
    background: #059669;
}

.btn-add:disabled {
    background: #475569;
    cursor: not-allowed;
}

.deck-cards {
    margin-top: 0.5rem;
}

.deck-card {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-card-info {
    flex: 1;
}

.deck-card-name {
    font-weight: bold;
    color: #f1f5f9;
    font-size: 0.85rem;
}

.deck-card-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #475569;
    border-radius: 3px;
    padding: 0.2rem;
}

.qty-btn {
    background: #64748b;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.75rem;
}

.qty-btn:hover {
    background: #475569;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-value {
    min-width: 25px;
    text-align: center;
    color: #f1f5f9;
    font-weight: bold;
    font-size: 0.8rem;
}

.deck-stats {
    background: #0f172a;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-item.total {
    border-top: 1px solid #334155;
    padding-top: 0.35rem;
    margin-top: 0.35rem;
    font-weight: bold;
    color: #f1f5f9;
    font-size: 0.85rem;
}

.deck-form {
    margin-top: 0.5rem;
}

.deck-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.decks-list {
    background: #1e293b;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
}

.decks-list h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.deck-item {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-item-info h3 {
    margin: 0 0 0.15rem 0;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.deck-item-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.deck-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-load {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.filters-panel {
    background: #1e293b;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.search-box {
    width: 100%;
    padding: 0.5rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 3px;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.warning {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.card-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card-popup.active {
    display: flex;
}

.card-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.card-popup-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.card-popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.card-popup-close:hover {
    background: #dc2626;
}

.card-popup-info {
    margin-top: 1rem;
    text-align: center;
    color: #cbd5e1;
}

.card-popup-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.deck-main {
    width: 100%;
}

.deck-container-full {
    max-width: 100%;
    padding: 0.5rem 1rem;
}

.deck-empty-center {
    color: #64748b;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

.deck-card-meta {
    font-size: 0.7rem;
    color: #94a3b8;
}

.deck-date {
    font-size: 0.8rem;
    color: #64748b;
}

/* Styles pour lore.php - Les Factions */
.faction-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-left: 6px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.faction-card.speedrunners {
    border-left-color: #dc2626;
}

.faction-card.moderateurs {
    border-left-color: #2563eb;
}

.faction-card.gardiens {
    border-left-color: #16a34a;
}

.faction-card.alteres {
    border-left-color: #9333ea;
}

.faction-card.visionnaires {
    border-left-color: #eab308;
}

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

.faction-title {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 0;
}

.faction-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.faction-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faction-description p {
    margin-bottom: 1rem;
}

.faction-tip {
    background: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.faction-emoji {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.faction-description.intro {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Styles pour admin.php - Administration */
.export-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
}

.export-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.export-section p {
    margin-bottom: 1rem;
    color: #94a3b8;
}

.export-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.export-buttons a {
    text-decoration: none;
}

.download-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #0f172a;
    border-radius: 6px;
}

.download-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.download-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.download-buttons a {
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.export-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.export-info p {
    margin: 0;
    font-size: 0.9em;
    color: #64748b;
}

.export-info code {
    background: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Styles spécifiques pour play.php - Utilisation de toute la largeur */
.play-main {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0;
    margin: 0;
    overflow-x: hidden;
}

.play-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

/* Media queries pour play.php et deck.php */
@media (max-width: 1024px) {
    .game-board {
        grid-template-columns: 1fr;
    }
    
    .game-stats {
        position: static;
    }

    .deck-builder {
        grid-template-columns: 1fr;
    }
    
    .deck-panel {
        position: static;
    }
}
