/* Character Cards - Medallion Design */
.char-card {
    background: #fff;
    padding: 1.5rem 1rem;
    border: 2px solid #b8860b;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.char-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    border-color: #d4af37;
}

.char-card img { 
    width: 90%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    border-radius: 50%; /* Force la forme circulaire */
    border: 3px solid #fdfaf2;
    box-shadow: 0 0 0 2px #e7d9b9;
    filter: sepia(0.2); 
    transition: all 0.5s; 
    margin-bottom: 1.2rem;
}

.char-card:hover img { 
    filter: sepia(0); 
    transform: scale(1.03);
}

.char-card h3 { 
    text-align: center; 
    font-size: 1rem; 
    font-weight: bold; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    color: #3d2b1f;
}

.char-card p { 
    text-align: center; 
    font-size: 0.75rem; 
    font-style: italic; 
    color: #8d6e63;
    margin-top: 0.2rem;
}

/* Filter Buttons */
.filters-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.filter-btn {
    background: #e7d9b9;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn.active { background: #b8860b; color: white; transform: scale(1.05); }

/* Tabs Integrated - More Compact */
.tabs-container { 
    display: flex; 
    background: #e7d9b9;
    padding: 0;
    overflow-x: auto;
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    cursor: pointer;
    color: #5d4037;
    border-right: 1px solid rgba(184, 134, 11, 0.2);
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn:last-child { border-right: none; }
.tab-btn.active { 
    background: #b8860b; 
    color: white; 
    font-weight: bold; 
}

/* Flashcards */
.flashcard-wrapper { perspective: 1000px; width: 100%; max-width: 320px; height: 380px; margin: 0 auto; cursor: pointer; }
.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.flashcard-wrapper.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px solid #b8860b;
    border-radius: 8px;
    background: white;
    box-sizing: border-box;
}
.flashcard-back { transform: rotateY(180deg); background: #fdfaf2; color: #b8860b; }

/* Buttons */
.btn-gold { background: #b8860b; color: white; border: none; padding: 0.7rem 1.2rem; border-radius: 6px; font-family: 'Cinzel', serif; cursor: pointer; font-size: 0.8rem; }
.btn-gray { background: #eee; color: #555; border: none; padding: 0.7rem 1.2rem; border-radius: 6px; font-family: 'Cinzel', serif; cursor: pointer; font-size: 0.8rem; }
.btn-small { font-size: 0.65rem; padding: 0.4rem 0.7rem; background: #3d2b1f; color: white; border-radius: 4px; border: none; cursor: pointer; }