/**
 * Auto4Tuning - Style Tuning Agressif
 * Thème néon racing
 */

:root {
    /* Couleurs Tuning */
    --primary: #0a0a0a;
    --primary-light: #1a1a1a;
    --secondary: #111111;
    --accent: #ff6b00;
    --accent-light: #ff8c33;
    --neon-blue: #00d4ff;
    --neon-pink: #ff0066;
    --neon-green: #00ff88;
    --text-light: #ffffff;
    --text-muted: #888888;
    --danger: #ff3333;
    
    /* Gradients */
    --gradient-fire: linear-gradient(135deg, #ff6b00 0%, #ff0066 100%);
    --gradient-neon: linear-gradient(135deg, #00d4ff 0%, #ff6b00 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    
    /* Effets */
    --glow-orange: 0 0 20px rgba(255, 107, 0, 0.5);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    
    /* Layout */
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
    text-shadow: var(--glow-orange);
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.top-bar-text {
    color: var(--text-muted);
}

.top-bar-link {
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.8));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.8)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 107, 0, 1)); }
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-accent {
    color: var(--accent) !important;
    text-shadow: var(--glow-orange);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-fire);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
    text-shadow: var(--glow-orange);
}

.dropdown-menu {
    background: var(--primary-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--glow-orange);
}

.dropdown-item {
    color: var(--text-light);
    font-family: var(--font-body);
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--accent);
    color: var(--primary);
}

/* Search Form */
.search-form .form-control {
    background: var(--secondary);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--text-light);
    border-radius: var(--radius) 0 0 var(--radius);
}

.search-form .form-control:focus {
    background: var(--secondary);
    border-color: var(--accent);
    box-shadow: var(--glow-orange);
    color: var(--text-light);
}

.search-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn-accent {
    background: var(--gradient-fire);
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 25px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-orange);
    color: var(--text-light);
}

.btn-neon {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: var(--primary);
    box-shadow: var(--glow-blue);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--primary));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: var(--glow-orange);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: var(--glow-orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section Titles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-fire);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Article Cards */
.article-card {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 107, 0, 0.1);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-fire);
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 0, 0.2);
}

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

.article-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-fire);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-orange);
}

.article-card-body {
    padding: 25px;
}

.article-card-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text-light);
}

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

.article-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-card-meta i {
    color: var(--accent);
}

/* Featured Article */
.featured-article {
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(10, 10, 10, 0.95));
}

.featured-article-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: var(--glow-orange);
}

/* Sidebar */
.sidebar-widget {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--secondary);
    border-radius: var(--radius);
    color: var(--text-light);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(255, 107, 0, 0.1);
    border-left-color: var(--accent);
    color: var(--accent);
    transform: translateX(5px);
}

.category-list .badge {
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Popular Posts */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: var(--transition);
}

.popular-post:hover .popular-post-image {
    border-color: var(--accent);
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h6 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.popular-post-content h6 a {
    color: var(--text-light);
}

.popular-post-content h6 a:hover {
    color: var(--accent);
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article Page */
.article-header {
    background: var(--gradient-dark);
    padding: 60px 0;
    position: relative;
    border-bottom: 3px solid var(--accent);
}

.article-header::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,0,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: var(--glow-orange);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--accent);
}

.article-content {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.article-featured-image {
    margin: -40px -40px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--accent);
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-body a {
    color: var(--neon-blue);
    text-decoration: underline;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--secondary);
    border-top: 3px solid var(--accent);
}

.footer-main {
    padding: 60px 0;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand i {
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.8));
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.footer-bottom {
    background: var(--primary);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-fire);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--glow-orange);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--secondary);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: "›";
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    background: var(--secondary);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--text-light);
    padding: 10px 18px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--gradient-fire);
    border-color: var(--accent);
    box-shadow: var(--glow-orange);
}

.page-item.disabled .page-link {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--text-muted);
}

/* Forms */
.form-control, .form-select {
    background: var(--secondary);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--text-light);
    padding: 12px 18px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: var(--secondary);
    border-color: var(--accent);
    box-shadow: var(--glow-orange);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Alerts */
.alert-danger {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

/* Background Classes */
.bg-dark-gradient {
    background: var(--gradient-dark);
}

/* Badge */
.badge.bg-accent {
    background: var(--gradient-fire) !important;
}

/* Card */
.card {
    background: var(--primary-light);
    border: 1px solid rgba(255, 107, 0, 0.1);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-fire);
    z-index: 9999;
    transition: width 0.1s;
}

/* Racing Stripes Effect */
.racing-stripes {
    position: relative;
    overflow: hidden;
}

.racing-stripes::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 107, 0, 0.1) 10px,
        rgba(255, 107, 0, 0.1) 20px
    );
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .article-content {
        padding: 25px;
        margin-top: -20px;
    }
    
    .article-featured-image {
        margin: -25px -25px 20px;
    }
    
    .featured-article {
        height: 350px;
    }
}
