/* STYLES SPÉCIALISÉS ACCESSOIRES OTAKU PETITS PRIX */

/* Variables pour la cohérence de la niche Otaku */
:root {
    --otaku-primary: #1e40af;
    --otaku-secondary: #3b82f6;
    --otaku-accent: #f59e0b;
    --otaku-gradient: linear-gradient(135deg, var(--otaku-primary), var(--otaku-secondary));
    --otaku-dark: #0f172a;
    --otaku-light: #f8fafc;
    --otaku-shadow: rgba(30, 64, 175, 0.15);
    --otaku-glow: rgba(59, 130, 246, 0.4);
}

/* Ajustement padding header intelligent */
.hero-category {
    padding-top: calc(70px + 2rem);
}

/* Hero Section Créatif */
.hero-category {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--otaku-gradient);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(30, 64, 175, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-accent {
    color: white;
    display: block;
}

.title-highlight {
    color: var(--otaku-accent);
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    display: block;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
    100% { text-shadow: 0 0 50px rgba(245, 158, 11, 0.8), 0 0 80px rgba(245, 158, 11, 0.3); }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 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);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--otaku-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--otaku-accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculateur ROI */
.roi-calculator-section {
    padding: 5rem 0;
    background: var(--otaku-light);
}

.calculator-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px var(--otaku-shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: end;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.calculator-input-group label {
    font-weight: 600;
    color: var(--otaku-primary);
    font-size: 0.9rem;
}

.calculator-input {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.calculator-input:focus {
    outline: none;
    border-color: var(--otaku-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculator-btn {
    padding: 1rem 2rem;
    background: var(--otaku-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--otaku-shadow);
}

.savings-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 15px;
    border: 1px solid var(--otaku-accent);
}

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

.savings-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.savings-label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.savings-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--otaku-primary);
}

.savings-value.highlight {
    color: var(--otaku-accent);
    font-size: 2rem;
}

/* Tableau Comparaison */
.price-comparison-section {
    padding: 5rem 0;
    background: white;
}

.comparison-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--otaku-shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.comparison-table thead {
    background: var(--otaku-gradient);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    vertical-align: middle;
}

.comparison-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

.product-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-cell strong {
    color: var(--otaku-primary);
    font-weight: 600;
}

.product-cell span {
    font-size: 0.85rem;
    color: #64748b;
}

.price-old {
    color: #ef4444;
    text-decoration: line-through;
    font-weight: 500;
}

.price-new {
    color: var(--otaku-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.savings-badge {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quality-stars {
    color: var(--otaku-accent);
    font-size: 1.1rem;
}

/* Articles Grid Masonry */
.articles-section {
    padding: 5rem 0;
    background: var(--otaku-light);
}

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

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--otaku-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.2);
}

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

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

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

.card-badge {
    background: var(--otaku-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.btn-icon {
    font-size: 1.2rem;
}

.card-content {
    padding: 2rem;
}

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

.card-link {
    color: var(--otaku-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--otaku-secondary);
}

.card-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.card-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.card-category {
    background: rgba(59, 130, 246, 0.1);
    color: var(--otaku-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    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;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--otaku-shadow);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.read-more-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Modal Gallery */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.gallery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
    color: var(--otaku-primary);
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.modal-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1rem;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.modal-btn.primary {
    background: var(--otaku-gradient);
    color: white;
}

.modal-btn.secondary {
    background: #f1f5f9;
    color: var(--otaku-primary);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* État vide */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .articles-masonry {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image-container {
        order: 1;
    }
    
    .modal-info {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .articles-masonry {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    /* Tableau responsive */
    .comparison-table-container {
        border-radius: 10px;
    }
    
    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr {
        display: block;
    }
    
    .comparison-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .comparison-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
    }
    
    .comparison-table td {
        border: none;
        position: relative;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .comparison-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--otaku-primary);
        min-width: 120px;
    }
    
    .modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .calculator-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .savings-grid {
        grid-template-columns: 1fr;
    }
}