/* ===================================
   SRD DAGGERHEART INDEX - MODULE CSS
   ================================== */

/* Variables CSS pour cohérence */
:root {
    --srd-primary: #3498db;
    --srd-secondary: #2c3e50;
    --srd-accent: #e74c3c;
    --srd-success: #27ae60;
    --srd-warning: #f39c12;
    --srd-info: #17a2b8;
    --srd-light: #f8f9fa;
    --srd-dark: #2c3e50;
    --srd-card-text-dark: #333;
    --srd-gradient-primary: linear-gradient(135deg, #3498db, #2980b9);
    --srd-gradient-secondary: linear-gradient(135deg, #2c3e50, #34495e);
    --srd-gradient-hero: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --srd-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --srd-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --srd-border-radius: 12px;
    --srd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   POLICES MODERNES
   ================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    background: var(--srd-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ===================================
   GRILLE DE TUILES MODERNE
   ================================== */

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
}

.tile-card {
    background: white;
    border-radius: var(--srd-border-radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--srd-shadow);
    border: 2px solid transparent;
    transition: var(--srd-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* min-height: 180px; Commenté pour permettre aux cartes de s'adapter à la hauteur du contenu */
}

.tile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--srd-gradient-primary);
    transform: scaleX(0);
    transition: var(--srd-transition);
    transform-origin: left;
}

.tile-card:hover::before {
    transform: scaleX(1);
}

.tile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--srd-shadow-hover);
    border-color: var(--srd-primary);
}

.tile-card:active {
    transform: translateY(-4px);
}

.tile-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--srd-transition);
    line-height: 1;
}

.tile-icon img {
    width: 256px;
    height: 256px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    transition: var(--srd-transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.tile-card:hover .tile-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Styles spéciaux pour les émojis de monstres */
.monster-card .tile-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

/* Cadres pour les cartes de monstres par tier */
.monster-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Tier 1 - Vert (Débutant) */
.monster-card.tier-1 {
    border: 2px solid #27AE60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15);
}

.monster-card.tier-1:hover {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    transform: translateY(-5px);
    border-color: #229954;
}

/* Tier 2 - Bleu (Intermédiaire) */
.monster-card.tier-2 {
    border: 2px solid #3498DB;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
}

.monster-card.tier-2:hover {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transform: translateY(-5px);
    border-color: #2980B9;
}

/* Tier 3 - Orange (Difficile) */
.monster-card.tier-3 {
    border: 2px solid #F39C12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.15);
}

.monster-card.tier-3:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
    transform: translateY(-5px);
    border-color: #E67E22;
}

/* Tier 4 - Rouge (Légendaire) */
.monster-card.tier-4 {
    border: 2px solid #E74C3C;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.monster-card.tier-4:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    transform: translateY(-5px);
    border-color: #C0392B;
}

.tile-card:hover .tile-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.tile-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--srd-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 1.3;
}

.tile-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   GRILLE RESPONSIVE POUR LES DOMAINES
   ================================== */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 2 colonnes sur les grands écrans */
    gap: 1.5rem;
    /* Espace entre les éléments */
    padding: 1.5rem;
    background: var(--srd-light);
    border-radius: var(--srd-border-radius);
    box-shadow: var(--srd-shadow);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        /* Une seule colonne sur les petits écrans */
        padding: 1rem;
        gap: 1rem;
    }
}

.domain-container {
    background-color: white;
    /* Fond blanc pour chaque conteneur de domaine */
    padding: 1.2rem 1.5rem;
    /* Padding interne */
    border-left: 5px solid;
    /* Bordure colorée à gauche */
    border-radius: var(--srd-border-radius);
    /* Bords arrondis */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Ombre légère */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.domain-container:hover {
    transform: translateY(-5px);
    /* Effet au survol */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Ombre plus prononcée au survol */
}

.domain-container strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.1em;
    color: var(--srd-secondary);
    letter-spacing: -0.01em;
}

.domain-container em {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

/* Couleurs spécifiques pour les bordures de domaine */
.domain-container.domain-arcana {
    border-color: #c2185b;
}

.domain-container.domain-lame {
    border-color: #4CAF50;
}

.domain-container.domain-os {
    border-color: #795548;
}

.domain-container.domain-codex {
    border-color: #00796B;
}

.domain-container.domain-grace {
    border-color: #FFC107;
}

.domain-container.domain-minuit {
    border-color: #424242;
}

.domain-container.domain-sage {
    border-color: #689F38;
}

.domain-container.domain-splendeur {
    border-color: #FBC02D;
}

.domain-container.domain-valeur {
    border-color: #1976D2;
}

/* ===================================
   SECTIONS SPÉCIALISÉES
   ================================== */

.section-resources {
    margin-top: 3rem;
}

.section-container {
    background: var(--srd-light);
    padding: 2rem;
    border-radius: var(--srd-border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--srd-primary);
}

.section-container p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #666;
    line-height: 1.6;
}

.tiles-grid-resources {
    background: var(--srd-light);
    padding: 2rem;
    border-radius: var(--srd-border-radius);
}

.tiles-grid-tools {
    background: #fff3cd;
    padding: 2rem;
    border-radius: var(--srd-border-radius);
}

.section-tools {
    margin-top: 3rem;
}

.section-container-tools {
    background: #fff3cd;
    padding: 2rem;
    border-radius: var(--srd-border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--srd-warning);
}

/* ===================================
   CARTES SPÉCIALISÉES PAR COULEUR
   ================================== */

.tile-card-official {
    border-left: 4px solid #007bff;
}

.tile-card-license {
    border-left: 4px solid #28a745;
}

.tile-card-community {
    border-left: 4px solid #6f42c1;
}

.tile-card-download {
    border-left: 4px solid #dc3545;
}

.tile-card-discord {
    border-left: 4px solid #6f42c1;
}

.tile-card-faq {
    border-left: 4px solid #fd7e14;
}

.tile-card-critical {
    border-left: 4px solid #20c997;
}

.tile-card-generator {
    border-left: 4px solid #e67e22;
}

.tile-card-loot {
    border-left: 4px solid #f39c12;
}

.tile-card-tokens {
    border-left: 4px solid #9b59b6;
}

.tile-card-reference {
    border-left: 4px solid #28a745;
}

/* ===================================
   SECTION HÉRO SRD FRANÇAIS
   ================================== */

.srd-hero-section {
    background: var(--srd-gradient-hero);
    color: white;
    padding: 2rem 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.srd-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.srd-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.srd-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.srd-hero-subtitle strong {
    font-weight: 600;
}

.srd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.srd-feature-card {
    background: white;
    border-radius: var(--srd-border-radius);
    padding: 2rem;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: var(--srd-shadow);
    border: 2px solid transparent;
    transition: var(--srd-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* min-height: 180px; Commenté pour permettre aux cartes de s'adapter à la hauteur du contenu */
}

.srd-feature-card:link,
.srd-feature-card:visited,
.srd-feature-card:hover,
.srd-feature-card:active {
    text-decoration: none !important;
    color: inherit !important;
}

.srd-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--srd-shadow-hover);
    border-color: var(--srd-primary);
}

.srd-feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--srd-transition);
    line-height: 1;
}

.srd-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--srd-card-text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.srd-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 0 1rem;
}

.srd-card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.srd-card-list li {
    margin-bottom: 0.5rem;
    color: var(--srd-card-text-dark);
}

.srd-card-text {
    font-family: 'Inter', sans-serif;
    color: var(--srd-card-text-dark) !important;
    text-decoration: none !important;
    text-align: left;
    margin-top: auto;
}

.srd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.srd-stat-item {
    text-align: center;
}

.srd-stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.srd-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.srd-cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--srd-transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.srd-cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* ===================================
   FAQ SECTION
   ================================== */

.faq-section {
    margin-top: 3rem;
}

.faq-container {
    background: var(--srd-light);
    padding: 2rem;
    border-radius: var(--srd-border-radius);
    margin: 1.5rem 0;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--srd-primary);
    cursor: pointer;
    transition: var(--srd-transition);
}

.faq-item:hover {
    box-shadow: var(--srd-shadow);
    transform: translateY(-2px);
}

.faq-item[open] {
    border-left-color: var(--srd-accent);
}

.faq-item summary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--srd-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '▶';
    margin-right: 0.5rem;
    transition: var(--srd-transition);
    display: inline-block;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item p {
    margin: 0.5rem 0 0 0;
    color: #666;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.faq-item a {
    color: var(--srd-primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* ===================================
   FOOTER MODERNE
   ================================== */

.srd-footer {
    background: var(--srd-secondary);
    color: white;
    padding: 3rem 2rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.license-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--srd-border-radius);
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.license-logo {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
}

.license-text {
    text-align: left;
    max-width: 600px;
}

.license-text p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.license-text p:last-child {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.license-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.license-link a {
    color: #74b9ff;
    text-decoration: none;
}

.license-link a:hover {
    text-decoration: underline;
}

.footer-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info p:first-child {
    font-size: 0.9rem;
}

.footer-info p:last-child {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-info a {
    color: #74b9ff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 768px) {
    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .tile-card {
        padding: 1.5rem;
        /* min-height: 160px; Commenté pour permettre aux cartes de s'adapter à la hauteur du contenu */
    }

    .tile-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .tile-icon img {
        width: 80px;
        height: 80px;
    }

    .tile-title {
        font-size: 1.2rem;
    }

    .tile-desc {
        font-size: 0.9rem;
    }

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

    .srd-hero-title {
        font-size: 2.2rem;
    }

    .srd-hero-subtitle {
        font-size: 1.2rem;
    }

    .srd-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .srd-feature-card {
        padding: 1.5rem 1rem;
    }

    .srd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .srd-stat-number {
        font-size: 2.2rem;
    }

    .license-content {
        flex-direction: column;
        gap: 1rem;
    }

    .license-text {
        text-align: center;
    }

    .license-logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .tile-card {
        margin: 0 -0.5rem;
        border-radius: 8px;
        padding: 1.25rem;
    }

    .section-container,
    .section-container-tools,
    .tiles-grid-resources,
    .tiles-grid-tools {
        margin: 1rem -0.5rem;
        border-radius: 8px;
    }

    .srd-hero-section {
        margin: 2rem -0.5rem;
        border-radius: 8px;
        padding: 3rem 1.5rem;
    }

    .srd-hero-title {
        font-size: 1.8rem;
    }

    .srd-hero-subtitle {
        font-size: 1.1rem;
    }

    .srd-cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ===================================
   ANIMATIONS ET MICRO-INTERACTIONS
   ================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tile-card {
    animation: fadeInUp 0.6s ease-out;
}

.tile-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tile-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tile-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tile-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tile-card:nth-child(5) {
    animation-delay: 0.5s;
}

.tile-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* ===================================
   ACCESSIBILITÉ
   ================================== */

/* Skip links - masqués visuellement mais accessibles au clavier */
.skip-links {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--srd-secondary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-links:focus {
    top: 6px;
}

@media (prefers-reduced-motion: reduce) {

    .tile-card,
    .tile-icon,
    .srd-feature-card,
    .faq-item {
        animation: none;
        transition: none;
    }

    .tile-card:hover {
        transform: none;
    }

    .tile-card:hover .tile-icon {
        transform: none;
    }
}

/* Focus visible pour navigation clavier */
.tile-card:focus-visible,
.srd-cta-button:focus-visible,
.faq-item:focus-visible {
    outline: 2px solid var(--srd-primary);
    outline-offset: 2px;
}

/* ===================================
   AIDES DE JEU - STYLES SPÉCIFIQUES
   ================================== */

/* Badges pour les cartes d'outils */
.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--srd-transition);
}

.badge-pj {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.badge-mj {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: white;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.badge-mixte {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    border: 2px solid rgba(243, 156, 18, 0.3);
}

.tile-card:hover .badge {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Badges pour les Tiers de monstres */
.badge-tier-1 {
    background: linear-gradient(135deg, #27AE60, #229954);
    color: white;
    border: 2px solid rgba(39, 174, 96, 0.3);
}

.badge-tier-2 {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.badge-tier-3 {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    border: 2px solid rgba(243, 156, 18, 0.3);
}

.badge-tier-4 {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: white;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

/* Section feuilles de personnage */
.character-sheets-section {
    margin: 1.5rem 0;
}

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

.character-sheet-card {
    border-radius: var(--srd-border-radius);
    padding: 1.2rem;
    box-shadow: var(--srd-shadow);
    transition: var(--srd-transition);
}

.character-sheet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--srd-shadow-hover);
}

.character-sheet-french {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.character-sheet-tools {
    background: white;
    border: 2px solid #e9ecef;
}

.character-sheet-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.character-sheet-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.character-sheet-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.character-sheet-french .character-sheet-header h4 {
    color: white;
}

.character-sheet-tools .character-sheet-header h4 {
    color: var(--srd-secondary);
}

.character-sheet-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.character-sheet-french .character-sheet-header p {
    opacity: 0.95;
}

.character-sheet-tools .character-sheet-header p {
    color: #7f8c8d;
}

.character-sheet-features {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.character-sheet-tools .character-sheet-features {
    background: #f8f9fa;
    border-left: 4px solid var(--srd-primary);
}

.character-sheet-features h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.character-sheet-french .character-sheet-features h5 {
    color: white;
}

.character-sheet-tools .character-sheet-features h5 {
    color: var(--srd-secondary);
}

.character-sheet-features ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.character-sheet-french .character-sheet-features ul {
    opacity: 0.95;
}

.character-sheet-tools .character-sheet-features ul {
    color: #7f8c8d;
}

.character-sheet-features a {
    text-decoration: none;
    font-weight: 500;
}

.character-sheet-tools .character-sheet-features a {
    color: var(--srd-primary);
}

.character-sheet-tools .character-sheet-features a:hover {
    text-decoration: underline;
}

.character-sheet-download {
    text-align: center;
}

.character-sheet-tips {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--srd-success);
}

.character-sheet-tips h4 {
    color: var(--srd-success);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tips-grid strong {
    color: var(--srd-secondary);
    font-family: 'Inter', sans-serif;
}

.tips-grid small {
    color: #7f8c8d;
    font-family: 'Inter', sans-serif;
}

/* Filtres pour les outils */
.filter-section {
    margin: 2rem 0;
}

.filter-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--srd-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--srd-transition);
    opacity: 0.7;
}

.filter-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--srd-shadow);
}

.filter-btn.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn-all.active {
    background: var(--srd-gradient-primary);
    color: white;
    border-color: var(--srd-primary);
}

.filter-btn-pj.active {
    background: var(--srd-gradient-primary);
    color: white;
    border-color: var(--srd-primary);
}

.filter-btn-mj.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: var(--srd-accent);
}

.filter-btn-mixte.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: var(--srd-warning);
}

/* Responsive pour aides de jeu */
@media (max-width: 768px) {
    .character-sheets-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .character-sheet-card {
        padding: 1rem;
    }

    .filter-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 250px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .character-sheet-card {
        margin: 0 -0.5rem;
        border-radius: 8px;
    }

    .character-sheet-tips {
        margin: 1rem -0.5rem;
        border-radius: 8px;
    }
}

/* ===================================
   GUIDE DU MAÎTRE DE JEU (MONSTRES.HTML)
   ================================== */
.gm-guide-section {
    background: var(--srd-light);
    padding: 2rem;
    border-radius: var(--srd-border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid var(--srd-primary);
    box-shadow: var(--srd-shadow);
}

.gm-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.gm-guide-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--srd-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.gm-guide-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--srd-secondary);
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gm-guide-sub-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #1a3a5d;
    margin-top: 0;
    margin-bottom: 1rem;
}

.tier-list,
.combat-type-list,
.tips-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #555;
    list-style: none;
    /* Supprime les puces par défaut */
}

.tier-item,
.combat-type-item,
.tip-item {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    /* Crée un espace pour les icônes personnalisées si besoin */
    position: relative;
}

/* Couleurs spécifiques pour les tiers dans la liste */
.tier-item.tier-1 strong {
    color: #28a745;
}

.tier-item.tier-2 strong {
    color: #ffc107;
}

.tier-item.tier-3 strong {
    color: #fd7e14;
}

.tier-item.tier-4 strong {
    color: #dc3545;
}

.gm-tip-highlight {
    font-weight: bold;
    color: var(--srd-primary);
    margin-top: 2rem;
    padding: 1rem;
    background: #e7f3ff;
    /* Un fond léger pour l'astuce */
    border-radius: var(--srd-border-radius);
    border-left: 5px solid var(--srd-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gm-tip-highlight span {
    font-size: 1.5em;
    line-height: 1;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .gm-guide-grid {
        grid-template-columns: 1fr;
    }

    .gm-guide-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gm-guide-section {
        padding: 1rem;
    }

    .gm-guide-subtitle {
        font-size: 1.3rem;
    }

    .gm-guide-sub-subtitle {
        font-size: 1.1rem;
    }

    .gm-tip-highlight {
        font-size: 0.9em;
        padding: 0.8rem;
    }
}

/* Styles pour les domaines dans les tuiles de classes */
.tile-domains {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.domain-badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0.2em;
    vertical-align: middle;
    transition: all 0.2s ease-in-out;
}

/* Couleurs des badges de domaine */
.domain-badge.domain-arcana {
    background-color: #fce4ec;
    /* Light pink for Arcana */
    color: #c2185b;
    /* Darker pink for text */
    border: 1px solid #f8bbd0;
}

.domain-badge.domain-lame {
    background-color: #e0f2f7;
    /* Light cyan for Lame */
    color: #00796b;
    /* Darker cyan for text */
    border: 1px solid #b2ebf2;
}

.domain-badge.domain-os {
    background-color: #fbe9e7;
    /* Light orange for Os */
    color: #d84315;
    /* Darker orange for text */
    border: 1px solid #ffccbc;
}

.domain-badge.domain-codex {
    background-color: #e8eaf6;
    /* Light indigo for Codex */
    color: #3f51b5;
    /* Darker indigo for text */
    border: 1px solid #c5cae9;
}

.domain-badge.domain-grace {
    background-color: #ede7f6;
    /* Light deep purple for Grace */
    color: #512da8;
    /* Darker deep purple for text */
    border: 1px solid #d1c4e9;
}

.domain-badge.domain-minuit {
    background-color: #e3f2fd;
    /* Light blue for Minuit */
    color: #1976d2;
    /* Darker blue for text */
    border: 1px solid #90caf9;
}

.domain-badge.domain-sage {
    background-color: #e8f5e9;
    /* Light green for Sage */
    color: #388e3c;
    /* Darker green for text */
    border: 1px solid #c8e6c9;
}

.domain-badge.domain-splendeur {
    background-color: #fffde7;
    /* Light yellow for Splendeur */
    color: #fbc02d;
    /* Darker yellow for text */
    border: 1px solid #fff9c4;
}

.domain-badge.domain-valeur {
    background-color: #ffe0b2;
    /* Light orange for Valeur */
    color: #e65100;
    /* Darker orange for text */
    border: 1px solid #ffcc80;
}

/* ===================================
   INFOS BOX & CTA CARDS
   ================================== */
.info-box {
    background-color: var(--srd-light);
    padding: 1.5rem;
    border-radius: var(--srd-border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--srd-shadow);
    border-left: 5px solid var(--srd-primary);
    transition: var(--srd-transition);
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--srd-shadow-hover);
}

.info-box p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--srd-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-introduction-box {
    border-left: 5px solid var(--srd-info);
}

.info-box-success {
    border-left-color: var(--srd-success);
}

.info-box-warning {
    border-left-color: var(--srd-warning);
}

.info-box-primary {
    border-left-color: var(--srd-primary);
}

.info-box-info {
    border-left-color: var(--srd-info);
}

.info-box-danger {
    border-left-color: var(--srd-accent);
}

.cta-card {
    background: var(--srd-gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--srd-border-radius);
    text-align: center;
    box-shadow: var(--srd-shadow);
    margin: 2rem 0;
    transition: var(--srd-transition);
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--srd-shadow-hover);
}

.cta-icon {
    font-size: 3em;
    margin-bottom: 0.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.cta-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-desc {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--srd-transition);
    display: inline-block;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
    background: var(--srd-accent);
    border-color: var(--srd-accent);
    color: white;
}

.cta-button-secondary:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* Dual Dice Grid */
.dual-dice-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.dual-dice-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: var(--srd-border-radius);
    box-shadow: var(--srd-shadow);
    border-left: 5px solid;
    transition: var(--srd-transition);
}

.dual-dice-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--srd-shadow-hover);
}

.dual-dice-item strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1em;
}

.dual-dice-item em {
    font-size: 0.9em;
    color: #555;
}

.dice-hope {
    border-left-color: var(--srd-success);
}

.dice-hope strong {
    color: var(--srd-success);
}

.dice-fear {
    border-left-color: var(--srd-accent);
}

.dice-fear strong {
    color: var(--srd-accent);
}

/* Asymmetric System */
.asymmetric-side {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: var(--srd-border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--srd-shadow);
    border-left: 5px solid;
}

.player-side {
    border-left-color: var(--srd-success);
}

.player-side .asymmetric-title {
    color: var(--srd-success);
}

.gm-side {
    border-left-color: var(--srd-accent);
}

.gm-side .asymmetric-title {
    color: var(--srd-accent);
}

.asymmetric-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.asymmetric-side p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.asymmetric-box-detail {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 3px solid;
}

.player-side .asymmetric-box-detail {
    border-left-color: var(--srd-success);
    background: rgba(39, 174, 96, 0.1);
}

.gm-side .asymmetric-box-detail {
    border-left-color: var(--srd-accent);
    background: rgba(231, 76, 60, 0.1);
}

.asymmetric-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--srd-secondary);
}

.player-side .asymmetric-subtitle {
    color: var(--srd-success);
}

.gm-side .asymmetric-subtitle {
    color: var(--srd-accent);
}

.asymmetric-box-detail ul,
.asymmetric-box-detail ol {
    margin: 0;
    padding-left: 1.8rem;
    font-size: 0.95em;
    line-height: 1.5;
}

.asymmetric-box-detail li {
    margin-bottom: 0.4rem;
}

.asymmetric-link-desc {
    font-size: 0.9em;
    margin-top: -0.5rem;
}

.asymmetric-link {
    color: var(--srd-accent);
    text-decoration: none;
    font-weight: bold;
    transition: var(--srd-transition);
}

.asymmetric-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Styled Table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95em;
    background-color: white;
    border-radius: var(--srd-border-radius);
    overflow: hidden;
    box-shadow: var(--srd-shadow);
}

.styled-table th,
.styled-table td {
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.styled-table th {
    background-color: #f0f0f0;
    font-weight: bold;
    color: var(--srd-secondary);
    text-transform: uppercase;
    font-size: 0.9em;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.styled-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Table Colors */
.success-row {
    background-color: #e6ffe6;
    /* Light green for success */
}

.info-row {
    background-color: #e6f7ff;
    /* Light blue for info */
}

.warning-row {
    background-color: #fffde6;
    /* Light yellow for warning */
}

.danger-row {
    background-color: #ffe6e6;
    /* Light red for danger */
}

/* Text colors */
.text-success {
    color: var(--srd-success) !important;
}

.text-primary {
    color: var(--srd-primary) !important;
}

.text-warning {
    color: var(--srd-warning) !important;
}

.text-danger {
    color: var(--srd-accent) !important;
}

.text-center {
    text-align: center !important;
}

.font-weight-bold {
    font-weight: bold !important;
}

.main-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    /* Sommaire 30%, Contenu principal 70% */
    gap: 0.2cm;
    /* Réduction de l'espace entre les colonnes à 0.2cm */
    max-width: 90rem;
    /* Largeur maximale pour le layout global */
    margin: 0 auto;
    /* Centre le layout */
    align-items: flex-start;
    /* Aligne les éléments en haut */
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        /* Une seule colonne sur les écrans plus petits */
        gap: 1rem;
        padding: 1rem;
    }
}

/* Styles pour la table des matières */
.table-of-contents {
    background-color: white;
    /* Garde le fond blanc */
    padding: 1.5rem 0;
    /* Suppression du padding horizontal pour éviter un espacement supplémentaire */
    border-radius: var(--srd-border-radius);
    box-shadow: var(--srd-shadow);
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 900;
}

.toc-header {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--srd-primary);
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.toc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.75rem;
}

.toc-nav a {
    text-decoration: none;
    color: var(--srd-secondary);
    /* Couleur par défaut */
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    white-space: normal;
    overflow-wrap: break-word;
}

.toc-nav a:hover {
    background-color: rgba(52, 152, 219, 0.05);
    /* Fond très léger au survol */
    color: var(--srd-primary);
    /* Couleur du texte principale au survol */
    transform: translateX(5px);
}

.toc-nav a.active {
    font-weight: bold;
    background-color: transparent;
    /* Pas de fond pour l'actif */
    color: var(--srd-primary);
    /* Couleur du texte active */
    border-left: 3px solid var(--srd-primary);
    /* Bordure gauche pour l'actif */
    padding-left: 0.7rem;
    /* Ajuster le padding pour la bordure */
}

/* Masquer les éléments mobiles sur grand écran */
@media (min-width: 1025px) {

    .menu-toggle,
    .sidebar-overlay {
        display: none !important;
    }

    .table-of-contents {
        display: block !important;
    }
}

/* Afficher les éléments mobiles sur petit écran et masquer le sommaire */
@media (max-width: 1024px) {

    .menu-toggle,
    .sidebar-overlay {
        display: block !important;
    }

    .table-of-contents {
        display: none !important;
    }

    /* Styles pour le sommaire mobile si activé par JS */
    .table-of-contents.active-mobile-menu {
        display: block !important;
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 250px;
        z-index: 1000;
        background-color: white;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .table-of-contents.active-mobile-menu.open {
        transform: translateX(0%);
    }
}

.page-container {
    padding: 0;
    /* Supprime tout padding interne */
    margin: 0;
    /* Supprime toute marge externe */
}

.main-content {
    max-width: 50rem;
    margin: 0 !important;
    /* Forcer la marge à zéro pour éviter le centrage et le problème d'espacement */
    padding: 1rem 0 !important;
    /* Forcer le padding vertical, supprimer le padding horizontal */
}

.character-stats {
    display: flex;
    flex-wrap: wrap;
    /* Permet aux groupes de passer à la ligne */
    gap: 0.8rem;
    /* Espacement entre les groupes de statistiques */
    margin-bottom: 1rem;
}

.stat-group {
    flex: 1 1 calc(50% - 0.4rem);
    /* Deux colonnes avec un petit espace */
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    /* Réduire le padding interne */
    border-radius: var(--srd-border-radius-small);
    margin-bottom: 0;
    /* Supprimer la marge inférieure pour flexbox */
    min-width: 150px;
    /* Assure que les colonnes ne sont pas trop petites */
}

.stat-group h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    /* Légèrement réduire la taille du titre */
    margin-bottom: 0.5rem;
    /* Réduire la marge inférieure du titre */
    color: var(--srd-accent-color);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.4rem;
    border-radius: var(--srd-border-radius-small);
}

.stat-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    /* Auto-ajustement des colonnes */
    gap: 0.2rem 0.5rem;
    /* Réduire l'espace entre les éléments de liste */
}

.stat-group li {
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: none;
    /* Supprimer la bordure pour un look plus compact */
    font-size: 0.85rem;
    line-height: 1.2;
}

.stat-group li strong {
    display: inline;
    margin-bottom: 0;
    color: var(--srd-text-color);
}

.stat-group ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.character-personality {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    /* Réduire le padding */
    border-radius: var(--srd-border-radius);
    margin-top: 0.8rem;
    /* Réduire la marge supérieure */
    font-size: 0.9em;
    line-height: 1.4;
}

.character-sheet-french .character-personality {
    color: white;
}

.character-sheet-tools .character-personality {
    color: #666;
    background: #fdfdfd;
    border-left-color: var(--srd-primary);
}

@media (max-width: 768px) {
    .character-sheets-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .character-sheet-card {
        padding: 1rem;
    }

    .filter-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 250px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .character-sheet-card {
        margin: 0 -0.5rem;
        border-radius: 8px;
    }

    .character-sheet-tips {
        margin: 1rem -0.5rem;
        border-radius: 8px;
    }
}