/* reglement.css - Styles spécifiques pour la page du règlement */

/* ===== HEADER STYLES ===== */
.page-header.reglement-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/illu/aventurier.jpg') center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px; /* Espacement pour la navbar fixe */
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== TABLE DES MATIÈRES (TOC) STYLES ===== */
.toc-container {
    background-color: rgba(10, 10, 24, 0.95);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(239, 203, 62, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toc-wrapper {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.toc-wrapper h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.toc-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.toc-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: 'Cinzel', serif;
}

.toc-tab:hover {
    color: var(--primary-color);
}

.toc-tab.active {
    color: var(--primary-color);
}

.toc-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.toc-content {
    position: relative;
    min-height: 300px;
}

.toc-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.toc-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

/* TOC - Règles Générales */
.toc-columns {
    display: flex;
    gap: 2rem;
}

.toc-column {
    flex: 1;
    min-width: 0;
}

.toc-column h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(239, 203, 62, 0.3);
    padding-bottom: 0.5rem;
}

.toc-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-column li {
    margin-bottom: 1rem;
}

.toc-column a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.toc-column a:hover {
    background-color: rgba(239, 203, 62, 0.1);
    color: var(--primary-color);
}

.toc-column a i {
    margin-right: 0.8rem;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

/* TOC - Factions */
.toc-faction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.toc-faction-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 3px solid transparent;
}

.toc-faction-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.toc-faction-card.alliance {
    border-top-color: #1a3c8a;
}

.toc-faction-card.horde {
    border-top-color: #8a1a1a;
}

.toc-faction-card.kirin-tor {
    border-top-color: #6a1a8a;
}

.toc-faction-card.bandits {
    border-top-color: #8a7a1a;
}

.faction-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.toc-faction-card.alliance .faction-icon {
    color: #1a3c8a;
    border: 2px solid #1a3c8a;
}

.toc-faction-card.horde .faction-icon {
    color: #8a1a1a;
    border: 2px solid #8a1a1a;
}

.toc-faction-card.kirin-tor .faction-icon {
    color: #6a1a8a;
    border: 2px solid #6a1a8a;
}

.toc-faction-card.bandits .faction-icon {
    color: #8a7a1a;
    border: 2px solid #8a7a1a;
}

.toc-faction-card h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
}

.faction-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.faction-link:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* TOC - Autres règles */
.toc-autres-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.toc-autre-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.toc-autre-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.toc-autre-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.toc-autre-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.toc-autre-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.autre-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.autre-link:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* ===== MAIN CONTENT TABS ===== */
.rules-tabs {
    background-color: rgba(10, 10, 24, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 70px; /* Ajusté pour s'aligner avec la navbar */
    z-index: 90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(239, 203, 62, 0.3);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

.tab-button:hover {
    background-color: rgba(239, 203, 62, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
}

.tab-button i {
    margin-right: 0.5rem;
}

/* ===== MAIN CONTENT STYLES ===== */
.reglement-section {
    padding: 3rem 0;
    background-color: var(--bg-dark);
    position: relative;
}

.reglement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/illu/aventurier.jpg') center/cover no-repeat fixed;
    opacity: 0.05;
    z-index: 0;
}

.tabs-content {
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== RÈGLES GÉNÉRALES STYLES ===== */
.rules-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rules-section-header h2 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.rules-section-header p {
    opacity: 0.8;
}

.rules-separator {
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.rule-card {
    margin-bottom: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.rule-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.rule-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(10, 10, 24, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.rule-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 40px;
    text-align: center;
}

.rule-title {
    color: var(--primary-color);
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    flex-grow: 1;
}

.rule-content {
    padding: 2rem;
}

.rule-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rule-list-item {
    background-color: rgba(10, 10, 24, 0.5);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.rule-list-item:hover {
    background-color: rgba(10, 10, 24, 0.7);
}

.rule-list-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.rule-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rule-label {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rule-label i {
    margin-right: 0.4rem;
}

.rule-label.new {
    background-color: rgba(30, 180, 30, 0.3);
    border: 1px solid rgba(30, 180, 30, 0.7);
    color: #2ecc71;
}

/* Variation de couleurs pour les règles */
.rule-card.admin {
    border-left-color: #3498db;
}

.rule-card.roleplay {
    border-left-color: #2ecc71;
}

.rule-card.combat {
    border-left-color: #e74c3c;
}

.rule-card.economy {
    border-left-color: #f1c40f;
}

.rule-card.social {
    border-left-color: #9b59b6;
}

/* ===== LEXIQUE STYLES ===== */
.lexicon-intro {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.lexicon-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.lexicon-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.lexicon-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.lexicon-legend p {
    margin: 0 1rem 0 0;
}

.lexicon-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: var(--border-radius);
    position: sticky;
    top: calc(70px + 50px); /* Navbar + tabs height */
    z-index: 80;
}

.lexicon-alpha-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.2s ease;
}

.lexicon-alpha-nav a:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag.red {
    background-color: rgba(180, 30, 30, 0.3);
    border: 1px solid rgba(180, 30, 30, 0.7);
    color: #e74c3c;
}

.tag.green {
    background-color: rgba(30, 180, 30, 0.3);
    border: 1px solid rgba(30, 180, 30, 0.7);
    color: #2ecc71;
}

.tag.blue {
    background-color: rgba(30, 30, 180, 0.3);
    border: 1px solid rgba(30, 30, 180, 0.7);
    color: #3498db;
}

.lexicon-section {
    margin-bottom: 3rem;
    scroll-margin-top: 150px; /* Ajoute de la marge pour le défilement */
}

.lexicon-letter {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.lexicon-terms {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.lexicon-term {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lexicon-term:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lexicon-term h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.lexicon-term h4 .tag {
    font-size: 0.7rem;
    margin-left: 1rem;
}

.lexicon-term p {
    margin: 0;
    line-height: 1.7;
}

/* Effet de surbrillance pour les sections ciblées */
.highlight-section {
    animation: highlight-pulse 1.5s ease;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 rgba(239, 203, 62, 0); }
    30% { box-shadow: 0 0 20px rgba(239, 203, 62, 0.6); }
    100% { box-shadow: 0 0 0 rgba(239, 203, 62, 0); }
}

/* ===== FACTION STYLES ===== */
.faction-card {
    margin-bottom: 3rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faction-section {
    margin-bottom: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-left-width: 4px;
    border-left-style: solid;
}

.faction-section:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.faction-section.royaute {
    border-left-color: #1a3c8a;
    box-shadow: -1px 0 10px rgba(26, 60, 138, 0.3);
}

.faction-section.orcs {
    border-left-color: #8a1a1a;
    box-shadow: -1px 0 10px rgba(138, 26, 26, 0.3);
}

.faction-section.kirin-tor {
    border-left-color: #6a1a8a;
    box-shadow: -1px 0 10px rgba(106, 26, 138, 0.3);
}

.faction-section.brigands {
    border-left-color: #8a7a1a;
    box-shadow: -1px 0 10px rgba(138, 122, 26, 0.3);
}

.faction-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(10, 10, 24, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.faction-header .faction-icon {
    margin-bottom: 0;
}

.faction-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.faction-description {
    padding: 1.5rem 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}

.faction-rules {
    padding: 2rem;
}

.faction-rule {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(10, 10, 24, 0.5);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.faction-rule:last-child {
    margin-bottom: 0;
}

.faction-rule:hover {
    background-color: rgba(10, 10, 24, 0.7);
}

.rule-category {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rule-category i {
    margin-right: 0.5rem;
}

.faction-rule h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.faction-rule p {
    margin: 0;
    line-height: 1.7;
}

/* ===== PILLAGE STYLES ===== */
.pillage-rules-container {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.pillage-rule {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(10, 10, 24, 0.5);
    border-radius: var(--border-radius);
    border-left: 3px solid #e74c3c;
}

.pillage-rule:last-child {
    margin-bottom: 0;
}

.pillage-rule:hover {
    background-color: rgba(10, 10, 24, 0.7);
}

.pillage-rule h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.pillage-rule p {
    margin: 0;
    line-height: 1.7;
}

/* ===== BACK TO TOC ===== */
.back-to-toc {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    margin-top: 2rem;
    font-weight: 600;
}

.back-to-toc:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.back-to-toc i {
    margin-right: 0.8rem;
}

/* ===== MISE EN ÉVIDENCE DU TEXTE ===== */
.highlight-keyword {
    background-color: rgba(239, 203, 62, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* ===== ÉTATS DE CHARGEMENT ET D'ERREUR ===== */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.toc-loading {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 0.5rem;
}

.error-message {
    background-color: rgba(180, 30, 30, 0.2);
    border-left: 4px solid #b41e1e;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RECHERCHE STYLES ===== */
.toc-search {
    margin-top: 2rem;
    position: relative;
}

#toc-search-input {
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(239, 203, 62, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
}

#toc-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(239, 203, 62, 0.3);
}

.toc-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: rgba(10, 10, 24, 0.95);
    border: 1px solid rgba(239, 203, 62, 0.3);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
}

.search-result-item a:hover {
    background-color: rgba(239, 203, 62, 0.1);
}

.search-result-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    min-width: 20px;
    text-align: center;
}

.result-info {
    flex-grow: 1;
}

.result-info h4 {
    color: var(--primary-color);
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.result-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.no-results {
    padding: 1rem;
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.search-result-item.lexique .tag {
    margin-left: auto;
    font-size: 0.7rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-light);
}

/* Animation désactivée pour les éléments au défilement */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* Classe spéciale pour masquer du contenu visuellement mais le laisser accessible aux lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .toc-columns {
        flex-direction: column;
    }
    
    .toc-column {
        margin-bottom: 2rem;
    }
    
    .toc-column:last-child {
        margin-bottom: 0;
    }
    
    .faction-header {
        flex-direction: column;
        text-align: center;
    }
    
    .faction-header-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .faction-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .page-header.reglement-header {
        height: 40vh;
    }
    
    .toc-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .toc-tab {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .toc-tab.active::after {
        display: none;
    }
    
    .toc-tab.active {
        background-color: rgba(239, 203, 62, 0.1);
    }
    
    .rules-tabs {
        padding: 0.5rem 0;
        overflow-x: auto;
    }
    
    .tabs-nav {
        justify-content: flex-start;
        padding: 0.5rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .rule-header, 
    .faction-header {
        padding: 1rem;
    }
    
    .rule-content, 
    .faction-rules,
    .pillage-rules-container, 
    .lexicon-terms {
        padding: 1.5rem;
    }
    
    .lexicon-legend {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lexicon-legend p {
        margin-bottom: 0.5rem;
    }
    
    .lexicon-alpha-nav {
        padding: 0.5rem;
    }
    
    .lexicon-alpha-nav a {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .back-to-toc {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .toc-wrapper {
        padding: 1.5rem;
    }
    
    .toc-wrapper h2 {
        font-size: 1.8rem;
    }
    
    .rule-list-item, 
    .faction-rule, 
    .pillage-rule {
        padding: 1rem;
    }
    
    .rule-title, 
    .faction-title {
        font-size: 1.5rem;
    }
    
    .rule-list-item h4, 
    .faction-rule h4, 
    .pillage-rule h4 {
        font-size: 1.1rem;
    }
    
    .lexicon-term h4 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lexicon-term h4 .tag {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .rule-category {
        margin-bottom: 0.8rem;
    }
}

/* ===== AMÉLIORATION DE LA NAVIGATION STICKY ===== */
@supports (position: sticky) {
    .rules-tabs {
        position: sticky;
    }
}

/* ===== STYLES D'IMPRESSION ===== */
@media print {
    .navbar, 
    .back-to-top, 
    .rules-tabs, 
    .toc-container, 
    .back-to-toc, 
    .footer {
        display: none !important;
    }
    
    .page-header {
        height: auto !important;
        padding: 2rem 0 !important;
        margin-top: 0 !important;
    }
    
    .tab-content {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        break-before: page;
    }
    
    .rule-card, 
    .faction-card, 
    .pillage-rules-container, 
    .lexicon-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }
    
    body {
        background: none !important;
        color: #000 !important;
    }
    
    .rule-content, 
    .faction-rules, 
    .pillage-rules-container, 
    .lexicon-terms {
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .rule-list-item, 
    .faction-rule, 
    .pillage-rule {
        border-left-color: #888 !important;
    }
    
    .tag, 
    .rule-label,
    .rule-category {
        border: 1px solid #888 !important;
        background: none !important;
        color: #000 !important;
    }
}