
/* Category Cards */
.category-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border: 2px solid #b8860b;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-5px);
    background: #fdfaf2;
}

.category-icon { font-size: 2.5rem; color: #b8860b; }

/* Character Cards - Medallion FIXED */
.char-card {
    background: #fff;
    padding: 2rem 1rem;
    border: 1.5px solid #b8860b;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    height: 100%;
}

.char-card:hover { transform: translateY(-8px); border-color: #d4af37; }

.char-card img { 
    width: 150px; 
    height: 150px; 
    min-width: 150px;
    min-height: 150px;
    object-fit: cover; 
    border-radius: 50%;
    border: 4px solid #fdfaf2;
    box-shadow: 0 0 0 2px #e7d9b9;
    margin-bottom: 1.5rem;
    background: #eee;
}

.char-card h3 { 
    text-align: center; 
    font-size: 0.95rem; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 0.5rem 0;
    color: #3d2b1f;
}

.char-card p { font-size: 0.8rem; color: #8d6e63; margin: 0; font-family: 'Cinzel', serif; }

/* Ligne du Temps du Personnage (Corde et Noeux) */
.char-timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.char-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #b8860b;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-date {
    width: 80px;
    text-align: right;
    font-weight: bold;
    color: #b8860b;
    padding-top: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
}

.timeline-marker {
    width: 14px;
    height: 14px;
    background: #3d2b1f;
    border: 2px solid #b8860b;
    border-radius: 50%;
    margin: 0.8rem 1rem 0 0.6rem;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-text {
    flex: 1;
    background: #fdfaf2;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #b8860b;
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    color: #4a3728;
}

/* Flashcards Styles & Animation */
.flashcard-wrapper {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    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%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #b8860b;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flashcard-back {
    background: #fdfaf2;
    transform: rotateY(180deg);
}

.flashcard-front p, .flashcard-back p {
    margin: 0;
    line-height: 1.4;
    font-family: 'Cinzel', serif;
}

/* Navigation & Filtres */
.filters-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.filter-btn {
    background: #e7d9b9;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn.active { background: #b8860b; color: white; }

/* Tabs & Others */
.tabs-container { display: flex; background: #e7d9b9; }
.tab-btn { flex: 1; border: none; padding: 0.8rem; font-family: 'Cinzel', serif; font-size: 0.7rem; cursor: pointer; }
.tab-btn.active { background: #b8860b; color: white; }

.btn-small { font-size: 0.65rem; padding: 0.4rem 0.7rem; background: #3d2b1f; color: white; border-radius: 4px; border: none; cursor: pointer; text-transform: uppercase; }
