/* Design tokens — charte CARRIER IMMOBILIER (CDC Bloc 12) */
:root {
    --ci-blue: #233760;
    --ci-grey: #C6C6C6;
    --ci-black: #111111;
    --ci-white: #ffffff;
    --ci-bg: #f7f7f8;
    --ci-error: #b3261e;
    --ci-success: #1e6b34;
    --ci-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--ci-font);
    color: var(--ci-black);
    background-color: var(--ci-bg);
}

/* Pages d'authentification */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    background: var(--ci-white);
    border: 1px solid var(--ci-grey);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    color: var(--ci-blue);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 0.25rem;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    margin: 0 0 2rem;
}

.auth-card label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 1rem 0 0.375rem;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--ci-grey);
    font-family: inherit;
    font-size: 0.9375rem;
}

.auth-card input:focus {
    outline: 2px solid var(--ci-blue);
    outline-offset: -1px;
    border-color: var(--ci-blue);
}

.btn-primary {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1a2a4a;
}

.alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fdeceb;
    color: var(--ci-error);
    border: 1px solid var(--ci-error);
}

.alert-success {
    background: #e8f5ec;
    color: var(--ci-success);
    border: 1px solid var(--ci-success);
}

.totp-steps {
    font-size: 0.875rem;
    line-height: 1.6;
    padding-left: 1.25rem;
}

.totp-secret {
    display: inline-block;
    background: var(--ci-bg);
    border: 1px dashed var(--ci-grey);
    padding: 0.25rem 0.5rem;
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    word-break: break-all;
}

.totp-qr {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
}

.totp-qr img {
    border: 1px solid var(--ci-grey);
    padding: 8px;
    background: #fff;
}

.auth-footer {
    text-align: center;
    font-size: 0.8125rem;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--ci-blue);
}

/* Moniteur Hektor */
.hektor-monitor {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.hektor-monitor h1 {
    color: var(--ci-blue);
    font-size: 1.5rem;
}

.hektor-monitor a {
    color: var(--ci-blue);
}

.monitor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--ci-white);
    border: 1px solid var(--ci-grey);
}

.monitor-head .btn-primary {
    width: auto;
    margin: 0;
    white-space: nowrap;
}

.monitor-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ci-white);
    font-size: 0.875rem;
}

.monitor-table th,
.monitor-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ci-grey);
    text-align: left;
    vertical-align: top;
}

.monitor-table th {
    background: var(--ci-bg);
    font-weight: 600;
}

.monitor-table ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ci-white);
}

.status-success,
.status-downloaded { background: var(--ci-success); }
.status-partial,
.status-pending { background: #b8860b; }
.status-failed { background: var(--ci-error); }
.status-skipped,
.status-orphaned,
.status-running { background: #6b7280; }

/* Panneau fichier source (page Sync Hektor) */
.source-panel {
    background: var(--ci-white);
    border: 1px solid var(--ci-grey);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.source-panel h2 {
    font-size: 1rem;
    color: var(--ci-blue);
    margin: 0 0 0.75rem;
}

.source-info {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.source-info dt {
    color: #666;
}

.source-info dd {
    margin: 0;
}

.source-hint {
    font-size: 0.85rem;
    color: #555;
    margin: 0.75rem 0 0;
}

/* Page photos */
.photo-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.kpi {
    background: var(--ci-white);
    border: 1px solid var(--ci-grey);
    padding: 0.75rem 1.25rem;
    min-width: 110px;
    text-align: center;
}

.kpi-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ci-blue);
}

.kpi-label {
    font-size: 0.8rem;
    color: #666;
}

.kpi-alert .kpi-value {
    color: var(--ci-error);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.photo-card {
    margin: 0;
    background: var(--ci-white);
    border: 1px solid var(--ci-grey);
}

.photo-card img,
.photo-placeholder {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--ci-bg);
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem;
    font-size: 0.78rem;
}

.photo-pos {
    font-weight: 600;
}

.photo-error {
    color: var(--ci-error);
}

/* Code couleur des résolutions : rouge < 1000 px, vert > 1500 px */
.res-low {
    color: var(--ci-error);
    font-weight: 600;
}

.res-high {
    color: var(--ci-success);
    font-weight: 600;
}

/* ============================================================
   FRONT-OFFICE PUBLIC — charte premium sobre
   ============================================================ */
.front {
    color: #1c2530;
}

.front .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header / footer */
.site-header {
    border-bottom: 1px solid #e6e6ea;
    background: var(--ci-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-brand {
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ci-blue);
    text-decoration: none;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 0.25rem;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: #33404f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--ci-blue);
}

.site-footer {
    margin-top: 4rem;
    background: var(--ci-blue);
    color: #cbd3e0;
    padding: 2.5rem 0 1.5rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-col-contact .footer-contact {
    margin: 0 0 0.85rem;
}

.footer-contact-cta {
    display: inline-block;
    color: var(--ci-white) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-contact-cta:hover {
    text-decoration: underline;
}

.footer-col h4 {
    color: var(--ci-white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
}

.footer-col a {
    display: block;
    padding: 0.28rem 0;
    color: #cbd3e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-brand {
    color: var(--ci-white);
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
}

.footer-baseline {
    margin: 0;
    font-size: 0.88rem;
    color: #9aa6ba;
    max-width: 22rem;
}

.site-footer a {
    color: #cbd3e0;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.footer-legal {
    font-size: 0.8rem;
    color: #9aa6ba;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--ci-blue), #16233f);
    color: var(--ci-white);
    padding: 5rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #c6d0e2;
    margin: 0 0 2rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Boutons front (le .btn-primary global est réutilisé, largeur auto ici) */
.front .btn-primary,
.btn-ghost {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--ci-white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

/* Charte : les titres sont en MAJUSCULES (référence au logo), alignés à gauche. */
.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ci-blue);
    margin: 0 0 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Grille de biens */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}

.property-card:hover {
    box-shadow: 0 8px 24px rgba(35, 55, 96, 0.12);
    transform: translateY(-2px);
}

.property-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--ci-bg);
    overflow: hidden;
}

.property-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ci-grey);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.badge-prestige,
.badge-exclu {
    position: absolute;
    top: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ci-white);
}

.badge-prestige {
    left: 0.75rem;
    background: var(--ci-blue);
}

.badge-exclu {
    right: 0.75rem;
    background: #8a6d1a;
}

.badge-sold {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ci-white);
    background: #1c2530;
}

.property-card--sold .property-card-media img {
    filter: saturate(0.85);
}

.property-card-sold-date {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #6a7583;
    font-style: italic;
}

.section-intro {
    max-width: 720px;
    color: #6a7583;
    line-height: 1.6;
    margin: -0.5rem 0 2rem;
}

/* Page contact : formulaire + encart agence */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.contact-agency {
    background: var(--ci-bg);
    border: 1px solid #e6e6ea;
    padding: 1.5rem;
}

.contact-agency h2 {
    font-size: 1.1rem;
    color: var(--ci-blue);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-agency address {
    font-style: normal;
    line-height: 1.7;
    color: #33404f;
    font-size: 0.95rem;
}

.contact-agency address a {
    color: var(--ci-blue);
    text-decoration: none;
}

.contact-qr {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.contact-qr img {
    background: #fff;
    padding: 6px;
    border: 1px solid #e6e6ea;
}

.contact-qr span {
    font-size: 0.8rem;
    color: #6a7583;
}

@media (max-width: 720px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Observatoire des prix */
.obs-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.obs-summary-item {
    background: var(--ci-bg);
    border: 1px solid #e6e6ea;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.obs-summary-item .obs-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ci-blue);
}

.obs-summary-item .obs-label {
    font-size: 0.85rem;
    color: #6a7583;
}

.obs-table-wrap {
    overflow-x: auto;
}

.obs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.obs-table th,
.obs-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.obs-table thead th {
    color: var(--ci-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--ci-blue);
}

.obs-table .num {
    text-align: right;
}

.obs-table .strong {
    font-weight: 700;
    color: var(--ci-blue);
}

.obs-table .muted {
    color: #9aa6ba;
    font-size: 0.88rem;
}

.obs-table tbody tr:hover {
    background: var(--ci-bg);
}

.obs-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #9aa6ba;
    font-style: italic;
}

.property-card-body {
    padding: 1rem 1.15rem 1.25rem;
}

.property-card-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ci-blue);
}

.property-card-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.4rem 0 0.25rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-meta {
    font-size: 0.85rem;
    color: #6a7583;
}

.property-card-specs {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0 0;
    margin: 0.75rem 0 0;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #33404f;
}

/* Territoires */
.territory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.territory-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem;
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    text-decoration: none;
    color: inherit;
}

.territory-card:hover {
    border-color: var(--ci-blue);
}

.territory-name {
    font-weight: 600;
    color: var(--ci-blue);
}

.territory-baseline {
    font-size: 0.85rem;
    color: #6a7583;
}

/* Filtres */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 1.25rem;
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    margin-bottom: 1.5rem;
}

.filters select,
.filters input {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--ci-grey);
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 140px;
}

.filters .btn-primary {
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
}

.filters-reset {
    color: #6a7583;
    font-size: 0.85rem;
}

.results-count {
    color: #6a7583;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.95rem;
}

.pagination a {
    color: var(--ci-blue);
    text-decoration: none;
    font-weight: 500;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #6a7583;
}

/* Fiche bien */
.property-detail {
    padding: 2rem 1.5rem 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #6a7583;
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--ci-blue);
    text-decoration: none;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.property-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1c2530;
    margin: 0 0 0.35rem;
}

.property-location {
    color: #6a7583;
    margin: 0;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ci-blue);
    white-space: nowrap;
}

.gallery {
    margin-bottom: 2rem;
}

.gallery-main img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
    position: relative;
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ci-blue);
    color: var(--ci-white);
    font-weight: 600;
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e6e6ea;
    border-bottom: 1px solid #e6e6ea;
    margin-bottom: 1.75rem;
}

.property-specs div {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #6a7583;
}

.property-specs span {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1c2530;
}

.property-main h2 {
    font-size: 1.2rem;
    color: var(--ci-blue);
    margin: 1.75rem 0 0.75rem;
}

.property-description p {
    line-height: 1.7;
    margin: 0 0 0.85rem;
}

.property-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    padding: 0;
}

.property-features li::before {
    content: '✓ ';
    color: var(--ci-blue);
    font-weight: 700;
}

.dpe-badges {
    display: flex;
    gap: 0.75rem;
}

.dpe-badge {
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    color: var(--ci-white);
    background: #6a7583;
}

.dpe-a, .ges-a { background: #319834; }
.dpe-b, .ges-b { background: #5aa832; }
.dpe-c, .ges-c { background: #a8c62f; }
.dpe-d, .ges-d { background: #f0c700; color: #1c2530; }
.dpe-e, .ges-e { background: #f0900f; }
.dpe-f, .ges-f { background: #e8631a; }
.dpe-g, .ges-g { background: #d8341a; }

.contact-card {
    position: sticky;
    top: 96px;
    padding: 1.5rem;
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
}

.contact-card h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--ci-blue);
}

.contact-name {
    font-weight: 500;
    margin: 0 0 1rem;
}

.contact-card .btn-primary,
.contact-card .btn-ghost {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
}

.contact-card .btn-ghost {
    background: transparent;
    border: 1px solid var(--ci-blue);
    color: var(--ci-blue);
}

.contact-fees {
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.contact-fees a {
    color: #6a7583;
}

/* Formulaires de leads */
.narrow {
    max-width: 760px;
}

.lead-intro {
    color: #6a7583;
    margin: -0.5rem 0 1.75rem;
}

.lead-form {
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    padding: 1.75rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.form-section {
    font-size: 1.1rem;
    color: var(--ci-blue);
    margin: 0 0 1rem;
}

.form-section:not(:first-child) {
    margin-top: 1.75rem;
}

.lead-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.lead-form input:not([type="checkbox"]),
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--ci-grey);
    font-family: inherit;
    font-size: 0.95rem;
}

.lead-form textarea {
    min-height: 110px;
    resize: vertical;
}

.lead-form .form-check,
.form-checks {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0;
}

.lead-form .btn-primary {
    margin-top: 1.5rem;
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
    cursor: pointer;
}

/* Le honeypot doit être invisible pour l'humain (mais pas display:none pour les bots) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form .form-error,
.form-errors,
.lead-form ul {
    color: var(--ci-error);
    font-size: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
}

/* Formulaire compact (fiche bien) */
.lead-form-compact {
    padding: 0;
    border: none;
    margin-top: 1rem;
}

.lead-form-compact input,
.lead-form-compact textarea {
    margin-bottom: 0.6rem;
}

.consent-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.78rem;
    color: #6a7583;
    font-weight: 400 !important;
    margin: 0.5rem 0;
}

.lead-form-compact .btn-ghost {
    width: 100%;
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
    margin-top: 0.5rem;
}

.flash {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border: 1px solid;
}

.flash-success {
    background: #e8f5ec;
    color: var(--ci-success);
    border-color: var(--ci-success);
}

.flash-error {
    background: #fdeceb;
    color: var(--ci-error);
    border-color: var(--ci-error);
}

@media (max-width: 860px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .site-nav {
        gap: 1rem;
        font-size: 0.85rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .geo-layout {
        grid-template-columns: 1fr;
    }
}

/* Pages territoriales SEO */
.geo-hero {
    background: linear-gradient(135deg, var(--ci-blue), #16233f);
    color: var(--ci-white);
    padding: 3rem 0;
}

.geo-hero h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0 0.5rem;
}

.geo-baseline {
    color: #c6d0e2;
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    max-width: 720px;
}

.breadcrumb.light,
.breadcrumb.light a {
    color: #c6d0e2;
}

.geo-content {
    max-width: 760px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.geo-content p {
    margin: 0 0 1rem;
}

.city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.city-link {
    padding: 0.45rem 0.9rem;
    background: var(--ci-white);
    border: 1px solid var(--ci-grey);
    text-decoration: none;
    color: var(--ci-blue);
    font-size: 0.9rem;
}

.city-link:hover {
    border-color: var(--ci-blue);
}

.geo-properties-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.see-all {
    color: var(--ci-blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.geo-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.geo-side > div {
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.geo-cta h3,
.geo-siblings h3 {
    color: var(--ci-blue);
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.geo-cta .btn-primary {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
    text-align: center;
}

.geo-siblings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.geo-siblings li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #eee;
}

.geo-siblings a {
    color: #33404f;
    text-decoration: none;
}

.geo-faq {
    margin-top: 2.5rem;
}

.faq-item {
    border-bottom: 1px solid #e6e6ea;
    padding: 0.9rem 0;
}

.faq-item summary {
    font-weight: 500;
    cursor: pointer;
    color: var(--ci-blue);
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: #33404f;
    line-height: 1.6;
}

/* Guide immobilier (blog) */
.blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-cats a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--ci-grey);
    text-decoration: none;
    color: #33404f;
    font-size: 0.9rem;
}

.blog-cats a.active,
.blog-cats a:hover {
    background: var(--ci-blue);
    color: var(--ci-white);
    border-color: var(--ci-blue);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(35, 55, 96, 0.12);
    transform: translateY(-2px);
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ci-bg);
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ci-grey);
    font-weight: 600;
}

.blog-cat,
.blog-cat-inline {
    background: var(--ci-blue);
    color: var(--ci-white);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
}

.blog-cat {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.blog-cat-inline {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.blog-card-body {
    padding: 1rem 1.15rem 1.25rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #6a7583;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #9aa6ba;
}

/* Article */
.blog-article {
    max-width: 820px;
    padding: 2rem 1.5rem 0;
}

.blog-article-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1c2530;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.blog-article-meta {
    color: #6a7583;
    font-size: 0.9rem;
}

.blog-article-hero {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    margin: 1.5rem 0;
}

.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #33404f;
    margin-top: 1.5rem;
}

.blog-article-content p {
    margin: 0 0 1.15rem;
}

.blog-article-cta {
    margin: 2.5rem 0;
    padding: 1.75rem;
    background: var(--ci-bg);
    border: 1px solid #e6e6ea;
    text-align: center;
}

.blog-article-cta p {
    margin: 0 0 1rem;
    font-weight: 500;
}

.blog-article-cta .btn-primary,
.blog-article-cta .btn-ghost {
    background: var(--ci-blue);
    color: var(--ci-white);
    border: none;
    margin: 0 0.35rem;
}

.blog-article-cta .btn-ghost {
    background: transparent;
    border: 1px solid var(--ci-blue);
    color: var(--ci-blue);
}

/* Avis clients */
.testimonial-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.testimonial-avg {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ci-blue);
    line-height: 1;
}

.testimonial-avg-stars span,
.testimonial-stars span {
    color: #d9d9de;
    font-size: 1.05rem;
}

.testimonial-avg-stars span.on,
.testimonial-stars span.on {
    color: #f2b01e;
}

.testimonial-count {
    color: #6a7583;
    font-size: 0.95rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    margin: 0;
    padding: 1.5rem;
    background: var(--ci-white);
    border: 1px solid #e6e6ea;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #33404f;
    font-style: italic;
}

.testimonial-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
    color: #1c2530;
}

.testimonial-loc {
    color: #6a7583;
    font-weight: 400;
}

.testimonial-context {
    font-size: 0.82rem;
    color: #9aa6ba;
}

.section-more {
    text-align: center;
    margin-top: 1.75rem;
}

.section-more a {
    color: var(--ci-blue);
    font-weight: 600;
    text-decoration: none;
}

/* Pages légales */
.legal-page {
    max-width: 800px;
    padding: 2.5rem 1.5rem;
}

.legal-page h1 {
    font-size: 2rem;
    color: #1c2530;
    margin-bottom: 1.5rem;
}

.legal-content {
    line-height: 1.75;
    color: #33404f;
}

.legal-content h2 {
    font-size: 1.25rem;
    color: var(--ci-blue);
    margin: 1.75rem 0 0.6rem;
}

.legal-content p {
    margin: 0 0 1rem;
}

.legal-updated {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #9aa6ba;
}

/* Liens légaux dans le footer */
.footer-contact {
    margin-top: 0.85rem;
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}

@media (max-width: 860px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-legal-links a,
.footer-cookie-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.footer-legal-links a:hover,
.footer-cookie-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Bandeau cookies */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    border-top: 3px solid var(--ci-blue);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.14);
}

.cookie-banner-inner {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    justify-content: space-between;
}

.cookie-banner-text {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #33404f;
}

.cookie-banner-text a {
    color: var(--ci-blue);
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-banner-actions .btn-primary,
.cookie-banner-actions .btn-ghost,
.cookie-prefs-actions .btn-primary,
.cookie-prefs-actions .btn-ghost {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
}

.cookie-banner-actions .btn-primary,
.cookie-prefs-actions .btn-primary {
    background: var(--ci-blue);
    color: #fff;
    border: 1px solid var(--ci-blue);
}

.cookie-banner-actions .btn-ghost,
.cookie-prefs-actions .btn-ghost {
    background: transparent;
    color: var(--ci-blue);
    border: 1px solid var(--ci-grey);
}

/* Panneau de préférences */
.cookie-prefs {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(20, 28, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* L'attribut hidden doit primer sur les display ci-dessus. */
.cookie-prefs[hidden],
.cookie-banner[hidden] {
    display: none;
}

.cookie-prefs-panel {
    background: #fff;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    border-radius: 4px;
}

.cookie-prefs-panel h2 {
    margin: 0 0 0.5rem;
    color: var(--ci-blue);
}

.cookie-prefs-intro {
    font-size: 0.9rem;
    color: #6a7583;
    margin-bottom: 1.25rem;
}

.cookie-cat {
    padding: 0.85rem 0;
    border-top: 1px solid #eee;
}

.cookie-cat label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-cat p {
    margin: 0.35rem 0 0 1.6rem;
    font-size: 0.85rem;
    color: #6a7583;
}

.cookie-prefs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.5rem;
}
