/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige-light: #f8f6f3;
    --white: #ffffff;
    --bordeaux: #8b2635;
    --bordeaux-dark: #6b1d28;
    --text-dark: #2d2d2d;
    --text-muted: #6b6b6b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--beige-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Premium */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 38, 53, 0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--bordeaux);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bordeaux);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--bordeaux);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-login-nav {
    color: var(--bordeaux) !important;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(139, 38, 53, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-login-nav::after {
    display: none;
}

.btn-login-nav:hover {
    background: var(--bordeaux);
    color: white !important;
    border-color: var(--bordeaux);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    opacity: 0.06;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bordeaux);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--bordeaux);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 38, 53, 0.2);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--bordeaux-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 38, 53, 0.3);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--bordeaux);
    text-decoration: none;
    border: 2px solid var(--bordeaux);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bordeaux);
    color: var(--white);
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border: 1px solid rgba(139, 38, 53, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bordeaux);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 38, 53, 0.12);
}

.service-number {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--bordeaux);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin: 2rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bordeaux);
}

.service-link {
    color: var(--bordeaux);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.service-link:hover {
    opacity: 0.7;
}

/* Values Section */
.values-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(139, 38, 53, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bordeaux);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: var(--bordeaux);
    color: var(--white);
    transform: scale(1.1);
}

.value-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Media Preview Section */
.media-preview {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

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

.preview-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 38, 53, 0.1);
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 38, 53, 0.12);
}

.preview-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.preview-content {
    padding: 2rem;
}

.preview-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bordeaux);
    margin-bottom: 1rem;
    font-weight: 600;
}

.preview-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.preview-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.media-cta {
    text-align: center;
}

/* Contact Section */
.contact-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
    background: var(--white);
    text-align: center;
}

.contact-section h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.contact-section > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-method {
    padding: 2.5rem;
    background: var(--beige-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 38, 53, 0.08);
}

.contact-method h3 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-method a {
    color: var(--bordeaux);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--bordeaux-dark);
}

/* Footer */
footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    border-top: 1px solid rgba(139, 38, 53, 0.1);
    text-align: center;
}

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

/* Page Headers (pour vente.html et media.html) */
.page-header {
    margin-top: 80px;
    padding: 6rem 3rem;
    background: var(--white);
    text-align: center;
    border-bottom: 1px solid rgba(139, 38, 53, 0.1);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Vehicles Grid */
.vehicles-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.vehicle-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 38, 53, 0.1);
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 38, 53, 0.12);
}

.vehicle-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.sold-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bordeaux);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.vehicle-info {
    padding: 2rem;
}

.vehicle-info h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.vehicle-year {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.vehicle-details {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(139, 38, 53, 0.1);
    border-bottom: 1px solid rgba(139, 38, 53, 0.1);
}

.vehicle-details span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vehicle-price {
    font-size: 1.8rem;
    color: var(--bordeaux);
    font-weight: 600;
    margin: 1.5rem 0;
}

/* Articles Grid */
.articles-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 38, 53, 0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 38, 53, 0.12);
}

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

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--bordeaux);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Loading States */
.loading, .no-vehicles, .no-articles, .error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.error-message {
    color: var(--bordeaux);
}

/* Article Detail Page - Style Magazine */
.article-header {
    margin-top: 80px;
    padding: 4rem 2rem 3rem;
    text-align: center;
    background: var(--beige-light);
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.article-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-content-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: white;
}

.article-featured-image {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: block;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body p:first-of-type {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--bordeaux);
    letter-spacing: -0.5px;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
}

.article-body strong {
    color: var(--bordeaux);
    font-weight: 600;
}

.article-body em {
    font-style: italic;
}

.article-body blockquote {
    border-left: 4px solid var(--bordeaux);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--beige-light);
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.15rem;
}

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

.article-body a:hover {
    text-decoration: none;
}

.article-cta {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 3rem 2rem;
    background: var(--beige-light);
    border-radius: 12px;
    text-align: center;
}

.article-cta h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.back-to-blog {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.back-to-blog a {
    color: var(--bordeaux);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.back-to-blog a:hover {
    opacity: 0.7;
}

.back-to-blog a:hover {
    color: var(--bordeaux);
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-preview-grid {
        grid-template-columns: 1fr;
    }

    .vehicles-grid,
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2,
    .contact-section h2,
    .page-header h1,
    .article-header h1 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .services-section,
    .values-section,
    .media-preview,
    .contact-section,
    .vehicles-section,
    .articles-section {
        padding: 4rem 1.5rem;
    }

    .vehicles-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-body p,
    .article-body li {
        font-size: 1rem;
    }
}

/* Responsive pour article */
@media (max-width: 768px) {
    .article-header {
        padding: 3rem 1.5rem 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .article-meta-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-meta-header::before,
    .article-meta-header::after {
        display: none;
    }
    
    .article-content-wrapper {
        padding: 0 1.5rem 4rem;
    }
    
    .article-featured-image {
        margin: -40px 1rem 3rem;
        border-radius: 12px;
    }
    
    .article-body p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .article-body p:first-of-type {
        font-size: 1.15rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        margin-top: 3rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-body li {
        font-size: 1.05rem;
    }
    
    .article-body blockquote {
        font-size: 1.1rem;
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    }
    
    .article-cta {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
    
    .article-cta h3 {
        font-size: 1.4rem;
    }
}

/* Menu Burger pour Mobile */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--bordeaux);
    transition: all 0.3s;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--beige-light);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .btn-login-nav {
        margin-top: 1rem;
        text-align: center;
        background: var(--bordeaux);
        color: white !important;
        padding: 1rem !important;
        border-radius: 8px;
    }
    
    nav {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}

/* Responsive - Article Page */
@media (max-width: 768px) {
    .article-header {
        padding: 2rem 1.5rem;
        margin-top: 65px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .article-meta-header {
        flex-wrap: wrap;
        font-size: 0.85rem;
        gap: 0.8rem;
    }
    
    .article-featured-image {
        margin-bottom: 2rem;
    }
    
    .article-featured-image img {
        max-height: 400px;
    }
    
    .article-body {
        padding: 0 1.5rem 3rem;
        font-size: 1.05rem;
    }
    
    .article-body p:first-of-type {
        font-size: 1.15rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        margin-top: 2.5rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-cta {
        margin: 2rem 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .article-cta h3 {
        font-size: 1.3rem;
    }
    
    .back-to-blog {
        padding: 1rem 1.5rem;
    }
}
