/*
 * LAN Finder - Frontend CSS Corrigé
 * Styles pour l'interface publique avec dropdown simplifié
 * Version: 2.0.4 - CHECKBOXES CORRIGÉES
 */

/* ===============================
   VARIABLES CSS
================================== */
:root {
    --lanfinder-primary: #566FFA;
    --lanfinder-primary-dark: #4555c7;
    --lanfinder-primary-light: #6a81ff;
    --lanfinder-secondary: #D96C60;
    --lanfinder-secondary-dark: #c05a4e;
    --lanfinder-success: #48bb78;
    --lanfinder-warning: #dba617;
    --lanfinder-error: #e53e3e;
    --lanfinder-dark: #1e2837;
    --lanfinder-dark-light: #2c3e50;
    --lanfinder-light: #f8f9fa;
    --lanfinder-border: rgba(255, 255, 255, 0.1);
    --lanfinder-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --lanfinder-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
    --lanfinder-radius: 12px;
    --lanfinder-radius-small: 8px;
    --lanfinder-transition: all 0.3s ease;
}

/* ===============================
   BASE ET CONTENEUR
================================== */
.lanfinder-container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.lanfinder-container * {
    box-sizing: border-box;
}

/* ===============================
   HEADER SIMPLE
================================== */
.lanfinder-header-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

/* ===============================
   BOUTON PRINCIPAL
================================== */
.add-tournament-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #566FFA 0%, #4555c7 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--lanfinder-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lanfinder-transition);
    box-shadow: 0 4px 12px rgba(86, 111, 250, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.add-tournament-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-tournament-btn:hover::before {
    left: 100%;
}

.add-tournament-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(86, 111, 250, 0.4);
    background: linear-gradient(135deg, #6a81ff 0%, #5062e0 100%);
    color: white;
    text-decoration: none;
}

.add-tournament-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    font-size: 14px;
    padding: 12px 24px;
}

.btn-icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

/* ===============================
   NOTIFICATIONS
================================== */
.lanfinder-notice {
    margin-bottom: 30px;
    border-radius: var(--lanfinder-radius);
    padding: 0;
    box-shadow: var(--lanfinder-shadow);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.notice-success {
    background: linear-gradient(135deg, var(--lanfinder-success) 0%, #38a169 100%);
}

.notice-error {
    background: linear-gradient(135deg, var(--lanfinder-error) 0%, #c53030 100%);
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.notice-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.notice-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.notice-text p {
    margin: 0;
    opacity: 0.95;
    font-size: 14px;
}

/* ===============================
   FILTRES
================================== */
.tournament-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--lanfinder-dark) 0%, var(--lanfinder-dark-light) 100%);
    border-radius: var(--lanfinder-radius);
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--lanfinder-shadow);
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.filters-right {
    display: flex;
    align-items: center;
}

.filter-btn, .time-filter-btn, .sort-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--lanfinder-radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--lanfinder-transition);
    backdrop-filter: blur(10px);
    border: 1px solid var(--lanfinder-border);
}

.filter-btn:hover, .time-filter-btn:hover, .sort-btn:hover {
    background: var(--lanfinder-primary);
    transform: translateY(-2px);
}

.filter-btn.active, .time-filter-btn.active {
    background: var(--lanfinder-primary);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.3);
}

/* ===============================
   DROPDOWN DES JEUX - FILTERS
================================== */
.games-dropdown-container {
    position: relative;
    display: inline-block;
}

.games-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--lanfinder-radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--lanfinder-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: space-between;
    border: 1px solid var(--lanfinder-border);
}

.games-dropdown-btn:hover {
    background: var(--lanfinder-primary);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.games-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.games-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--lanfinder-dark);
    border-radius: var(--lanfinder-radius-small);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--lanfinder-border);
}

.games-dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.games-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--lanfinder-border);
    background: rgba(255, 255, 255, 0.05);
}

.games-list-dropdown {
    padding: 10px;
}

.game-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    cursor: pointer;
    transition: var(--lanfinder-transition);
    border-radius: 4px;
    margin-bottom: 5px;
    color: white;
    font-size: 14px;
}

.game-option:hover {
    background: rgba(44, 62, 80, 0.2);
}

.game-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: var(--lanfinder-transition);
    flex-shrink: 0;
}

.game-checkbox:checked + .checkmark {
    background: var(--lanfinder-success);
    border-color: var(--lanfinder-success);
    color: white;
}

.game-name {
    flex: 1;
    font-weight: 500;
}

/* ===============================
   RECHERCHE
================================== */
.search-container {
    position: relative;
    width: 300px;
}

#searchTournament {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--lanfinder-radius-small);
    border: 1px solid var(--lanfinder-border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: var(--lanfinder-transition);
}

#searchTournament::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#searchTournament:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--lanfinder-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
}

/* ===============================
   CARTES DE TOURNOI
================================== */
.tournaments-list {
    display: grid;
    gap: 30px;
}

.tournament-card {
    background: linear-gradient(135deg, var(--lanfinder-dark) 0%, var(--lanfinder-dark-light) 100%);
    color: white;
    border-radius: var(--lanfinder-radius);
    padding: 30px;
    box-shadow: var(--lanfinder-shadow);
    transition: var(--lanfinder-transition);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(44, 62, 80, 0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tournament-card:hover::before {
    opacity: 1;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lanfinder-shadow-hover);
}

.tournament-lan {
    border-left-color: var(--lanfinder-primary);
}

.tournament-online {
    border-left-color: var(--lanfinder-secondary);
}

/* ===============================
   EN-TÊTE DU TOURNOI
================================== */
.tournament-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.title-and-type {
    display: flex;
    align-items: start;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.tournament-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.tournament-type-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.tournament-lan .tournament-type-badge-inline {
    background: rgba(86, 111, 250, 0.2);
    color: #a8b8ff;
    border-color: rgba(86, 111, 250, 0.3);
}

.tournament-online .tournament-type-badge-inline {
    background: rgba(217, 108, 96, 0.2);
    color: #f5a59a;
    border-color: rgba(217, 108, 96, 0.3);
}

.status-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--lanfinder-shadow);
    border: 1px solid transparent;
}

.status-new {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    animation: shimmer 2s infinite;
}

.status-expired {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.status-soon {
    background: linear-gradient(135deg, #ff6b35 0%, #e5542a 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    animation: pulse-glow 2s infinite;
}

.status-icon {
    font-size: 12px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tournament-action-top {
    flex-shrink: 0;
}

.tournament-link-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--lanfinder-primary) 0%, var(--lanfinder-primary-dark) 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--lanfinder-transition);
    box-shadow: 0 3px 10px rgba(86, 111, 250, 0.3);
}

.tournament-online .tournament-link-header {
    background: linear-gradient(135deg, var(--lanfinder-secondary) 0%, var(--lanfinder-secondary-dark) 100%);
    box-shadow: 0 3px 10px rgba(217, 108, 96, 0.3);
}

.tournament-link-header:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(86, 111, 250, 0.4);
}

.tournament-online .tournament-link-header:hover {
    box-shadow: 0 5px 15px rgba(217, 108, 96, 0.4);
}

/* ===============================
   CONTENU DU TOURNOI
================================== */
.tournament-section {
    margin-bottom: 25px;
}

.section-header-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.section-title-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.section-icon {
    font-size: 18px;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.games-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.game-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.tournament-lan .game-tag {
    background: rgba(86, 111, 250, 0.2);
    color: #a8b8ff;
    border-color: rgba(86, 111, 250, 0.3);
}

.tournament-online .game-tag {
    background: rgba(217, 108, 96, 0.2);
    color: #f5a59a;
    border-color: rgba(217, 108, 96, 0.3);
}

/* ===============================
   GRILLE D'INFORMATIONS
================================== */
.tournament-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--lanfinder-transition);
}

.info-hoverable:hover {
    background: #384250;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}

.info-icon {
    font-size: 16px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.info-content {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.location-country {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.location-city {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    text-align: center;
}

.price-amount, .prize-amount {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.prize-amount {
    color: var(--lanfinder-success);
}

.date-formatted {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.date-relative {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-align: center;
}

.no-data {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
}

/* ===============================
   AUCUN TOURNOI
================================== */
.no-tournaments {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--lanfinder-dark) 0%, var(--lanfinder-dark-light) 100%);
    border-radius: var(--lanfinder-radius);
    box-shadow: var(--lanfinder-shadow);
    color: white;
}

.no-tournaments-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-tournaments h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: white;
}

.no-tournaments p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* ===============================
   MODAL
================================== */
.lanfinder-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lanfinder-modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #1C2533;
    color: white;
    border-radius: var(--lanfinder-radius);
    max-width: 700px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: #1C2533;
    border-radius: var(--lanfinder-radius) var(--lanfinder-radius) 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
}

/* ===============================
   FORMULAIRE
================================== */
.form-body {
    padding: 35px;
    background: #1C2533;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
    font-size: 15px;
}

.form-group label.required::after {
    content: " *";
    color: #ff6b6b;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lanfinder-radius-small);
    font-size: 16px;
    transition: var(--lanfinder-transition);
    background: #262E3B;
    color: white;
    min-height: 48px;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus {
    border-color: #566FFA;
    outline: none;
    box-shadow: 0 0 0 3px rgba(86, 111, 250, 0.2);
    transform: translateY(-1px);
    background: #262E3B;
}

/* ===============================
   CHECKBOXES MODAL - SOLUTION FAUSSES CHECKBOXES
================================== */
.modal-games-container {
    position: relative;
    width: 100%;
}

.modal-games-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lanfinder-radius-small);
    background: #262E3B;
    padding: 8px;
    transition: var(--lanfinder-transition);
    position: relative;
    transform: translateZ(0);
    width: 100%;
}

.modal-games-list:focus-within {
    border-color: var(--lanfinder-primary);
    box-shadow: 0 0 0 3px rgba(86, 111, 250, 0.2);
}

/* Cacher complètement la vraie checkbox */
.modal-game-checkbox-hidden {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* Option container */
.modal-game-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: var(--lanfinder-transition);
    border-radius: 4px;
    margin-bottom: 3px;
    color: white;
    font-size: 14px;
    position: relative;
}

.modal-game-option:hover {
    background: rgba(86, 111, 250, 0.2);
}

/* Créer une fausse checkbox avec un span */
.modal-game-checkbox-custom {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 10px;
    color: transparent;
    margin: 0;
}

/* État coché */
.modal-game-checkbox-hidden:checked + .modal-game-checkbox-custom {
    background: var(--lanfinder-success);
    border-color: var(--lanfinder-success);
    color: white;
}

.modal-game-checkbox-hidden:checked + .modal-game-checkbox-custom::after {
    content: "✓";
    color: white;
    font-weight: bold;
}

/* Focus */
.modal-game-checkbox-hidden:focus + .modal-game-checkbox-custom {
    box-shadow: 0 0 0 2px rgba(86, 111, 250, 0.3);
}

/* Nom du jeu */
.modal-game-name {
    flex: 1;
    font-weight: 500;
    user-select: none;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* État sélectionné avec animation */
.modal-game-option.selected {
    background: rgba(72, 187, 120, 0.1);
    border-left: 3px solid var(--lanfinder-success);
    padding-left: 7px;
}

/* Scrollbar plus fine */
.modal-games-list::-webkit-scrollbar {
    width: 4px;
}

.modal-games-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.modal-games-list::-webkit-scrollbar-thumb {
    background: rgba(86, 111, 250, 0.4);
    border-radius: 2px;
}

.modal-games-list::-webkit-scrollbar-thumb:hover {
    background: rgba(86, 111, 250, 0.6);
}

/* État d'erreur */
.modal-games-list.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* ===============================
   AUTRES ÉLÉMENTS FORMULAIRE
================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.location-fields {
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
}

.captcha-group {
    text-align: center;
    margin-top: 30px;
}

/* Messages d'erreur */
.field-error, .games-error {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.form-error-message {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--lanfinder-radius-small);
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Prix */
.price-input {
    display: flex;
    gap: 0;
}

.price-input input {
    flex: 1;
    border-radius: var(--lanfinder-radius-small) 0 0 var(--lanfinder-radius-small);
    border-right: none;
    background: #262E3B;
    color: white;
}

.price-input select {
    width: 120px;
    border-radius: 0 var(--lanfinder-radius-small) var(--lanfinder-radius-small) 0;
    border-left: none;
    background: #262E3B;
    color: white;
}

/* ===============================
   FOOTER MODAL
================================== */
.modal-footer {
    padding: 30px 35px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    background: #1C2533;
    border-radius: 0 0 var(--lanfinder-radius) var(--lanfinder-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: white;
}

.info-icon {
    color: white;
}

.form-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--lanfinder-radius-small);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--lanfinder-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
	justify-content: center;
	text-align: center;
	width: 100%;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #566FFA 0%, #4555c7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(86, 111, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 111, 250, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    animation: spin 1s linear infinite;
    font-size: 16px;
}

/* Classes utilitaires */
body.modal-open {
    overflow: hidden !important;
}

/* CORRECTION SCROLL */
body {
    transition: none !important;
}

html, body {
    scroll-behavior: smooth;
}

/* FORCER TOUS LES TEXTES EN BLANC DANS LA MODAL */
.modal-content,
.modal-content *,
.modal-header *,
.form-body *,
.modal-footer *,
.form-group * {
    color: white !important;
}

/* Exceptions pour les placeholders et erreurs */
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.field-error, 
.games-error, 
.form-error-message {
    color: #ff6b6b !important;
}

/* Options des selects */
.form-group select option,
.games-multiselect option {
    background: #262E3B !important;
    color: white !important;
}

/* ===============================
   ANIMATIONS
================================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 2px 15px rgba(159, 122, 234, 0.5);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 107, 53, 0.4);
    }
}

/* ===============================
   RESPONSIVE
================================== */
@media (max-width: 768px) {
    .lanfinder-container {
        padding: 15px;
    }
    
    .lanfinder-header-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .add-tournament-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tournament-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filters-left {
        justify-content: center;
        order: 2;
    }
    
    .filters-right {
        order: 1;
        justify-content: center;
    }
    
    .search-container {
        width: 100%;
    }
    
    .tournament-card {
        padding: 20px;
    }
    
    .tournament-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .title-and-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .status-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .tournament-action-top {
        width: 100%;
    }
    
    .tournament-link-header {
        width: 100%;
        justify-content: center;
    }
    
    .tournament-info-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .games-list-inline {
        order: 2;
        justify-content: flex-start;
        width: 100%;
    }
    
    .section-title-inline {
        order: 1;
    }
    
    .games-dropdown-btn {
        width: 100%;
        min-width: auto;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-header,
    .form-body,  
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
		padding: 25px;
    }
    
    .form-actions {
        justify-content: center;
        flex-direction: column;
		align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-input input,
    .price-input select {
        border-radius: var(--lanfinder-radius-small);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .modal-games-list {
        max-height: 150px;
    }
}