/*
|--------------------------------------------------------------------------
| PETITES ANNONCES
|--------------------------------------------------------------------------
*/

.annonces-page,
.annonce-detail,
.annonce-form-page,
.admin-annonces-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.annonces-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
	background: #ffffff;
	border-radius: 10px;
	padding: 20px;
}

.annonces-header h1,
.annonce-form-header h1,
.admin-annonces-page h1 {
    margin: 0 0 8px;
	font-family: 'New Rocker';
}

.annonce-form-header {
	background: #ffffff;
	border-radius: 10px;
	padding: 20px;
}

.annonces-header p,
.annonce-form-header p {
    margin: 0;
    color: #666;
}


/*
|--------------------------------------------------------------------------
| Boutons
|--------------------------------------------------------------------------
*/

.annonce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 15px;

    border: 0;
    border-radius: 9px;

    text-decoration: none;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    background: #eee;
    color: #222;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.annonce-btn:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.annonce-btn-primary {
    background: #4f46e5;
    color: #fff;
}

.annonce-btn-danger {
    background: #dc2626;
    color: #fff;
}

.annonce-btn-success {
    background: #16a34a;
    color: #fff;
}

.annonce-btn-warning {
    background: #f59e0b;
    color: #fff;
}

.annonce-btn-light {
    background: #f3f4f6;
    color: #333;
}

.annonce-btn-favori {
    background: #fff0f4;
    color: #c2185b;
}

.annonce-btn-full {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Filtres
|--------------------------------------------------------------------------
*/

.annonces-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.annonces-filtres input,
.annonces-filtres select,
.annonce-form input,
.annonce-form select,
.annonce-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #fff;

    font: inherit;
}

.annonces-filtres input {
    flex: 1;
    min-width: 220px;
}

.annonces-filtres select {
    width: auto;
    min-width: 190px;
}


/*
|--------------------------------------------------------------------------
| Grille
|--------------------------------------------------------------------------
*/

.annonces-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));

    gap: 20px;
}


/*
|--------------------------------------------------------------------------
| Carte
|--------------------------------------------------------------------------
*/

.annonce-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.05);
}

.annonce-image {
    display: block;

    height: 190px;

    overflow: hidden;

    background: #f3f4f6;
}

.annonce-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.annonce-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 55px;
}

.annonce-card-content {
    padding: 16px;
}

.annonce-category {
    color: #4f46e5;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 7px;
}

.annonce-card h2 {
    margin: 0 0 10px;

    font-size: 19px;
}

.annonce-card h2 a {
    color: inherit;
    text-decoration: none;
}

.annonce-extrait {
    color: #666;
    line-height: 1.5;
}

.annonce-prix {
    margin-top: 10px;

    font-size: 18px;
    font-weight: 700;
}

.annonce-location {
    margin-top: 8px;

    color: #666;
    font-size: 14px;
}

.annonce-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 15px;
    padding-top: 12px;

    border-top: 1px solid #eee;

    color: #777;
    font-size: 13px;
}

.annonce-auteur {
    display: flex;
    align-items: center;
    gap: 7px;
}

.annonce-auteur img {
    width: 30px;
    height: 30px;

    object-fit: cover;

    border-radius: 50%;
}

.annonce-auteur a {
    color: inherit;
    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.annonces-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;

    margin-top: 30px;
}

.annonces-pagination a {
    min-width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f3f4f6;

    color: #333;

    text-decoration: none;
}

.annonces-pagination a.active {
    background: #4f46e5;
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| Vide
|--------------------------------------------------------------------------
*/

.annonces-empty {
    padding: 60px 20px;

    text-align: center;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;
}

.annonces-empty-icon {
    font-size: 55px;
    margin-bottom: 15px;
}


/*
|--------------------------------------------------------------------------
| Détail
|--------------------------------------------------------------------------
*/

.annonce-back {
    display: inline-block;

    margin-bottom: 20px;

    color: #4f46e5;

    text-decoration: none;
}

.annonce-alert {
    padding: 13px 15px;

    margin-bottom: 20px;

    border-radius: 9px;
}

.annonce-alert-warning {
    background: #fff7ed;
    color: #9a3412;
}

.annonce-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 300px;

    gap: 25px;
}

.annonce-detail-main,
.annonce-sidebar {
    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;

    overflow: hidden;
}

.annonce-gallery {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 8px;

    padding: 8px;
}

.annonce-gallery img {
    width: 100%;
    height: 230px;

    object-fit: cover;

    border-radius: 9px;
}

.annonce-detail-no-image {
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f4f6;

    font-size: 80px;
}

.annonce-detail-content {
    padding: 25px;
}

.annonce-detail-content h1 {
    margin: 0 0 10px;

    font-size: 30px;
}

.annonce-meta {
    color: #777;
    font-size: 13px;
}

.annonce-detail-prix {
    margin-top: 20px;

    font-size: 28px;
    font-weight: 800;
}

.annonce-detail-location {
    margin-top: 10px;
    color: #666;
}

.annonce-description {
    margin-top: 25px;

    line-height: 1.7;
    white-space: normal;
}


/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.annonce-sidebar {
    padding: 20px;

    height: fit-content;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.annonce-author {
    text-align: center;

    padding-bottom: 15px;

    border-bottom: 1px solid #eee;
}

.annonce-author img {
    width: 80px;
    height: 80px;

    border-radius: 50%;

    object-fit: cover;
}

.annonce-author h2 {
    margin: 10px 0 15px;
}

.annonce-report-link {
    text-align: center;

    color: #dc2626;

    text-decoration: none;

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| Formulaire
|--------------------------------------------------------------------------
*/

.annonce-form-page {
    max-width: 850px;
}

.annonce-form {
    margin-top: 25px;

    padding: 25px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;
}

.form-group small {
    display: block;

    margin-top: 7px;

    color: #777;
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


/*
|--------------------------------------------------------------------------
| Mes annonces
|--------------------------------------------------------------------------
*/

.mes-annonces-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mes-annonce {
    display: grid;

    grid-template-columns:
        100px minmax(0, 1fr) auto;

    gap: 15px;

    align-items: center;

    padding: 15px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.mes-annonce > img,
.mes-annonce-placeholder {
    width: 100px;
    height: 80px;

    object-fit: cover;

    border-radius: 9px;

    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}

.mes-annonce-content h2 {
    margin: 0 0 7px;
}

.mes-annonce-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}


/*
|--------------------------------------------------------------------------
| Images existantes
|--------------------------------------------------------------------------
*/

.annonce-images-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(120px, 1fr));

    gap: 12px;
}

.annonce-existing-image {
    position: relative;
}

.annonce-existing-image img {
    width: 100%;
    height: 120px;

    object-fit: cover;

    border-radius: 9px;
}

.annonce-existing-image button {
    position: absolute;

    top: 5px;
    right: 5px;

    border: 0;

    border-radius: 50%;

    width: 32px;
    height: 32px;

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Admin
|--------------------------------------------------------------------------
*/

.admin-annonces-table-wrapper {
    overflow-x: auto;
}

.admin-annonces-table {
    width: 100%;

    border-collapse: collapse;

    background: #fff;
}

.admin-annonces-table th,
.admin-annonces-table td {
    padding: 12px;

    border-bottom: 1px solid #eee;

    text-align: left;
}

.admin-annonce-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}


/*
|--------------------------------------------------------------------------
| Signalements
|--------------------------------------------------------------------------
*/

.admin-signalements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-signalement {
    padding: 20px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.admin-signalement-header,
.admin-signalement-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.admin-signalement h2 {
    margin: 12px 0;
}

.admin-signalement-message {
    padding: 12px;

    margin: 15px 0;

    background: #f8f9fa;

    border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 750px) {

    .annonces-header {
        flex-direction: column;
        align-items: stretch;
    }

    .annonce-detail-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mes-annonce {
        grid-template-columns: 80px 1fr;
    }

    .mes-annonce > img,
    .mes-annonce-placeholder {
        width: 80px;
        height: 70px;
    }

    .mes-annonce-actions {
        grid-column: 1 / -1;
    }

    .annonces-filtres {
        flex-direction: column;
    }

    .annonces-filtres select {
        width: 100%;
    }

}

```css
/* ==========================================================================
   GALERIE ANNONCE
   ========================================================================== */

.annonce-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.annonce-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    background: #f1f1f1;
}

.annonce-gallery-item img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.annonce-gallery-item:hover img {
    transform: scale(1.04);
}

```css
/* =========================================================
   GALERIE ANNONCE
   ========================================================= */

.annonce-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.annonce-gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.annonce-gallery-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.annonce-gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.annonce-lightbox {
    display: none;

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 99999;

    background: rgba(0, 0, 0, 0.92);

    align-items: center;
    justify-content: center;
}

.annonce-lightbox.active {
    display: flex;
}

body.lightbox-open {
    overflow: hidden;
}


/* Image */

.annonce-lightbox-content {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 90vw;
    max-height: 90vh;
}

.annonce-lightbox-image {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;
}


/* Fermer */

.annonce-lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 50px;
    height: 50px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,0.15);
    color: #fff;

    font-size: 38px;
    line-height: 45px;

    cursor: pointer;

    z-index: 100001;
}

.annonce-lightbox-close:hover {
    background: rgba(255,255,255,0.30);
}


/* Précédente / suivante */

.annonce-lightbox-prev,
.annonce-lightbox-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 65px;

    border: 0;
    border-radius: 10px;

    background: rgba(255,255,255,0.15);

    color: #fff;

    font-size: 50px;
    line-height: 50px;

    cursor: pointer;

    z-index: 100001;
}

.annonce-lightbox-prev {
    left: 20px;
}

.annonce-lightbox-next {
    right: 20px;
}

.annonce-lightbox-prev:hover,
.annonce-lightbox-next:hover {
    background: rgba(255,255,255,0.30);
}


/* Compteur */

.annonce-lightbox-counter {
    position: absolute;

    left: 50%;
    bottom: -35px;

    transform: translateX(-50%);

    color: #fff;

    font-size: 14px;
}


/* Mobile */

@media (max-width: 700px) {

    .annonce-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .annonce-gallery-item img {
        height: 150px;
    }

    .annonce-lightbox-image {
        max-width: 94vw;
        max-height: 80vh;
    }

    .annonce-lightbox-prev,
    .annonce-lightbox-next {
        width: 42px;
        height: 52px;
        font-size: 38px;
    }

    .annonce-lightbox-prev {
        left: 8px;
    }

    .annonce-lightbox-next {
        right: 8px;
    }

    .annonce-lightbox-close {
        top: 10px;
        right: 10px;
    }

}