:root {
    --primary-color: #8B0000;
    --secondary-color: #2C1810;
    --accent-color: #C17817;
    --text-color: #E8DFD6;
    --background: #1A1412;
    --faction-nord: #000064;
    --faction-nilfgaard: #3c3c3c;
    --faction-skellige: #4b0082;
    --faction-scoiatael: #004d00;
    --faction-monstres: #8b0000;
    transition: all 0.5s ease;
}

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

body {
    background-color: var(--background);
    color: var(--text-color);
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: background-color 0.5s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.5s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, color 0.5s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.flag-icon:hover {
    transform: scale(1.1);
}

main {
    margin-top: 80px; /* Pour compenser la navbar fixed */
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: color 0.5s ease;
}

.welcome-section {
    text-align: center;
    padding: 4rem 0;
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
    z-index: 1;
    transition: background 0.3s ease, background-color 0.5s ease;
}

/* Supprimer le background sur welcome-section et créer des classes spécifiques */
.welcome-section.faction-nord {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%,
        var(--faction-nord) 100%);
}

.welcome-section.faction-nilfgaard {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%,
        var(--faction-nilfgaard) 100%);
}

.welcome-section.faction-skellige {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%,
        var(--faction-skellige) 100%);
}

.welcome-section.faction-scoiatael {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%,
        var(--faction-scoiatael) 100%);
}

.welcome-section.faction-monstres {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%,
        var(--faction-monstres) 100%);
}

/* Garder le motif rayé par-dessus */
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(193, 120, 23, 0.1),
        rgba(193, 120, 23, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.5;
    z-index: 1;
}

.welcome-section h1,
.welcome-section p {
    position: relative;
    z-index: 1;
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    border-radius: 4px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.currency-amount {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.5s ease;
}

.currency-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dashboard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--secondary-color);  /* Toujours marron */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease, background-color 0.5s ease;
}

.dashboard.faction-nord::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--faction-nord) 100%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 8px;
}

.dashboard.faction-nilfgaard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--faction-nilfgaard) 100%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 8px;
}

.dashboard.faction-skellige::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--faction-skellige) 100%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 8px;
}

.dashboard.faction-scoiatael::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--faction-scoiatael) 100%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 8px;
}

.dashboard.faction-monstres::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--faction-monstres) 100%);
    opacity: 0.3;
    z-index: 1;
    border-radius: 8px;
}

/* S'assurer que le contenu reste au-dessus du dégradé */
.dashboard > * {
    position: relative;
    z-index: 2;
}

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

.stat-card {
    background: var(--background);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.5s ease;
}

.stat-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.faction-list, .rarity-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.first-visit {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    position: relative;  /* Ajouter cette ligne */
    z-index: 2;         /* Ajouter cette ligne */
    background: var(--secondary-color);  /* Ajouter cette ligne */
    padding: 2rem;      /* Ajouter cette ligne */
    border-radius: 8px; /* Ajouter cette ligne */
}

.name-input-container {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;  /* Ajouter cette ligne */
    z-index: 3;         /* Ajouter cette ligne */
}

#username {
    padding: 0.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background: var(--background);
    color: var(--text-color);
    width: 200px;       /* Ajouter cette ligne */
    height: 40px;       /* Ajouter cette ligne */
}

#submitName {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    height: 40px;       /* Ajouter cette ligne */
    transition: background-color 0.3s ease;  /* Ajouter cette ligne */
}

#submitName:hover {
    background-color: var(--primary-color);  /* Ajouter cette ligne */
}

.hidden {
    display: none;
}

.delete-profile {
    margin-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 3;
}

.delete-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.delete-btn:hover {
    background: darkred;
    transform: scale(1.05);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.form-group select {
    padding: 0.5rem;
    background: var(--background);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
}

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

.avatar-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--accent-color);
    background: rgba(193, 120, 23, 0.1);
}

.avatar-option img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.avatar-option p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Styles pour le dashboard */
.user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
}

.user-details {
    flex-grow: 1;
}

.change-profile {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.change-profile button {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: background-color 0.3s ease, color 0.5s ease;
}

.change-profile button:hover {
    background: var(--primary-color);
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.profile-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.profile-actions button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: filter 0.3s ease;  /* Changé pour utiliser filter */
    position: relative;
    z-index: 4;
}

.profile-actions button:hover {
    filter: brightness(1.2);  /* Remplacé le changement de couleur par un effet de luminosité */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    transition: background-color 0.5s ease;
    max-height: 80vh;
    overflow-y: auto;
}

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

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

.faction-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.faction-option:hover {
    transform: scale(1.05);
}

.faction-option.selected {
    border-color: var(--accent-color);
    background: rgba(193, 120, 23, 0.1);
}

.faction-option img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    aspect-ratio: 1;
    object-fit: cover;
}

.faction-option p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: filter 0.3s ease;
}

.modal-actions button.confirm {
    background: var(--primary-color);
    color: var(--text-color);
}

.modal-actions button.cancel {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.modal-actions button:hover {
    filter: brightness(1.2);
}

#submitProfile {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    width: fit-content;
    margin: 0 auto;
    transition: filter 0.3s ease;
}

#submitProfile:hover {
    filter: brightness(1.2);
}

.age-stats p {
    margin: 0.5rem 0;
}

.age-stats .visits-count {
    font-size: 0.9em;
    opacity: 0.9;
}

.transfer-section {
    margin: 2rem 0;
    text-align: center;
}

.transfer-item {
    margin: 1rem 0;
}

.transfer-item p {
    margin: 0.5rem 0;
}

.transfer-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    margin-top: 0.5rem;
    transition: filter 0.3s ease;
}

.transfer-btn:hover {
    filter: brightness(1.2);
}

.welcome-rewards {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: left;
}

.welcome-rewards h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.welcome-rewards ul {
    list-style: none;
    padding: 0;
}

.welcome-rewards li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.welcome-rewards li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0.5rem;
}

/* Styles pour la pagination et le défilement des modales */
.avatar-selector-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avatar-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.pagination-btn {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: filter 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.pagination-btn:not(:disabled):hover {
    filter: brightness(1.2);
}

.page-indicator {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Style pour la barre de défilement */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Breakpoint pour écrans larges > 1200px reste inchangé */

/* Breakpoint pour écrans moyens */
@media screen and (max-width: 992px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        display: none; /* Caché par défaut */
    }

    .nav-links.active {
        display: flex; /* Affiché uniquement quand actif */
    }

    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .currency-display {
        padding: 0.3rem 0.5rem;
    }

    .currency-amount {
        font-size: 0.9rem;
    }

    .currency-icon {
        width: 20px;
        height: 20px;
    }

    .language-selector img {
        width: 20px;
        height: 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    main {
        margin-top: 120px; /* Ajusté pour la navbar plus haute */
    }
}

/* Style pour petits écrans (jusqu'à 576px) - Menu hamburger */
@media screen and (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    main {
        margin-top: 120px;
    }
}

/* Style pour écrans moyens (577px à 992px) */
@media screen and (min-width: 577px) and (max-width: 992px) {
    .nav-content {
        padding: 0 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        font-size: 0.85rem;
        justify-content: center;
        width: 100%;
        order: 2;
    }

    .nav-right {
        gap: 0.5rem;
        order: 3;
    }

    .logo {
        font-size: 1.1rem;
        order: 1;
    }

    .currency-display {
        padding: 0.3rem 0.5rem;
    }

    .currency-amount {
        font-size: 0.9rem;
    }

    .currency-icon, .language-selector img {
        width: 20px;
        height: 20px;
    }

    .logo {
        font-size: 1.1rem;
    }
}

/* Style pour écrans entre 620px et 576px */
@media screen and (min-width: 577px) and (max-width: 620px) {
    .nav-content {
        padding: 0 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 0.6rem;
        font-size: 0.75rem; /* Taille de police réduite */
        justify-content: center;
        width: 100%;
        order: 2;
    }

    .nav-right {
        gap: 0.4rem;
        order: 3;
    }

    .logo {
        font-size: 1rem;
        order: 1;
    }

    .currency-display {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    .currency-icon, .language-selector img {
        width: 18px;
        height: 18px;
    }
}

/* Style pour grands écrans (> 992px) */
@media screen and (min-width: 993px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
}

/* CSS pour les titres */
.user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
}

.user-details {
    flex-grow: 1;
}

.user-title {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* Sélecteur de titres */
.title-selector-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.title-section h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.title-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.title-option {
    padding: 0.8rem;
    border-radius: 5px;
    background: var(--primary-color);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.title-option:hover {
    opacity: 1;
}

.title-option.selected {
    border: 2px solid var(--accent-color);
    background: rgba(193, 120, 23, 0.2);
    opacity: 1;
}

.title-option.locked {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    color: gray;
}

.requirement {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.title-preview-section {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--accent-color);
}

.title-preview {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-style: italic;
    padding: 0.5rem;
}

/* Styles pour le sélecteur de titres en mode carrousel */
.title-selector-container {
    padding: 1rem;
}

.title-section {
    margin-bottom: 1.5rem;
}

.title-carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.title-nav-button {
    background: var(--accent-color, #d4af37);
    color: var(--primary-color, #1a1a1a);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.title-nav-button:hover {
    transform: scale(1.1);
    background-color: #e5c250;
}

.title-display {
    flex-grow: 1;
    text-align: center;
    margin: 0 1rem;
}

.title-card {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--accent-color, #d4af37);
    transition: all 0.2s ease;
}

.title-card.unlocked {
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.title-card.unlocked:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.title-card.locked {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(128, 128, 128, 0.5);
}

.title-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.title-requirements {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.3;
    padding: 0 0.5rem;
}

.title-preview-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
}

.title-preview {
    font-size: 1.5rem;
    color: var(--accent-color, #d4af37);
    margin-top: 0.5rem;
    font-weight: bold;
}

.title-card.locked .title-requirements {
    color: rgba(255, 200, 100, 0.8);
}

/* Styles pour les boutons radio de filtrage des titres */
.title-filter-controls {
    margin-bottom: 1.5rem;
    text-align: center;
}

.radio-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.radio-label {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
}

.radio-label:last-child {
    margin-right: 0;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-label span {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-label {
        margin-right: 0;
    }
}

.vault-access {
    margin-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 3;
}

.vault-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.vault-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}