.ann-page,.ann-public-main {
    --ann-red:#c91d36;
    --ann-border:#dce3eb;
    --ann-muted:#647387;
    color:#263549;
    font-family:inherit;
    font-size:14px;
    line-height:1.5;
}
.ann-page *,.ann-public-main * {
    box-sizing:border-box;
}
.ann-page [hidden],.ann-public-main [hidden] {
    display:none!important;
}
.ann-page {
    max-width:1380px;
    margin:auto;
}
.ann-public {
    background:#fff;
    margin:0;
}
.ann-public-main {
    max-width:1100px;
    padding:28px 24px;
    margin:auto;
    min-height:70vh;
}
.ann-header,.ann-ad-heading,.ann-bien-recap,.ann-owner-bar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}
.ann-header {
    margin-bottom:20px;
}
.ann-header h1,.ann-search h1,.ann-ad-heading h1 {
    font-size:26px;
    margin:4px 0;
}
.ann-header p,.ann-ad-heading p {
    margin:4px 0;
    color:var(--ann-muted);
}
.ann-eyebrow {
    text-transform:uppercase;
    font-weight:750;
    letter-spacing:.07em;
    font-size:11px;
    color:var(--ann-muted);
}
.ann-card {
    background:#fff;
    border:1px solid var(--ann-border);
    border-radius:12px;
    padding:23px;
    margin-bottom:20px;
    box-shadow:0 4px 16px #1b354307;
}
.ann-card h2 {
    font-size:19px;
    margin:0 0 15px;
}
.ann-card>summary {
    font-weight:700;
    cursor:pointer;
}
.ann-muted {
    color:var(--ann-muted);
    font-size:12px;
}
.ann-card label,.ann-select-bien label {
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:13px;
    font-weight:650;
    margin:0 0 17px;
}
.ann-card input,.ann-card select,.ann-card textarea,.ann-select-bien select {
    border:1px solid #c8d2df;
    border-radius:7px;
    background:white;
    color:#263549;
    padding:10px 11px;
    font:inherit;
    width:100%;
    min-width:0;
    line-height:1.4;
}
.ann-card input[type=file] {
    padding:8px;
}
.ann-card textarea {
    resize:vertical;
    min-height:85px;
}
.ann-card input[type=checkbox] {
    width:16px;
    height:16px;
    flex:none;
}
.ann-card fieldset {
    border:1px solid var(--ann-border);
    border-radius:8px;
    padding:15px;
    margin:6px 0 20px;
    min-width:0;
}
.ann-card legend {
    font-weight:700;
    padding:0 6px;
}
.ann-fields {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 20px;
}
.ann-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    background:var(--ann-red,#c91d36);
    color:#fff!important;
    font:inherit;
    font-size:13px;
    font-weight:750;
    border:1px solid var(--ann-red,#c91d36);
    padding:10px 15px;
    border-radius:8px;
    text-decoration:none;
    cursor:pointer;
    line-height:1.4;
    white-space:normal;
}
.ann-btn--secondary {
    background:white;
    color:#35475d!important;
    border-color:#c6d2e0;
}
.ann-btn:disabled {
    opacity:.55;
    cursor:wait;
}
.ann-btn:hover {
    filter:brightness(.96);
}
.ann-actions {
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
}
.ann-actions form {
    margin:0;
}
.ann-error {
    color:#a72032;
    padding:12px;
    border-radius:8px;
    background:#fff1f2;
    border:1px solid #efc5cc;
    white-space:pre-line;
}
.ann-error:empty {
    display:none;
}
.ann-info {
    padding:13px 16px;
    border:1px solid #d6e3f1;
    background:#f1f7fd;
    border-radius:8px;
    margin:16px 0;
}
.ann-reference {
    font-size:13px;
    color:var(--ann-muted);
}
.ann-reference strong {
    color:#253d5b;
    letter-spacing:.04em;
}
.ann-photo-editor {
    margin:0!important;
    font-size:12px!important;
}
.ann-photo-editor span {
    display:flex;
    align-items:center;
    gap:5px;
    margin:5px;
}
.ann-photos-editor {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin:15px 0;
}
.ann-photos-editor img {
    width:100%;
    height:135px;
    object-fit:cover;
    border-radius:7px;
}
.ann-dialog {
    border:0;
    border-radius:12px;
    padding:25px;
    width:min(440px,calc(100% - 30px));
    font-family:inherit;
    color:#263549;
    max-height:90vh;
    overflow:auto;
}
.ann-dialog::backdrop {
    background:#14203299;
}
.ann-dialog label {
    display:flex;
    flex-direction:column;
    gap:6px;
    margin:15px 0;
}
.ann-dialog input,.ann-dialog select {
    border:1px solid #c8d2df;
    border-radius:7px;
    padding:10px;
    font:inherit;
    max-width:100%;
}
.ann-select-bien {
    max-width:650px;
}
.ann-search {
    max-width:600px;
    margin:12vh auto 6vh;
    text-align:center;
}
.ann-search p {
    color:var(--ann-muted);
}
.ann-search>div {
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}
.ann-search input {
    border:1px solid #bdcbd9;
    border-radius:8px;
    padding:13px;
    font-size:17px;
    letter-spacing:.08em;
    font-family:monospace;
    text-transform:uppercase;
    width:230px;
    max-width:100%;
}
.ann-search--compact {
    margin:10px auto 35px;
}
.ann-search--compact h1 {
    font-size:21px;
}
.ann-sr-only {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
}
.ann-price {
    display:flex;
    flex-direction:column;
    gap:3px;
    color:#9e1c31;
}
.ann-price strong {
    font-size:27px;
}
.ann-price span {
    font-size:12px;
}
.ann-owner-bar {
    background:#fff6dc;
    border:1px solid #e9d89d;
    padding:13px;
    border-radius:8px;
    margin:18px 0;
}
.ann-owner-bar>span {
    font-weight:750;
}
.ann-gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:24px 0;
}
.ann-gallery a:first-child {
    grid-column:span 2;
    grid-row:span 2;
}
.ann-gallery img {
    width:100%;
    height:175px;
    object-fit:cover;
    border-radius:7px;
    display:block;
}
.ann-gallery a:first-child img {
    height:360px;
}
.ann-copy {
    white-space:normal;
    overflow-wrap:anywhere;
    margin:20px 0;
}
.ann-facts {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin:24px 0;
}
.ann-facts>div {
    border-bottom:1px solid #e8edf3;
    padding-bottom:11px;
}
.ann-facts dt {
    font-size:12px;
    color:var(--ann-muted);
}
.ann-facts dd {
    margin:3px 0 0;
    font-weight:650;
}
.ann-energy-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin:20px 0;
}
.ann-energy-scale {
    display:flex;
    gap:3px;
    margin-top:13px;
    max-width:340px;
}
.ann-energy-scale span {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    flex:1;
    font-weight:700;
    color:#172324;
    opacity:.48;
    border-radius:3px;
}
.ann-energy-scale .is-current {
    opacity:1;
    outline:3px solid #263549;
    outline-offset:2px;
}
.ann-energy-A {
    background:#009d66;
}
.ann-energy-B {
    background:#52b154;
}
.ann-energy-C {
    background:#a5cf4e;
}
.ann-energy-D {
    background:#f8ea4a;
}
.ann-energy-E {
    background:#f6b84a;
}
.ann-energy-F {
    background:#ea8042;
}
.ann-energy-G {
    background:#e53f36;
}
.ann-energy:nth-child(2) .ann-energy-A {
    background:#dceaf2;
}
.ann-energy:nth-child(2) .ann-energy-B {
    background:#bed7e6;
}
.ann-energy:nth-child(2) .ann-energy-C {
    background:#9abed7;
}
.ann-energy:nth-child(2) .ann-energy-D {
    background:#83a1cb;
}
.ann-energy:nth-child(2) .ann-energy-E {
    background:#8680b4;
}
.ann-energy:nth-child(2) .ann-energy-F {
    background:#8c639f;
}
.ann-energy:nth-child(2) .ann-energy-G {
    background:#8b477d;
}
.ann-check {
    flex-direction:row!important;
    align-items:flex-start;
    font-weight:400!important;
}
.ann-honeypot {
    position:absolute;
    left:-10000px;
    width:1px;
    height:1px;
    overflow:hidden;
}
.ann-public-footer {
    max-width:1100px;
    margin:20px auto;
    padding:20px 24px;
    border-top:1px solid #e2e7ee;
    font:12px Arial,sans-serif;
    color:#6b7888;
}
.ann-public-footer a {
    color:inherit;
}
.ann-success {
    border-color:#b3d8c5;
    background:#f1fbf6;
}
.ann-table-wrap {
    overflow:auto;
}
.ann-table {
    border-collapse:collapse;
    width:100%;
    font-size:13px;
}
.ann-table th {
    text-align:left;
    font-size:11px;
    text-transform:uppercase;
    color:var(--ann-muted);
    padding:12px 10px;
    border-bottom:1px solid var(--ann-border);
}
.ann-table td {
    padding:13px 10px;
    border-bottom:1px solid #e6ebf1;
    vertical-align:top;
}
.ann-table small {
    display:block;
    color:var(--ann-muted);
    margin-top:4px;
}
.ann-table .ann-actions {
    min-width:240px;
}
.ann-candidate-detail {
    padding:17px;
    background:#f5f8fc;
}
.ann-candidate-detail .ann-fields {
    margin-top:16px;
}
.ann-badge {
    display:inline-block;
    font-size:11px;
    font-weight:700;
    border-radius:20px;
    padding:4px 9px;
    background:#e9f1fa;
    color:#2c5279;
}
.ann-badge--REFUSEE {
    background:#f5e9eb;
    color:#95364a;
}
.ann-badge--CONTACTE {
    background:#e6f4ec;
    color:#266646;
}
.ann-counter-link {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    color:#293c54;
    text-decoration:none;
}
.ann-counter-link strong {
    color:#b21e36;
}
.ann-page :focus-visible,.ann-public-main :focus-visible,.ann-dialog :focus-visible {
    outline:3px solid #73b6e5;
    outline-offset:2px;
}
@media(max-width:750px) {
    .ann-fields,.ann-facts,.ann-energy-grid {
        grid-template-columns:1fr;
    }
    .ann-photos-editor {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .ann-public-main {
        padding:20px 14px;
    }
    .ann-card {
        padding:18px;
    }
    .ann-gallery {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .ann-gallery a:first-child {
        grid-column:span 2;
        grid-row:auto;
    }
    .ann-gallery a:first-child img {
        height:250px;
    }
    .ann-gallery img {
        height:140px;
    }
    .ann-header h1,.ann-ad-heading h1 {
        font-size:23px;
    }
    .ann-table {
        min-width:800px;
    }
    .ann-search {
        margin-top:8vh;
    }
    .ann-actions {
        align-items:stretch;
    }
    .ann-owner-bar .ann-actions {
        width:100%;
    }
}
@media print {
    .ann-public .site-header,.ann-search,.ann-owner-bar,.ann-public-footer,#candidature {
        display:none;
    }
    .ann-public-main {
        padding:0;
        max-width:none;
    }
    .ann-card {
        box-shadow:none;
        break-inside:avoid;
    }
}
.bien-ligne__actions:has(.ann-btn) {
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:500px;
}
.bien-ligne__actions .ann-btn {
    font-size:11px;
    padding:7px 9px;
}
.ann-bien-reference {
    flex-basis:100%;
    font-size:11px;
    color:#52677e;
    text-align:right;
}

/* Conserver les accès publics visibles sur petits écrans. */
.ann-public .site-actions {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.ann-public .site-header__inner {
    flex-wrap: wrap;
}
.ann-public .site-actions .button--outline {
    display: inline-flex;
}
p.ann-success {
    padding: 12px 16px;
    border: 1px solid #b3d8c5;
    border-radius: 8px;
}
@media (max-width: 760px) {
    .ann-public .site-header {
        min-height: 0;
    }
    .ann-public .site-header__inner {
        padding: 12px 0;
        gap: 8px;
    }
    .ann-public .site-actions {
        flex: 1 1 210px;
        gap: 6px;
    }
    .ann-public .site-guide-link {
        min-height: 36px;
        padding: 0 6px;
        font-size: 12px;
    }
}

.ann-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 20px; border-bottom:1px solid #dce3eb; padding-bottom:10px; }
.ann-tabs a { padding:10px 18px; color:#34465a; text-decoration:none; border-radius:8px; font-weight:700; }
.ann-tabs a[aria-current=page] { background:#b7192e; color:white; }
.ann-discussion { display:flex; flex-direction:column; gap:14px; margin:20px 0; }
.ann-message { align-self:flex-start; max-width:90%; padding:15px 18px; border:1px solid #dce3eb; border-radius:12px; background:#f5f8fc; overflow-wrap:anywhere; }
.ann-message--moi { align-self:flex-end; background:#fff4f5; border-color:#ebcbd1; }
.ann-message header { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; margin-bottom:9px; }
.ann-message time { color:#68788a; font-size:11px; }
.ann-message p:last-child { margin-bottom:0; }
.ann-visit { padding-top:10px; border-top:1px solid #dfd7db; font-weight:650; }
.ann-composer { border-top:1px solid #dce3eb; padding-top:20px; }
.ann-unread { display:inline-block; margin-top:8px; color:#b7192e; font-size:12px; font-weight:700; }
.ann-mailbox-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 25px; background:white; border-bottom:1px solid #dce3eb; }
.ann-mailbox-header img { width:150px; display:block; }
.ann-mailbox-header a { color:#34465a; text-decoration:none; font:14px Arial,sans-serif; }
.ann-mailbox { max-width:1450px; margin:25px auto; padding:0 20px; }
.ann-mailbox-grid { display:grid; grid-template-columns:280px minmax(0,1fr); gap:20px; align-items:start; }
.ann-mailbox-grid > * { min-width:0; }
.ann-mailbox aside h1 { font-size:21px; }
.ann-thread { display:flex; flex-direction:column; gap:5px; padding:15px 8px; border-bottom:1px solid #dce3eb; text-decoration:none; color:#34465a; font-size:13px; }
.ann-thread.is-current { background:#fff4f5; border-left:3px solid #b7192e; }
.ann-thread small { color:#68788a; }
@media(max-width:800px) { .ann-mailbox-grid { grid-template-columns:1fr; } .ann-mailbox-grid aside { max-height:260px; overflow:auto; } .ann-message { max-width:100%; } .ann-mailbox { padding:0 12px; } }

/* Mettre les critères avant le formulaire, et distinguer le dépôt du dossier. */
.ann-conditions { border-left:4px solid #b7192e; }
.ann-conditions .ann-copy { margin-bottom:0; }
.ann-candidature { border:2px solid #c91d36; box-shadow:0 4px 18px #c91d360a; }
.ann-candidature > h2 { color:#b7192e; }
