/**
 * Brun Automobiles - Style Garage Industriel
 * Design brut, mécanique et professionnel
 */

/* Custom Properties */
:root {
    --garage-black: #0a0a0a;
    --garage-dark: #141414;
    --garage-gray: #1f1f1f;
    --garage-metal: #2a2a2a;
    --garage-steel: #3d3d3d;
    --garage-yellow: #f59e0b;
    --garage-orange: #ea580c;
    --garage-red: #dc2626;
    --garage-white: #fafafa;
    --garage-light: #e5e5e5;
    --garage-muted: #a3a3a3;
    
    --font-industrial: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Roboto', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
}

/* Base overrides for Tailwind */
body {
    font-family: var(--font-body);
    background: var(--garage-black);
    color: var(--garage-light);
}

/* Industrial Header */
.garage-header {
    background: linear-gradient(180deg, var(--garage-dark) 0%, var(--garage-black) 100%);
    border-bottom: 3px solid var(--garage-yellow);
    position: relative;
}

.garage-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--garage-yellow) 0px,
        var(--garage-yellow) 20px,
        var(--garage-black) 20px,
        var(--garage-black) 40px
    );
}

/* Logo Style */
.garage-logo {
    font-family: var(--font-industrial);
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--garage-white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.garage-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--garage-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.garage-logo span {
    color: var(--garage-yellow);
}

/* Navigation */
.garage-nav a {
    font-family: var(--font-industrial);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--garage-light);
    padding: 8px 16px;
    position: relative;
    transition: all 0.3s ease;
}

.garage-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--garage-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.garage-nav a:hover::after,
.garage-nav a.active::after {
    width: 100%;
}

.garage-nav a:hover {
    color: var(--garage-yellow);
}

/* Hero Section */
.garage-hero {
    background: 
        linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(20,20,20,0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.garage-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--garage-yellow) 0px,
        var(--garage-yellow) 30px,
        transparent 30px,
        transparent 60px
    );
}

.garage-hero-title {
    font-family: var(--font-industrial);
    font-size: 4rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Industrial Badge */
.garage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--garage-yellow);
    color: var(--garage-black);
    padding: 6px 16px;
    font-family: var(--font-industrial);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

/* Cards Industrial Style */
.garage-card {
    background: var(--garage-dark);
    border: 1px solid var(--garage-steel);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.garage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--garage-yellow);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.garage-card:hover::before {
    transform: scaleY(1);
}

.garage-card:hover {
    border-color: var(--garage-yellow);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1);
}

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

.garage-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

.garage-card:hover .garage-card-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.garage-card-category {
    position: absolute;
    top: 15px;
    left: 0;
    background: var(--garage-yellow);
    color: var(--garage-black);
    padding: 4px 15px 4px 10px;
    font-family: var(--font-industrial);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

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

.garage-card-title {
    font-family: var(--font-industrial);
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--garage-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.garage-card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.garage-card-title a:hover {
    color: var(--garage-yellow);
}

.garage-card-excerpt {
    color: var(--garage-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.garage-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--garage-muted);
    font-family: var(--font-mono);
}

.garage-card-meta i {
    color: var(--garage-yellow);
}

/* Featured Card */
.garage-featured {
    position: relative;
    min-height: 450px;
    background: var(--garage-dark);
    border: 2px solid var(--garage-steel);
    overflow: hidden;
}

.garage-featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(50%);
    transition: all 0.5s ease;
}

.garage-featured:hover .garage-featured-bg {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.garage-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 100%);
}

.garage-featured-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.garage-featured-title {
    font-family: var(--font-industrial);
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--garage-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Section Titles */
.garage-section-title {
    font-family: var(--font-industrial);
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--garage-white);
    position: relative;
    display: inline-block;
}

.garage-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--garage-yellow);
}

/* Sidebar Widgets */
.garage-widget {
    background: var(--garage-dark);
    border: 1px solid var(--garage-steel);
    padding: 25px;
    margin-bottom: 25px;
}

.garage-widget-title {
    font-family: var(--font-industrial);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--garage-yellow);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--garage-steel);
    display: flex;
    align-items: center;
    gap: 10px;
}

.garage-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.garage-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--garage-gray);
    color: var(--garage-light);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.garage-category-list a:hover,
.garage-category-list a.active {
    background: var(--garage-metal);
    border-left-color: var(--garage-yellow);
    color: var(--garage-yellow);
}

.garage-category-list .count {
    background: var(--garage-steel);
    padding: 2px 10px;
    font-size: 0.8rem;
}

/* Mini Posts */
.garage-mini-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--garage-steel);
}

.garage-mini-post:last-child {
    border-bottom: none;
}

.garage-mini-post-image {
    width: 70px;
    height: 70px;
    overflow: hidden;
    flex-shrink: 0;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.garage-mini-post:hover .garage-mini-post-image {
    filter: grayscale(0%);
}

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

.garage-mini-post-title {
    font-family: var(--font-industrial);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--garage-white);
    margin-bottom: 5px;
    line-height: 1.3;
}

.garage-mini-post-title:hover {
    color: var(--garage-yellow);
}

.garage-mini-post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--garage-muted);
}

/* Buttons */
.garage-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-industrial);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.garage-btn-primary {
    background: var(--garage-yellow);
    color: var(--garage-black);
}

.garage-btn-primary:hover {
    background: var(--garage-orange);
    transform: translateX(5px);
}

.garage-btn-outline {
    background: transparent;
    border: 2px solid var(--garage-yellow);
    color: var(--garage-yellow);
    clip-path: none;
}

.garage-btn-outline:hover {
    background: var(--garage-yellow);
    color: var(--garage-black);
}

/* Article Content */
.garage-article-header {
    background: var(--garage-dark);
    border-bottom: 4px solid var(--garage-yellow);
    padding: 60px 0;
}

.garage-article-title {
    font-family: var(--font-industrial);
    font-size: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--garage-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.garage-article-content {
    background: var(--garage-dark);
    border: 1px solid var(--garage-steel);
    padding: 40px;
}

.garage-article-lead {
    font-size: 1.2rem;
    color: var(--garage-yellow);
    line-height: 1.8;
    padding-left: 20px;
    border-left: 4px solid var(--garage-yellow);
    margin-bottom: 30px;
}

.garage-article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--garage-light);
}

.garage-article-body h2 {
    font-family: var(--font-industrial);
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--garage-white);
    margin: 40px 0 20px;
}

.garage-article-body h3 {
    font-family: var(--font-industrial);
    font-size: 1.4rem;
    color: var(--garage-yellow);
    margin: 30px 0 15px;
}

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

.garage-article-body img {
    max-width: 100%;
    margin: 30px 0;
    filter: grayscale(20%);
}

.garage-article-body blockquote {
    background: var(--garage-gray);
    border-left: 4px solid var(--garage-yellow);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--garage-muted);
}

/* Footer */
.garage-footer {
    background: var(--garage-dark);
    border-top: 4px solid var(--garage-yellow);
    position: relative;
}

.garage-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--garage-yellow) 0px,
        var(--garage-yellow) 20px,
        var(--garage-black) 20px,
        var(--garage-black) 40px
    );
}

.garage-footer-title {
    font-family: var(--font-industrial);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--garage-yellow);
    margin-bottom: 20px;
}

.garage-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.garage-footer-links a {
    color: var(--garage-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.garage-footer-links a:hover {
    color: var(--garage-yellow);
    padding-left: 8px;
}

/* Pagination */
.garage-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 50px;
}

.garage-pagination a,
.garage-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: var(--garage-dark);
    border: 1px solid var(--garage-steel);
    color: var(--garage-light);
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.garage-pagination a:hover {
    border-color: var(--garage-yellow);
    color: var(--garage-yellow);
}

.garage-pagination .active {
    background: var(--garage-yellow);
    border-color: var(--garage-yellow);
    color: var(--garage-black);
}

/* Back to Top */
.garage-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--garage-yellow);
    color: var(--garage-black);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

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

.garage-back-top:hover {
    background: var(--garage-orange);
    transform: translateY(-5px);
}

/* Forms */
.garage-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--garage-gray);
    border: 2px solid var(--garage-steel);
    color: var(--garage-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.garage-input:focus {
    outline: none;
    border-color: var(--garage-yellow);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.garage-input::placeholder {
    color: var(--garage-muted);
}

/* Alerts */
.garage-alert {
    padding: 20px;
    border-left: 4px solid;
    margin-bottom: 25px;
}

.garage-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.garage-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Responsive */
@media (max-width: 1024px) {
    .garage-hero-title {
        font-size: 3rem;
    }
    
    .garage-featured-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .garage-hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .garage-section-title {
        font-size: 1.8rem;
    }
    
    .garage-article-title {
        font-size: 2rem;
    }
    
    .garage-article-content {
        padding: 25px;
    }
    
    .garage-featured {
        min-height: 350px;
    }
    
    .garage-logo {
        font-size: 1.5rem;
    }
}
