:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ecf0f1;
    --text-muted: #95a5a6;
    --accent: #e0e0e0;
    
    --yellow: #f1c40f;
    --blue: #3498db;
    --red: #e74c3c;
    --black: #7f8c8d; /* Gris pour visibilité sur fond sombre */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo { font-weight: bold; letter-spacing: 3px; font-size: 1.2rem; }
.session-info { font-size: 0.8rem; background: #333; padding: 5px 10px; border-radius: 10px; }
.session-linked { background: #27ae60; color: white; }

/* PANELS */
.hidden { display: none !important; }

#setup-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.subtitle { color: var(--text-muted); margin-bottom: 30px; font-size: 0.9rem; }

/* FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
    background: transparent;
    border: 2px solid #333;
    color: #555;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

/* Couleurs actives */
.filter-btn.active.f-yellow { background: var(--yellow); border-color: var(--yellow); color: #000; }
.filter-btn.active.f-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-btn.active.f-red { background: var(--red); border-color: var(--red); color: #fff; }
.filter-btn.active.f-black { background: var(--black); border-color: var(--black); color: #fff; }

/* BOUTONS ACTION */
.main-btn, .action-btn {
    background: white;
    color: black;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.main-btn:active, .action-btn:active { transform: scale(0.98); }

/* ZONE PARTAGE */
#share-zone {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    margin-top: 20px;
}
input#share-link {
    width: 90%;
    padding: 10px;
    background: #111;
    border: 1px solid #444;
    color: var(--text-muted);
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}
.copy-btn { background: #444; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }
.secondary-btn { display: block; margin: 20px auto 0; background: transparent; color: white; border: 1px solid white; padding: 10px 20px; border-radius: 20px; }

/* JEU */
#game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 40px 20px;
}

.card-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card {
    background: var(--card-bg);
    width: 85%;
    max-width: 320px;
    aspect-ratio: 2/3;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-top: 8px solid white; /* Couleur dynamique */
}

.category-label {
    position: absolute;
    top: 20px;
    left: 0; 
    right: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.card-text {
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 500;
}

.footer-info {
    font-size: 0.8rem;
    color: #555;
    margin-top: 15px;
}

#lang-selector {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #333;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* SÉLECTEUR DE LIMITE */
.limit-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.limit-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #333;
    background: transparent;
    color: #888;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.limit-btn.active {
    border-color: #ecf0f1;
    background-color: #ecf0f1;
    color: #121212;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}
