/* Casquettes Otaku - Styles créatifs et immersifs */

/* Variables couleurs niche Otaku */
:root {
    --otaku-primary: #1e40af;
    --otaku-secondary: #3b82f6;
    --otaku-accent: #f59e0b;
    --otaku-dark: #0f172a;
    --otaku-light: #f8fafc;
    --otaku-gradient: linear-gradient(135deg, var(--otaku-primary), var(--otaku-secondary));
    --otaku-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --anime-pink: #ff69b4;
    --anime-purple: #8b5cf6;
    --anime-cyan: #06d6a0;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Hero Section Immersif */
.hero-otaku {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1e3f 50%, #2d1b69 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-otaku::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="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    animation: starsTwinkle 20s linear infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-title .primary {
    color: var(--otaku-light);
    display: block;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--otaku-accent), var(--anime-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 3rem;
    font-weight: 300;
}

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

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--otaku-accent);
    text-shadow: var(--otaku-glow);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Navigation Catégories */
.category-nav {
    background: var(--otaku-light);
    border-bottom: 3px solid var(--otaku-primary);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--otaku-primary);
    color: var(--otaku-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--otaku-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    left: 0;
}

.tab-btn:hover,
.tab-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections de contenu */
.content-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--otaku-light) 0%, #e2e8f0 100%);
}

/* Accordéon Intelligent */
.accordion-smart {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--otaku-primary), var(--otaku-secondary));
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.accordion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--otaku-secondary), var(--otaku-accent));
    transition: left 0.3s ease;
    z-index: 0;
}

.accordion-header:hover::before {
    left: 0;
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.accordion-icon::after {
    transform: rotate(90deg);
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(0deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.guide-card {
    background: linear-gradient(135deg, white, #f8fafc);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-color: var(--otaku-accent);
    transform: translateY(-5px);
}

.guide-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guide-card h4 {
    color: var(--otaku-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.guide-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.popularity-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.bar-fill {
    height: 6px;
    border-radius: 3px;
    background: var(--otaku-gradient);
    transition: width 0.3s ease;
    position: relative;
    flex: 1;
}

.bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    animation: shimmer 2s ease-in-out infinite;
}

/* Gaming Trends */
.gaming-trends {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, white, #f8fafc);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.trend-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.trend-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--otaku-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.trend-info h4 {
    color: var(--otaku-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.trend-info p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.growth {
    background: linear-gradient(135deg, var(--anime-cyan), #10b981);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tableau Responsive Communauté */
.data-table-responsive {
    overflow-x: auto;
    padding: 2rem;
}

.otaku-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.otaku-stats-table th {
    background: var(--otaku-gradient);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    position: relative;
}

.otaku-stats-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--otaku-accent);
}

.otaku-stats-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.otaku-stats-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.anime-cat {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.anime-cat.shonen {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.anime-cat.seinen {
    background: linear-gradient(135deg, #4ecdc4, #45b7b8);
    color: white;
}

.anime-cat.shojo {
    background: linear-gradient(135deg, var(--anime-pink), #ff85c1);
    color: white;
}

.anime-cat.mecha {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.anime-cat.isekai {
    background: linear-gradient(135deg, var(--otaku-accent), #fbbf24);
    color: white;
}

.popularity-score {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.popularity-score.high {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.popularity-score.medium {
    background: linear-gradient(135deg, var(--otaku-accent), #fbbf24);
    color: white;
}

.trend {
    font-weight: 700;
}

.trend.up {
    color: #10b981;
}

.trend.stable {
    color: var(--otaku-accent);
}

/* Slider Tactile */
.slider-section {
    padding: 4rem 0;
    background: var(--otaku-dark);
    color: white;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-touch {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    padding: 2rem;
}

.collection-card {
    background: linear-gradient(135deg, white, #f8fafc);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--otaku-gradient);
}

.collection-card.legendary::before {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.collection-card.dark::before {
    background: linear-gradient(135deg, #1a1a1a, #4a5568);
}

.collection-card.kawaii::before {
    background: linear-gradient(135deg, var(--anime-pink), #ff85c1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    color: var(--otaku-primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.collection-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.collection-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

.collection-badge.exclusive {
    background: linear-gradient(135deg, #1a1a1a, #4a5568);
    color: white;
}

.collection-badge.new {
    background: linear-gradient(135deg, var(--anime-cyan), #10b981);
    color: white;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.character-item {
    text-align: center;
    padding: 0.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.character-item:hover {
    transform: scale(1.05);
}

.char-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    background: var(--otaku-gradient);
    border: 3px solid white;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.char-avatar::after {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.collection-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.collection-stats .stat {
    text-align: center;
}

.collection-stats .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--otaku-primary);
}

.collection-stats .label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--otaku-gradient);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--otaku-glow);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--otaku-accent);
}

/* Grille Articles */
.articles-grid-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--otaku-light) 0%, #e2e8f0 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--otaku-primary);
}

.section-title .accent {
    color: var(--otaku-accent);
}

.sorting-controls {
    display: flex;
    gap: 1rem;
}

.sort-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--otaku-primary);
    border-radius: 10px;
    background: white;
    color: var(--otaku-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--otaku-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

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

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--otaku-accent);
}

.card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .image-overlay {
    opacity: 1;
}

.category-tag {
    background: var(--otaku-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--otaku-accent);
    font-weight: 700;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    color: var(--otaku-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--otaku-accent);
}

.card-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.otaku-level {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--otaku-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popularity {
    font-size: 0.8rem;
    color: var(--otaku-accent);
    font-weight: 600;
}

.card-date {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--otaku-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-discover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--otaku-accent), #fbbf24);
    transition: left 0.3s ease;
}

.btn-discover:hover::before {
    left: 0;
}

.btn-discover:hover {
    transform: translateY(-2px);
    box-shadow: var(--otaku-glow);
}

.btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-discover:hover .btn-icon {
    transform: translateX(5px);
}

.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-articles h3 {
    color: var(--otaku-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Section Communauté */
.community-section {
    padding: 4rem 0;
    background: var(--otaku-dark);
    color: white;
}

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

.community-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
}

.community-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.community-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--otaku-accent);
}

.stat-big {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stat-big .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--otaku-accent);
    text-shadow: var(--otaku-glow);
}

.stat-big .label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-list .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.stat-list .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--otaku-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-info h4 {
    color: var(--otaku-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.badge-item:hover {
    transform: scale(1.05);
    border-color: var(--otaku-accent);
}

.badge-item.legendary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.1));
}

.badge-item.rare {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(196, 181, 253, 0.1));
}

.badge-item.common {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.1));
}

.badge-item.special {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
}

.badge-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes starsTwinkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .accordion-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .otaku-stats-table {
        font-size: 0.85rem;
    }
    
    .otaku-stats-table th,
    .otaku-stats-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .char-avatar {
        width: 50px;
        height: 50px;
    }
    
    .char-avatar::after {
        font-size: 1.2rem;
    }
}

/* Amélioration contraste pour accessibilité */
@media (prefers-contrast: high) {
    .hero-subtitle {
        color: rgba(248, 250, 252, 0.95);
    }
    
    .card-description {
        color: #475569;
    }
    
    .stat-list .stat-item {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Mode sombre système */
@media (prefers-color-scheme: dark) {
    .articles-grid-section {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .article-card {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .card-title a {
        color: var(--otaku-secondary);
    }
}

/* États de focus pour accessibilité */
.tab-btn:focus,
.sort-select:focus,
.btn-discover:focus,
.slider-btn:focus {
    outline: 3px solid var(--otaku-accent);
    outline-offset: 2px;
}

/* Optimisations print */
@media print {
    .hero-otaku,
    .slider-section,
    .community-section {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}