* {
    box-sizing: border-box;
}
body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}
h1 {
    font-size: 42px;
    color: #1b4332;
}
button {
    background-color: #1b4332;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
input {
    padding: 12px;
    font-size: 16px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 18px 0;

    position: sticky;
    top: 75px;
    z-index: 999;
    background-color: white;

}
.category {
    background-color: transparent;
    padding: 6px 8px;
    width: auto;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}
.category:hover {
    color: #1b4332;
    text-decoration: underline;
    }
    .category.active {
    background-color: #1b4332;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}
.annonces {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.annonce {
    box-sizing: border-box;
    background-color: white;
    width: 220px;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}
.annonce-image {
    background-color: #e9ecef;
    height: 150px;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.prix {
    font-size: 20px;
    font-weight: bold;
    color: #1b4332;
}
.localisation {
    color: #666;
}

.annonce .description {
    display: none;
}

.annonce .date-publication {
    margin: 0 0 8px;
    color: #666;
    font-size: 12px;
}

.annonce .vendeur {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.3;
}

.annonce .view-button {
    margin-top: auto;
}
.annonce-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    
}
.annonce h3 {
    cursor: pointer;
    font-size: 18px;
}

.annonce-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.header {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;

    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    font-size: 32px;
    font-weight: bold;
    color: #1b4332;
}
.search-bar {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.publish-button {
    background-color: #1b4332;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.slogan {
    margin-top: 15px;
    font-size: 18px;
    color: #555;
}
@media (max-width: 768px) {
.header {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.header > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.header .auth-buttons {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.connected-user-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.connected-user-email {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    text-align: center;
}

.connected-user-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.connected-user-actions .auth-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    white-space: normal;
}
.categories {
    position: static;
    column-gap: 8px;
    row-gap: 4px;
}

.category {
    width: calc(50% - 4px);
    min-height: 40px;
    padding: 6px 4px;
    font-size: 14px;
    line-height: 1.15;
}
.sort-container {
    display: grid;
    grid-template-columns:
        max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sort-container label {
    margin: 0;
    white-space: nowrap;
    font-size: 14px;
}

.sort-container select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 28px 6px 8px;
    font-size: 14px;
}

.annonces {
    gap: 10px;
}

.annonce {
    box-sizing: border-box;
    width: calc(50% - 5px);
    padding: 10px;
}
.annonce-photo,
.annonce-image {
    height: 120px;
}

.annonce h3 {
    margin: 10px 0 6px;
    font-size: 16px;
    line-height: 1.25;

min-height: 2.5em;
max-height: 2.5em;
overflow: hidden;
}

.annonce .prix {
    margin: 4px 0;
    font-size: 16px;
}

.annonce .localisation {
    margin: 4px 0 8px;
    font-size: 13px;
    line-height: 1.3;
}
.annonce .date-publication,
.annonce .vendeur,
.annonce .description {
    display: none;
}

.annonce .statut-annonce {
    margin: 4px 0;
    font-size: 12px;
    line-height: 1.3;
}

.annonce .view-button {
    width: 100%;
    margin-top: auto;
    padding: 8px 6px;
    font-size: 13px;
}

.header {
    position: static;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
}

.header .logo {
    font-size: 24px;
    line-height: 1.05;
    white-space: nowrap;
}

.header .search-bar {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
}

.header .publish-button,
.header > .auth-button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
}

.header .connected-user-area {
    gap: 6px;
}

.header .connected-user-email {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.2;
}

.header .connected-user-actions {
    gap: 6px;
}

.header .connected-user-actions .auth-button {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 13px;
    line-height: 1.15;
}
}

@media (max-width: 380px) {
    .header .logo {
        font-size: 21px;
    }
}

.ad-banner {
    background-color: #e9ecef;
    padding: 30px;
    min-height: 250px;
    margin: 25px 0;
    text-align: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    border: 1px solid #d6d6d6;
}
.publish-form {
    display: none;
    max-width: 650px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
}
.publish-form.show {
    display: block;
}

.publish-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #1b4332;
}

.publish-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.publish-form input,
.publish-form select,
.publish-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.publish-form textarea {
    min-height: 120px;
    resize: vertical;
}

.publish-form button {
    margin-top: 20px;
    background-color: #1b4332;
    color: white;
    padding: 13px 22px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}
.description {
    color: #555;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 3;
     line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.telephone {
    color: #1b4332;
    font-weight: bold;
}

.annonce-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.annonce-modal.show {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.annonce-modal-content {
    background-color: white;
    width: 100%;
    max-width: 650px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-sizing: border-box;
    margin: 30px 0;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

#modalImage img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modalTitre {
    font-size: 28px;
    margin-bottom: 10px;
}

.modal-prix {
    font-size: 24px;
    font-weight: bold;
    color: #1b4332;
}

#modalDescription {
    line-height: 1.6;
    margin-top: 20px;
}

#modalTelephone {
    font-weight: bold;
    margin-top: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-buttons a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    background-color: #1b4332;
    color: white;
    font-weight: bold;
    transition: 0.2s ease;
}

.contact-buttons a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.reveal-phone-button {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 2px solid #1b4332;
    border-radius: 8px;
    background-color: white;
    color: #1b4332;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.reveal-phone-button:hover {
    background-color: #1b4332;
    color: white;
    transform: translateY(-2px);
}

.reveal-phone-button:focus-visible {
    outline: 4px solid #ffd60a;
    outline-offset: 3px;
}

.reveal-phone-button[aria-expanded="true"] {
    background-color: #eef7f1;
    color: #1b4332;
    transform: none;
}

.reveal-phone-button[hidden] {
    display: none;
}

.report-ad-button {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 2px solid #a61b1b;
    border-radius: 8px;
    background-color: white;
    color: #a61b1b;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.report-ad-button:hover {
    background-color: #a61b1b;
    color: white;
    transform: translateY(-2px);
}

.report-ad-button:focus-visible {
    outline: 4px solid #ffd60a;
    outline-offset: 3px;
}

.auth-modal-content.admin-reports-content {
    width: 900px !important;
    min-width: 0;
    max-width: 94vw !important;
    max-height: 86vh;
    overflow-y: auto;
    overflow-x: hidden;
    resize: none;
    box-sizing: border-box;
    scrollbar-gutter: stable;
}

#adminReportsStatusFilter,
#adminReportsAdStateFilter,
#adminReportsSort {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
    background-color: white;
    font-size: 16px;
}

.admin-reports-search {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1px solid #b8c1bd;
    border-radius: 7px;
    background-color: #ffffff;
    color: #1b4332;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.admin-reports-search::placeholder {
    color: #6c757d;
    opacity: 1;
}

.admin-reports-search:hover {
    border-color: #1b4332;
}

.admin-reports-search:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
    border-color: #1b4332;
}

.admin-reports-search-help {
    margin: 7px 0 4px;
    color: #5f6368;
    font-size: 0.86rem;
    line-height: 1.35;
}

.admin-reports-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.admin-reports-summary[hidden] {
    display: none;
}

.admin-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 12px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.admin-summary-item strong {
    font-size: 1.65rem;
    line-height: 1;
    margin-bottom: 8px;
}

.admin-summary-item span {
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-summary-item {
    cursor: pointer;
    font-family: inherit;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        outline-color 0.18s ease;
}

.admin-summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}

.admin-summary-item:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 3px;
}

.admin-summary-item.admin-summary-active {
    outline: 3px solid #1b4332;
    outline-offset: 2px;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(27, 67, 50, 0.24);
}

.admin-summary-total {
    color: #1b4332;
    border-top: 5px solid #1b4332;
    background-color: #f1f8f5;
}

.admin-summary-new {
    color: #9a4f00;
    border-top: 5px solid #e67e22;
    background-color: #fff7ed;
}

.admin-summary-review {
    color: #155b8f;
    border-top: 5px solid #3498db;
    background-color: #eef7fd;
}

.admin-summary-treated {
    color: #176b3a;
    border-top: 5px solid #27ae60;
    background-color: #eefaf3;
}

.admin-summary-rejected {
    color: #5f6368;
    border-top: 5px solid #7f8c8d;
    background-color: #f4f5f5;
}

@media (max-width: 700px) {
    .admin-reports-summary {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .admin-summary-total {
        grid-column: 1 / -1;
    }
}

.admin-reports-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.admin-reports-pagination {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        auto
        minmax(150px, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #d5d5d5;
}

.admin-reports-pagination[hidden] {
    display: none;
}

.admin-pagination-button {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #1b4332;
    border-radius: 7px;
    background-color: #ffffff;
    color: #1b4332;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-pagination-button:first-child {
    justify-self: start;
}

.admin-pagination-button:last-child {
    justify-self: end;
}

.admin-pagination-button:hover:not(:disabled) {
    background-color: #1b4332;
    color: #ffffff;
}

.admin-pagination-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 3px;
}

.admin-pagination-button:disabled {
    border-color: #b8c1bd;
    background-color: #f1f3f2;
    color: #7a817e;
    cursor: not-allowed;
    opacity: 0.75;
}

.admin-pagination-information {
    color: #1b4332;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .admin-reports-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .admin-pagination-information {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .admin-pagination-button {
        width: 100%;
    }

    .admin-pagination-button:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .admin-pagination-button:last-child {
        grid-column: 2;
        grid-row: 2;
    }
}

.admin-report-card {
    position: relative;
    padding: 18px;
    border: 1px solid #d5d5d5;
    border-left: 5px solid #1b4332;
    border-radius: 8px;
    background-color: #f8faf9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-report-card::before {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Signalement nouveau */

.admin-report-status-nouveau {
    background-color: #fff7ed;
    border-left-color: #ea580c;
}

.admin-report-status-nouveau::before {
   content: "Signalement : Nouveau";
    color: #9a3412;
    background-color: #fed7aa;
}

/* Signalement en cours d’examen */

.admin-report-status-en-cours,
.admin-report-status-en-examen {
    background-color: #eff6ff;
    border-left-color: #2563eb;
}

.admin-report-status-en-cours::before,
.admin-report-status-en-examen::before {
    color: #1e3a8a;
    background-color: #bfdbfe;
}

.admin-report-status-en-cours::before {
   content: "Signalement : En cours";
}

.admin-report-status-en-examen::before {
    content: "Signalement : En examen";
}

/* Signalement traité */

.admin-report-status-traite {
    background-color: #f0fdf4;
    border-left-color: #16a34a;
}

.admin-report-status-traite::before {
    content: "Signalement : Traité";
    color: #166534;
    background-color: #bbf7d0;
}

/* Signalement rejeté */

.admin-report-status-rejete {
    background-color: #f5f5f5;
    border-left-color: #737373;
}

.admin-report-status-rejete::before {
   content: "Signalement : Rejeté";
    color: #404040;
    background-color: #d4d4d4;
}

/* État administratif de l’annonce */

.admin-report-card .admin-ad-state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 14px 0 10px;
    padding: 7px 11px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-report-card .admin-ad-state::before {
    margin-right: 7px;
    font-size: 0.8rem;
}

.admin-report-card .admin-ad-state-active {
    color: #166534;
    background-color: #dcfce7;
    border-color: #86efac;
}

.admin-report-card .admin-ad-state-active::before {
    content: "●";
    color: #16a34a;
}

.admin-report-card .admin-ad-state-suspended {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.admin-report-card .admin-ad-state-suspended::before {
    content: "●";
    color: #dc2626;
}

.admin-report-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #1b4332;
}

.admin-report-card p {
    margin-top: 8px;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-report-actions {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #d5d5d5;
}

.admin-report-actions label {
    margin: 0;
    font-weight: 700;
}

.admin-report-actions select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 6px;
    background-color: white;
    font-size: 16px;
}

.admin-save-status-button {
    width: 100%;
    margin-top: 3px;
}

.admin-report-status-message {
    min-height: 22px;
    margin: 0;
    color: #1b4332;
    font-weight: 600;
}

#adminReportsStatusFilter:focus-visible,
#adminReportsAdStateFilter:focus-visible,
#adminReportsSort:focus-visible,
.admin-report-actions select:focus-visible {
    outline: 4px solid #ffd60a;
    outline-offset: 2px;
}

@media (max-width: 600px) {
.admin-reports-content {
    width: 94vw;
    min-width: 0;
    max-width: 94vw;
    max-height: 88vh;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    resize: none;
}

    .admin-reports-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-report-card {
        padding: 15px;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background-color: #1b4332;
    color: white;

    font-size: 28px;
    font-weight: bold;
    line-height: 40px;

    text-align: center;
    cursor: pointer;

    z-index: 10;
}

.close-modal:hover {
    background-color: #2d6a4f;
    transform: scale(1.08);
}
.view-button {
    align-self: flex-start;
     margin-top: auto;
}
#modalCategorie {
    font-weight: bold;
    color: #1b4332;
    margin-top: 10px;
}

#modalDate {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}
#modalDescription {
    line-height: 1.6;
    margin-top: 18px;
}
.statut-annonce {
    display: inline-block;
    align-self: flex-start;
    background-color: #e8f5e9;
    color: #1b4332;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 20px;
    margin: 5px 0 10px;
}
.statut-disponible {
    background-color: #e8f5e9;
    color: #1b4332;
}

.statut-reserve {
    background-color: #fff3cd;
    color: #8a6d1d;
}

.statut-vendu {
    background-color: #fdecea;
    color: #a61b1b;
}

.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-button {
    padding: 10px 14px;
    border: 1px solid #1b4332;
    border-radius: 6px;
    background-color: white;
    color: #1b4332;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.auth-button:hover {
    background-color: #1b4332;
    color: white;
}

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    display: block;
    background-color: white;
    width: 90%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 10px;
    position: relative;
}

.auth-modal-content h2 {
    margin-top: 0;
    color: #1b4332;
}

.auth-modal-content label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-modal-content input,
.auth-modal-content select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: white;
    font: inherit;
}

.auth-modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #1b4332;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-close:hover {
    background-color: rgba(27, 67, 50, 0.1);
}

.auth-modal-close:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.auth-submit-button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #1b4332;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit-button:hover {
    opacity: 0.9;
}
.seller-profile-content {
    max-width: 500px;
}

#sellerProfileMessage {
    min-height: 24px;
    margin: 12px 0;
    color: #1b4332;
}

#sellerProfileDetails[hidden] {
    display: none;
}

#sellerProfileDetails {
    margin-top: 8px;
}

#sellerProfileDetails p {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #dfe5e1;
}

#sellerProfileDetails strong {
    color: #1b4332;
}

#sellerProfileDetails span {
    overflow-wrap: anywhere;
}
.seller-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 16px;
    padding: 10px 14px;
    border: 1px solid #1b4332;
    border-radius: 6px;
    background-color: white;
    color: #1b4332;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.seller-profile-button[hidden] {
    display: none;
}

.seller-profile-button:hover {
    background-color: rgba(27, 67, 50, 0.08);
}

.seller-profile-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 3px;
}

#forgotPasswordButton {
    display: block;
    width: fit-content;
    margin: 12px 0 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #1b4332;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#forgotPasswordButton:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 3px;
}

#signupMessage,
#loginMessage {
    min-height: 20px;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
}
.owner-actions {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.owner-actions button {
    flex: 1 1 90px;
    padding: 10px 8px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.modal-gallery {
    width: 100%;
}

.modal-photo-stage {
    position: relative;
    width: 100%;
}

.photo-loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    margin-left: -28px;
    border: 6px solid rgba(27, 67, 50, 0.25);
    border-top-color: #ffd60a;
    border-radius: 50%;
    animation: rotationPhoto 0.8s linear infinite;
    z-index: 10004;
    pointer-events: none;
}

.modal-photo-stage.photo-loading
.photo-loading-indicator {
    display: block;
}
.modal-photo-stage.photo-loading
.gallery-arrow,
.modal-photo-stage.photo-loading
~ .modal-thumbnails
.modal-thumbnail {
    opacity: 0.45;
    cursor: wait;
    pointer-events: none;
}

.photo-loading-error {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 40px);
    padding: 14px 18px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background-color: rgba(27, 67, 50, 0.95);
    color: white;
    font-size: 16px;
    font-weight: bold;

 text-align: center;
    z-index: 10004;
    pointer-events: auto;
}

.photo-loading-error p {
    margin: 0 0 12px;
}

.photo-retry-button {
    padding: 10px 18px;
    border: 2px solid white;
    border-radius: 6px;
    background-color: white;
    color: #1b4332;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.photo-retry-button:hover {
    border-color: #ffd60a;
    background-color: #ffd60a;
}

.photo-retry-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 3px;
}

.modal-photo-stage.photo-error
.photo-loading-error {
    display: block;
}

.modal-photo-stage.photo-error
.modal-main-photo {
    visibility: hidden;
}

@keyframes rotationPhoto {
    to {
        transform: rotate(360deg);
    }
}

.modal-main-photo {
    display: block;
    width: 100%;
    height: 680px;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
}

.fullscreen-close-button {
    display: none;
}

.modal-photo-stage.photo-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.96);
    z-index: 10000;
}

.modal-photo-stage.photo-fullscreen .fullscreen-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid white;
    border-radius: 50%;
    background-color: rgba(27, 67, 50, 0.92);
    color: white;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10003;
}

.modal-photo-stage.photo-fullscreen
.fullscreen-close-button:hover {
    background-color: #2d6a4f;
    transform: scale(1.08);
}

.modal-main-photo:focus-visible,
.modal-photo-stage .gallery-arrow:focus,
.modal-photo-stage .gallery-arrow:focus-visible,
.modal-thumbnail:focus-visible,
.fullscreen-close-button:focus-visible,

#whatsappButton:focus-visible,
#callButton:focus-visible,
#emailButton:focus-visible,

#closeModal:focus-visible {
    outline: 4px solid #ffd60a !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.85) !important;
}

.modal-photo-stage.photo-fullscreen .modal-main-photo {
    position: absolute;
    inset: 20px;
    width: calc(100vw - 40px) !important;
    max-width: none !important;
    height: calc(100vh - 40px) !important;
    max-height: none !important;
    object-fit: contain;
    border-radius: 0;
    cursor: zoom-out;
}

.modal-photo-stage.photo-fullscreen .gallery-counter {
    top: 20px;
    z-index: 10002;
}

.modal-photo-stage.photo-fullscreen .gallery-arrow {
    z-index: 10002;
}

body.photo-fullscreen-open {
    overflow: hidden;
}

.gallery-counter {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(27, 67, 50, 0.88);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    z-index: 6;
    pointer-events: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(27, 67, 50, 0.85);
    color: white;
    font-size: 26px;
    font-weight: bold;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
}

.gallery-arrow-left {
    left: 15px;
}

.gallery-arrow-right {
    right: 15px;
}

.gallery-arrow:hover {
    background-color: #2d6a4f;
    transform: translateY(-50%) scale(1.08);
}

.gallery-arrow:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.modal-thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.75;
    border: 2px solid transparent;
}

.modal-thumbnail:hover {
    opacity: 1;
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: #1b4332;
}

@media (max-width: 768px) {
    .modal-main-photo {
        height: 420px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 40px;
    }

    .gallery-arrow-left {
        left: 8px;
    }

    .gallery-arrow-right {
        right: 8px;
    }

    .modal-thumbnail {
        width: 75px;
        height: 58px;
    }
}

@media (max-width: 480px) {
    .modal-main-photo {
        height: 300px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 19px;
        line-height: 36px;
    }

    .gallery-arrow-left {
        left: 5px;
    }

    .gallery-arrow-right {
        right: 5px;
    }

    .modal-thumbnails {
        gap: 7px;
        margin-top: 8px;
    }

    .modal-thumbnail {
        width: 65px;
        height: 50px;
    }
}
.admin-history-button {
    margin-top: 12px;
    width: 100%;
}

.admin-history-zone {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #cbd5d1;
    border-radius: 8px;
    background-color: #f7faf8;
}

.admin-history-zone[hidden] {
    display: none;
}

.admin-history-item {
    padding: 12px;
    border-left: 4px solid #1b4332;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-history-item h4 {
    margin: 0 0 8px;
    color: #1b4332;
    font-size: 16px;
}

.admin-history-item p {
    margin: 5px 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-history-item p:nth-of-type(1) {
    color: #52615a;
    font-size: 14px;
}

.admin-history-item p:nth-of-type(2) {
    padding: 7px;
    border-radius: 5px;
    background-color: #fff3f3;
}

.admin-history-item p:nth-of-type(3) {
    padding: 7px;
    border-radius: 5px;
    background-color: #eef9f1;
}

@media (max-width: 600px) {
    .admin-history-zone {
        padding: 8px;
    }

    .admin-history-item {
        padding: 10px;
    }
}
.owner-suspension-notice {
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0;
    padding: 12px;
    color: #7a271a;
    background-color: #fff1ed;
    border: 2px solid #e76f51;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}
.statut-annonce.statut-Suspendue {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
}

/* Centre de notifications */

.notifications-modal-content {
    width: 92%;
    max-width: 620px;
    max-height: 80vh;
    overflow-y: auto;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.notification-item {
    padding: 14px;
    border: 1px solid #d7dfda;
    border-radius: 8px;
    background-color: #ffffff;
}

.notification-item h3 {
    margin: 0 0 8px;
    color: #1b4332;
    font-size: 1rem;
}

.notification-item p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.notification-item time {
    display: block;
    color: #5f6f65;
    font-size: 0.85rem;
}

.notification-unread {
    background-color: #fff7ed;
    border-left: 5px solid #e76f51;
}

.notification-read {
    background-color: #f5f7f6;
    border-left: 5px solid #7c9185;
}

.notifications-empty {
    margin: 10px 0;
    padding: 18px;
    color: #5f6f65;
    text-align: center;
    background-color: #f5f7f6;
    border-radius: 8px;
}

.notifications-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    padding: 0 6px;
    color: #ffffff;
    background-color: #c1121f;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.notifications-count[hidden] {
    display: none;
}
.admin-reports-results-information {
    margin: 18px 0 10px;
    color: #1b4332;
    font-weight: 700;
}

.admin-reports-page-size {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-reports-page-size label {
    margin: 0;
    color: #1b4332;
    font-weight: 600;
}

#adminReportsPageSize {
    width: auto;
    min-width: 75px;
    padding: 8px 32px 8px 10px;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    background-color: #ffffff;
    color: #111111;
    font: inherit;
    cursor: pointer;
}

#adminReportsPageSize:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}
.admin-reports-active-filters {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 4px solid #1b4332;
    border-radius: 4px;
    background-color: #eef7f2;
    color: #1b4332;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.admin-reports-active-filters:empty {
    display: none;
}
.admin-reports-filters-toggle {
    width: 100%;
    margin: 10px 0 14px;
    padding: 11px 14px;
    border: 2px solid #1b4332;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1b4332;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-reports-filters-toggle:hover {
    background-color: #eef7f2;
}

.admin-reports-filters-toggle:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.admin-reports-filters-panel[hidden] {
    display: none;
}
.admin-reports-export-button {
    width: 100%;
    margin-top: 10px;
    padding: 11px 14px;
    border: 2px solid #2563eb;
    border-radius: 6px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-reports-export-button:hover:not(:disabled) {
    background-color: #dbeafe;
}

.admin-reports-export-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.admin-reports-export-button:disabled {
    border-color: #b8bfc7;
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.75;
}
.admin-reports-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #b7d5c5;
    border-radius: 8px;
    background-color: #f4faf7;
    color: #1b4332;
    font-weight: 700;
}

.admin-reports-selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-selection-button {
    padding: 9px 12px;
    border: 2px solid #1b4332;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1b4332;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.admin-selection-button:hover:not(:disabled) {
    background-color: #1b4332;
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-selection-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.admin-selection-button:disabled {
    border-color: #b8bfc7;
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}
.admin-report-selection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background-color: #f3f4f6;
    color: #1b4332;
    font-weight: 700;
    cursor: pointer;
}

.admin-report-selection-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #1b4332;
    cursor: pointer;
}

.admin-report-selection-checkbox:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.admin-report-card:has(
    .admin-report-selection-checkbox:checked
) {
    outline: 3px solid #1b4332;
    outline-offset: 2px;
    background-color: #eef7f2;
}
.admin-reports-bulk-message {
    display: none;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid #b8c2cc;
    border-left-width: 5px;
    border-radius: 8px;
    background-color: #f5f7f9;
    color: #24313d;
    font-weight: 600;
    line-height: 1.4;
}

.admin-reports-bulk-message:not(:empty) {
    display: block;
}

.admin-reports-bulk-message[data-type="success"] {
    border-color: #2e7d32;
    background-color: #e8f5e9;
    color: #1b5e20;
}

.admin-reports-bulk-message[data-type="info"] {
    border-color: #1976d2;
    background-color: #e3f2fd;
    color: #0d47a1;
}

.admin-reports-bulk-message[data-type="warning"] {
    border-color: #ed6c02;
    background-color: #fff3e0;
    color: #8a3f00;
}

.admin-reports-bulk-message[data-type="error"] {
    border-color: #c62828;
    background-color: #ffebee;
    color: #8e0000;
}

@media (max-width: 600px) {
    .admin-reports-bulk-message {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}
#adminReportsModal.admin-action-en-cours {
    cursor: progress;
}

#adminReportsModal.admin-action-en-cours .auth-modal-content {
    box-shadow:
        0 0 0 4px rgba(25, 118, 210, 0.3),
        0 14px 35px rgba(0, 0, 0, 0.25);
}

#closeAdminReportsModal:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* ========================================
   CARTES D’ANNONCES COMPACTES
   ======================================== */

.annonces {
    align-items: flex-start;
}

.annonce {
    align-self: flex-start;
    padding: 10px;
    line-height: 1.2;
}

.annonce h3 {
    min-height: 2.3em;
    max-height: 2.3em;
    margin: 5px 0 3px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.15;
}

.annonce .prix {
    margin: 2px 0;
    font-size: 15px;
    line-height: 1.15;
}

.annonce .statut-annonce {
    width: fit-content;
    margin: 3px 0;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1.2;
}

.annonce .date-publication {
    margin: 0 0 5px;
    font-size: 11px;
    line-height: 1.2;
}

.annonce .vendeur {
    margin: 4px 0;
    font-size: 12px;
    line-height: 1.2;
}

.annonce .localisation {
    margin: 3px 0 5px;
    font-size: 12px;
    line-height: 1.2;
}

.annonce .description {
    display: none;
}

.annonce .view-button {
    width: 100%;
    margin-top: 6px;
    padding: 7px 6px;
    font-size: 12px;
    line-height: 1.2;
}

.annonce .owner-actions {
    margin-top: 6px;
    gap: 5px;
}

.annonce .owner-actions button {
    padding: 7px 5px;
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .annonce {
        padding: 8px;
    }

.annonce h3 {
    margin: 4px 0 2px;
    font-size: 13px;
    line-height: 1.15;
}

.annonce .prix {
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.15;
}
    .annonce .statut-annonce {
        font-size: 10px;
    }

    .annonce .localisation {
        margin: 3px 0 5px;
        font-size: 11px;
    }

    .annonce .view-button {
        margin-top: 5px;
        padding: 7px 4px;
        font-size: 11px;
    }

    .annonce .owner-actions button {
        padding: 6px 4px;
        font-size: 10px;
    }
}
/* ========================================
   APERÇU DES PHOTOS SÉLECTIONNÉES
   ======================================== */

.selected-photos-preview {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.selected-photo-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 2px solid #d7ded9;
    border-radius: 8px;
    background-color: #f8faf9;
}

.selected-photo-card:first-child {
    border-color: #1b4332;
    background-color: #f0f7f3;
}

.selected-photo-thumbnail {
    display: block;
    width: 100%;
    height: 105px;
    border-radius: 6px;
    object-fit: cover;
}

.selected-photo-name {
    min-height: 2.4em;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.published-photo-order-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.published-photo-order-button {
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid #1b4332;
    border-radius: 5px;
    background-color: white;
    color: #1b4332;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.published-photo-order-button:hover:not(:disabled) {
    background-color: #1b4332;
    color: white;
}

.published-photo-order-button:disabled {
    border-color: #c9d2cc;
    background-color: #f1f3f2;
    color: #8a948e;
    cursor: not-allowed;
    opacity: 1;
}

.published-photo-order-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.set-primary-photo-button {
    width: 100%;
    margin-top: 8px;
    padding: 7px 5px;
    border: 1px solid #1b4332;
    border-radius: 5px;
    background-color: white;
    color: #1b4332;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.set-primary-photo-button:hover:not(:disabled) {
    background-color: #1b4332;
    color: white;
}

.set-primary-photo-button:disabled {
    border-color: #2d6a4f;
    background-color: #e8f5e9;
    color: #1b4332;
    cursor: default;
    opacity: 1;
}

.set-primary-photo-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

.remove-selected-photo-button {
    width: 100%;
    margin-top: auto;
    padding: 7px 5px;
    border: 1px solid #b42318;
    border-radius: 5px;
    background-color: white;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.remove-selected-photo-button:hover {
    background-color: #b42318;
    color: white;
}

.remove-selected-photo-button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .selected-photos-preview {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .selected-photo-card {
        padding: 6px;
    }

    .selected-photo-thumbnail {
        height: 90px;
    }

.set-primary-photo-button,
.remove-selected-photo-button {
    font-size: 11px;
}
}
.annonce .annonce-photo {
    background-color: #eef3ef;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.annonce.image-en-chargement .annonce-photo {
    opacity: 0.35;
}
/* Étape 52.4.7 — rendu des cartes hors écran */
@supports (content-visibility: auto) and (contain-intrinsic-height: auto 400px) {
    .annonces > .annonce {
        content-visibility: auto;
        contain-intrinsic-height: auto 400px;
    }
}
/* Étape 52.4.8 — focus clavier des boutons des annonces */
.annonce button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #1b4332;
}
/* Étape 52.4.9 — repérage de la carte au clavier */
.annonces > .annonce:has(:focus-visible) {
    outline: 3px solid #1b4332;
    outline-offset: 2px;
}
/* Étape 53.4 — bouton de partage des cartes */
.annonce .share-ad-button {
    width: 100%;
    margin-top: 5px;
    padding: 7px 6px;
    border: 1px solid #1b4332;
    border-radius: 6px;
    background-color: white;
    color: #1b4332;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.annonce .share-ad-button:hover:not(:disabled) {
    background-color: #eef7f2;
}

.annonce .share-ad-button:disabled {
    opacity: 0.6;
    cursor: default;
}
/* Étape 53.5 — fenêtre de partage */
#shareAdDialog {
    box-sizing: border-box;
    width: min(420px, calc(100% - 32px));
    max-height: 85vh;
    margin: auto;
    padding: 20px;
    overflow-y: auto;
    border: 0;
    border-radius: 12px;
    color: #1b4332;
    background: white;
}

#shareAdDialog::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

#shareAdDialog form {
    display: flex;
    justify-content: flex-end;
}

#shareAdDialog h2 {
    font-size: 20px;
}

#shareAdName {
    overflow-wrap: anywhere;
}

.share-destinations {
    display: grid;
    gap: 8px;
}

#shareAdDialog button {
    padding: 10px 12px;
    border: 1px solid #1b4332;
    border-radius: 6px;
    background: white;
    color: #1b4332;
    font: inherit;
    cursor: pointer;
}

#shareAdDialog button:disabled {
    opacity: 0.6;
    cursor: default;
}

#shareAdDialog button:focus-visible {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}
/* Étape 53.6 — message de copie du lien */
#shareAdStatus {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
/* Étape 53.12 — annonce partagée introuvable */
#sharedAdNotice {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 4px solid #1b4332;
    border-radius: 6px;
    background-color: #eef7f2;
    color: #1b4332;
    line-height: 1.5;
}

#sharedAdNotice[hidden] {
    display: none;
}

#sharedAdNotice p {
    margin: 0;
}

#sharedAdNotice p + p {
    margin-top: 8px;
}

#sharedAdNotice:focus {
    outline: 3px solid #ffd60a;
    outline-offset: 2px;
}
/* Photo et favori : aucune ligne supplémentaire dans la carte */
.annonce-photo-conteneur {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.annonce-photo-conteneur > .annonce-photo {
    display: block;
}

.annonce .favorite-ad-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;

    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    color: #545b65;
    box-shadow: 0 2px 6px rgb(0 0 0 / 18%);

    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.annonce .favorite-ad-button:hover:not(:disabled) {
    background: #fff1f2;
    border-color: #be123c;
}

.annonce .favorite-ad-button[aria-pressed="true"] {
    background: #ffffff;
    color: #be123c;
}

.annonce .favorite-ad-button:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}

.annonce .favorite-ad-button:disabled {
    opacity: 0.65;
    cursor: default;
}