/* Vilain Véhicules Plugin Styles */

/* Styles généraux */
.vilain-vehicules-homepage,
.vilain-vehicules-liste,
.vilain-vehicules-detail {
    width: 100%;
    clear: both;
}

/* Styles pour les colonnes de véhicules */
.flex_column_table {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    clear: both;
}

.flex_column {
    box-sizing: border-box;
}

.av_one_third {
    width: 33.333%;
    padding: 0 15px;
    max-width: 33.333%;
    flex: 0 0 33.333%;
}

.flex_column_table_cell {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 18px;
    overflow: hidden;
}

.av-flex-placeholder {
    width: 0;
}

/* Images */
.avia-image-container {
    margin-bottom: 20px;
}

.avia-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.avia-image-overlay-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avia-image-overlay-wrap:hover .image-overlay {
    opacity: 1;
}

/* Headings */
.av-special-heading {
    margin-bottom: 20px;
    text-align: center;
}

.av-special-heading-h1 h1,
.av-special-heading-h2 h2 {
    margin: 0;
    padding: 10px 0;
}

.special-heading-border {
    margin: 10px auto;
    width: 50px;
    height: 2px;
    background: #000;
}

.av-subheading {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Text blocks */
.av_textblock_section {
    margin-bottom: 15px;
}

.avia_textblock p {
    margin: 0;
}

/* Kilométrage et Prix */
.avia_codeblock {
    margin-bottom: 15px;
    padding: 10px 0;
}

.avia_codeblock p {
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.avia_codeblock .left {
    font-weight: normal;
}

.avia_codeblock .content {
    font-weight: bold;
}

/* Boutons */
.avia-button-wrap {
    text-align: center;
    margin-top: 20px;
}

.avia-button {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.avia-button:hover {
    background: #555;
}

.avia_iconbox_title {
    margin-left: 5px;
}

/* Page de détail - Galerie */
#my-gallery {
    margin-bottom: 30px;
}

.main-image-container img,
.small-images-container img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.main-image-container img:hover,
.small-images-container img:hover {
    opacity: 0.8;
}

/* Données générales */
.donnees-1,
.donnees-2,
.donnees-3 {
    margin-bottom: 20px;
}

.donnees-1 > div,
.donnees-2 > div,
.donnees-3 > div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.donnees-1 .left,
.donnees-2 .left,
.donnees-3 .left {
    font-weight: normal;
}

.donnees-1 .right,
.donnees-2 .right,
.donnees-3 .right {
    font-weight: bold;
}

/* Descriptif */
.descriptif {
    margin: 20px 0;
    line-height: 1.6;
}

/* Options */
.options-1 ul,
.options-2 ul,
.options-3 ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.options-1 li,
.options-2 li,
.options-3 li {
    margin-bottom: 8px;
}

/* Colonnes spéciales pour contact et Facebook */
.vehicule-api-contact,
.vehicule-api-fb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicule-api-contact .col-content,
.vehicule-api-fb .col-content {
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .av_one_third {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .av-break-at-tablet {
        width: 100% !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .av_one_third {
        width: 50%;
    }
}
