/* freeimmo.be — feuille de style (mobile d'abord, puis tablette et ordinateur) */

:root {
  --brand: #0b5d63;
  --brand-dark: #08474c;
  --brand-light: #e6f2f2;
  --accent: #e8743b;
  --accent-dark: #c95d27;
  --ink: #1d2a33;
  --muted: #5d6b75;
  --line: #dde3e7;
  --bg: #f5f7f8;
  --card: #ffffff;
  --ok: #1f7a4a;
  --ok-bg: #e7f5ed;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --err: #b42318;
  --err-bg: #fdecea;
  --info-bg: #e8f1fb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; overflow-wrap: anywhere; }
.tile, .stat, .lcard-title, .mitem h3 { overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1000px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 560px; }
.medium { max-width: 860px; }
/* Formulaires d'inscription et fiche de l'agence : larges sur ordinateur, pleine largeur et confortables sur téléphone */
.form-wide { max-width: 1100px; }
@media (max-width: 639px) {
  .form-wide .card { padding: 16px; }
  .form-wide form > .btn, .form-wide form > p > .btn { width: 100%; }
  .form-wide .segmented label { flex: 1 1 calc(50% - 8px); padding: 10px; }
  .form-wide h1 { font-size: 1.5rem; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.mb0 { margin-bottom: 0; }
.inline { display: inline; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* ---------- En-tête et navigation ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 1.25rem; letter-spacing: -.01em; }
.logo b { color: var(--brand); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle i { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff; border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 8px 16px 16px; box-shadow: var(--shadow); }
.site-nav.open { display: flex; }
.site-nav > a, .site-nav .link { padding: 10px 4px; text-decoration: none; color: var(--ink); font-weight: 500; text-align: left; }
.site-nav > a:hover { color: var(--brand); }
.site-nav .btn { margin-top: 8px; text-align: center; }
.nav-sep { height: 1px; background: var(--line); margin: 6px 0; }
.lang-switch { display: flex; gap: 4px; margin-top: 10px; }
.lang-switch a { padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 600; }
.lang-switch a[aria-current] { background: var(--brand-light); color: var(--brand-dark); }
.banner { padding: 10px 0; font-size: .95rem; }
.banner-warning { background: var(--warn-bg); color: var(--warn); }

@media (min-width: 1300px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; box-shadow: none; border: 0; gap: 4px; }
  .site-nav { gap: 0; }
  .site-nav > a, .site-nav .link, .site-nav .btn { padding: 8px 7px; font-size: .9rem; white-space: nowrap; }
  .site-nav .btn { padding: 8px 12px; }
  .lang-switch a { padding: 4px 5px; }
  .site-nav .btn { margin: 0 0 0 6px; }
  .nav-sep { width: 1px; height: 22px; margin: 0 6px; }
  .lang-switch { margin: 0 0 0 6px; gap: 0; }
}
/* Menu « Fonds de commerce » : sous-menu des secteurs (liste en retrait sur mobile, menu déroulant sur ordinateur) */
.nav-drop { display: flex; flex-direction: column; }
.nav-drop > a { padding: 10px 4px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-drop > a:hover, .nav-sub a:hover { color: var(--brand); }
.nav-sub { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--line); margin: 0 0 4px 4px; }
.nav-sub a { padding: 6px 4px; text-decoration: none; color: var(--ink); font-size: .92rem; }
@media (min-width: 1300px) {
  .nav-drop { position: relative; }
  .nav-drop > a { padding: 8px 7px; font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
  .nav-drop .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
  .nav-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 250px; margin: 0; padding: 6px; border: 1px solid var(--line);
             border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
  .nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: flex; }
  .nav-sub a { padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
  .nav-sub a:hover { background: var(--brand-light); }
}
/* Écrans moyens : menu plus serré pour qu'il tienne sur une ligne */
@media (min-width: 1300px) and (max-width: 1499px) {
  .site-nav > a, .site-nav .link, .nav-drop > a { padding: 8px 4px; font-size: .84rem; }
  .site-nav .btn { padding: 8px 10px; font-size: .84rem; }
  .nav-sep { margin: 0 4px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-danger { background: #fff; color: var(--err); border-color: #f1b8b2; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .875rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Messages ---------- */
.flashes { margin-top: 16px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 10px; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #b9e2c9; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #f5c2bd; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: #f3dca5; }
.alert-info { background: var(--info-bg); color: #1f4e79; border-color: #c4dbf2; }

/* ---------- Formulaires ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.page { padding-top: 24px; padding-bottom: 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.req { color: var(--err); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c4ccd2; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid rgba(11, 93, 99, .2); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .875rem; margin: 4px 0 0; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.checks { display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .checks { grid-template-columns: repeat(3, 1fr); }
}
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 700; margin-bottom: 8px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { flex: 1 1 140px; border: 1px solid #c4ccd2; border-radius: 8px; padding: 12px; cursor: pointer; background: #fff; display: flex; gap: 8px; align-items: flex-start; }
.segmented label:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.segmented input { accent-color: var(--brand); margin-top: 3px; }
.segmented small { display: block; color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -5000px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 18px; }

/* ---------- Accueil ---------- */
.hero { background: linear-gradient(135deg, #0b5d63 0%, #0e7a7f 55%, #12898a 100%); color: #fff; padding: 36px 0 44px; }
.hero h1 { font-size: 1.75rem; margin-bottom: .3em; }
.hero p { opacity: .92; margin-bottom: 18px; }
/* Photos de biens en fond, sous un voile aux couleurs du site pour garder le texte lisible */
.hero-photo { position: relative; overflow: hidden; isolation: isolate; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(8, 72, 77, .86) 0%, rgba(11, 93, 99, .72) 50%, rgba(18, 137, 138, .55) 100%); }
.hero-bg, .hero-bg span { position: absolute; inset: 0; z-index: -2; }
.hero-bg span { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s ease-out; }
.hero-bg span.on { opacity: 1; transform: scale(1); }
.hero-photo h1, .hero-photo > .wrap > p { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) { .hero-bg span { transition: none; transform: none; } }
.search-box { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.search-box .tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.search-box .tabs label { flex: 1; text-align: center; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 600; background: var(--bg); }
.search-box .tabs label:has(input:checked) { background: var(--brand); color: #fff; }
.search-box .tabs input { position: absolute; opacity: 0; }
.search-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 2.4rem; }
  .search-row { grid-template-columns: 1.1fr 1.6fr 1fr auto; align-items: end; }
}
.section { padding: 36px 0; }
.section h2 { font-size: 1.4rem; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.tile:hover { border-color: var(--brand); color: var(--brand); }
.tile small { color: var(--muted); font-weight: 400; }
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.feature h3 { color: var(--brand); }

/* ---------- Cartes d'annonces ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.lcard:hover { border-color: #b8c7cf; }
/* Même hauteur pour toutes les cartes : la photo est recadrée (zoomée) au format 4/3, quelle que soit sa forme (portrait…) */
.lcard-photo { aspect-ratio: 4 / 3; background: #e9eef1 center / cover no-repeat; position: relative; display: block; flex: none; min-height: 0; overflow: hidden; }
.lcard-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Comme Immoweb : photo principale en grand, 3 petites empilées à droite */
.lcard-photo.has-thumbs { display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3px; background: #fff; }
.lcard-photo.has-thumbs .lcard-main { grid-row: 1 / -1; grid-column: 1; min-height: 0; }
.lcard-photo.has-thumbs .lcard-thumb { grid-column: 2; min-height: 0; }
.lcard-photo.has-thumbs .sponsored-tag { right: calc(25% + 8px); }
.lcard-photo .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.lcard-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lcard-price { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.lcard-price small { font-weight: 500; color: var(--muted); }
.lcard-title { font-size: 1rem; margin: 0; font-weight: 600; }
.lcard-title a { color: var(--ink); text-decoration: none; }
.lcard-title a::after { content: ""; position: absolute; inset: 0; }
.lcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .9rem; }
.lcard-org { margin-top: auto; padding-top: 8px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lcard-org { text-decoration: none; }
.lcard-org:hover span { color: var(--brand); text-decoration: underline; }
.lcard-org-logo { width: 30px; height: 30px; flex: none; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.lcard-org-logo.org-initials { font-size: .72rem; border: 0; }
/* Compteurs (vues, sauvegardes, partages) à droite du prix, et partage direct à côté de l'agence */
.lcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lcard-stats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; gap: 10px; flex: none; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.lcard-stats li { display: flex; align-items: center; gap: 3px; }
.lcard-stats svg { width: 16px; height: 16px; }
.lcard-stats .lcard-stat-fav svg { color: #e0245e; }
.lcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.lcard-foot .lcard-org { margin-top: 0; padding-top: 0; min-width: 0; }
.lcard-foot .lcard-org span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-share { display: flex; gap: 4px; flex: none; margin-left: auto; position: relative; }
.lcard-sh { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: #fff; cursor: pointer; text-decoration: none; }
.lcard-sh svg { width: 16px; height: 16px; }
.lcard-sh:hover, .lcard-sh:focus-visible { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.lcard-sh-facebook { background: #1877f2; }
.lcard-sh-whatsapp { background: #25d366; }
.lcard-sh-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.lcard-sh-email { background: #5d6b75; }
.lcard-share-status:empty { display: none; }
.lcard-share-status { position: absolute; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: 230px; padding: 6px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .75rem; line-height: 1.3; }
@media (max-width: 380px) { .lcard-sh { width: 26px; height: 26px; } .lcard-share { gap: 3px; } }
.fav-btn { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.fav-btn[aria-pressed=true] { color: #d6336c; }
.fav-btn svg { width: 22px; height: 22px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--brand); color: #fff; letter-spacing: .01em; }
.badge-sale { background: var(--brand); }
.badge-rent { background: #3f51b5; }
.badge-closed { background: #6b7280; }
/* Badges sur la photo : nouveau bien, sous option / compromis, vendu, loué */
.badge-new { background: #e8763a; text-transform: uppercase; letter-spacing: .04em; }
.badge-auction { background: #6b3fa0; color: #fff; }
.badge-viager { background: #2f6db5; color: #fff; }
/* Page des applications : aperçus des modèles d'affichage dynamique */
.signage-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0; }
.signage-shots figure { margin: 0; }
.signage-shots img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.signage-shots figcaption { margin-top: 8px; font-weight: 600; font-size: .95rem; }
/* Affichage dynamique : couleur du cadre des cases */
.signage-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.signage-color { position: relative; cursor: pointer; }
.signage-color input { position: absolute; opacity: 0; }
.signage-color span:not(.sr) { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c9d6d6; box-shadow: inset 0 0 0 3px #fff; }
.signage-color input:checked + span { border-color: #10272a; box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #e8743b; }
.signage-color input:focus-visible + span { outline: 2px solid #0b5d63; outline-offset: 2px; }
.badge-option { background: #d97706; }
.badge-sold, .badge-rented { background: #c0262d; text-transform: uppercase; letter-spacing: .04em; }
.mitem-photo { position: relative; }
/* Questions fréquentes sous chaque menu de l'espace personnel */
.menu-help { margin-top: 28px; margin-bottom: 28px; }
.menu-help-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.menu-help-item > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.menu-help-item > summary::-webkit-details-marker { display: none; }
.menu-help-item > summary::after { content: '+'; position: absolute; right: 16px; top: 9px; font-size: 1.3rem; color: var(--brand); }
.menu-help-item[open] > summary::after { content: '−'; }
.menu-help-item .description { padding: 0 16px 14px; color: #3a4a4b; }
/* Demandes reçues : réponse écrite dans le site */
.reply-box > summary { display: none; }
.reply-box textarea { width: 100%; }
.reply-sig { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--brand); background: #f7fafa; border-radius: 6px; line-height: 1.5; }
.reply-sig-logo { float: right; max-width: 110px; max-height: 50px; object-fit: contain; }
.reply-attach { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.reply-attach .check { display: flex; gap: 6px; align-items: baseline; margin: 4px 0; }
.msg-reply { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--brand); background: #f1f7f7; border-radius: 6px; }
.mitem-photo .lcard-badges { left: 6px; top: 6px; gap: 4px; }
.deal-filter.is-on.deal-option { background: #d97706; border-color: #d97706; color: #fff; }
.deal-filter.is-on.deal-sold, .deal-filter.is-on.deal-rented { background: #c0262d; border-color: #c0262d; color: #fff; }
.badge-warn { background: #b7791f; }
.badge-ok { background: var(--ok); }
.badge-err { background: var(--err); }
.badge-muted { background: #e5e9ec; color: var(--ink); }
.badge-feat { background: var(--accent); }

/* ---------- Recherche ---------- */
.search-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding: 20px 0 48px; }
.search-layout > * { min-width: 0; }
@media (min-width: 1000px) { .search-layout { grid-template-columns: 290px 1fr; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.filters summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filters summary::after { content: "▾"; }
.filters[open] summary::after { content: "▴"; }
.filters .inner { padding: 0 16px 16px; }
@media (min-width: 1000px) { .filters summary { pointer-events: none; } .filters summary::after { content: ""; } }
.results-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.results-head h1 { font-size: 1.35rem; margin: 0; }
.results-head select { width: auto; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-switch a { padding: 8px 12px; text-decoration: none; color: var(--ink); background: #fff; font-size: .9rem; }
.view-switch a[aria-current] { background: var(--brand); color: #fff; }
/* Fonds de commerce : menu secondaire des secteurs d'activité */
.sector-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sector-menu a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; }
.sector-menu a:hover { border-color: var(--brand); }
.sector-menu a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: #e9eef1; }
@media (min-width: 768px) { .map { height: 560px; } }
.map-small { height: 300px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pager span[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.breadcrumb { font-size: .875rem; color: var(--muted); margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.seo-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.links-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.links-cloud a { display: inline-block; padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.columns { columns: 1; column-gap: 24px; }
@media (min-width: 600px) { .columns { columns: 2; } }
@media (min-width: 960px) { .columns { columns: 4; } }
.columns a { display: block; padding: 3px 0; text-decoration: none; break-inside: avoid; }

/* ---------- Fiche d'annonce ---------- */
.detail { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding: 16px 0 48px; }
@media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr) 360px; } }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; background: #e9eef1; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .gallery figure { flex-basis: 80%; aspect-ratio: 16 / 10; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.listing-gallery { padding-top: 12px; }
.listing-gallery .gallery { scrollbar-width: none; } .listing-gallery .gallery::-webkit-scrollbar { display: none; }
.gallery a { display: block; height: 100%; cursor: zoom-in; }
/* Vignettes sous la photo (tablette et ordinateur) */
.gallery-thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 auto; width: 112px; height: 76px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #e9eef1; opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button:hover, .gallery-thumbs button:focus-visible { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent, #e8743b); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .gallery-thumbs { display: flex; } .listing-gallery .gallery-count { display: none; } }
/* Ordinateur : grande photo sur toute la largeur de la page (une photo à la fois), hauteur adaptée à l'écran */
@media (min-width: 1000px) {
  .listing-gallery .gallery figure { flex-basis: 100%; aspect-ratio: auto; height: clamp(460px, 72vh, 820px); }
  .listing-gallery .gallery-nav { width: 56px; height: 56px; font-size: 2rem; }
  .listing-gallery .gallery-prev { left: 20px; } .listing-gallery .gallery-next { right: 20px; }
  .listing-gallery .status-ribbon { top: 22px; left: 22px; font-size: 1.3rem; padding: 9px 22px; }
}
/* Agrandissement plein écran */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 12, 14, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; border-radius: 50%; width: 56px; height: 56px; font-size: 2rem; line-height: 1; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 18px; right: 18px; font-size: 1.6rem; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-pos { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .95rem; background: rgba(0, 0, 0, .5); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 600px) { .lightbox button { width: 44px; height: 44px; font-size: 1.5rem; } .lightbox img { max-width: 100vw; max-height: 80vh; border-radius: 0; } }
.gallery-wrap { position: relative; }
/* Statut du bien sur la photo : Sous option, Vendu, Loué… */
.status-ribbon { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 7px 16px; border-radius: 8px; background: #b91c1c; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none; }
.status-ribbon.status-under_offer, .status-ribbon.status-reserved, .status-ribbon.status-offer_accepted, .status-ribbon.status-requests_pending { background: #d97706; }
.status-ribbon.status-compromise_signed { background: #7c3aed; }
.status-ribbon.status-withdrawn { background: #6b7280; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 0 4px; font-size: 2rem; line-height: 1;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.gallery-nav:hover, .gallery-nav:focus-visible { background: #fff; color: var(--brand); }
.gallery-nav[hidden] { display: none; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-pos { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: .85rem; background: rgba(0, 0, 0, .6); color: #fff; }
@media (max-width: 600px) { .gallery-nav { width: 38px; height: 38px; font-size: 1.6rem; } .gallery-prev { left: 8px; } .gallery-next { right: 8px; } }
.detail-head h1 { font-size: 1.5rem; margin: 14px 0 4px; }
.detail-loc { color: var(--muted); margin-bottom: 10px; }
.offer-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; margin-bottom: 12px; }
.offer-box .price { font-size: 1.5rem; font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.spec-list { display: grid; grid-template-columns: 1fr; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .spec-list { grid-template-columns: 1fr 1fr; } }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec-list li span:last-child { font-weight: 600; text-align: right; }
/* Classes PEB : couleurs de l'étiquette énergétique (vert foncé → rouge) */
.peb { display: inline-block; padding: 4px 16px 4px 10px; color: #fff; font-weight: 800; line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.peb-sm { padding: 2px 13px 2px 7px; font-size: .78rem; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.peb-App { background: #00602b; } .peb-Ap { background: #007a33; } .peb-A { background: #00873e; } .peb-B { background: #2fa33a; }
.peb-C { background: #4cd417; color: #10240a; } .peb-D { background: #fff200; color: #2a2a00; } .peb-E { background: #fbaa1a; color: #2d1a00; }
.peb-F { background: #f45a1f; } .peb-G { background: #ed1c24; }
/* Échelle PEB compacte (environ 30 % de l'ancienne taille) */
.peb-scale { display: grid; gap: 2px; margin: 2px 0 12px; max-width: 160px; }
.peb-row { display: flex; align-items: center; gap: 4px; }
.peb-bar { display: flex; align-items: center; height: 12px; padding: 0 8px 0 4px; font-weight: 800; font-size: .58rem; line-height: 1; color: #fff; min-width: 26px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }
.peb-bar.peb-C, .peb-bar.peb-D, .peb-bar.peb-E { color: #1d2a33; }
.peb-row.is-current .peb-bar { height: 16px; font-size: .7rem; }
.peb-marker { margin-left: auto; display: flex; align-items: center; justify-content: center; height: 16px; min-width: 24px; padding: 0 4px 0 9px;
  font-weight: 800; font-size: .7rem; line-height: 1; color: #fff; clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
.peb-marker.peb-C, .peb-marker.peb-D, .peb-marker.peb-E { color: #1d2a33; }
.sidebar-sticky { position: static; }
@media (min-width: 1000px) { .sidebar-sticky { position: sticky; top: 80px; } }
.adv { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.adv img, .org-logo { width: 64px; height: 64px; flex: none; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.org-logo-lg { width: 104px; height: 104px; font-size: 2.2rem !important; }
.org-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; letter-spacing: .02em;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: 0; }
.adv-link { color: inherit; text-decoration: none; padding: 10px; margin: 0 -10px 12px; border-radius: var(--radius); }
.adv-link:hover, .adv-link:focus-visible { background: var(--brand-light); }
.adv-count { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--brand); }
.org-head .adv { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font-size: .92rem; }
.chip b { font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-current="true"] b { color: #fff; }
.chips-sm .chip { padding: 5px 12px; font-size: .85rem; }
.org-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.org-tools .chips { margin: 0; }
.description { white-space: pre-line; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Espace personnel / administration ---------- */
.dash { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding: 20px 16px 48px; }
.dash > * { min-width: 0; }
@media (min-width: 960px) { .dash { grid-template-columns: 240px minmax(0, 1fr); } }
.side-nav { display: flex; overflow-x: auto; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.side-nav a { white-space: nowrap; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.side-nav a[aria-current] { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.side-nav .count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
@media (min-width: 960px) { .side-nav { flex-direction: column; align-self: start; position: sticky; top: 80px; } }
.stats-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f3f5; font-size: .85rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.mlist { display: grid; gap: 12px; }
.mitem { display: grid; grid-template-columns: 88px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
@media (min-width: 768px) { .mitem { grid-template-columns: 140px 1fr auto; } }
.mitem img, .mitem .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #e9eef1; }
.mitem h3 { margin: 0 0 4px; font-size: 1rem; }
.mitem .actions { grid-column: 1 / -1; }
@media (min-width: 768px) { .mitem .actions { grid-column: auto; flex-direction: column; align-items: stretch; } }
.offer-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.offer-form select { width: auto; min-height: 36px; padding: 4px 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--brand); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars span:hover::after { content: attr(data-label); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .75rem; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.msg.unread { border-left: 4px solid var(--accent); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .9rem; color: var(--muted); }

/* ---------- Agenda de l'agence ---------- */
.agenda-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.agenda-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agenda-month { margin: 0 0 0 8px; font-size: 1.2rem; }
.agenda-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.agenda-tools .chips { margin: 0; }
.agenda-filter select { width: auto; min-height: 36px; padding: 4px 8px; }
.agenda-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.agenda-wd { background: #f0f3f5; padding: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; }
.agenda-day { background: #fff; min-height: 64px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
@media (min-width: 768px) { .agenda-day { min-height: 110px; } }
.agenda-day.is-out { background: #f8fafb; }
.agenda-day.is-out .agenda-date { color: #9aa6ae; }
.agenda-date { align-self: flex-start; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink); border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.agenda-date:hover { background: var(--brand-light); }
.is-today .agenda-date { background: var(--brand); color: #fff; }
.agenda-ev { display: block; font-size: .75rem; line-height: 1.3; padding: 2px 5px; border-radius: 5px; text-decoration: none; color: var(--ink); background: var(--brand-light);
  border-left: 3px solid var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .agenda-ev { font-size: 0; padding: 0; height: 6px; } .agenda-ev b { font-size: 0; } }
.ev-visit { --ev: #0b5d63; } .ev-appointment { --ev: #3f51b5; } .ev-valuation { --ev: #b7791f; } .ev-signing { --ev: #1f7a4a; }
.ev-meeting { --ev: #6b46c1; } .ev-call { --ev: #2b6cb0; } .ev-other { --ev: #5d6b75; }
.agenda-ev, .agenda-item { border-left-color: var(--ev, var(--brand)); }
.agenda-ev { background: color-mix(in srgb, var(--ev, var(--brand)) 12%, #fff); }
@media (max-width: 767px) { .agenda-ev { background: var(--ev, var(--brand)); } }
.st-cancelled { text-decoration: line-through; opacity: .6; }
.st-done { opacity: .75; }
.agenda-list-day { margin: 18px 0 8px; font-size: 1rem; }
.agenda-list-day.is-today { color: var(--brand); }
.agenda-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 10px 12px; }
@media (min-width: 768px) { .agenda-item { grid-template-columns: 64px 1fr auto; } }
.agenda-item > .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .agenda-item > .btn { grid-column: auto; } }
.agenda-time b { display: block; font-size: 1.05rem; }
.agenda-time span { color: var(--muted); font-size: .85rem; }
.agenda-send { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 0; background: #fafbfc; }
.agenda-send legend { font-weight: 700; padding: 0 6px; }
.upcoming { list-style: none; padding: 0; margin: 0; }
.upcoming li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.upcoming li:last-child { border-bottom: 0; }
.upcoming time { font-weight: 700; min-width: 120px; }

/* ---------- Administration : activité, sauvegardes, paiements ---------- */
.nowrap { white-space: nowrap; }
.activity-detail { word-break: break-word; max-width: 520px; }
pre.code { background: #0f1b22; color: #e6f2f2; padding: 12px 14px; border-radius: 8px; overflow-x: auto; white-space: pre; }
.activity-filters .grid-4 { margin-bottom: 4px; }
.payments-switch { border-left: 4px solid var(--line); }
.payments-switch.is-on { border-left-color: var(--ok); }
.readiness { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.readiness li::before { display: inline-block; width: 1.4em; font-weight: 700; }
.readiness li.ok::before { content: "✓"; color: var(--ok); }
.readiness li.todo::before { content: "•"; color: var(--warn); }
.readiness li.todo { color: var(--warn); }
.pack-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pack-grid { grid-template-columns: repeat(3, 1fr); } }
.pack { text-align: center; margin-bottom: 0; }
.pack-price { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.pack-price small { font-size: .8rem; color: var(--muted); font-weight: 400; }

/* ---------- Mode travaux ---------- */
/* Fond : photos de biens en fondu enchaîné (6 × 6 s) avec zoom lent, sous un voile aux couleurs du site */
.maintenance-page { background: #0b3d41; min-height: 100vh; overflow-x: hidden; }
.mt-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(135deg, #0b5d63, #06383c); }
.mt-bg span { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0;
  animation: mt-fade 36s linear infinite, mt-zoom 36s ease-in-out infinite; animation-delay: calc(var(--mt-i) * 6s), calc(var(--mt-i) * 6s); }
.mt-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6, 40, 44, .88) 0%, rgba(11, 93, 99, .62) 55%, rgba(232, 116, 59, .35) 100%); }
@keyframes mt-fade { 0% { opacity: 0; } 4% { opacity: 1; } 17% { opacity: 1; } 21% { opacity: 0; } 100% { opacity: 0; } }
@keyframes mt-zoom { 0% { transform: scale(1); } 21% { transform: scale(1.12) translate(-1%, -1%); } 100% { transform: scale(1.12); } }

.maintenance { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.maintenance-card { width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); overflow: hidden;
  background: rgba(255, 255, 255, .96); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: mt-in .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mt-in { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.mt-main { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.mt-logo { font-size: 1.8rem; gap: 12px; margin-bottom: 8px; }
.mt-top { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.mt-top .mt-logo { margin-bottom: 0; }
.mt-langs { display: flex; gap: 6px; }
.mt-crm { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: #e2f5ec; border: 1px solid #b4e2cb; color: #135a3c; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.mt-crm:hover, .mt-crm:focus-visible { background: #cdeedd; }
/* Page « CRM agences » */
.crm-hero .crm-free { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #fff3e6; color: #7a3d0a; font-weight: 700; font-size: .9rem; }
.feature .crm-ico { font-size: 1.8rem; line-height: 1; display: block; margin-bottom: 8px; }
.crm-steps { counter-reset: crm; display: grid; gap: 12px; padding: 0; list-style: none; }
.crm-steps li { counter-increment: crm; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 56px; position: relative; }
.crm-steps li::before { content: counter(crm); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand, #135a5a); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (min-width: 768px) { .crm-steps { grid-template-columns: repeat(3, 1fr); } }
.mt-langs a { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1.5px solid #0b5d63; border-radius: 10px; color: #0b5d63; font-weight: 800; font-size: .9rem; letter-spacing: .05em; text-decoration: none; background: #fff; }
.mt-langs a:hover, .mt-langs a:focus-visible { background: #e6f2f3; }
.mt-langs a.on { background: #0b5d63; color: #fff; }
.mt-scene { width: 100%; max-width: 460px; height: auto; margin: 10px 0 18px; }
.mt-main h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; margin: 0 0 .35em; color: var(--brand, #0b5d63); letter-spacing: -.01em; animation: mt-rise .8s .25s both; }
/* Page travaux : quatre profils (particulier, agence, promoteur, notaire) en carrés égaux, centrés, couleur claire propre à chacun */
.mt-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 12px; justify-content: center; width: 100%; align-self: stretch; margin: 0 auto 26px; }
.mt-prof { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 1 / 1; padding: 12px; border-radius: 16px; border: 1px solid transparent; text-align: center; font-weight: 700; font-size: clamp(.78rem, 1.15vw, .95rem); line-height: 1.25; min-width: 0; overflow: hidden; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; color: #1f2d2e; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.mt-prof:hover, .mt-prof:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.mt-prof-ico { font-size: 2.2rem; line-height: 1; }
.mt-prof-1 { background: #e3f0fb; border-color: #b9d8f2; color: #134a73; }
.mt-prof-2 { background: #e2f5ec; border-color: #b4e2cb; color: #135a3c; }
.mt-prof-3 { background: #fdeee0; border-color: #f6cfa8; color: #7a3d0a; }
.mt-prof-4 { background: #efe8fb; border-color: #d3c3f2; color: #4a2a83; }
@media (min-width: 700px) { .mt-profiles { grid-template-columns: repeat(4, minmax(0, 140px)); } }
.mt-text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: #33444a; margin: 0 0 26px; max-width: 34em; animation: mt-rise .8s .4s both; }
@keyframes mt-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mt-progress { width: 100%; max-width: 440px; height: 8px; border-radius: 999px; background: #e3eded; overflow: hidden; margin-bottom: 28px; }
.mt-progress i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b5d63, #e8743b, #f2b705); animation: mt-bar 2.4s ease-in-out infinite; }
@keyframes mt-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.mt-staff { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid #0b5d63; color: #0b5d63; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.mt-staff:hover, .mt-staff:focus-visible { background: #0b5d63; color: #fff; }
/* Applications iPhone et Android : uniquement la langue de l'appareil, et l'accès de test sous l'accès des professionnels */
.mt-in-app .maintenance-card { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.mt-in-app .mt-others { display: none; }
.mt-in-app .mt-main .mt-staff { display: flex; justify-content: center; margin: 10px auto 0; max-width: 340px; }
.mt-in-app .mt-dev { border-color: #e8743b; color: #c95d27; }
.mt-in-app .mt-dev:hover, .mt-in-app .mt-dev:focus-visible { background: #e8743b; color: #fff; }

/* Autres langues : colonne colorée, apparition en cascade */
.mt-others { background: linear-gradient(160deg, #0b5d63, #084549); color: #e3f1f1; padding: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.mt-others section { animation: mt-rise .7s both; animation-delay: calc(.55s + var(--mt-d) * .15s); }
.mt-others section + section { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px; }
.mt-others h2 { font-size: 1.3rem; color: #fff; margin: 0 0 .4em; display: flex; align-items: center; gap: 10px; }
.mt-others p { margin: 0; font-size: 1rem; line-height: 1.55; opacity: .9; }
.mt-flag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; background: #f2b705; color: #3b2c00; border-radius: 6px; padding: 3px 7px; }

/* Chantier animé */
.mt-jib { transform-origin: 67px 40px; animation: mt-swing 7s ease-in-out infinite; }
@keyframes mt-swing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
.mt-hook { animation: mt-lift 3.5s ease-in-out infinite; }
@keyframes mt-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
.mt-wall, .mt-roof, .mt-door, .mt-win { transform-box: fill-box; transform-origin: bottom; }
.mt-w1 { animation: mt-build 9s ease-out infinite; }
.mt-w2 { animation: mt-build 9s .6s ease-out infinite; }
.mt-roof { animation: mt-build 9s 1.2s ease-out infinite; }
.mt-door, .mt-win { animation: mt-pop 9s 1.8s ease-out infinite; }
.mt-win2 { animation-delay: 2.1s; }
@keyframes mt-build { 0% { transform: scaleY(0); opacity: 0; } 8% { transform: scaleY(1); opacity: 1; } 88% { transform: scaleY(1); opacity: 1; } 96%, 100% { transform: scaleY(1); opacity: 0; } }
@keyframes mt-pop { 0% { transform: scale(0); opacity: 0; } 6% { transform: scale(1.15); opacity: 1; } 9% { transform: scale(1); } 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.mt-cone { transform-box: fill-box; transform-origin: bottom center; animation: mt-bounce 2.8s ease-in-out infinite; }
@keyframes mt-bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-10px) rotate(-6deg); } 60% { transform: translateY(0); } }

@media (max-width: 860px) {
  .maintenance-card { grid-template-columns: 1fr; border-radius: 20px; }
  .mt-main { align-items: center; text-align: center; }
  .mt-text { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-bg span, .maintenance-card, .mt-main h1, .mt-text, .mt-others section, .mt-progress i, .mt-jib, .mt-hook, .mt-wall, .mt-roof, .mt-door, .mt-win, .mt-cone { animation: none !important; }
  .mt-bg span:first-child { opacity: 1; }
}
.banner-maintenance { background: #fff4dc; border-bottom: 1px solid #f3dca5; color: var(--warn); padding: 8px 0; font-size: .95rem; }

/* ---------- Réseaux d'agences ---------- */
.agency-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 640px) { .agency-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .agency-grid { grid-template-columns: repeat(3, 1fr); } }
.agency-tile { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); }
.agency-tile:hover { border-color: var(--brand); }
.agency-tile .org-logo { width: 56px; height: 56px; }
.network-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }

/* ---------- Formulaire d'annonce en étapes ---------- */
.steps { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 0 16px; list-style: none; counter-reset: step; }
.steps li { flex: 0 0 auto; }
.steps a, .steps span { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.steps .done a { color: var(--brand); border-color: #b9d8da; }
.steps .current span, .steps .current a { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .08); font-size: .75rem; }
.lang-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.lang-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; }
.lang-tabs button[aria-selected=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
.media-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.media-item.main { border: 2px solid var(--accent); }
.media-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.media-item .actions { padding: 6px; gap: 4px; }
.media-item .actions .btn { padding: 4px 8px; min-height: 32px; font-size: .8rem; }
.dropzone { border: 2px dashed #b8c7cf; border-radius: var(--radius); padding: 22px; text-align: center; background: #fafcfc; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-light); }
.previews { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.previews img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }
.offer-section { border-left: 4px solid var(--brand); }
.offer-section.rent { border-left-color: #3f51b5; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.summary-list li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #13262d; color: #c9d4da; padding: 36px 0 20px; margin-top: 24px; }
.site-footer a { color: #e3ebef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { font-size: .95rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.logo-footer { color: #fff; margin-bottom: 10px; }
.logo-footer b { color: #7fd3cf; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom { border-top: 1px solid #2a3f47; margin-top: 24px; padding-top: 14px; font-size: .85rem; }

/* ---------- Pages de texte ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.prose h2 { margin-top: 1.4em; }
.prose-text { white-space: pre-line; }
.invoice { background: #fff; padding: 28px; border: 1px solid var(--line); max-width: 820px; margin: 0 auto; }

.print-only { display: none; }
@media print {
  .site-header, .site-footer, .no-print, .flashes { display: none !important; }
  body { background: #fff; }
  .invoice { border: 0; padding: 0; }

  /* Fiche d'un bien imprimée : photos, prix, caractéristiques, description, énergie, annonceur et adresse de la page */
  @page { margin: 12mm; }
  .listing-page { max-width: none; padding: 0; font-size: 11pt; color: #000; }
  .listing-page .print-only { display: block; }
  .listing-page .breadcrumb, .listing-page .gallery-nav, .listing-page .gallery-pos, .listing-page .gallery-count,
  .listing-page #contact, .listing-page #report, .listing-page [data-mortgage], .listing-page .map, .listing-page .maps-link svg,
  .listing-page .card .actions, .listing-page aside, .listing-page .section, .banner, [data-cookie], .install-banner,
  .gallery-thumbs, .lightbox, .ad-slot, .consent, .status-ribbon { display: none !important; }
  .listing-page .listing-gallery .gallery figure { height: auto; }
  .listing-page .detail { display: block; }
  .listing-page .card { border: 1px solid #ccc; box-shadow: none; padding: 8px 12px; margin: 0 0 8px; break-inside: avoid; }
  .listing-page h1 { font-size: 18pt; margin: 4px 0; }
  .listing-page h2 { font-size: 12.5pt; margin: 0 0 6px; }
  .listing-page a { color: #000; text-decoration: none; }
  .listing-page .description { white-space: pre-line; }
  /* Photos : la première en grand, puis jusqu'à 4 vignettes */
  .listing-page .gallery-wrap { position: static; }
  .listing-page .gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 4px; overflow: visible !important; scroll-snap-type: none; }
  .listing-page .gallery figure { margin: 0; flex: none; width: auto !important; aspect-ratio: auto; background: none; border-radius: 0; }
  .listing-page .gallery figure:first-child { grid-column: 1 / -1; }
  .listing-page .gallery figure:nth-child(n+6) { display: none; }
  .listing-page .gallery img { width: 100%; height: 34mm; object-fit: cover; border-radius: 0; }
  .listing-page .gallery figure:first-child img { height: 85mm; }
  .listing-page .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0; }
  .listing-page .facts > div { border: 1px solid #ccc; padding: 4px 6px; }
  .listing-page .spec-list li { padding: 2px 0; }
  /* Couleurs forcées à l'impression (les navigateurs suppriment sinon les fonds) : PEB, échelle énergétique, badges */
  .listing-page .peb, .listing-page .badge, .listing-page .peb-scale, .listing-page .peb-scale * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .listing-page .peb-scale { break-inside: avoid; }
  .print-head { display: flex !important; align-items: center; gap: 8px; border-bottom: 2px solid #0b5d63; padding-bottom: 6px; margin-bottom: 8px; font-size: 9.5pt; }
  .print-head b { font-size: 13pt; } .print-head b span { color: #0b5d63; }
  .print-head > span { margin-left: auto; color: #333; }
}

/* Suggestions de lieux (commune et ses localités, province, région) */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none;
  max-height: min(360px, 60vh); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ac-list li { padding: 7px 12px; cursor: pointer; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--brand-light); }
.ac-list .ac-commune { font-weight: 600; color: var(--brand-dark); }
.ac-list .ac-commune:not(:first-child) { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; }
.ac-list .ac-sub { padding-left: 28px; }
.ac-list .ac-province, .ac-list .ac-region { color: var(--muted); }
.ac-list .ac-province + .ac-commune, .ac-list .ac-region + .ac-commune { border-top: 1px solid var(--line); }

/* Traduction automatique des textes d'annonce */
.translate-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.translate-bar .btn { white-space: normal; }
.translate-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; flex: 1 0 100%; margin: 0; padding: 0; border: 0; }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; }
.ai-btn::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%236d5dfc'/%3E%3Cstop offset='1' stop-color='%2319b5a5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='24' height='24' rx='6' fill='url(%23g)'/%3E%3Ctext x='12' y='16.5' font-family='Arial,Helvetica,sans-serif' font-size='12' font-weight='700' text-anchor='middle' fill='%23fff'%3EAI%3C/text%3E%3C/svg%3E") center / contain no-repeat; }
.ai-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.ai-tools select { width: auto; min-width: 0; padding-top: 4px; padding-bottom: 4px; font-size: .85rem; }
.ai-tools .ai-status { font-size: .85rem; color: var(--muted); }
.translate-bar { margin-bottom: 14px; }
.lang-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lang-tabs-row .btn { white-space: normal; }
.translate-one { margin: -6px 0 14px; }
.translate-langs legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.translate-langs label { display: inline-flex; align-items: center; gap: 6px; }
.translate-langs label[hidden] { display: none; }

.footer-company { font-style: normal; margin-top: 12px; line-height: 1.6; }

/* Partage d'un bien (réseaux sociaux, partage du téléphone) */
.share-title { font-size: 1rem; margin: 0 0 10px; }
.share-compact { padding: 0 10px 10px; }
.share-native { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.share-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--net); font: inherit; font-size: .72rem; line-height: 1.1; text-decoration: none; cursor: pointer; min-width: 0; }
.share-btn span { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-btn:hover, .share-btn:focus-visible { background: var(--net); border-color: var(--net); color: #fff; text-decoration: none; }
.share-btn:hover span, .share-btn:focus-visible span { color: #fff; }
.share-instagram svg { color: #d62976; }
.share-instagram:hover svg, .share-instagram:focus-visible svg { color: #fff; }
.share-instagram:hover, .share-instagram:focus-visible { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
[data-share-status]:empty { display: none; }

/* Retour de paiement Stripe (site et applications) */
.pay-return .card { text-align: center; }
.pay-return-icon { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Annonces sponsorisées : mention bien visible (publicité signalée au visiteur) */
.sponsored-tag { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: #f2b705; color: #2b2100;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.sponsored-tag.sponsored-inline { position: static; display: inline-block; vertical-align: middle; box-shadow: none; }
.lcard-photo { position: relative; }
.lcard-sponsored { box-shadow: 0 0 0 2px #f2b705; }
.btn-sponsor { background: #f2b705; border-color: #f2b705; color: #2b2100; }
.btn-sponsor:hover, .btn-sponsor:focus-visible { background: #d9a404; border-color: #d9a404; color: #2b2100; }
.sponsor-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sponsor-form select { max-width: 220px; }
.sponsor-choice { border: 2px solid #f2b705; border-radius: var(--radius); padding: 10px 14px 12px; margin: 14px 0; background: #fffbea; }
.sponsor-choice legend { font-weight: 700; padding: 0 6px; }
.sponsor-offer { margin-bottom: 4px; }
.sponsor-offer.is-off { opacity: .7; }
.sponsor-offer-delete { margin: 0 0 14px; text-align: right; }
@media print { .sponsored-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Bouton « Imprimer l'annonce », juste avant les chiffres clés */
.print-bar { display: flex; justify-content: flex-end; margin: 6px 0 -4px; }
.print-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
@media print { .print-bar { display: none !important; } }
/* Simulateur de crédit hypothécaire */
.mortgage-sim .mortgage-result { margin: 8px 0 12px; }
.mortgage-sim input[readonly] { background: var(--soft, #f3f6f6); }
.mortgage-compare tr.is-current td { background: #e7f3f2; font-weight: 600; }
.mortgage-compare summary { cursor: pointer; margin: 8px 0; }

/* Statistiques (agence, administration) imprimées ou enregistrées en PDF : sans menus ni filtres, tableau en entier, à l'italienne */
@media print {
  .dash:has(.stats-print) { display: block; padding: 0; }
  .dash:has(.stats-print) > .side-nav, .install-banner, [data-cookie] { display: none !important; }
  .stats-print .print-only { display: block; }
  .stats-print .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .stats-print .table-wrap { overflow: visible; }
  .stats-print table { font-size: 8.5pt; width: 100%; }
  .stats-print th, .stats-print td { padding: 3px 4px; }
  .stats-print .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-print a { color: #000; text-decoration: none; }
  .stats-print .bars span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page stats { size: A4 landscape; }
.stats-print { page: stats; }

/* Adresse du bien : lien vers Google Maps */
.maps-link { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.maps-link svg { vertical-align: -2px; margin-right: 2px; }

/* Tarifs (administration) et prix affiché avant la publication */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.pricing-card h2 { font-size: 1.1rem; margin-bottom: 2px; }
.pricing-summary { background: var(--brand-light); border-radius: var(--radius); padding: 8px 10px; font-weight: 600; font-size: .92rem; }
.price-quote b { display: block; margin-bottom: 2px; }

/* Support, questions fréquentes, articles */
.faq-list { display: grid; gap: 8px; margin-bottom: 12px; }
.faq-group { margin-bottom: 22px; }
.faq-group h2 { font-size: 1.1rem; margin-bottom: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq-item summary { padding: 12px 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 14px 14px; color: var(--ink); line-height: 1.6; }
.faq-search input { width: 100%; }
.faq-group-safety h2::before { content: "⚠ "; color: #b7791f; }
.faq-group-safety .faq-item:first-of-type { border-color: #b7791f; background: #fff8eb; }
.faq-cta { margin-top: 24px; }
.support-thread { display: grid; gap: 10px; margin: 16px 0; }
.support-msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--card); line-height: 1.6; max-width: 92%; overflow-wrap: anywhere; }
.support-msg header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.support-msg footer { margin-top: 6px; }
.support-msg-user { justify-self: end; background: var(--brand-light); border-color: transparent; }
.support-msg-ai { border-left: 4px solid #7c5cbf; }
.support-msg-staff { border-left: 4px solid var(--brand); }
.support-wait { color: var(--muted); font-style: italic; }
.support-feedback .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-search { display: flex; gap: 8px; margin-bottom: 14px; }
.support-search input { flex: 1; min-width: 0; }
.badge.support-open { background: #b7791f; }
.badge.support-answered { background: #7c5cbf; }
.badge.support-waiting { background: #3f51b5; }
.badge.support-closed { background: var(--ok); }
.lang-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0 0 14px; }
.lang-block legend { font-weight: 700; padding: 0 6px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; }
.article-help pre { background: var(--brand-light); padding: 10px; border-radius: var(--radius); white-space: pre-wrap; }
.article-admin-cover { display: block; border-radius: var(--radius); margin-bottom: 8px; height: auto; }
/* Annuaire des notaires */
.notary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.notary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.notary-card h2 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.notary-card p { margin: 0; }
.notary-name { color: var(--brand); font-weight: 600; }
.notary-head { display: flex; align-items: center; gap: 12px; }
.notary-head h1 { margin: 0; }
.notary-logo { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.notary-logo-lg { width: 64px; height: 64px; border-radius: 14px; }
.notary-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto !important; padding-top: 8px; }
.notary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .notary-layout { grid-template-columns: minmax(0, 1fr); } }
.notary-info { list-style: none; padding: 0; margin: 12px 0; }
.notary-info li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); }
.notary-info li span { font-size: 13px; color: var(--muted, #6b7b7c); }
.notary-source { margin-top: 20px; }
/* Page Applications : exemples de boîtiers pour l'écran (vitrine, salle d'attente) */
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.box-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.box-card h3 { margin: 0; font-size: 1.05rem; }
.box-card p { margin: 0; flex: 1; }
.box-card .btn { align-self: flex-start; margin-top: 6px; }
.box-ico { font-size: 28px; line-height: 1; }
/* Page travaux : annuaires des agences et des notaires (recherche par commune) */
.mt-dirs { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0 8px; text-align: left; width: 100%; }
.mt-mortgage { width: 100%; margin: 18px 0 8px; text-align: left; color: var(--text, #1d2b2c); }
.mt-mortgage .mortgage-sim { background: rgba(255,255,255,.97); border-radius: 16px; margin: 0; }
.mt-mortgage .mortgage-sim h2 { font-size: 1.25rem; margin-top: 0; }
.mt-dir { background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text, #1d2b2c); }
.mt-dir-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mt-dir-head b { display: block; font-size: 17px; line-height: 1.25; }
.mt-dir-head small { display: block; color: var(--muted, #6b7b7c); font-size: 13px; }
.mt-dir-head:hover b { text-decoration: underline; }
.mt-dir-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light, #e9f2f2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mt-dir-search { display: flex; gap: 8px; }
.mt-dir-search input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px; }
.mt-dir-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.mt-dir-search .btn { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
/* Annuaire des agences : initiale à la place du logo, appel à s'inscrire */
.agency-initial { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.agency-initial-lg { width: 64px; height: 64px; border-radius: 14px; font-size: 28px; }
.agency-cta { margin: 20px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* Accueil : bloc « Trouver un notaire » */
.home-dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.home-notaries-card { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.home-notaries-card h2 { margin: 0 0 4px; }
.home-notaries-body { flex: 1; min-width: 0; }
.home-notaries-body .article-search { max-width: 640px; }
.home-notaries-icon { flex: none; border-radius: 16px; }
@media (max-width: 640px) { .home-notaries-card { flex-direction: column; gap: 10px; padding: 16px; } .home-notaries-icon { width: 52px; height: 52px; } }
/* Bloc « Articles utiles » (recherche, agence, entreprise, espace, administration) */
.articles-block { margin: 28px 0 8px; }
.articles-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.articles-block-head h2 { margin: 0; font-size: 1.25rem; }
.articles-block-head a { font-weight: 600; white-space: nowrap; }
.articles-block .article-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.articles-block .article-card h3 { font-size: 1rem; margin: 0 0 4px; }
.articles-block-compact { margin-top: 16px; }
.articles-block-list { margin: 10px 0 0; padding-left: 18px; }
.articles-block-list li { padding: 4px 0; }
.card .articles-block { margin: 14px 0 0; }
/* Recherche dans les articles */
.article-search { display: flex; gap: 8px; margin: 16px 0 8px; max-width: 640px; }
.article-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--card); color: inherit; }
.article-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.article-search .btn { flex: none; }
.article-search-info { margin: 4px 0 0; color: var(--muted, #6b7b7c); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.article-card-link:hover h2, .article-card-link:hover h3 { color: var(--brand); }
.article-card img, .article-card-noimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.article-card-noimg { background: linear-gradient(135deg, var(--brand-light), #dfe9ea); }
.article-card-body { padding: 12px 14px 14px; }
.article-card-body h2, .article-card-body h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.article-card-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.article-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 16px; }
/* Page d'un article : format large (photo pleine largeur, texte plus grand et aéré) */
.wrap.medium.article { max-width: 1200px; }
.article .article-cover { max-height: 560px; object-fit: cover; }
.article-nav { max-width: 1200px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.article-nav a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.article-nav a:hover { border-color: var(--brand); }
.article-nav small { color: var(--brand); font-weight: 600; }
.article-nav span { font-weight: 600; line-height: 1.35; }
.article-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav-next { grid-column: 1; } }
@media (min-width: 1000px) {
  .article h1 { font-size: 2.2rem; line-height: 1.25; }
  .article { font-size: 1.08rem; line-height: 1.7; }
}
.article-lead { font-size: 1.12rem; font-weight: 500; }
.prose-article { line-height: 1.75; font-size: 1.02rem; margin-bottom: 24px; }
.prose-article h2 { margin-top: 1.6em; } .prose-article h3 { margin-top: 1.3em; }
.prose-article blockquote { border-left: 4px solid var(--brand); margin: 1em 0; padding: 4px 14px; color: var(--muted); }
.article .share-box { margin-top: 20px; }
[data-share-status] { margin-top: 8px; }

/* ---------- Avis sur les agences ---------- */
.review-stars { color: #f2a900; letter-spacing: 1px; white-space: nowrap; }
.review-stars-big { font-size: 2rem; color: #f2a900; letter-spacing: 3px; margin: 0 0 8px; }
.rating-summary { text-decoration: none; color: inherit; }
.rating-summary:hover b { text-decoration: underline; }
.star-input { border: 0; padding: 0; margin: 0 0 16px; }
.star-input legend { font-weight: 600; margin-bottom: 6px; }
.star-input .stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.6rem; line-height: 1; color: #cfd6dc; cursor: pointer; padding: 2px 4px; transition: color .15s, transform .15s; min-width: 44px; text-align: center; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f2a900; }
.star-input input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.star-input label:active { transform: scale(.9); }
.reviews { margin-top: 36px; }
.reviews h2 small { font-size: .95rem; font-weight: 400; }
.review-list { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 768px) { .review-list { grid-template-columns: 1fr 1fr; } }
.review-item { background: #fff; border: 1px solid var(--line, #e3e8ec); border-radius: 12px; padding: 14px 16px; }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 6px; }
/* ---------- Applications mobiles (badges officiels) ---------- */
.app-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.app-badges-intro { display: flex; align-items: center; gap: 12px; }
.app-badges-icon { border-radius: 10px; flex: none; }
.app-badges-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.app-badges-links a { display: inline-flex; line-height: 0; }
.app-badges-links .badge-ios img { height: 40px; width: auto; }
.app-badges-links .badge-android img { height: 58px; width: auto; margin: -9px -10px; } /* le badge Google contient une marge transparente */
.app-badges-preview { border: 1px dashed var(--line, #ccd5db); border-radius: 12px; padding: 14px 16px; margin: 6px 0 4px; }
.app-badges-preview a[aria-disabled="true"] { opacity: .55; pointer-events: none; }
@media (max-width: 560px) { .app-badges { justify-content: center; text-align: center; } .app-badges-intro { flex-direction: column; } }

/* Suivez-nous (réseaux sociaux, RSS) */
.social-follow { padding: 18px 0 4px; border-top: 1px solid rgba(255, 255, 255, .12); }
.social-follow h2 { font-size: .95rem; margin: 0 0 10px; }
.social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; transition: background .15s; }
.social-icons a:hover, .social-icons a:focus-visible { background: rgba(255, 255, 255, .22); }
.social-icons .social-rss { color: #f78422; }
.social-rss-links { margin: 8px 0 0; opacity: .85; }
@media (max-width: 560px) { .social-follow { text-align: center; } .social-icons { justify-content: center; } }
/* Téléchargement de l'application Android freeimmo Vitrine (espace agence) */
.signage-apk { display: flex; gap: 18px; align-items: flex-start; }
.signage-apk > img { border-radius: 14px; flex: none; }
.signage-apk h2 { margin-top: 0; }
.signage-apk .btn { margin-right: 10px; }
.signage-apk code { word-break: break-all; }
@media (max-width: 560px) { .signage-apk { flex-direction: column; } }
.app-update[hidden] { display: none; }
.app-update .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-update span { flex: 1 1 220px; font-weight: 600; }
.signage-video { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.signage-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.signage-video h2 { margin-top: 0; overflow-wrap: anywhere; }
.signage-placements { list-style: none; padding: 0; margin: 4px 0 14px; }
.signage-placements li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; }
@media (max-width: 760px) { .signage-video { grid-template-columns: minmax(0, 1fr); } }
.led { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.led-on { background: #1fa750; box-shadow: 0 0 6px 1px rgba(31, 167, 80, .7); }
.led-off { background: #d9342b; box-shadow: 0 0 6px 1px rgba(217, 52, 43, .6); }

/* Pied de page : « Suivez freeimmo.be » à gauche, applications mobiles à droite, sur une même bande */
.footer-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; padding-bottom: 8px; }
.pay-logos { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-logos img { width: 52px; height: 32px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 2px; box-sizing: border-box; object-fit: contain; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 18px; font-size: .9rem; }
.pay-page h1 { margin-bottom: 4px; }
.pay-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 18px; align-items: start; }
.pay-choice-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.pay-choice-head h2 { margin: 0; font-size: 1.15rem; }
.pay-choice .pay-logos { margin-bottom: 10px; }
.pay-choice .btn-block { font-size: 1.05rem; padding-top: 12px; padding-bottom: 12px; }
.pay-summary h2 { font-size: 1.05rem; }
.pay-desc { flex-direction: column; gap: 2px; }
.pay-desc b { font-weight: 500; overflow-wrap: anywhere; }
.pay-total { font-size: 1.15rem; border-bottom: 0 !important; padding-top: 10px !important; }
.pay-total b { color: var(--brand); }
@media (min-width: 860px) { .pay-layout { grid-template-columns: minmax(0, 1fr) 320px; } .pay-summary { position: sticky; top: 16px; } }
.footer-extra .social-follow, .footer-extra .app-badges { border-top: 0; padding: 0; }
.footer-extra .app-badges { flex: 0 1 auto; gap: 12px 20px; }
.badge-soon { position: relative; display: inline-flex; line-height: 0; cursor: default; }
.badge-soon img { opacity: .55; filter: grayscale(.3); }
.badge-soon em { position: absolute; left: 50%; bottom: -4px; transform: translate(-50%, 50%); white-space: nowrap; font-style: normal; font-size: .68rem; line-height: 1.4; font-weight: 700;
  background: #f2b705; color: #3b2c00; border-radius: 999px; padding: 1px 8px; }
.badge-android.badge-soon em { bottom: 5px; }
@media (max-width: 760px) { .footer-extra { justify-content: center; text-align: center; } .footer-extra .app-badges { justify-content: center; } }

/* Bannières publicitaires */
.ad-slot { margin: 18px auto; text-align: center; }
.ad-slot a { display: block; line-height: 0; border-radius: 10px; overflow: hidden; }
.ad-slot img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0 auto; }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; text-align: left; }
.ad-home_top, .ad-home_middle, .ad-footer { max-width: 1200px; }
.ad-search_top { max-width: 970px; margin-top: 0; }
.cards > .ad-search_inline { grid-column: 1 / -1; max-width: 728px; margin: 4px auto; width: 100%; }
.ad-listing_side { max-width: 300px; }
.ad-article_bottom { max-width: 728px; }
.ad-thumb, .ad-preview { border-radius: 6px; border: 1px solid var(--line); height: auto; }
.ad-thumb { min-width: 120px; max-height: 90px; object-fit: contain; }
.ad-preview { display: block; max-width: 100%; max-height: 220px; margin: 6px 0 10px; }
.ad-preview-mobile { max-height: 160px; }

/* Affichage dynamique (gestion des écrans) */
.signage-url input { width: 100%; font-family: ui-monospace, monospace; font-size: .9rem; }
.signage-howto { padding-left: 1.3em; } .signage-howto li { margin: 4px 0; }
.input-xs { width: 70px; min-width: 64px; }
.select-sm { font-size: .85rem; padding: 4px 6px; min-width: 110px; }
.signage-creds dl, dl.signage-creds { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 4px; }
.signage-creds dt { font-weight: 600; }
.signage-creds dd { margin: 0; }
.signage-creds code { font-size: 1.15rem; letter-spacing: .06em; background: rgba(0, 0, 0, .06); padding: 2px 8px; border-radius: 6px; user-select: all; }
.signage-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.signage-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #061a1c; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.signage-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.signage-live { position: sticky; top: 12px; }
.signage-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 12px; }
.signage-model { margin: 0; border: 2px solid transparent; border-radius: 14px; padding: 8px; background: var(--bg-soft, #f4f7f7); }
.signage-model.is-current { border-color: var(--line); }
.signage-model.is-chosen { border-color: var(--accent, #e8743b); }
.signage-model figcaption { display: flex; flex-direction: column; gap: 4px; padding: 10px 4px 2px; }
.signage-model figcaption .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) { .signage-settings { grid-template-columns: 1fr; } .signage-live { position: static; } }

/* Compteurs de chaque annonce (Mes annonces) */
.listing-counters { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 0; }
.listing-counters li { font-size: .82rem; background: var(--bg-soft, #eef3f4); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.listing-counters span { opacity: .75; }

/* Mode travaux : boutons de l'administration */
.maintenance-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.maintenance-buttons form { margin: 0; }
.maintenance-buttons button[disabled] { opacity: 1; cursor: default; }

/* Réseaux sociaux de l'annonceur */
.social-connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.social-connect h2 { display: flex; align-items: center; gap: 8px; }
.social-accounts { list-style: none; margin: 0; padding: 0; }
.social-accounts li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.social-accounts li:last-child { border-bottom: 0; }
.social-accounts img, .social-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #eef3f4; }
.social-acc-main { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.social-acc-main svg { vertical-align: -3px; }
.social-error { color: #b91c1c; }

/* Statistiques de l'agence par agent */
.orgstats-table th, .orgstats-table td { white-space: nowrap; font-size: .88rem; }
.orgstats-table tfoot th { border-top: 2px solid var(--line); }
.orgstats-period .chip-on { background: var(--brand, #0b5d63); color: #fff; border-color: transparent; }

/* Historique des connexions */
.logins-links { margin: 6px 0 0; padding-left: 1.2em; max-height: 260px; overflow: auto; word-break: break-all; }
.logins-links li { margin: 2px 0; }

/* Bannière de consentement (Google Analytics) */
.consent { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 16px 18px; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Menu bas et bouton Retour des applications freeimmo et freeimmo Pro */
.app-tabs { position: fixed; z-index: 900; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; display: flex; gap: 2px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.app-tabs a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 19px; color: #5d6b75; font-size: .69rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.app-tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-tabs a[aria-current] { background: var(--brand-light); color: var(--brand); }
.has-app-tabs .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.has-app-tabs .consent { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
body:has(input:focus, textarea:focus, select:focus) .app-tabs { display: none; } /* clavier ouvert : tout l'écran pour le formulaire */
.app-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding-right: 10px; color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.has-app-back .logo { margin-right: auto; }
.has-app-back .logo span { display: none; }
@media print { .app-tabs, .app-back { display: none; } }

/* Connexion par Google, Apple, Facebook */
.social-logins { margin-bottom: 18px; }
.social-login { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.social-or { position: relative; text-align: center; color: #5d6b75; margin: 16px 0 0; }
.social-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.social-or span { position: relative; background: var(--bg, #f5f7f8); padding: 0 12px; }
.profile-avatar { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }

/* Applications, fiche d'un bien : partage et favori sur la photo, Appeler et Contacter en bas */
.app-tools { position: absolute; z-index: 3; top: 10px; right: 10px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.app-tools-row { position: relative; height: 56px; }
.app-tools .fav-form { margin: 0; display: flex; }
.app-tool { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.app-tool[aria-pressed=true] { color: #d6336c; }
.app-tool[aria-pressed=true] svg { fill: currentColor; }
.app-contact-bar { position: fixed; z-index: 901; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
.app-contact-bar .btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.app-contact-bar .btn-accent { flex-grow: 1.6; }
body:has(.app-contact-bar) .app-tabs { display: none; }
body:has(input:focus, textarea:focus, select:focus) .app-contact-bar { display: none; }
.share-sheet { position: fixed; width: 100%; max-width: 100%; margin: auto 0 0; padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 18px 18px 0 0; background: #fff; color: var(--ink); }
.share-sheet::backdrop { background: rgba(0, 0, 0, .45); }
.share-sheet .share-compact { padding: 0; }
.share-sheet .share-title { outline: none; }
@media print { .app-tools, .app-contact-bar, .share-sheet { display: none; } }

/* Chat entre clients et annonceurs */
.chat-title { margin: 6px 0 2px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; min-height: 220px; max-height: 60vh; overflow-y: auto; padding: 12px; margin: 10px 0; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.chat-msg { align-self: flex-start; max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #eef2f3; overflow-wrap: anywhere; }
.chat-msg.mine { align-self: flex-end; background: var(--brand-light); }
.chat-msg p { margin: 0; white-space: pre-wrap; }
.chat-msg details { margin-top: 4px; font-size: .8rem; color: #5d6b75; }
.chat-msg time { display: block; margin-top: 3px; font-size: .72rem; color: #5d6b75; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.chat-form textarea { flex: 1; min-width: 0; }
.chat-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.chat-row.unread { border-color: var(--brand); }
.chat-row-head { display: flex; justify-content: space-between; align-items: center; }
.chat-preview { color: #5d6b75; }
.app-tabs a { position: relative; }
.app-tabs-dot { position: absolute; top: 5px; right: calc(50% - 16px); width: 10px; height: 10px; border-radius: 50%; background: #d6336c; }
.app-contact-bar .btn { padding-left: 6px; padding-right: 6px; }

/* Choix de la langue quand il y en a plus de quatre */
.lang-menu { position: relative; margin-top: 10px; }
.lang-menu summary { cursor: pointer; padding: 4px 8px; border-radius: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.lang-menu .lang-switch { flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 4px 0 0; max-height: 60vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; min-width: 150px; }
@media (min-width: 900px) { .lang-menu { margin: 0 0 0 6px; } .lang-menu .lang-switch { position: absolute; right: 0; z-index: 60; } }

/* Assistant de discussion (Claude) : bouton en bas à droite, fenêtre de conversation ; plein écran sur téléphone */
.ai-chat { position: fixed; right: 18px; bottom: 18px; z-index: 900; font-size: 15px; }
/* Applications : la bulle de l'assistante se place au-dessus du menu bas (sinon elle cache l'onglet « Profil ») */
.has-app-tabs .ai-chat { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.ai-launcher { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 30px; padding: 12px 18px; background: var(--brand, #0b5d63); color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.22); cursor: pointer; }
.ai-launcher span[aria-hidden] { font-size: 20px; line-height: 1; }
.ai-chat.is-open .ai-launcher { display: none; }
.ai-teaser { position: absolute; right: 0; bottom: 64px; width: 260px; background: #fff; color: #1f2d2e; border-radius: 14px; padding: 12px 30px 12px 14px; box-shadow: 0 6px 22px rgba(0,0,0,.18); cursor: pointer; line-height: 1.4; }
.ai-teaser-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; color: #667; cursor: pointer; }
.ai-panel { width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 36px); background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--brand, #0b5d63); color: #fff; }
.ai-head small { color: #d8ecea; }
.ai-head { align-items: center; }
.ai-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #e9753a; background: #fff; }
.ai-head-text { flex: 1; min-width: 0; }
.ai-launcher-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; vertical-align: middle; }
.ai-close { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ai-log { flex: 1; overflow-y: auto; padding: 12px; background: #f5f8f8; display: flex; flex-direction: column; gap: 8px; }
.ai-msg > div { display: inline-block; max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ai-assistant > div { background: #fff; border: 1px solid #dfe8e7; border-bottom-left-radius: 4px; }
.ai-user { text-align: right; }
.ai-user > div { background: var(--brand, #0b5d63); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.ai-user a { color: #fff; }
.ai-typing > div { color: #667; letter-spacing: 2px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: #f5f8f8; }
.ai-chip { border: 1px solid var(--brand, #0b5d63); color: var(--brand, #0b5d63); background: #fff; border-radius: 16px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid #e3e9e9; }
.ai-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 9px 10px; margin: 0; }
.ai-privacy { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: #778; }
/* Administration : transcription */
.ai-transcript { display: flex; flex-direction: column; gap: 8px; background: #f5f8f8; border-radius: 10px; padding: 12px; }
.ai-transcript .ai-note > div { background: #fff4ec; border: 1px dashed #e9753a; }
@media (max-width: 560px) {
  .ai-chat { right: 12px; bottom: 12px; }
  .ai-launcher-label { display: none; }
  .ai-launcher { padding: 14px; }
  .ai-chat.is-open { inset: 0; }
  .ai-panel { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
@media print { .ai-chat { display: none !important; } }
/* « Importer mon annonce » (étape 1 du formulaire de publication) */
.import-box { border: 2px dashed var(--brand, #0b5d63); background: #f2f8f8; }
.import-box h2 { margin-top: 0; }
.import-box textarea { width: 100%; }
.import-box.is-done { border-style: solid; }

/* Page « Bientôt en ligne » : panorama de vraies photos de biens qui défile, statut en haut à gauche */
.mt-pano { position: relative; width: 100%; max-width: 100%; min-width: 0; contain: inline-size; margin: 10px 0 22px; overflow: hidden; border-radius: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mt-pano-track { display: flex; gap: 14px; width: max-content; animation: mtPano 48s linear infinite; }
.mt-pano:hover .mt-pano-track { animation-play-state: paused; }
.mt-pano figure { position: relative; margin: 0; flex: 0 0 auto; width: 260px; height: 172px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px rgba(6, 40, 44, .2); }
.mt-pano img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-badge { position: absolute; top: 10px; left: 10px; padding: 6px 12px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.mt-badge-sale { background: #0b5d63; }
.mt-badge-rent { background: #5b4bd1; }
.mt-badge-option { background: #e9753a; }
@keyframes mtPano { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (max-width: 560px) { .mt-pano figure { width: 200px; height: 136px; } .maintenance-card { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mt-pano-track { animation: none; } }.mt-flag { white-space: nowrap; flex-shrink: 0; }
/* Index des communes : nombre d'agences et d'études notariales à côté de chaque commune */
.columns .commune-item { display: block; padding: 3px 0; break-inside: avoid; }
.columns .commune-item a { display: inline; padding: 0; }
.commune-pro { margin-left: 6px; font-size: 12px; padding: 1px 6px !important; border-radius: 10px; background: #eef5f4; color: #0b5d63; white-space: nowrap; }
.commune-pro:hover { background: #d6ecea; }
.commune-legend a { text-decoration: none; }
.notary-communes { margin-top: 28px; }
.notary-communes h3 { margin: 14px 0 6px; font-size: 16px; }
/* Recherche par commune et par nom (annuaires agences / notaires, index des communes) */
.notary-search { max-width: 860px; flex-wrap: wrap; }
.notary-search input[type=search] { flex: 1 1 220px; }
.commune-finders { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 12px 0 18px; }
@media (min-width: 960px) { .commune-finders { grid-template-columns: 1fr 1fr; } }
.commune-finder { padding: 14px 16px; margin: 0; }
.commune-finder h2 { margin: 0 0 4px; }
.commune-finder .article-search { margin: 8px 0 0; max-width: none; }
/* Mon logiciel immobilier (connexion des CRM) */
.crm-conn { border-top: 1px solid var(--line); padding: 12px 0; }
.crm-conn:first-of-type { border-top: 0; }
.crm-conn-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.crm-providers { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.crm-provider { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.crm-provider:has(input:checked) { border-color: var(--brand); background: #eef5f4; }
.crm-fields { border: 0; padding: 0; margin: 0 0 8px; }
.crm-others { margin: 0; padding-left: 18px; }
.crm-others li { margin: 4px 0; }
.crm-example { white-space: pre-wrap; font-size: 12px; background: #f3f6f6; padding: 10px; border-radius: 8px; overflow-x: auto; }
/* Administration › Partenaires logiciels */
.cp-card { padding: 14px 16px; }
.cp-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cp-head h2 { margin: 0; }
.cp-track { margin: 6px 0 10px; }
.cp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-test { max-width: 240px; padding: 6px 10px; }
.crm-site { margin: 8px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.crm-snippet { user-select: all; margin: 6px 0; }
/* Alerte « Reliez votre logiciel ou votre site » (tableau de bord) et images des articles */
.crm-tip-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.crm-tip-actions form.inline { display: inline; margin: 0; }
.article-figure { margin: 18px 0; }
.article-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.article-figure figcaption { font-size: 13px; color: var(--muted, #6b7b7c); margin-top: 6px; }
/* Réseaux sociaux › Partager en un clic */
.quick-share { list-style: none; margin: 0; padding: 0; }
.quick-share li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.quick-share li:first-child { border-top: 0; }
.quick-share img, .quick-share-ph { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; display: grid; place-items: center; background: #eef3f3; }
.quick-share-main { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.quick-share-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-share-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.qs { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card, #fff); color: inherit; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.qs:hover { background: #eef5f4; }

/* Publicité freeimmo animée (accueil, page travaux) */
.promo-video { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid #e3ecec; border-radius: 18px; padding: 16px; margin: 18px 0 26px; box-shadow: 0 8px 26px rgba(11,93,99,.08); text-align: left; }
.promo-video video { width: 260px; height: 260px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; background: #0b5d63; }
.promo-video-media { position: relative; flex: 0 0 auto; line-height: 0; }
.promo-sound { position: absolute; right: 10px; bottom: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 20px; line-height: 44px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.promo-sound:hover, .promo-sound:focus-visible { background: #fff; outline: 3px solid #e9753a; }
.promo-video-text h2 { font-size: 1.25rem; margin: 0 0 10px; color: #0b5d63; }
.promo-video-text ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; color: #33444a; }
@media (max-width: 640px) { .promo-video { flex-direction: column; text-align: center; } .promo-video-media { width: 100%; max-width: 360px; } .promo-video video { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; } .promo-video-text ul { justify-items: center; } }

/* Gestion de l'agence / de l'étude (CRM intégré) */
.office-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.office-tabs .btn { margin-left: auto; }
.office-kpis { margin-bottom: 18px; }
.office-pipelines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.office-pipe h3 { margin: 0 0 8px; font-size: 1rem; }
.office-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.office-steps li { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 6px; color: #7a8a8f; font-size: .9rem; }
.office-steps li.on { background: #e8f3f3; color: #0b5d63; font-weight: 600; }
.office-steps li.end { border-top: 1px dashed #dde6e6; }
.office-cols { align-items: start; gap: 16px; }
.office-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.office-tasks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.office-tasks li { display: flex; gap: 8px; align-items: baseline; }
.office-tasks li.done > span { text-decoration: line-through; color: #8a979b; }
.office-tasks li.late > span { color: #b3261e; }
.office-check { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: #0b5d63; padding: 0 4px; }
.office-inline-form, .office-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.office-inline-form input:not([type=date]):not([type=file]), .office-filters input[type=search] { flex: 1 1 200px; min-width: 0; }
.office-ai textarea { width: 100%; margin: 6px 0; }
.office-stepper { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.office-stepper button { border: 1px solid #cfdede; background: #fff; color: #557; border-radius: 999px; padding: 5px 12px; font-size: .85rem; cursor: pointer; }
.office-stepper button.done { background: #e8f3f3; color: #0b5d63; border-color: #b9d8d8; }
.office-stepper button.cur { background: #0b5d63; color: #fff; border-color: #0b5d63; font-weight: 700; }
.office-stepper button.end { border-style: dashed; }
.office-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.office-dl dt { color: #6b7b80; } .office-dl dd { margin: 0; }
.office-notes { margin-top: 12px; padding: 10px; background: #f6f9f9; border-radius: 8px; white-space: normal; }
.office-checklist { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.office-checklist li { color: #8a5a00; } .office-checklist li.ok { color: #1d6b3a; }
.office-link { width: 100%; max-width: 330px; font-size: .8rem; }
.office-analysis { background: #f6f9f9; border-radius: 10px; padding: 12px 14px; }
.office-analysis h4 { margin: 6px 0; } .office-analysis ul { margin: 0; padding-left: 18px; }
.office-answer { border-left: 3px solid #e9753a; padding: 4px 12px; margin-top: 12px; }
.office-journal { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 520px; overflow: auto; }
.office-journal li { border-bottom: 1px solid #eef3f3; padding-bottom: 8px; }
.office-editor { font-family: Consolas, monospace; font-size: .85rem; }
.office-preview { max-height: 760px; overflow: auto; }
.badge-ok { background: #e3f4e8; color: #1d6b3a; } .badge-muted { background: #eef1f2; color: #667; }
.text-danger { color: #b3261e; }
.link { border: 0; background: none; color: #0b5d63; text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 640px) { .office-tabs .btn { margin-left: 0; } .office-dl { grid-template-columns: 1fr; } }
.office-search { border: 1px solid #dde6e6; border-radius: 10px; padding: 10px 14px; margin: 6px 0 14px; }
.office-key-out input { width: 130px; }
.office-chart { margin: 0; }
.office-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.office-chart svg { width: 100%; height: auto; display: block; }
.office-chart .grid { stroke: #e6ecec; stroke-width: 1; } .office-chart .grid.base { stroke: #b9c6c8; }
.office-chart .tick { font-size: 11px; fill: #5f6f73; }
.office-chart path:hover { opacity: .8; }
.office-legend { display: flex; gap: 14px; font-size: .85rem; color: #33444a; }
.office-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.office-mini-table { font-size: .8rem; border-collapse: collapse; margin-top: 6px; } .office-mini-table th, .office-mini-table td { padding: 2px 6px; border-bottom: 1px solid #eef3f3; text-align: right; }
.office-ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.office-meter { display: inline-block; width: 90px; height: 8px; background: #eef2f3; border-radius: 4px; overflow: hidden; vertical-align: middle; }
.office-meter i { display: block; height: 100%; border-radius: 4px; }
.office-costs th, .office-pay th { text-align: left; font-weight: 500; } .office-costs td, .office-pay td { white-space: nowrap; }
.office-pay .pos { color: #1d6b3a; } .office-pay .neg { color: #b3261e; }
.org-videos { margin: 28px 0; }
.org-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.org-video h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.org-video-media { position: relative; aspect-ratio: 16 / 9; background: #0b2a2e; border-radius: 10px; overflow: hidden; }
.org-video-media video, .org-video-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #0b2a2e; }
.org-video-text { font-size: .93rem; color: #33444a; }
.org-video-admin { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; margin-bottom: 14px; }
.org-video-admin .org-video-edit { display: grid; gap: 8px; } .org-video-admin textarea { width: 100%; }
.org-video-admin > form[data-confirm] { grid-column: 2; }
@media (max-width: 720px) { .org-video-admin { grid-template-columns: 1fr; } .org-video-admin > form[data-confirm] { grid-column: 1; } }
.org-video-yt { grid-column: 2; } @media (max-width: 720px) { .org-video-yt { grid-column: 1; } }
.video-particuliers { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: center; background: #fff; border: 1px solid #e3ecec; border-radius: 18px; padding: 18px; margin: 0 0 26px; box-shadow: 0 8px 26px rgba(11,93,99,.08); }
.video-particuliers h2 { font-size: 1.3rem; color: #0b5d63; margin: 0 0 10px; }
.video-particuliers p { color: #33444a; margin: 0 0 14px; }
.video-particuliers video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #0b2a2e; }
@media (max-width: 760px) { .video-particuliers { grid-template-columns: 1fr; } .video-particuliers video { order: -1; } }

/* Espace client sécurisé d'un dossier (lien personnel) : étapes, rendez-vous de signature, langues */
.client-space { background: var(--soft, #f3f6f6); }
.client-langs { text-align: right; } .client-langs a { margin-left: 6px; } .client-langs a[aria-current] { font-weight: 700; text-decoration: none; }
.client-steps { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.client-steps li { counter-increment: st; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line, #d5dfe0); font-size: .9rem; color: #5b6b6d; }
.client-steps li::before { content: counter(st) ". "; }
.client-steps li.done { background: #e6f3ea; border-color: #b6dcc2; color: #1d6b3a; }
.client-steps li.done::before { content: "✓ "; }
.client-steps li.cur { background: #0b5d63; border-color: #0b5d63; color: #fff; font-weight: 600; }
.client-signing { background: #fff7e6; border-left: 4px solid #e08a1e; padding: 10px 12px; border-radius: 8px; margin: 12px 0 0; }
.office-costs-head { background: #eef5f5; font-weight: 700; }
.office-costs-total th, .office-costs-total td { border-top: 2px solid #0b5d63; }

/* Logo des organismes de crédit (simulateur hypothécaire) */
.lender-logo{display:inline-block;vertical-align:middle;margin-right:8px;border-radius:5px;object-fit:contain;background:#fff}

/* Inscription : choix du profil avec icône (particulier, agence, notaire, courtier, entreprise) */
.segmented.profiles label, .form-wide .segmented.profiles label { flex: 1 1 150px; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; position: relative; }
.segmented.profiles input { position: absolute; top: 10px; left: 10px; margin: 0; }
.segmented.profiles img { width: 48px; height: 48px; }
.segmented.profiles small { font-size: .82rem; line-height: 1.35; }

/* ---- CRM agence : pipeline (tableau par étape) et profils de recherche ---- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban-col { background: var(--brand-light); border-radius: var(--radius); padding: 10px; min-height: 160px; transition: box-shadow .15s; }
.kanban-col h2 { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.kanban-col.kanban-over { box-shadow: inset 0 0 0 2px var(--brand); }
.kanban-won { background: #e7f6ec; } .kanban-lost { background: #f3f1f1; }
.kanban-cards { display: grid; gap: 8px; min-height: 60px; }
.kanban-card { background: var(--card); border-radius: 8px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: grab; font-size: 14px; }
.kanban-card.kanban-dragging { opacity: .5; }
.kanban-card.kanban-saving { opacity: .6; }
.kanban-move { margin-top: 6px; display: flex; gap: 4px; }
.kanban-move select { font-size: 13px; padding: 2px 4px; width: 100%; }
@media (max-width: 900px) { .kanban { grid-template-columns: repeat(6, 78vw); scroll-snap-type: x mandatory; } .kanban-col { scroll-snap-align: start; } }
.crm-profile { border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.crm-profile summary { cursor: pointer; }
.crm-profile-off { opacity: .65; }
.crm-cats { display: flex; flex-wrap: wrap; gap: 4px 14px; border: 0; padding: 0; margin: 8px 0; }
.crm-cats legend { width: 100%; margin-bottom: 4px; }
.badge.crm-stage-new { background: #e6f0fb; color: #1d4f91; } .badge.crm-stage-qualified { background: #efe9fb; color: #5b3a9b; }
.badge.crm-stage-visit { background: #fff4e0; color: #8a5300; } .badge.crm-stage-offer { background: #fde9df; color: #9a3d12; }
.badge.crm-stage-won { background: #e3f5e8; color: #1e6b37; } .badge.crm-stage-lost { background: #eeeeee; color: #555; }

/* ---- Mon site web : choix du modèle (10 mises en page x 15 palettes) ---- */
.site-tpl-pick { border: 0; padding: 0; margin: 14px 0; }
.site-tpl-pick details { border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.site-tpl-pick summary { cursor: pointer; }
.site-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.site-tpl { display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: center; }
.site-tpl input { position: absolute; opacity: 0; }
.site-sw { display: flex; gap: 3px; padding: 8px; border: 3px solid; border-radius: 8px; height: 46px; }
.site-sw i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.site-tpl input:checked + .site-sw { box-shadow: 0 0 0 3px var(--accent); }
.site-tpl input:focus-visible + .site-sw { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---- Mon site web : animation de la création du site ---- */
.site-build-head { display: flex; align-items: center; gap: 16px; }
.site-build-pct { margin-left: auto; font-size: 28px; color: var(--brand); }
.site-globe { width: 58px; height: 58px; border-radius: 50%; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.site-globe span { animation: site-spin 6s linear infinite; display: inline-block; }
.site-ready .site-globe span { animation: site-pop .6s ease both; }
.site-bar { height: 10px; background: var(--brand-light); border-radius: 999px; overflow: hidden; margin: 16px 0; }
.site-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); background-size: 200% 100%; border-radius: 999px; transition: width .8s ease; animation: site-stripe 2s linear infinite; }
.site-ready .site-bar i { animation: none; background: var(--brand); }
.site-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.site-step { display: flex; gap: 12px; align-items: flex-start; opacity: 0; animation: site-in .5s ease forwards; animation-delay: calc(var(--i) * .12s); }
.site-step-ico { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid #c9d4d8; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px; }
.st-wait .site-step-ico { border-color: var(--brand); border-top-color: transparent; animation: site-spin 1s linear infinite; }
.st-todo .site-step-ico { opacity: .5; }
.st-done .site-step-ico { background: var(--brand); border-color: var(--brand); color: #fff; }
.st-done .site-step-ico::before { content: "✓"; }
.st-error .site-step-ico { border-color: #c0392b; color: #c0392b; } .st-error .site-step-ico::before { content: "!"; }
.just-done .site-step-ico { animation: site-pop .5s ease; }
@keyframes site-spin { to { transform: rotate(360deg); } }
@keyframes site-pop { 0% { transform: scale(.5); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes site-stripe { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes site-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-build *, .site-build *::before { animation: none !important; transition: none !important; } .site-step { opacity: 1; } }

/* ---- Outils de l'agence (tableau de bord, inscription) ---- */
.agency-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.agency-tool { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); transition: transform .2s, box-shadow .2s; }
.agency-tool > span { font-size: 24px; }
.agency-tool small { color: var(--muted); line-height: 1.4; }
a.agency-tool:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); color: var(--brand); }
@media (prefers-reduced-motion: reduce) { a.agency-tool:hover { transform: none; } }

/* ---- Page CRM agences : cartes avec photo ---- */
.feature.feature-photo { padding-top: 0; overflow: hidden; }
.feature.feature-photo img { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 14px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.feature.feature-photo:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .feature.feature-photo:hover img { transform: none; } }

/* ---- Pages détail du CRM agences : démo animée dans un petit écran ---- */
a.feature { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.feature:hover, a.feature:focus-visible { box-shadow: 0 8px 24px rgba(15, 60, 60, .12); transform: translateY(-2px); }
a.feature .crm-more { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--brand, #0f6b6b); }
.crm-feature-hero h1 span { margin-right: 6px; }
.crm-demo-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .crm-demo-wrap { grid-template-columns: 1fr 1.1fr; } }
.crm-demo-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.crm-demo-steps li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; opacity: .55; transition: opacity .3s, background .3s; }
.crm-demo-steps li.active { opacity: 1; background: #e9f5f4; }
.crm-demo-steps li.done { opacity: .85; }
.crm-demo-n { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #d6ecea; color: #0f5b5b; font-weight: 700; }
.crm-demo-steps li.active .crm-demo-n { background: #0f6b6b; color: #fff; }
.crm-device { background: #1f2a33; border-radius: 16px; padding: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); max-width: 560px; width: 100%; justify-self: center; }
.crm-device-bar { display: flex; align-items: center; gap: 6px; padding: 2px 6px 8px; color: #c9d3da; font-size: .8rem; }
.crm-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.crm-device-bar i:nth-child(2) { background: #ffbd2e; } .crm-device-bar i:nth-child(3) { background: #28c941; }
.crm-device-bar span { margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crm-screen { position: relative; background: #f5f7f8; border-radius: 10px; min-height: 330px; padding: 14px; overflow: hidden; font-size: .85rem; color: #1d2b33; }
.cd-el { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .45s ease, transform .45s ease, box-shadow .3s; }
.cd-el.on { opacity: 1; transform: none; }
.cd-el:not(.on) { pointer-events: none; }
.cd-board .cd-el:not(.on), .cd-list .cd-el:not(.on) { display: none; }
.cd-el.hit.on { box-shadow: 0 0 0 3px rgba(15, 107, 107, .35); }
.cd-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(15, 107, 107, .25); border: 2px solid #0f6b6b; opacity: 0; transition: transform .8s cubic-bezier(.4, 0, .2, 1), opacity .3s; pointer-events: none; z-index: 5; }
.cd-cursor.on { opacity: 1; }
.cd-cursor.click { animation: cd-click .6s .75s; }
@keyframes cd-click { 50% { box-shadow: 0 0 0 10px rgba(15, 107, 107, .2); } }
.cd-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.cd-board4 { grid-template-columns: repeat(4, 1fr); }
.cd-col { background: #e8eef0; border-radius: 8px; padding: 6px; min-height: 150px; }
.cd-col h4 { margin: 0 0 6px; font-size: .75rem; text-transform: uppercase; color: #4b5b63; }
.cd-card { background: #fff; border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.cd-card b, .cd-card small { display: block; } .cd-card small { color: #66757d; font-size: .72rem; }
.cd-row, .cd-li, .cd-panel, .cd-search, .cd-field, .cd-msg, .cd-doc, .cd-url, .cd-btn { background: #fff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cd-li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cd-li small { width: 100%; color: #66757d; }
.cd-av { width: 28px; height: 28px; border-radius: 50%; background: #0f6b6b; color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.cd-tag, .cd-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e3f1ef; color: #0f5b5b; font-size: .72rem; font-weight: 600; }
.cd-hot { background: #fde3e1; color: #9b2c22; }
.cd-new { border-left: 4px solid #f08a24; }
.cd-warn { color: #8a4b00; background: #fff4e0; }
.cd-panel b, .cd-panel small { display: block; }
.cd-bar { height: 8px; background: #e3e9ec; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.cd-bar i { display: block; height: 100%; background: #0f6b6b; }
.cd-progress i { width: 0; }
.cd-el.on .cd-progress i, .cd-el.on.cd-progress i { animation: cd-fill 2.5s forwards; }
@keyframes cd-fill { to { width: 100%; } }
.cd-cal { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto 60px 60px; gap: 6px; margin-bottom: 10px; }
.cd-day { text-align: center; font-weight: 700; color: #4b5b63; }
.cd-ev { background: #0f6b6b; color: #fff; border-radius: 6px; padding: 4px 6px; font-size: .72rem; }
.cd-ev2 { background: #6b4ce6; } .cd-ev3 { background: #e07a1f; }
.cd-ev.cd-warn { background: #fff0d6; color: #8a4b00; border: 1px dashed #e0a040; }
.cd-chat { display: flex; flex-direction: column; }
.cd-msg { max-width: 85%; }
.cd-msg small { display: block; color: #66757d; font-size: .7rem; }
.cd-me { align-self: flex-end; background: #0f6b6b; color: #fff; }
.cd-doc b { display: block; margin-bottom: 6px; }
.cd-doc i { display: block; height: 7px; background: #e3e9ec; border-radius: 4px; margin: 5px 0; }
.cd-doc i.short { width: 60%; }
.cd-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-field small { width: 100%; color: #66757d; }
.cd-total { background: #0f6b6b; color: #fff; }
.cd-btn { display: inline-block; background: #f08a24; color: #fff; font-weight: 700; }
.cd-btn.cd-ok { background: #1f9d55; }
.cd-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 10px; background: #fff; border-radius: 8px; margin-bottom: 8px; }
.cd-barv { flex: 1; height: 0; background: linear-gradient(#18908f, #0f6b6b); border-radius: 4px 4px 0 0; transition: height .9s ease, opacity .4s; }
.cd-barv.on { height: var(--h); }
.cd-browser .cd-url { color: #2b6b3f; font-family: monospace; }
.cd-hero { height: 80px; border-radius: 8px; margin-bottom: 8px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, #0f6b6b, #18908f); }
.cd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.cd-tile { background: #fff; border-radius: 8px; padding: 14px 6px; text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cd-video { height: 120px; border-radius: 8px; background: linear-gradient(135deg, #24343e, #0f6b6b); display: grid; place-items: center; margin-bottom: 8px; }
.cd-video span { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #0f6b6b; display: grid; place-items: center; font-size: 1.2rem; }
.cd-video.on span { animation: cd-pulse 1.6s infinite; }
@keyframes cd-pulse { 50% { transform: scale(1.12); } }
.crm-feature-photo img { width: 100%; height: auto; border-radius: var(--radius, 12px); }
@media (prefers-reduced-motion: reduce) { .cd-el, .cd-cursor, .cd-barv { transition: none; } .cd-cursor { display: none; } }
@media (max-width: 480px) { .cd-board4 { grid-template-columns: repeat(2, 1fr); } .crm-screen { font-size: .78rem; } }
/* Agents IA : photo en petit avatar rond, à la place de l'icône */
.crm-avatar { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d6ecea; }
h1 .crm-avatar-lg { display: inline-block; width: 72px; height: 72px; vertical-align: middle; margin: 0 12px 0 0; }
.crm-avatar-sm { width: 40px; height: 40px; margin-bottom: 4px; }
.crm-avatar-xs { width: 28px; height: 28px; margin: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d6ecea; }
.crm-ai-head { display: flex; align-items: center; gap: 10px; }
.crm-ai-head .crm-avatar { margin: 0; }
/* Impression des pages de la gestion (dossier, contacts, pipeline…) : seulement le contenu */
@media print {
  .side-nav, .office-tabs, .office .page-head .actions, .office form, .office .btn, .office button,
  .office-ai, .office-share form, .crm-demo-steps + p, .kanban-col form { display: none !important; }
  .dash { display: block !important; }
  .office .card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .office a { color: #000; text-decoration: none; }
  .office .table-wrap { overflow: visible; }
}
.crm-import-note { background: #fff7ec; border: 1px solid #f6d2a8; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.crm-import-note a { font-weight: 700; white-space: nowrap; }
/* Pages détail du CRM : section « En détail » */
.crm-detail { background: #fff; }
.crm-detail-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .crm-detail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .crm-detail-grid { grid-template-columns: repeat(3, 1fr); } }
.crm-detail-item { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line, #e3e9ec); border-radius: var(--radius, 12px); background: #f9fbfb; }
.crm-detail-item h3 { margin: 0 0 4px; font-size: 1rem; color: #0f5b5b; }
.crm-detail-item p { margin: 0; font-size: .93rem; }
.crm-detail-check { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #0f6b6b; color: #fff; display: grid; place-items: center; font-weight: 700; }
.crm-detail-import { background: #fff7ec; border-color: #f6d2a8; }
.crm-detail-import .crm-detail-check { background: #f08a24; }

/* Démo « site web » : un écran par étape */
.cd-scr:not(.on) { display: none; }
.cd-site .cd-li { padding: 6px 10px; margin-bottom: 6px; font-size: .85rem; }
.cd-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.cd-model { background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08); border: 2px solid transparent; transition: border-color .3s, transform .3s; }
.cd-model i { display: block; height: 22px; border-radius: 4px; margin-bottom: 4px; }
.cd-model span { display: block; height: 5px; background: #e3e9ec; border-radius: 3px; margin-bottom: 3px; }
.cd-model span + span { width: 60%; }
.cd-model small { font-size: .7rem; color: #5c6b73; }
.cd-model.cd-sel.hit { border-color: #0f6b6b; transform: scale(1.05); }
.cd-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 2px; border: 1px solid rgba(0,0,0,.1); }
.cd-editor { display: grid; grid-template-columns: 42% 1fr; gap: 8px; }
.cd-blocks { display: flex; flex-direction: column; }
.cd-blk { background: #fff; border-radius: 6px; padding: 5px 8px; margin-bottom: 5px; font-size: .8rem; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: grab; transition: transform .6s ease, box-shadow .3s; }
.cd-blk.cd-move.hit { transform: translateY(-31px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.cd-preview { background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cd-ph { background: var(--c); color: #fff; border-radius: 6px; padding: 14px 8px; text-align: center; font-size: .85rem; margin-bottom: 6px; }
.cd-pt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 6px; }
.cd-pt span { background: #eef3f5; border-radius: 4px; padding: 10px 2px 3px; font-size: .62rem; text-align: center; }
.cd-pl { height: 6px; background: #e3e9ec; border-radius: 3px; margin-bottom: 4px; }
.cd-pl.cd-short { width: 55%; }
.cd-site code { background: #eef3f5; padding: 1px 5px; border-radius: 4px; }
.cd-chart.cd-chart-sm { height: 60px; margin-bottom: 8px; }
.cd-pt.cd-pt-big span { padding: 22px 4px 6px; font-size: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* Annonce : petits boutons photos / vidéo / carte sur la photo (seulement ceux qui existent) */
.gallery-wrap { position: relative; }
.media-btns { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; gap: 6px; }
.media-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; padding: 5px 8px; border: 0; border-radius: 8px;
  background: rgba(20, 28, 40, .72); color: #fff !important; font: 600 11px/1.1 inherit; text-decoration: none !important; cursor: pointer; backdrop-filter: blur(3px); }
.media-btn span { font-size: 16px; line-height: 1; }
.media-btn b { font-size: 10px; opacity: .85; }
.media-btn:hover { background: var(--brand, #0b5d63); }
.video-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.video-modal[hidden] { display: none; }
.video-modal iframe { width: min(960px, 100%); aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; background: #000; }
.video-modal button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
@media print { .media-btns { display: none; } }
.media-btns { bottom: 10px; right: 10px; }
.fi-media-btns, .media-btns { flex-direction: column; align-items: flex-end; gap: 5px; }

/* Visionneuse en plein écran : photo à la taille de l'écran */
.fi-lightbox.is-full img, .lightbox.is-full img { max-width: 100vw !important; max-height: 100vh !important; width: auto; height: auto; object-fit: contain; }
.fi-lightbox:fullscreen, .lightbox:fullscreen { background: #000; }

/* Réseaux sociaux : comptes de l'agence et profils des agents */
.social-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.social-net { border: 1px solid var(--line, #e3e9ec); border-radius: 10px; padding: 12px; }
.social-net svg { vertical-align: middle; }
.social-net p { margin: 6px 0 10px; }

/* Commande d'un player Android (écran vitrine) */
.player-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.player-offer { margin: 14px 0 18px; }
.player-price b { font-size: 34px; color: var(--accent, #e0662a); }
.player-order .check-list { list-style: none; padding: 0; margin: 10px 0 0; }
.player-order .check-list li { padding: 4px 0 4px 26px; position: relative; }
.player-order .check-list li::before { content: '✓'; position: absolute; left: 4px; color: #1f9d6b; font-weight: 700; }
.player-order .mt0 { margin-top: 0; }
@media (max-width: 820px) { .player-grid { grid-template-columns: 1fr; } }

/* Administration › Stockage S3 */
.s3-search { display: flex; gap: 8px; align-items: center; margin: 12px 0 18px; } .s3-search input { flex: 1; }
.s3-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.s3-photo { margin: 0; border: 1px solid #e1e7e9; border-radius: 8px; overflow: hidden; background: #fff; }
.s3-photo img { width: 100%; height: 110px; object-fit: cover; display: block; }
.s3-photo figcaption { padding: 6px 8px; }
.s3-nophoto { height: 110px; display: grid; place-items: center; color: #c0392b; font-size: 28px; background: #fdecea; }
.badge-danger { background: #fdecea; color: #b3261e; }

/* Inscription : choix du profil (étape 1) */
.profile-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.profile-pick-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.profile-pick-card:hover, .profile-pick-card:focus { border-color: var(--brand, #0b5d63); transform: translateY(-2px); }
.profile-pick-card small { color: #667; }

/* Administration › Aperçu des menus */
.menus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.menus-grid ol { padding-left: 20px; line-height: 1.8; }

/* ===== Page de connexion : formulaire + présentation animée (agence, notaire, courtier) ===== */
.login-split { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 36px; max-width: 1120px; margin: 28px auto 40px; padding: 0 16px; align-items: start; }
.login-form-side h1 { margin-top: 8px; }
.login-show { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 28px 22px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #13807f 0%, #0b5d63 45%, #08454a 100%); box-shadow: 0 18px 50px rgba(8, 69, 74, .28); }
.login-show::before, .login-show::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; animation: lpFloat 14s ease-in-out infinite; }
.login-show::before { width: 260px; height: 260px; right: -80px; top: -90px; background: #f08a3c; }
.login-show::after { width: 180px; height: 180px; left: -60px; bottom: -70px; background: #7fe0d2; animation-delay: -7s; }
@keyframes lpFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 14px) scale(1.08); } }
.lp-kicker { position: relative; margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #ffd2ad; font-weight: 700; }
.lp-title { position: relative; margin: 6px 0 12px; font-size: 26px; line-height: 1.2; color: #fff; }
.lp-pills { position: relative; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.lp-pills li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  opacity: 0; animation: lpPill .6s ease forwards; animation-delay: calc(var(--i) * .12s + .2s); }
@keyframes lpPill { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-stage { position: relative; display: grid; padding-bottom: 18px; }
.lp-slide { grid-area: 1 / 1; position: relative; background: rgba(255,255,255,.97); color: #16323a; border-radius: 16px; padding: 18px 18px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; transform: translateY(14px) scale(.98);
  animation: lpSlide 18s infinite; animation-delay: calc(var(--s) * 6s); }
@keyframes lpSlide { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 3%, 30% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); } }
.lp-slide header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.lp-slide header b { display: block; font-size: 17px; } .lp-slide header small { color: #5b6f75; }
.lp-chart { background: linear-gradient(180deg, #f3faf9, #fff); border: 1px solid #e3eeee; border-radius: 12px; padding: 10px 12px 6px; }
.lp-chart-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #0b5d63; text-transform: uppercase; letter-spacing: .05em; }
.lp-chart svg { width: 100%; height: auto; max-height: 130px; display: block; overflow: visible; }
.lp-chart .lp-donut { max-height: 120px; width: 120px; }
.lp-axis { stroke: #cfdcdc; stroke-width: 1; }
.lp-bar { fill: #2f9e8f; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0);
  animation: lpGrow 18s infinite; animation-delay: calc(var(--s, 0) * 6s + var(--d) * .09s); }
.lp-slide .lp-bar:nth-of-type(2n) { fill: #3fb3a2; }
@keyframes lpGrow { 0% { transform: scaleY(0); } 6%, 31% { transform: scaleY(1); } 34%, 100% { transform: scaleY(0); } }
.lp-line { fill: none; stroke: #0b5d63; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: lpDraw 18s infinite; animation-delay: calc(var(--s, 0) * 6s + .3s); }
.lp-line-accent { stroke: #f08a3c; stroke-width: 2.5; }
@keyframes lpDraw { 0% { stroke-dashoffset: 600; } 9%, 31% { stroke-dashoffset: 0; } 34%, 100% { stroke-dashoffset: 600; } }
.lp-area { fill: rgba(47, 158, 143, .18); opacity: 0; animation: lpFade 18s infinite; animation-delay: calc(var(--s, 0) * 6s + .6s); }
.lp-dot { fill: #fff; stroke: #f08a3c; stroke-width: 2.5; opacity: 0; animation: lpFade 18s infinite; animation-delay: calc(var(--s, 0) * 6s + .5s + var(--d) * .08s); }
@keyframes lpFade { 0% { opacity: 0; } 6%, 31% { opacity: 1; } 34%, 100% { opacity: 0; } }
.lp-donut-wrap { display: flex; align-items: center; gap: 14px; }
.lp-donut { width: 130px; flex: none; transform: rotate(-90deg); }
.lp-donut circle { fill: none; stroke-width: 16; stroke-dasharray: 0 289; stroke-dashoffset: var(--off);
  animation: lpArc 18s infinite; animation-delay: calc(var(--s, 0) * 6s + var(--d) * .15s); }
@keyframes lpArc { 0% { stroke-dasharray: 0 289; } 8%, 31% { stroke-dasharray: var(--len) 289; } 34%, 100% { stroke-dasharray: 0 289; } }
.lp-donut text { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; }
.lp-donut-n { font-size: 24px; font-weight: 800; fill: #16323a; } .lp-donut-l { font-size: 9px; fill: #5b6f75; }
.lp-legend { list-style: none; padding: 0; margin: 0; font-size: 12.5px; line-height: 1.9; }
.lp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lp-points { list-style: none; padding: 0; margin: 10px 0 8px; font-size: 13.5px; line-height: 1.7; }
.lp-points li { opacity: 0; animation: lpFade 18s infinite; animation-delay: calc(var(--s, 0) * 6s + .4s + var(--d) * .15s); }
.lp-slide .lp-points li, .lp-slide .lp-bar, .lp-slide .lp-line, .lp-slide .lp-area, .lp-slide .lp-dot, .lp-slide .lp-donut circle { --s: inherit; }
.lp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-kpis div { background: #fff6ee; border: 1px solid #fde1c9; border-radius: 10px; padding: 7px 10px; }
.lp-kpis b { display: block; font-size: 18px; color: #d8681c; } .lp-kpis small { color: #6b5a4d; font-size: 11.5px; }
.lp-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; }
.lp-dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.lp-dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left;
  animation: lpProg 18s linear infinite; animation-delay: calc(var(--s) * 6s); }
@keyframes lpProg { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); } 33.4%, 100% { transform: scaleX(0); } }
.lp-foot { position: relative; margin: 26px 0 0; font-size: 12.5px; color: rgba(255,255,255,.8); }
@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; gap: 22px; margin-top: 16px; }
  .login-show { padding: 22px 18px 18px; } .lp-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-show *, .login-show::before, .login-show::after { animation: none !important; }
  .lp-slide { opacity: 1; transform: none; visibility: hidden; } .lp-slide:first-child { visibility: visible; }
  .lp-bar { transform: none; } .lp-line { stroke-dashoffset: 0; } .lp-area, .lp-dot, .lp-points li, .lp-pills li { opacity: 1; }
  .lp-donut circle { stroke-dasharray: var(--len) 289; } .lp-dots { display: none; }
}
.login-split > * { min-width: 0; }
.lp-pills li { max-width: 100%; }

/* Adresse d'un métier (agence., notaire., courtier.) : une seule fiche, animée en boucle de 6 s */
.lp-single .lp-slide { animation: lpIn .7s ease both; }
@keyframes lpIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.lp-single .lp-bar { animation: lpGrow1 6s infinite; animation-delay: calc(var(--d) * .09s); }
@keyframes lpGrow1 { 0% { transform: scaleY(0); } 15%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.lp-single .lp-line { animation: lpDraw1 6s infinite; animation-delay: .3s; }
@keyframes lpDraw1 { 0% { stroke-dashoffset: 600; } 25%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 600; } }
.lp-single .lp-area, .lp-single .lp-points li { animation: lpFade1 6s infinite; }
.lp-single .lp-area { animation-delay: .6s; } .lp-single .lp-points li { animation-delay: calc(.4s + var(--d) * .15s); }
.lp-single .lp-dot { animation: lpFade1 6s infinite; animation-delay: calc(.5s + var(--d) * .08s); }
@keyframes lpFade1 { 0% { opacity: 0; } 15%, 88% { opacity: 1; } 100% { opacity: 0; } }
.lp-single .lp-donut circle { animation: lpArc1 6s infinite; animation-delay: calc(var(--d) * .15s); }
@keyframes lpArc1 { 0% { stroke-dasharray: 0 289; } 22%, 88% { stroke-dasharray: var(--len) 289; } 100% { stroke-dasharray: 0 289; } }
.lp-single .lp-stage { padding-bottom: 0; }
.profile-pick-login { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.profile-pick-login .profile-pick-card { padding: 14px 10px; }

/* Connexion : boutons de langue */
.login-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.login-langs a { min-width: 40px; text-align: center; padding: 6px 10px; border: 1px solid #cfdcdc; border-radius: 8px; font-weight: 700; font-size: 13px; text-decoration: none; color: #0b5d63; background: #fff; }
.login-langs a:hover { border-color: #0b5d63; }
.login-langs a[aria-current] { background: #0b5d63; border-color: #0b5d63; color: #fff; }

.login-member { margin: 16px 0 10px; padding: 12px 14px; border: 1px dashed #cfdcdc; border-radius: 10px; background: #fff; font-size: 14px; }
.login-member a { font-weight: 700; white-space: nowrap; }

/* Fenêtre de connexion sur la même page */
.login-dialog { width: min(420px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 22px 22px 16px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.login-dialog::backdrop { background: rgba(10, 30, 35, .55); backdrop-filter: blur(2px); }
.login-dialog[open] { animation: ldIn .22s ease; }
@keyframes ldIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.login-dialog h2 { margin: 0 0 10px; font-size: 21px; }
.ld-close-form { position: absolute; top: 8px; right: 10px; margin: 0; }
.ld-close { border: 0; background: none; font-size: 26px; line-height: 1; color: #667; cursor: pointer; padding: 4px 8px; }
.ld-pro { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid #e3eaea; color: #5b6f75; }
/* Annuaires : recherche par nom mise en avant */
.notary-search .dir-name-q { flex: 1.4; font-weight: 600; }

/* Mode travaux : accès par profil professionnel */
.mt-pros-title { margin: 14px 0 2px; font-size: 16px; }
.mt-pros { display: grid; gap: 8px; margin: 8px 0 14px; }
.mt-pro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding: 8px 10px; border: 1px solid #e3eaea; border-radius: 10px; }
.mt-pro-name { flex: 1; min-width: 150px; font-weight: 600; }

/* Connexion particulier : photos animées de maisons, appartements et terrains */
.login-show.lpm { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lpm-stage { position: relative; flex: 1; min-height: 340px; overflow: hidden; }
.lpm-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; animation: lpmFade calc(var(--lpm-n) * 4s) linear infinite; animation-delay: calc(var(--i) * 4s); }
.lpm-stage img { width: 100%; height: 100%; object-fit: cover; animation: lpmZoom calc(var(--lpm-n) * 4s) linear infinite; animation-delay: calc(var(--i) * 4s); }
.lpm-stage figcaption { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.lpm-type, .lpm-kind { padding: 7px 14px; border-radius: 20px; font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.lpm-type { background: #fff; color: #0b5d63; }
.lpm-kind-sale { background: #e8743b; color: #fff; }
.lpm-kind-rent { background: #2f4b8f; color: #fff; }
@keyframes lpmFade { 0% { opacity: 0; } 3% { opacity: 1; } 12.5% { opacity: 1; } 16% { opacity: 0; } 100% { opacity: 0; } }
@keyframes lpmZoom { 0% { transform: scale(1); } 16% { transform: scale(1.08); } 100% { transform: scale(1.08); } }
.lpm-text { padding: 22px 26px 24px; }
.lpm-text .lp-title { margin-bottom: 12px; }
.lpm-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; color: #e8f3f2; font-size: 15px; }
@media (max-width: 640px) { .lpm-points { grid-template-columns: 1fr; } .lpm-stage { min-height: 240px; } }
@media (prefers-reduced-motion: reduce) { .lpm-stage figure, .lpm-stage img { animation: none; } .lpm-stage figure:first-child { opacity: 1; } }.login-show.lpm { background: #0b4a4f; }
.login-show.lpm::before, .login-show.lpm::after { display: none; }
.lpm-text { background: linear-gradient(180deg, #0b5d63, #0b4a4f); position: relative; z-index: 1; }

.lpm-where { flex-basis: 100%; width: max-content; max-width: 100%; padding: 6px 12px; border-radius: 10px; background: rgba(8,40,44,.78); color: #fff; font-weight: 600; font-size: 14px; }
.lpm-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); pointer-events: none; }
.lpm-stage figcaption { z-index: 2; }

/* Étapes d'installation (tableau de bord pro, Administration › Installations) */
.onboard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.onboard-head h2 { margin: 0; }
.onboard-count { font-weight: 700; color: #0b5d63; }
.onboard-bar { height: 10px; border-radius: 6px; background: #e3eded; overflow: hidden; margin: 10px 0 14px; }
.onboard-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f9e8f, #0b5d63); transition: width .6s ease; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onboard-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e3eaea; border-radius: 10px; }
.onboard-steps li.is-done { background: #f3faf8; color: #5b6f75; }
.onboard-steps li.is-done b { text-decoration: line-through; text-decoration-color: #9bc9c0; }
.onboard-steps li.is-next { border-color: #e8743b; box-shadow: 0 0 0 3px rgba(232,116,59,.12); }
.onboard-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b9cfcf; display: grid; place-items: center; font-weight: 800; color: #fff; }
.is-done .onboard-dot { background: #2f9e8f; border-color: #2f9e8f; }
.is-next .onboard-dot { border-color: #e8743b; }
.onboard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.onboard-text small { color: #66787c; }
.onboard-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.onboard-list { display: grid; gap: 10px; }
.onboard-row header { display: flex; align-items: center; gap: 12px; }
.onboard-ico { font-size: 26px; }
.onboard-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.onboard-who small { color: #66787c; }
.onboard-pct { font-size: 22px; font-weight: 800; color: #e8743b; }
.onboard-pct.is-full { color: #2f9e8f; }
.onboard-row .onboard-bar { margin: 10px 0; }
.onboard-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.onboard-chips li { font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.onboard-chips .is-done { background: #e3f4f0; color: #1f6f63; }
.onboard-chips .is-todo { background: #fff1e8; color: #a14a1b; }
/* Administration › Mailing */
.mailing-preview { width: 100%; height: 560px; border: 1px solid #e3eaea; border-radius: 12px; background: #eef3f3; }
.mailing-box { padding: 14px; border: 1px solid #e3eaea; border-radius: 12px; }
.mailing-box h3 { margin-top: 0; }
.mailing-launch { border-color: #f3d3bd; background: #fffaf6; }
.mailing-methods { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.mailing-methods label { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 10px; border: 1px solid #e3eaea; border-radius: 10px; background: #fff; cursor: pointer; }
.mailing-methods small { grid-column: 2; color: #66787c; }

.mailing-lang { margin: 8px 0; padding: 8px 12px; border: 1px solid #e3eaea; border-radius: 10px; }
.mailing-lang summary { cursor: pointer; }
.mailing-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.mailing-quicktest { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.mailing-quicktest select { width: auto; }
