/* =========================
   PAGE ANNONCE
   ========================= */

.page-annonce {
    background: #f7f9fb;
}

.annonce-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ── Bouton contact ── */
.annonce-contact-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}
.annonce-contact-btn {
    display: inline-block;
    padding: .45rem 1rem;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 6px;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.annonce-contact-btn:hover { background: #002d5a; }

/* ── Modal contact ── */
.ac-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ac-modal-overlay.is-open { display: flex; }

.ac-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.ac-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
}
.ac-modal__close:hover { color: #000; }

/* =========================
   GALERIE
   ========================= */

.annonce-gallery {
    display: flex;
    gap: 1rem;
}

.annonce-main {
    flex: 3;
}

.annonce-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
}

/* colonne thumbs */
.annonce-thumbs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* wrapper pour gérer overlay + click propre */
.annonce-thumb-wrapper{
    position: relative;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.annonce-thumb-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
    transition: .2s ease;
}

.annonce-thumb-wrapper:hover img{
    opacity: 1;
    transform: scale(1.03);
}

/* overlay +X */
.thumb-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    background: rgba(0,0,0,.45);
    color:#fff;
    font-weight:800;
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: .5px;
}

/* =========================
   INFOS
   ========================= */

.annonce-content {
    max-width: 810px;
    margin: 0 auto;
}

.annonce-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.annonce-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #004080;
    margin-bottom: 1.5rem;
}

.annonce-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .5rem 2rem;
    margin-bottom: 1.5rem;
}

.annonce-details div {
    font-size: .95rem;
}

/* ===== NOUVEAU : Bloc détails supplémentaires ===== */

.annonce-details-more {
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

/* Bouton plus de détails */

.annonce-more-btn {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .6rem 1.2rem;
    border-radius: 30px;
    border: none;
    background: #004080;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.annonce-more-btn:hover {
    background: #0055a6;
    transform: translateY(-2px);
}

.annonce-extras {
    margin-bottom: 1.5rem;
}

.extra-chip {
    display: inline-block;
    background: #e6eef5;
    color: #004080;
    padding: .4rem .8rem;
    border-radius: 20px;
    font-size: .85rem;
    margin: 0 .5rem .5rem 0;
}

.annonce-description {
    line-height: 1.6;
    font-size: .95rem;
    color: #333;
}

/* =========================
   LIGHTBOX FULLSCREEN
   ========================= */

.ic-no-scroll{ overflow:hidden; }

.ic-lightbox{
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 10, .92);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 9999;
}

.ic-lightbox.is-open{
    display: block;
}

.ic-lb-stage{
    position: absolute;
    inset: 70px 90px 110px 90px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ic-lb-stage img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.ic-lb-counter{
    position:absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.85);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .5px;
}

.ic-lb-close{
    position:absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border:0;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color:#fff;
    font-size: 18px;
    cursor:pointer;
}

.ic-lb-close:hover{
    background: rgba(255,255,255,.16);
}

.ic-lb-nav{
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    border:0;
    width: 52px;
    height: 80px;
    cursor:pointer;
    color:#fff;
    font-size: 42px;
    line-height: 1;
    background: rgba(255,255,255,.08);
    border-radius: 14px;
}

.ic-lb-nav:hover{
    background: rgba(255,255,255,.14);
}

.ic-lb-prev{ left: 20px; }
.ic-lb-next{ right: 20px; }

.ic-lb-strip{
    position:absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display:flex;
    gap: 10px;
    padding: 0 18px;
    justify-content:center;
    overflow-x:auto;
}

.ic-lb-thumb{
    flex: 0 0 auto;
    width: 70px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,.05);
    cursor: pointer;
    opacity: .75;
}

.ic-lb-thumb:hover{ opacity: 1; }
.ic-lb-thumb.is-active{
    opacity: 1;
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 425px) {
    .annonce-gallery {
        flex-direction: column;
        max-width: 100%;
    }

    .annonce-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }

    .annonce-thumb-wrapper{
        flex: 0 0 auto;
        width: 90px;
        height: 90px;
    }

    .ic-lb-stage{
        inset: 70px 18px 120px 18px;
    }

    .ic-lb-nav{
        width: 46px;
        height: 70px;
        font-size: 38px;
    }

    .ic-lb-prev{ left: 10px; }
    .ic-lb-next{ right: 10px; }

    .ic-lb-thumb{
        width: 62px;
        height: 46px;
        border-radius: 10px;
    }
}
.more-detail {
    display: none;
}

.annonce-details.is-open .more-detail {
    display: block;
}
.annonce-articles {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.annonce-articles h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.annonce-articles ul {
    list-style: none;
    padding: 0;
}

.annonce-articles li {
    margin-bottom: 8px;
}

.annonce-articles a {
    color: #004080;
    text-decoration: none;
    font-weight: 500;
}

.annonce-articles a:hover {
    text-decoration: underline;
}
