/* ========================================
   STYLES POUR LES ANNONCES AUTO
   ======================================== */

/* Layout principal en deux colonnes */
.annonce-auto-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.annonce-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Colonne de gauche */
.annonce-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Colonne de droite */
.annonce-right-column {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   GALERIE D'IMAGES
   ======================================== */

.annonce-galerie {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.galerie-principale {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.image-principale-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-principale {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation principale */
.main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.main-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.main-nav.prev {
    left: 15px;
}

.main-nav.next {
    right: 15px;
}

.main-nav i {
    color: #333;
    font-size: 14px;
}

/* Carrousel des vignettes */
.galerie-carousel {
    padding: 15px;
    background: #f8f9fa;
}

.carousel-wrapper {
    overflow: hidden;
    margin-bottom: 10px;
}

.carousel-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item.active {
    border-color: #007bff;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pagination - SUPPRIMÉE */
.carousel-pagination {
    display: none;
}

/* Indicateur du nombre total de photos */
.carousel-total-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.galerie-carousel {
    position: relative;
}

/* ========================================
   CARACTÉRISTIQUES
   ======================================== */

.annonce-caracteristiques {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.caracteristiques-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
}

.caracteristiques-header i {
    font-size: 18px;
}

.caracteristiques-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modele-complet {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.caracteristiques-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.carac-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.carac-label {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.carac-value {
    font-size: 16px;
    color: #333;
    font-weight: normal;
}

.voir-plus {
    display: none;
}

/* ========================================
   ÉQUIPEMENTS
   ======================================== */

.annonce-equipements {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.equipements-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #e91e63;
}

.equipements-header i {
    font-size: 18px;
    color: #111;
}

.equipements-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.equipements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    padding: 6px 0;
}

.equipment-icon {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* ========================================
   DESCRIPTION
   ======================================== */

.annonce-description {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.annonce-description h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.annonce-description p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #555;
}

/* ========================================
   COLONNE DE DROITE - PRIX ET CONTACT
   ======================================== */

/* Bloc prix */
.annonce-prix-bloc {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prix-header {
    margin-bottom: 15px;
}

.prix-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prix-header h2::before {
    content: '\f1b9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    color: #666;
}

.prix-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.prix-montant {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.prix-devise {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

/* Formulaire de contact */
.annonce-contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.annonce-contact-form h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-interesse {
    background: linear-gradient(135deg, #000, #333);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-interesse:hover {
    background: linear-gradient(135deg, #333, #000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-interesse:active {
    transform: translateY(0);
}

.btn-interesse:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 15px;
}

.g-recaptcha > div {
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .annonce-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .annonce-right-column {
        position: static;
        order: -1;
    }
    
    .galerie-principale {
        height: 300px;
    }
    
    .caracteristiques-grid {
        grid-template-columns: 1fr;
    }
    
    .equipements-grid {
        grid-template-columns: 1fr;
    }
    
    .prix-montant {
        font-size: 24px;
    }
    
    .prix-devise {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .annonce-auto-single {
        padding: 10px;
    }
    
    .galerie-principale {
        height: 250px;
    }
    
    .main-nav {
        width: 35px;
        height: 35px;
    }
    
    .main-nav i {
        font-size: 12px;
    }
    
    .carousel-item {
        flex: 0 0 70px;
        height: 50px;
    }
}

/* ========================================
   ANIMATIONS ET TRANSITIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.annonce-left-column > *,
.annonce-right-column > * {
    animation: fadeIn 0.6s ease-out;
}

.annonce-left-column > *:nth-child(2) {
    animation-delay: 0.1s;
}

.annonce-left-column > *:nth-child(3) {
    animation-delay: 0.2s;
}

.annonce-left-column > *:nth-child(4) {
    animation-delay: 0.3s;
}

.annonce-right-column > *:nth-child(2) {
    animation-delay: 0.1s;
}

/* ========================================
   MESSAGES DE CONTACT
   ======================================== */

.annonce-contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.annonce-contact-error h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.annonce-contact-error ul {
    margin: 0;
    padding-left: 20px;
}

.annonce-contact-error li {
    margin-bottom: 5px;
}

.annonce-contact-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.annonce-contact-success p {
    margin: 0;
    font-weight: 500;
}

/* ========================================
   AMÉLIORATIONS UX
   ======================================== */

/* Focus visible pour l'accessibilité */
.main-nav:focus,
.carousel-item:focus,
.pagination-dot:focus,
.btn-interesse:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* États de chargement */
.carousel-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Indicateur de scroll pour le carrousel */
.carousel-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, #f8f9fa);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container.has-more::after {
    opacity: 1;
}

.annonce-breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 18px;
    padding: 0 2px 0 0;
}
.annonce-breadcrumb a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.annonce-breadcrumb a:hover {
    color: #0073aa;
    text-decoration: underline;
}
.annonce-breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* ========================================
   POINTS FORTS
   ======================================== */

.annonce-points-forts {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.annonce-points-forts h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.annonce-points-forts h3::before {
    content: "⭐";
    font-size: 16px;
}

.points-forts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.point-fort-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.point-fort-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.point-fort-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.point-fort-text {
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Responsive pour les points forts */
@media (max-width: 768px) {
    .points-forts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .point-fort-item {
        padding: 10px 12px;
    }
    
    .point-fort-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .point-fort-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .point-fort-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .point-fort-text {
        font-size: 14px;
    }
}

/* POINTS FORTS - NOUVELLE PRESENTATION */
.annonce-points-forts.nouvelle-presentation {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}
.points-forts-grid.nouvelle-presentation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 100%;
}
.point-fort-item.nouvelle-presentation {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}
.point-fort-icon.nouvelle-presentation {
    background: none;
    border-radius: 0;
    color: #111;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}
.point-fort-text.nouvelle-presentation {
    font-size: 13px;
    color: #111;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.3;
    max-width: 100%;
}
@media (max-width: 768px) {
    .points-forts-grid.nouvelle-presentation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .point-fort-item.nouvelle-presentation {
        flex: 0 0 auto;
        min-width: 100px;
        max-width: 120px;
        padding: 0 4px;
    }
    .point-fort-icon.nouvelle-presentation i {
        font-size: 2em !important;
    }
    .point-fort-text.nouvelle-presentation {
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .points-forts-grid.nouvelle-presentation {
        gap: 12px;
    }
    .point-fort-item.nouvelle-presentation {
        min-width: 80px;
        max-width: 100px;
        padding: 0 2px;
    }
    .point-fort-icon.nouvelle-presentation i {
        font-size: 1.5em !important;
    }
    .point-fort-text.nouvelle-presentation {
        font-size: 11px;
    }
}

/* ========================================
   STYLES POUR LA PAGE D'ARCHIVE DES ANNONCES
   ======================================== */

/* Container principal de l'archive */
.annonce-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* En-tête de l'archive */
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.archive-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-title i {
    color: #666;
    font-size: 20px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Layout principal en deux colonnes */
.archive-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Colonne des filtres */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filters-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.filters-header i {
    color: #666;
}

/* Filtres sélectionnés */
.active-filters {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.clear-all-filters {
    background: none;
    border: none;
    color: #007bff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Sections de filtres */
.filter-section {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.filter-section-header i {
    color: #666;
    font-size: 12px;
    transition: transform 0.2s;
}

.filter-section-content {
    padding-bottom: 15px;
    display: none;
}

.filter-section.active .filter-section-content {
    display: block;
}

.filter-section.active .filter-section-header i {
    transform: rotate(180deg);
}

/* Checkboxes et radios */
.filter-checkbox, .filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.filter-checkbox input, .filter-radio input {
    margin: 0;
}

.see-all-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
}

/* Champs de saisie */
.range-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 8px;
    align-items: center;
}

.range-inputs input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.unit {
    font-size: 12px;
    color: #666;
}

/* Grille des annonces */
.annonce-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Carte d'annonce */
.annonce-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card-content {
    display: flex;
    height: 220px;
}

.annonce-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Image */
.annonce-image {
    position: relative;
    width: 300px;
    height: 220px;
    overflow: hidden;
}

.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Carousel automatique pour les images */
.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
}

.carousel-image.active {
    opacity: 1;
    z-index: 2;
}

.annonce-card:hover .annonce-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
}

/* Contenu */
.annonce-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.car-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Spécifications */
.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    max-width: 100%;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec-icon {
    width: 16px;
    height: 16px;
    background: #ddd;
    border-radius: 2px;
}

/* Prix */
.car-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

/* Badge image */
.image-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Pagination */
.annonce-pagination {
    margin-top: 40px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.annonce-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    background: white;
}

.annonce-pagination .page-numbers:hover,
.annonce-pagination .page-numbers.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.annonce-pagination .prev,
.annonce-pagination .next {
    font-weight: 600;
}

/* Résultats vides */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-results p {
    margin: 10px 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .archive-content {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .annonce-archive-container {
        padding: 15px;
    }
    
    .archive-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .card-content {
        flex-direction: column;
        height: auto;
    }
    
    .annonce-image {
        width: 100%;
        height: 200px;
    }
    
    .annonce-content {
        padding: 15px;
    }
    
    .car-specs {
        flex-wrap: wrap;
    }
    
    .spec-item {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .annonce-archive-container {
        padding: 10px;
    }
    
    .archive-header {
        padding: 15px;
    }
    
    .filters-sidebar {
        padding: 15px;
    }
    
    .annonce-content {
        padding: 12px;
    }
    
    .annonce-image {
        width: 100%;
        height: 180px;
    }
}

/* Caractéristiques en ligne */
.car-specs-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 2px;
}

@media (max-width: 600px) {
  .car-specs-row {
    gap: 8px;
    font-size: 13px;
  }
}

.car-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: 10px;
}
.vignettes-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}
.vignette-label {
  background: #28a745;
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(40,167,69,0.08);
  letter-spacing: 0.5px;
}

/* Badge du nombre de photos sur les cartes */
.photo-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.annonce-image {
    position: relative;
}

/* Message "aucun résultat" amélioré */
.no-results-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
    padding: 40px 20px;
}

.no-results-content {
    max-width: 400px;
}

.no-results-content i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-results-content h3 {
    font-size: 24px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.no-results-content p {
    font-size: 16px;
    color: #888;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.clear-all-filters-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.clear-all-filters-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.clear-all-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

/* ========================================
   INDICATEUR DE CHARGEMENT
   ======================================== */

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-indicator::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 16px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

.error::before {
    content: '⚠️';
    margin-right: 10px;
    font-size: 20px;
}

/* ========================================
   CAROUSEL D'ANNONCES - SHORTCODE
   ======================================== */

.annonce-carousel-container {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
    /* border-radius: 16px; */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

.annonce-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 500px;
    width: 100vw;
    max-width: 100vw;
    justify-content: center;
}

.annonce-carousel-slide {
    position: relative;
    width: 100vw;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-bg-blur {
    position: absolute;
    left: 0; top: 0;
    width: 100vw; height: 100%;
    object-fit: cover;
    filter: blur(15px) brightness(0.6);
    z-index: 1;
    pointer-events: none;
}
.carousel-content {
    position: relative;
    width: 1200px;
    max-width: 100vw;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    z-index: 2;
    display: block;
}

.carousel-info-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 30px;
    text-align: left;
    color: white;
    background: rgba(64, 64, 64, 0.95);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 3;
    min-width: 350px;
    max-width: 450px;
}

.carousel-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: none;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: white;
}

.carousel-details {
    font-size: 14px;
    margin: 0 0 6px 0;
    opacity: 1;
    font-weight: 400;
    line-height: 1.3;
    color: white;
}

.carousel-etat {
    font-size: 13px;
    margin: 0 0 4px 0;
    opacity: 1;
    font-weight: 400;
    line-height: 1.3;
    color: white;
}

.carousel-button {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    border: none;
    cursor: pointer;
}

.carousel-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
    color: white;
    text-decoration: none;
}

.carousel-button:active {
    transform: translateY(0);
}

/* Navigation du carousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Points de navigation */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: white;
}

/* Responsive pour le carousel */
@media (max-width: 768px) {
    .annonce-carousel {
        height: 400px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-main-image {
        max-width: 90%;
        max-height: 75%;
    }
    
    .carousel-info-overlay {
        position: absolute;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        transform: none;
        padding: 20px;
        min-width: auto;
        text-align: center;
    }
    
    .carousel-title {
        font-size: 20px;
        margin: 0 0 10px 0;
    }
    
    .carousel-details {
        font-size: 12px;
        margin: 0 0 4px 0;
    }
    
    .carousel-etat {
        font-size: 11px;
        margin: 0 0 3px 0;
    }
    
    .carousel-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .carousel-nav {
        padding: 0 10px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .annonce-carousel {
        height: 350px;
    }
    
    .carousel-content {
        padding: 15px;
    }
    
    .carousel-main-image {
        max-width: 95%;
        max-height: 70%;
    }
    
    .carousel-info-overlay {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 15px;
    }
    
    .carousel-title {
        font-size: 18px;
        margin: 0 0 8px 0;
    }
    
    .carousel-details {
        font-size: 11px;
        margin: 0 0 3px 0;
    }
    
    .carousel-etat {
        font-size: 10px;
        margin: 0 0 2px 0;
    }
    
    .carousel-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* === Nouveau carrousel immersif === */
html, body { overflow-x: hidden; }
.nouveau-carousel {
  position: relative;
  width: 100vw;
  margin: 0;
  overflow: hidden;
  max-width: 100vw;
}
.nouveau-carousel-track {
  width: 100vw;
  display: flex;
  height: 500px;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
  flex: 0 0 100vw;
  width: 100vw;
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-bg-blur { position: absolute; left: 0; top: 0; width: 100vw; height: 100%; object-fit: cover; filter: blur(18px) brightness(0.6); z-index: 1; pointer-events: none; }
.carousel-slide-content { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.carousel-main-img-container { position: relative; max-width: 900px; width: 100%; margin: 0 auto; box-shadow: 0 8px 32px rgba(0,0,0,0.25); border-radius: 18px; overflow: hidden; transition: box-shadow 0.3s; }
.carousel-main-img-container:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.carousel-main-img { width: 100%; height: 450px; object-fit: cover; border-radius: 18px; display: block; transition: transform 0.3s; }
.carousel-main-img-container:hover .carousel-main-img { transform: scale(1.03); }
.carousel-badge { position: absolute; top: 20px; left: 20px; background: linear-gradient(90deg,#ff9800,#ffc107); color: #fff; font-weight: bold; font-size: 1rem; padding: 7px 18px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); letter-spacing: 1px; }
.carousel-info-box { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(30,30,30,0.92); color: #fff; padding: 28px 38px; border-radius: 18px; box-shadow: 0 4px 24px rgba(0,0,0,0.25); min-width: 320px; max-width: 90vw; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.carousel-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: 1px; }
.carousel-meta { font-size: 1.1rem; color: #eee; margin-bottom: 18px; }
.carousel-btn { display: inline-block; background: linear-gradient(90deg,#007bff,#00c6ff); color: #fff; font-weight: 600; font-size: 1.1rem; padding: 12px 32px; border-radius: 30px; text-decoration: none; box-shadow: 0 2px 12px rgba(0,123,255,0.18); transition: background 0.3s, transform 0.2s; }
.carousel-btn:hover { background: linear-gradient(90deg,#0056b3,#00b4d8); transform: translateY(-2px) scale(1.04); color: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(30,30,30,0.85); color: #fff; border: none; border-radius: 50%; width: 54px; height: 54px; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: background 0.2s, transform 0.2s; }
.carousel-arrow.prev { left: 30px; }
.carousel-arrow.next { right: 30px; }
.carousel-arrow:hover { background: #007bff; color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.carousel-dots .carousel-dot { width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 2px solid #fff; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.carousel-dots .carousel-dot.active { background: #007bff; transform: scale(1.2); border-color: #007bff; }
@media (max-width: 1024px) {
  .carousel-main-img { height: 320px; }
  .carousel-info-box { padding: 18px 16px; font-size: 1rem; bottom: 18px; }
}
@media (max-width: 600px) {
  .nouveau-carousel-track, .carousel-slide { height: 250px; }
  .carousel-main-img { height: 180px; border-radius: 10px; }
  .carousel-main-img-container { border-radius: 10px; }
  .carousel-info-box { min-width: 0; max-width: 98vw; left: 50%; bottom: 8px; padding: 10px 8px; border-radius: 10px; font-size: 0.98rem; }
  .carousel-title { font-size: 1.1rem; }
  .carousel-meta { font-size: 0.95rem; margin-bottom: 10px; }
  .carousel-btn { font-size: 0.98rem; padding: 8px 18px; }
  .carousel-badge { top: 8px; left: 8px; font-size: 0.85rem; padding: 4px 10px; border-radius: 10px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.3rem; left: 8px; right: 8px; }
}
.custom-carousel { width: 100vw; overflow: hidden; position: relative; margin: 0; padding: 0; }
.custom-carousel-track { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); height: 660px; }
.custom-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 660px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-slide-img { position: absolute; left: 0; top: 0; width: 100vw; height: 100%; object-fit: cover; background-size: cover; background-position: center; filter: blur(10px) brightness(0.7); z-index: 1; }
.custom-slide-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(30,30,30,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 36px 48px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.custom-slide-title { font-size: 2rem; font-weight: 700; color: #fff; }
.custom-slide-meta { font-size: 1.1rem; color: #eee; margin-bottom: 12px; }
.custom-slide-btn { display: inline-block; background: linear-gradient(90deg,#007bff,#00c6ff); color: #fff; font-weight: 600; font-size: 1.1rem; padding: 12px 32px; border-radius: 30px; text-decoration: none; box-shadow: 0 2px 12px rgba(0,123,255,0.18); transition: background 0.3s, transform 0.2s; }
.custom-slide-btn:hover { background: linear-gradient(90deg,#0056b3,#00b4d8); transform: translateY(-2px) scale(1.04); color: #fff; }
.custom-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(30,30,30,0.85); color: #fff; border: none; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: background 0.2s, transform 0.2s; }
.custom-arrow.prev { left: 18px; }
.custom-arrow.next { right: 18px; }
.custom-arrow:hover { background: #007bff; color: #fff; transform: translateY(-50%) scale(1.08); }
.custom-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.custom-dots .custom-dot { width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 2px solid #fff; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.custom-dots .custom-dot.active { background: #007bff; transform: scale(1.2); border-color: #007bff; }
@media (max-width: 800px) {
  .custom-carousel-track, .custom-slide { height: 220px; }
  .custom-slide-content { padding: 12px 10px; border-radius: 10px; font-size: 1rem; }
  .custom-slide-title { font-size: 1.1rem; }
  .custom-slide-meta { font-size: 0.95rem; margin-bottom: 8px; }
  .custom-slide-btn { font-size: 0.98rem; padding: 8px 18px; }
}
.custom-slide-main-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  max-height: 80%;
  height: auto;
  display: block;
  margin: 0;
  box-shadow: none;
  border: none;
  background: none;
}
.simple-carousel, .simple-carousel-track, .simple-slide {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
}
.simple-carousel {
  overflow: hidden;
  position: relative;
  height: 660px;
}
.simple-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  height: 100%;
}
.simple-slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.simple-slide-info { position: absolute; right: 7vw; top: 50%; transform: translateY(-50%); background: rgba(30,30,30,0.95); border-radius: 18px; box-shadow: 0 4px 24px rgba(0,0,0,0.18); padding: 36px 48px; min-width: 320px; max-width: 400px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; z-index: 2; }
.simple-slide-title { font-size: 2rem; font-weight: 700; color: #fff; }
.simple-slide-price { font-size: 1.3rem; color: #ffd700; font-weight: 600; }
.simple-slide-btn { display: inline-block; background: linear-gradient(90deg,#007bff,#00c6ff); color: #fff; font-weight: 600; font-size: 1.1rem; padding: 12px 32px; border-radius: 30px; text-decoration: none; box-shadow: 0 2px 12px rgba(0,123,255,0.18); transition: background 0.3s, transform 0.2s; }
.simple-slide-btn:hover { background: linear-gradient(90deg,#0056b3,#00b4d8); transform: translateY(-2px) scale(1.04); color: #fff; }
.simple-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(30,30,30,0.85); color: #fff; border: none; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: background 0.2s, transform 0.2s; }
.simple-arrow.prev { left: 18px; }
.simple-arrow.next { right: 18px; }
.simple-arrow:hover { background: #007bff; color: #fff; transform: translateY(-50%) scale(1.08); }
@media (max-width: 800px) {
  .simple-carousel, .simple-carousel-track, .simple-slide { height: 220px; }
  .simple-slide-img { max-height: 220px; }
  .simple-slide-info { bottom: 10px; top: auto; right: 0; left: 0; margin: auto; padding: 12px 10px; border-radius: 10px; min-width: 0; max-width: 98vw; font-size: 1rem; text-align: center; align-items: center; }
  .simple-slide-title { font-size: 1.1rem; }
  .simple-slide-price { font-size: 1rem; margin-bottom: 8px; }
  .simple-slide-btn { font-size: 0.98rem; padding: 8px 18px; }
}