/*
Theme Name: Mobiwaycar
Description: Thème de location de voitures à Marrakech
Version: 1.0
*/

/* === VARIABLES CSS === */
:root {
    --primary: #003366;
    --secondary: #FF6600;
    --accent: #009900;
    --bg: #f6f8fa;
    --card: #ffffff;
    --muted: #6b7280;
    --shadow: 0 8px 30px rgba(2,6,23,0.08);
    --radius: 12px;
    --dark: #001a33;
    --text: #333;
    --white: #fff;
    --header-height: 72px;
}

/* === RESET & BASE STYLES === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER STYLES === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 1200;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 18px;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: inline-block;
    padding: 8px 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 6px;
    transition: background .18s, color .18s;
    font-size: 15px;
}

.nav-menu a:hover {
    background: rgba(0,0,0,0.04);
    color: var(--secondary);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: transform .18s, box-shadow .18s;
}

.btn:active {
    transform: translateY(1px);
}

.btn:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle:focus {
    outline: 2px solid rgba(0,0,0,0.08);
}

.page-wrapper {
    /* padding-top: var(--header-height); */
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-1 {
    background-image: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.9)), url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.hero-slide-2 {
    background-image: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.9)), url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.hero-slide-3 {
    background-image: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.9)), url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}

/* Hero Form */
.hero-form {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    max-width: 980px;
    margin: 30px auto;
    color: var(--white);
    position: relative;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.form-group {
    flex: 1;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--white);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 16px;
    background: rgba(255,255,255,0.06);
    color: var(--primary);
    border-radius: 8px;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.08);
}

/* Phone input */
.phone-input {
    display: flex;
    align-items: center;
    width: 100%;
}

.phone-select {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px 0 0 8px;
    padding: 0 6px;
    height: 48px;
    flex-shrink: 0;
}

.phone-select select {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: 500;
    padding: 10px 6px;
    height: 100%;
    line-height: 1.2;
    appearance: none;
    border-radius: 0;
}

.phone-input input {
    border-radius: 0 8px 8px 0;
    padding: 14px;
    height: 48px;
    border-left: none;
    flex: 1;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

/* Date fields */
.form-group input[type="date"] {
    color-scheme: dark;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* === FLEET PAGE STYLES === */
.fleet-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    margin-top: 8px;
    align-items: start;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 28px 60px;
}

/* Filters */
aside.filters {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--primary);
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6eef6;
    background: #fbfdff;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #e6eef6;
    color: #17202a;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

/* Fleet Grid */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 160px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--secondary);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.card-body {
    padding: 12px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.car-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.car-title h4 {
    margin: 0;
    font-size: 18px;
}

.car-meta {
    color: var(--muted);
    font-size: 13px;
}

.car-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.reserve-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.reserve-btn:hover {
    background: var(--secondary);
}

.small {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.count {
    font-weight: 700;
    white-space: nowrap;
}

.quick-search {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e6eef6;
    min-width: 220px;
    max-width: 320px;
    width: 220px;
}

.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.modal {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    max-width: 720px;
    width: 96%;
    box-shadow: 0 12px 40px rgba(2,6,23,0.35);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.modal-head h3 {
    margin: 0;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    margin-top: 12px;
}

.modal-car {
    border-radius: 10px;
    overflow: hidden;
}

.modal-car img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9eef4;
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* === SECTIONS STYLES === */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    color: var(--white);
    margin-bottom: 8px;
}

.section-title p {
    color: rgba(255,255,255,0.85);
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.services {
    background: #0b3b5a;
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.service-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: transform .25s;
    border-top: 4px solid var(--secondary);
    color: var(--white);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--white);
    font-size: 26px;
    background: rgba(255,255,255,0.06);
}

.blog {
    background: #ffffff;

}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.blog-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s;
    border: 1px solid rgba(255,255,255,0.06);
}

.blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 14px;
    color: var(--white);
}

.blog-date {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

.blog-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--white);
}

.blog-link {
    color: var(--secondary);
}

/* FAQ */
.faq {
    background: #0f4a70;
    padding: 60px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.faq-question {
    padding: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--white);
}

.faq-answer {
    padding: 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s, padding .28s;
    color: rgba(255,255,255,0.9);
    font-size: 0.98rem;
}

.faq-item.active .faq-answer {
    padding: 12px 14px 18px;
    max-height: 400px;
}

.faq-item .faq-question i {
    transition: transform .25s;
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 6px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-radius: 6px;
}

.contact-info-footer p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #ccc;
    gap: 10px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    transition: all .18s;
    color: var(--white);
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #aaa;
    font-size: 0.9rem;
}

/* Overlay & Confirmation */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.confirmation-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.confirmation-message h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

/* === MEDIA QUERIES === */
@media (max-width: 1200px) {
    .fleet-wrap {
        padding: 0 20px 40px;
    }
}

@media (max-width: 992px) {
    .fleet-wrap {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .toolbar {
        flex-wrap: wrap;
    }
    
    .toolbar-left, .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .quick-search {
        width: 100%;
        max-width: none;
    }
}

/* Menu mobile */
@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.97));
        height: calc(100vh - var(--header-height));
        width: 280px;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        transform: translateX(105%);
        transition: transform .25s;
        box-shadow: -8px 0 24px rgba(0,0,0,0.1);
        z-index: 1300;
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-menu a {
        color: var(--dark);
        padding: 10px;
        border-radius: 8px;
    }
    
    .contact-info {
        display: none;
    }
    
    .fleet-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px 30px;
    }
    
    aside.filters {
        position: static;
    }
    
    .fleet-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left, .toolbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .quick-search {
        min-width: auto;
        width: 100%;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 15px;
        margin: 20px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phone-select {
        width: 140px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 64px;
    }
    
    header {
        height: var(--header-height);
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo img {
        max-height: 40px;
    }
    

    .fleet-wrap {
        padding: 0 12px 25px;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .card-media {
        height: 140px;
    }
    
    .car-title h4 {
        font-size: 16px;
    }
    
    .price {
        font-size: 16px;
    }
    
    .toolbar-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        justify-content: center;
    }
    
    aside.filters {
        padding: 15px;
    }
    
    h1 {
        font-size: 24px !important;
        margin: 10px 0 15px !important;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 10px;
    }
    
    .price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .reserve-btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-ghost.small {
        width: 100%;
        text-align: center;
    }
    
    .modal {
        padding: 12px;
        margin: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}

/* Ensure images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Styles pour les icônes des caractéristiques */
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.spec-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: var(--secondary);
}

.spec-item:hover .spec-icon {
    color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .car-specs {
        gap: 6px;
    }
    
    .spec-item {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .spec-icon {
        font-size: 12px;
    }
}
/* Styles pour le bouton Plus et caractéristiques limitées */
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.spec-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: var(--secondary);
}

.spec-item:hover .spec-icon {
    color: white;
}

/* Bouton Plus */
.more-features-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.more-features-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

.more-features-btn .spec-icon {
    color: white;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .car-specs {
        gap: 6px;
    }
    
    .spec-item {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .spec-icon {
        font-size: 12px;
    }
    
    .more-features-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}
/* Style pour le badge type de boîte */
.boite-badge {
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 700;
}

/* Ajustement responsive pour les deux badges */
.card-media {
    position: relative;
}

.card-media .badge:first-child {
    left: 12px;
    right: auto;
}

.card-media .boite-badge {
    right: 12px;
    left: auto;
}

@media (max-width: 480px) {
    .boite-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}
/* ========================================
   CORRECTION DE LA DÉFORMATION PAGE FLOTTE
   ======================================== */

/* Assurer que la structure de base reste intacte */
.fleet-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Bandeau de filtre par dates - Ne doit PAS casser la mise en page */
.date-filter-active {
    grid-column: 1 / -1; /* Prend toute la largeur */
    background: #e3f2fd;
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.date-filter-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-filter-info i {
    font-size: 24px;
    color: #2196F3;
}

.date-filter-text {
    font-weight: 600;
    color: #1976D2;
    font-size: 14px;
    margin-bottom: 4px;
}

.date-filter-dates {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.clear-dates-btn {
    background: white;
    border: 1px solid #2196F3;
    color: #2196F3;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.clear-dates-btn:hover {
    background: #2196F3;
    color: white;
}

/* S'assurer que les filtres restent à leur place */
.filters {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* S'assurer que la grille de véhicules ne déborde pas */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Cartes de véhicules - dimensions fixes */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Image de la carte - hauteur fixe */
.card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu de la carte */
.card-body {
    padding: 16px;
}

/* Responsive - sur mobile */
@media (max-width: 900px) {
    .fleet-wrap {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 16px;
    }
    
    .filters {
        position: static; /* Pas de sticky sur mobile */
    }
    
    .date-filter-active {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .date-filter-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr; /* Une carte par ligne sur mobile */
    }
}

/* Fix pour éviter le débordement horizontal */
* {
    box-sizing: border-box;
}

/* Assurer que rien ne déborde de la page */
main {
    overflow-x: hidden;
    max-width: 100%;
}

.container,
[style*="max-width:1300px"] {
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Fix spécifique pour les caractéristiques qui peuvent déborder */
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    max-width: 100%;
    overflow: hidden;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Fix pour les badges qui peuvent se chevaucher */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d62828;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.boite-badge {
    right: 12px;
    left: auto;
    top: 12px;
}

/* Fix pour la toolbar qui peut déborder */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Fix pour les inputs qui peuvent déborder */
input[type="search"],
input[type="text"],
input[type="number"],
select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Assurer que le formulaire de recherche rapide ne déborde pas */
.quick-search {
    max-width: 200px;
}

@media (max-width: 600px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .quick-search {
        max-width: 100%;
    }
}
/* Filtre de dates dans la sidebar */
.date-filter-group {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 16px;
}

.date-filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
}

.date-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.date-input:focus {
    border-color: #d62828;
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.1);
}

#applyDateFilter {
    background: #d62828;
    color: white;
}

#clearDates.visible {
    display: block !important;
}
/* ===== STRUCTURE PRINCIPALE ===== */
.single-article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== EN-TÊTE AMÉLIORÉ ===== */
.article-header-enhanced {
    margin-bottom: 3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #2c3e50;
    margin: 1rem 0 2rem 0;
}

.article-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

/* ===== TABLE DES MATIÈRES ===== */
.table-of-contents {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
}

.table-of-contents h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

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

.toc-list li {
    margin: 0.5rem 0;
}

.toc-list a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.3rem 0;
}

.toc-list a:hover {
    color: #e74c3c;
}

/* ===== CONTENU AMÉLIORÉ ===== */
.article-content-enhanced {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.article-content-enhanced h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.article-content-enhanced h3 {
    font-size: 1.4rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

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

/* Blocs mise en valeur */
.featured-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* ===== IMAGE PRINCIPALE ===== */
.featured-image-container {
    margin: 2rem 0;
    text-align: center;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.article-faq {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* ===== CTA LOCATION ===== */
.location-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: 15px;
    margin: 3rem 0;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.sidebar-phone {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
    margin: 1rem 0;
}

.sidebar-button {
    display: block;
    background: #3498db;
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1rem;
}

.emergency-numbers p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .location-cta {
        padding: 2rem 1rem;
    }
}
/* ===== RÉINITIALISATION ===== */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== EN-TÊTE ===== */
.article-header-enhanced {
    margin-bottom: 3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #2c3e50;
    margin: 1rem 0 2rem 0;
    text-align: center;
}

.article-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    justify-content: center;
}

/* ===== CONTENU ===== */
.article-content-enhanced {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.article-content-enhanced h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.article-content-enhanced h3 {
    font-size: 1.4rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.sidebar-widget h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
}

/* ===== CTA URGENT ===== */
.location-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 3rem 0;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta-grid {
        grid-template-columns: 1fr;
    }
}
.table-of-contents {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.table-of-contents h3 {
    margin-top: 0;
    color: #2c3e50;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.table-of-contents li {
    margin: 0.5rem 0;
    padding: 0.3rem 0;
    border-bottom: 1px solid #e9ecef;
}

.table-of-contents a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #e74c3c;
}

/* ========================================
   AMÉLIORATIONS UNIQUEMENT POUR LA PAGE ARTICLE
   NE AFFECTE PAS LES AUTRES PAGES
   ======================================== */

/* Cibler uniquement les pages d'article single */
.single-post .single-article-container {
    max-width: 1400px;
    margin: 100px auto 40px; /* Compensation header */
    padding: 0 20px;
}

.single-post .article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.single-post .article-header-enhanced {
    margin-bottom: 3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 2rem;
}

.single-post .article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #2c3e50;
    margin: 1rem 0 2rem 0;
    text-align: center;
}

.single-post .article-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.single-post .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    justify-content: center;
}

/* Table des matières */
.single-post .article-toc-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.single-post .toc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-post .toc-header h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
}

.single-post .toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.single-post .toc-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.single-post .toc-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

/* Contenu article */
.single-post .article-content-enhanced {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.single-post .article-content-enhanced h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
    scroll-margin-top: 100px;
}

.single-post .article-content-enhanced h3 {
    font-size: 1.4rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

/* Sidebar article */
.single-post .article-sidebar {
    position: sticky;
    top: 100px;
}

.single-post .sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.single-post .sidebar-widget h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
}

/* CTA Article */
.single-post .location-cta {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 3rem 0;
}

.single-post .cta-button {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.single-post .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive article */
@media (max-width: 1024px) {
    .single-post .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .single-post .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-post .single-article-container {
        margin: 90px auto 30px;
        padding: 0 15px;
    }
    
    .single-post .article-title {
        font-size: 2rem;
    }
    
    .single-post .article-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AMÉLIORATIONS UNIQUEMENT POUR LE CONTENU DES ARTICLES
   Ne touche pas au header ni footer
   ======================================== */

/* Conteneur principal de l'article */
.single-post .entry-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}

/* Amélioration des titres */
.single-post .entry-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.single-post .entry-content h3 {
    font-size: 1.4rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
}

.single-post .entry-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

/* Amélioration des paragraphes */
.single-post .entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Listes */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
}

/* Citations */
.single-post .entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Images */
.single-post .entry-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

/* Liens dans le contenu */
.single-post .entry-content a {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.single-post .entry-content a:hover {
    border-bottom-color: #e74c3c;
}

/* Tableaux */
.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-post .entry-content th {
    background: #3498db;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.single-post .entry-content td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.single-post .entry-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* Code */
.single-post .entry-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Mise en valeur des sections importantes */
.single-post .entry-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post .entry-content {
        margin: 20px auto;
        padding: 0 15px;
        font-size: 1rem;
    }
    
    .single-post .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .single-post .entry-content h3 {
        font-size: 1.2rem;
    }
    
    .single-post .entry-content table {
        font-size: 0.9rem;
    }
    
    .single-post .entry-content th,
    .single-post .entry-content td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   AMÉLIORATIONS LÉGÈRES POUR LES ARTICLES
   Ne touche pas au header/footer
   ======================================== */

/* Amélioration de la lisibilité du contenu */
.single-post .entry-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Titres plus structurés */
.single-post .entry-content h2 {
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #3498db;
    font-size: 1.8rem;
}

.single-post .entry-content h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
}

/* Meilleur espacement des paragraphes */
.single-post .entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Listes plus lisibles */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .entry-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Style pour les éléments importants */
.single-post .entry-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.single-post .entry-content em {
    color: #7f8c8d;
    font-style: italic;
}

/* Liens dans le contenu */
.single-post .entry-content a {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.single-post .entry-content a:hover {
    color: #c0392b;
    border-bottom-color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post .entry-content {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .single-post .entry-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .single-post .entry-content h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   DESIGN AMÉLIORÉ POUR LES ARTICLES
   ======================================== */

/* Structure principale avec sidebar */
.single-post .site-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1300px;
    margin: 100px auto 40px;
    padding: 0 20px;
    align-items: start;
}

/* Contenu principal */
.single-post .entry-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Titres élégants */
.single-post .entry-content h2 {
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #3498db;
    font-size: 1.8rem;
    font-weight: 600;
}

.single-post .entry-content h3 {
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Navigation entre articles */
.post-navigation {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous, 
.nav-next {
    flex: 1;
}

.nav-previous a, 
.nav-next a {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-previous a:hover, 
.nav-next a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Métadonnées améliorées */
.entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Listes stylisées */
.single-post .entry-content ul {
    list-style: none;
    padding: 0;
}

.single-post .entry-content li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.single-post .entry-content li:before {
    content: "▸";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* Citations élégantes */
.single-post .entry-content blockquote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: none;
    font-style: normal;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.single-post .entry-content blockquote p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post .site-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        position: static;
        order: 2;
    }
    
    .single-post .entry-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .single-post .site-content {
        margin: 80px auto 30px;
        padding: 0 15px;
    }
    
    .single-post .entry-content {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
}
/* ========================================
   DESIGN AMÉLIORÉ POUR LA PAGE BLOG
   ======================================== */

/* Structure principale */
.blog .site-content,
.archive .site-content {
    max-width: 1300px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

/* Header du blog */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-title {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid des articles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Carte article */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Image de l'article */
.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

/* Badge catégorie */
.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contenu de la carte */
.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3498db;
}

.blog-card-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Métadonnées */
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #95a5a6;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Sidebar du blog */
.blog-sidebar {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #f0f0f0;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Liste des catégories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f8f9fa;
}

.categories-list a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #3498db;
}

.categories-list .count {
    background: #f8f9fa;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Articles populaires */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

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

.popular-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.popular-post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.popular-post-title a:hover {
    color: #3498db;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog .site-content,
    .archive .site-content {
        margin: 80px auto 30px;
        padding: 0 15px;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-header {
        margin-bottom: 2rem;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
}