/* =========================
   ANNONCES IMAGES
========================= */
.annonce-big-image-wrap {
    width:100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #161416;
    height: 240px;
    padding: 0;
}

.annonce-big-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.annonce-small-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 240px;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.annonce-small-image-wrap {
    flex: 1;
    width:100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #161416;
    padding: 0;
    position: relative;
}


.annonce-small-image-wrap--empty {
    display: flex; /* remplace display: none */
    align-items: center;
    justify-content: center;
}

.annonce-no-image {
    font-size: 0.90rem;
    color: #4a6a7a;
    text-align: center;
    font-style: italic;
    user-select: none;
}

.annonce-img-error {
    display: flex;
    align-items: center;
    justify-content: center;
}

.annonce-img-error::after {
    content: 'Image non disponible';
    font-size: 0.90rem;
    color: #4a6a7a;
    font-style: italic;
    text-align: center;
    user-select: none;
}

/* =========================
   ANNONCES VENDUES
========================= */

/*--------------------------
Griser les annonces vendues
---------------------------*/
.annonce-card--vendue .annonce-big-image,
.annonce-card--vendue .annonce-small-image {
    filter: blur(3px) grayscale(70%) opacity(0.5); /* plus de flou et de gris */
}

.annonce-card--vendue .annonce-title-box,
.annonce-card--vendue .annonce-description-box,
.annonce-card--vendue .annonce-price-box,
.annonce-card--vendue .annonce-detail-button--disabled,
.annonce-card--vendue .annonce-small-image-wrap--empty {
    opacity: 0.45; /* plus atténué */
}

.annonce-card--vendue {
    border-color: #555; /* bordure grisée */
}

/*--------------------------
Accentuer le bandeau vendu
---------------------------*/

.annonce-vendu-bandeau {
    opacity: 1;
    font-size: 1.1rem;
    letter-spacing: 3px;
    box-shadow: 5px 10px 8px #6CBE8D;
}

/* =========================
   ANNONCES A vendre bouton
========================= */

.annonce-detail-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6CBE8D;
    border: 2px solid #000000;
    border-radius: 10px;
    color: #1D1F24;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    height: 100px;
}

.annonce-detail-button:hover,
.annonce-detail-button:active {
    background: #EDBF61;
    box-shadow: 0 6px 18px rgba(237, 191, 97, 0.7);
}

/* 
=========================
=========================
   ANNONCES DETAILS
========================= 
=========================*/

/* =========================
   ANNONCES Images
========================= */

.detail-main-image-wrap {
    width:100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #161416;
    max-height: 500px;
    min-height: 300px;
    padding: 0;
}

.detail-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-main-image:hover {
    opacity: 0.85;
}

.detail-thumb-wrap {
    flex: 1;
    width:100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #161416;
    padding: 0;
}


.detail-thumb {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 240px;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-description-box {
    background: #87ABBF;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 14px;
    color: #1D1F24;
    font-size: 0.90rem;
    line-height: 1.6;
    min-height: 80px;
}

.annonce-panier{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.annonce-panier-link{
width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    border: 2px solid #000000;
    background: #161416;
    max-height: 240px;
    padding: 0;

    min-width:50px;
}

.annonce-panier-link:hover,
.annonce-panier-link:active {
    background: #1a2a35;
    box-shadow: 0 6px 18px rgba(237, 191, 97, 0.7);
}