/* Style principal pour le site RP Bofuri - NightOfKarma */

:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --kimono-blue: #1e3a8a;
    --silk-red: #e63946;
    --leather-black: #2b2d42;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    background-image: url('../images/bofuri-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--dark-color);
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--kimono-blue);
}

.logo span {
    color: var(--silk-red);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--kimono-blue);
}

nav ul li a.active {
    color: var(--kimono-blue);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--kimono-blue);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--kimono-blue);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #152a61;
}

/* Page Banner */
.page-banner {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-banner p {
    font-size: 1.2rem;
}

/* Specific Page Banners */
.stats-banner {
    background-image: url('../images/stats-banner.jpg');
}

.world-banner {
    background-image: url('../images/world-banner.jpg');
}

.gallery-banner {
    background-image: url('../images/gallery-banner.jpg');
}

/* Featured Sections */
.featured-sections {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

.featured-card:hover {
    transform: translateY(-10px);
}

.featured-icon {
    font-size: 2.5rem;
    color: var(--kimono-blue);
    margin-bottom: 20px;
}

.featured-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.featured-card p {
    margin-bottom: 20px;
    color: #6c757d;
}

.featured-link {
    color: var(--kimono-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.featured-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.featured-link:hover {
    color: var(--accent-color);
}

.featured-link:hover i {
    transform: translateX(5px);
}

/* About RP Section */
.about-rp {
    padding: 80px 0;
    background-color: rgba(30, 58, 138, 0.05);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--kimono-blue);
    margin-bottom: 30px;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Character Card */
.character-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--kimono-blue);
}

.world-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.world-btn {
    padding: 12px 25px;
    background-color: #f8f9fa;
    border: 2px solid var(--kimono-blue);
    color: var(--kimono-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.world-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.world-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.world-btn.active {
    background-color: var(--kimono-blue);
    color: white;
}

.character-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    margin-bottom: 40px;
    display: none;
}

.character-card.active {
    display: flex;
}

.character-image {
    width: 40%;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.character-info {
    width: 60%;
    padding: 30px;
}

.character-name {
    font-size: 2rem;
    color: var(--kimono-blue);
    margin-bottom: 10px;
}

.character-title {
    font-size: 1.2rem;
    color: var(--silk-red);
    margin-bottom: 20px;
}

.character-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    width: 100px;
    color: var(--dark-color);
}

.detail-value {
    color: var(--kimono-blue);
}

.character-description h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.character-description p {
    line-height: 1.8;
}

/* Character Story */
.character-story {
    padding: 80px 0;
    background-color: rgba(30, 58, 138, 0.05);
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--kimono-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--kimono-blue);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--kimono-blue);
    margin-bottom: 15px;
}

/* Character Relationships */
.character-relationships {
    padding: 80px 0;
}

.relationships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.relationship-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.relationship-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

.relationship-info {
    padding: 20px;
}

.relationship-info h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.relationship-type {
    color: var(--kimono-blue);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
}

.stats-overview {
    padding: 50px 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.character-summary {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.character-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

.character-info h3 {
    font-size: 1.8rem;
    color: var(--kimono-blue);
    margin-bottom: 10px;
}

.character-class {
    color: var(--silk-red);
    font-weight: 500;
    margin-bottom: 15px;
}

.character-level, .character-exp, .character-reputation {
    margin-bottom: 5px;
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
}

.stats-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-intro {
    margin-bottom: 30px;
}

.stat-item {
    margin-bottom: 25px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-name {
    font-weight: 600;
}

.stat-value {
    color: var(--kimono-blue);
    font-weight: 700;
}

.stat-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background-color: var(--kimono-blue);
    width: 0;
    transition: width 1.5s ease-out;
}

.stat-description, .stat-formula {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.stat-note {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background-color: rgba(30, 58, 138, 0.05);
}

.skills-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--kimono-blue);
    margin-right: 15px;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.skill-level {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin-right: 5px;
}

.dot.filled {
    background-color: var(--kimono-blue);
}

.level-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Equipment Section */
.equipment-section {
    padding: 80px 0;
}

.equipment-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.equipment-display {
    width: 40%;
    background-color: #f8f9fa;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-placeholder {
    font-size: 8rem;
    color: #adb5bd;
}

.equipment-list {
    width: 60%;
    padding: 30px;
}

.equipment-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.equipment-item:last-child {
    border-bottom: none;
}

.equipment-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--kimono-blue);
    margin-right: 15px;
}

.equipment-details h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.equipment-rarity {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.equipment-stats {
    color: var(--kimono-blue);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.equipment-description {
    font-size: 0.9rem;
    color: #6c757d;
}

/* World Info */
.world-info {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.world-overview {
    padding: 50px 0;
}

.world-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.world-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.world-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--kimono-blue);
    margin-bottom: 15px;
}

.info-card p {
    margin-bottom: 15px;
}

/* World Map */
.world-map-section {
    padding: 80px 0;
    background-color: rgba(30, 58, 138, 0.05);
}

.map-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.world-map {
    width: 60%;
    height: 400px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.map-placeholder {
    font-size: 4rem;
    color: #adb5bd;
    text-align: center;
}

.map-placeholder p {
    font-size: 1rem;
    margin-top: 10px;
}

.map-legend {
    width: 40%;
    padding: 30px;
    background-color: #f8f9fa;
}

.map-legend h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.map-legend ul {
    list-style: none;
}

.map-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Crafting System */
.crafting-system {
    padding: 80px 0;
}

.crafting-content {
    max-width: 800px;
    margin: 0 auto;
}

.crafting-description {
    margin-bottom: 40px;
}

.crafting-description p {
    margin-bottom: 20px;
}

.crafting-steps h3 {
    font-size: 1.5rem;
    color: var(--kimono-blue);
    margin-bottom: 20px;
}

.crafting-steps ol {
    list-style-position: inside;
    counter-reset: item;
}

.crafting-steps li {
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.crafting-steps li::before {
    content: counter(item);
    counter-increment: item;
    width: 30px;
    height: 30px;
    background-color: var(--kimono-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

.crafting-steps h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
}

.gallery-filter {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    margin: 0 10px;
}

.filter-btn:hover {
    color: var(--kimono-blue);
}

.filter-btn.active {
    color: var(--kimono-blue);
    position: relative;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--kimono-blue);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    height: 300px;
}

.gallery-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    font-size: 3rem;
    color: #adb5bd;
}

.gallery-placeholder p {
    font-size: 1rem;
    margin-top: 10px;
    color: #6c757d;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    padding: 20px;
    color: white;
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Upload Section */
.upload-section {
    padding: 80px 0;
    background-color: rgba(30, 58, 138, 0.05);
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upload-container p {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload label {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--kimono-blue);
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.file-preview {
    margin-top: 15px;
    height: 150px;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #adb5bd;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-preview p {
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.upload-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-image-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    margin: 20px 0;
    font-size: 3rem;
    color: #adb5bd;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--silk-red);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .character-card, .equipment-container, .map-container {
        flex-direction: column;
    }
    
    .character-image, .character-info, .equipment-display, .equipment-list, .world-map, .map-legend {
        width: 100%;
    }
    
    .character-image {
        height: 300px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .character-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .character-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
}

/* Styles spécifiques à la page des compétences */
.skills-container {
    background-color: #0f0f1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.skills-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.skills-tab {
    padding: 10px 20px;
    background-color: #1a1a2e;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skills-tab.active {
    background-color: #4a2986;
    color: white;
    border-color: #6a3cba;
}

.skills-tab:hover {
    background-color: #2a2a4e;
}

.skills-content {
    display: none;
    animation: fadeIn 0.5s;
}

.skills-content.active {
    display: block;
}

.skills-markdown {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

.skills-markdown h1 {
    color: #8e44ad;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.skills-markdown h2 {
    color: #9b59b6;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.skills-markdown h3 {
    color: #aa7ecc;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.skills-markdown h4 {
    color: #bb99dd;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.skills-markdown p {
    margin-bottom: 15px;
}

.skills-markdown ul, .skills-markdown ol {
    margin-bottom: 15px;
    margin-left: 20px;
}

.skills-markdown li {
    margin-bottom: 5px;
}

.skills-markdown code {
    background-color: #1e1e30;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.skills-markdown pre {
    background-color: #1e1e30;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.skills-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.skills-markdown th, .skills-markdown td {
    border: 1px solid #333;
    padding: 8px 12px;
    text-align: left;
}

.skills-markdown th {
    background-color: #1a1a2e;
}

.skills-markdown tr:nth-child(even) {
    background-color: #111122;
}

.skills-markdown blockquote {
    border-left: 3px solid #6a3cba;
    padding-left: 15px;
    color: #bbb;
    font-style: italic;
    margin-bottom: 15px;
}

.skills-markdown hr {
    border: none;
    border-top: 1px solid #333;
    margin: 20px 0;
}

/* Ajout de styles pour les emoji */
.skills-markdown em {
    font-style: normal;
    color: #8e44ad;
}

/* Animation de fade-in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Styles pour le modal et les fichiers markdown */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-box {
    background-color: #111;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transition: transform 0.3s ease;
    transform: scale(0.9);
    color: #e0e0e0;
}

.modal.active .modal-box {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

/* Styles pour le modal des fichiers markdown */
.skills-docs-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 80%;
    max-height: 600px;
    padding: 0;
    overflow: hidden;
}

.skills-docs-browser {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e;
}

.browser-header {
    background: #2d2d4a;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.browser-actions {
    display: flex;
    margin-right: 15px;
}

.browser-action {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.browser-action.red { background-color: #ff5f56; }
.browser-action.yellow { background-color: #ffbd2e; }
.browser-action.green { background-color: #27c93f; }

.browser-title {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #e0e0e0;
}

.skills-docs-browser {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.browser-sidebar {
    width: 250px;
    background-color: #1a1a2e;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.browser-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #0f0f1a;
    color: #e0e0e0;
}

.file-list {
    padding: 10px;
}

.file-item {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
    color: #ccc;
}

.file-item:hover {
    background-color: #2a2a4e;
}

.file-item.selected {
    background-color: #4a2986;
    color: #fff;
}

.file-item i {
    margin-right: 8px;
    color: #6a3cba;
}

.loading, .error, .select-prompt {
    padding: 20px;
    text-align: center;
    color: #888;
}

.error {
    color: #e74c3c;
}

/* Styles pour le contenu markdown rendu dans la fenêtre cachée */
.browser-content h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #9b59b6;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.browser-content h2 {
    font-size: 20px;
    margin: 16px 0 12px;
    color: #aa7ecc;
}

.browser-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #e0e0e0;
}

.browser-content ul, .browser-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.browser-content li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .skills-docs-browser {
        flex-direction: column;
    }

    .browser-sidebar {
        width: 100%;
        max-height: 150px;
    }
}